diff --git a/sdk/clientcore/annotation-processor/pom.xml b/sdk/clientcore/annotation-processor/pom.xml index 34d779ca6321..9ecda36fc602 100644 --- a/sdk/clientcore/annotation-processor/pom.xml +++ b/sdk/clientcore/annotation-processor/pom.xml @@ -113,7 +113,7 @@ io.clientcore core - 1.0.0-beta.9 + 1.0.0-beta.8 diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/CHANGELOG.md b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/CHANGELOG.md index f07a8f63af57..e61b62b74e71 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/CHANGELOG.md +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/CHANGELOG.md @@ -1,14 +1,376 @@ # Release History -## 1.3.0-beta.1 (Unreleased) +## 1.0.0-beta.1 (2025-04-07) + +- Azure Resource Manager SiteRecovery client library for Java. This package contains Microsoft Azure SDK for SiteRecovery Management SDK. Package tag package-2025-03-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Features Added -### Breaking Changes +* `models.ClusterRecoveryPointCollection` was added + +* `models.DiskState` was added + +* `models.A2ASharedDiskReplicationDetails` was added + +* `models.ApplyClusterRecoveryPointProviderSpecificInput` was added + +* `models.SharedDiskReplicationProviderSpecificSettings` was added + +* `models.InMageRcmAddDisksInput` was added + +* `models.FailoverDirection` was added + +* `models.RegisteredClusterNodes` was added + +* `models.ClusterSwitchProtectionJobDetails` was added + +* `models.SwitchClusterProtectionProviderSpecificInput` was added + +* `models.A2AClusterRecoveryPointDetails` was added + +* `models.ClusterRecoveryPoints` was added + +* `models.ClusterTestFailoverProviderSpecificInput` was added + +* `models.LinuxLicenseType` was added + +* `models.ManagedRunCommandScriptInput` was added + +* `models.ClusterProviderSpecificRecoveryPointDetails` was added + +* `models.ReplicationProtectionCluster$Definition` was added + +* `models.SecurityProfileProperties` was added + +* `models.ClusterUnplannedFailoverInputProperties` was added + +* `models.ClusterTestFailoverInputProperties` was added + +* `models.SwitchClusterProtectionInputProperties` was added + +* `models.ReplicationProtectionCluster$DefinitionStages` was added + +* `models.A2AApplyClusterRecoveryPointInput` was added + +* `models.ClusterRecoveryPointOperations` was added + +* `models.ApplyClusterRecoveryPointInput` was added + +* `models.ClusterRecoveryPointProperties` was added + +* `models.A2AClusterUnplannedFailoverInput` was added + +* `models.SwitchClusterProtectionInput` was added + +* `models.ClusterTestFailoverCleanupInput` was added + +* `models.A2AClusterTestFailoverInput` was added + +* `models.ClusterRecoveryPointType` was added + +* `models.SecurityConfiguration` was added + +* `models.A2ASwitchClusterProtectionInput` was added + +* `models.ClusterUnplannedFailoverProviderSpecificInput` was added + +* `models.ReplicationClusterProviderSpecificSettings` was added + +* `models.ReplicationProtectionCluster` was added + +* `models.ClusterTestFailoverCleanupInputProperties` was added + +* `models.A2ASharedDiskIRErrorDetails` was added + +* `models.SharedDiskReplicationItemProperties` was added + +* `models.ApplyClusterRecoveryPointInputProperties` was added + +* `models.ClusterRecoveryPoint` was added + +* `models.ReplicationProtectionClusterProperties` was added + +* `models.ReplicationProtectionClusters` was added + +* `models.A2AProtectedItemDetail` was added + +* `models.UserCreatedResourceTag` was added + +* `models.InMageRcmUnProtectedDiskDetails` was added + +* `models.ReplicationProtectionClusterCollection` was added + +* `models.ClusterTestFailoverInput` was added + +* `models.ClusterUnplannedFailoverInput` was added + +* `models.ClusterTestFailoverJobDetails` was added + +* `models.A2AReplicationProtectionClusterDetails` was added + +* `models.ClusterFailoverJobDetails` was added + +#### `models.OSDetails` was modified + +* `withUserSelectedOSName(java.lang.String)` was added +* `userSelectedOSName()` was added + +#### `models.InMageRcmDiskInput` was modified + +* `withIops(java.lang.Long)` was added +* `sectorSizeInBytes()` was added +* `withSectorSizeInBytes(java.lang.Integer)` was added +* `iops()` was added +* `withDiskSizeInGB(java.lang.Long)` was added +* `diskSizeInGB()` was added +* `withThroughputInMbps(java.lang.Long)` was added +* `throughputInMbps()` was added + +#### `SiteRecoveryManager` was modified + +* `replicationProtectionClusters()` was added +* `clusterRecoveryPoints()` was added +* `clusterRecoveryPointOperations()` was added + +#### `models.VMwareCbtUpdateMigrationItemInput` was modified + +* `userSelectedOSName()` was added +* `linuxLicenseType()` was added +* `withUserSelectedOSName(java.lang.String)` was added +* `withLinuxLicenseType(models.LinuxLicenseType)` was added + +#### `models.HyperVReplicaAzureReplicationDetails` was modified + +* `linuxLicenseType()` was added +* `targetVmSecurityProfile()` was added +* `withLinuxLicenseType(models.LinuxLicenseType)` was added +* `withTargetVmSecurityProfile(models.SecurityProfileProperties)` was added + +#### `models.InMageRcmProtectedDiskDetails` was modified -### Bugs Fixed +* `withDiskSizeInGB(java.lang.Long)` was added +* `diskSizeInGB()` was added +* `withThroughputInMbps(java.lang.Long)` was added +* `customTargetDiskName()` was added +* `throughputInMbps()` was added +* `iops()` was added +* `diskState()` was added +* `withCustomTargetDiskName(java.lang.String)` was added +* `withSectorSizeInBytes(java.lang.Integer)` was added +* `sectorSizeInBytes()` was added +* `withIops(java.lang.Long)` was added + +#### `models.UpdateDiskInput` was modified + +* `withDiskSizeInGB(java.lang.Long)` was added +* `diskSizeInGB()` was added +* `throughputInMbps()` was added +* `withThroughputInMbps(java.lang.Long)` was added +* `withIops(java.lang.Long)` was added +* `iops()` was added + +#### `models.InMageRcmNicDetails` was modified + +* `targetNicName()` was added +* `withTargetNicName(java.lang.String)` was added + +#### `models.InMageRcmUpdateReplicationProtectedItemInput` was modified + +* `targetVmTags()` was added +* `withSqlServerLicenseType(models.SqlServerLicenseType)` was added +* `targetManagedDiskTags()` was added +* `sqlServerLicenseType()` was added +* `targetNicTags()` was added +* `linuxLicenseType()` was added +* `withLinuxLicenseType(models.LinuxLicenseType)` was added +* `withTargetVmTags(java.util.List)` was added +* `withTargetNicTags(java.util.List)` was added +* `withUserSelectedOSName(java.lang.String)` was added +* `withTargetManagedDiskTags(java.util.List)` was added +* `userSelectedOSName()` was added + +#### `models.ProtectionContainer` was modified + +* `switchClusterProtection(models.SwitchClusterProtectionInput,com.azure.core.util.Context)` was added +* `switchClusterProtection(models.SwitchClusterProtectionInput)` was added + +#### `models.A2AReplicationDetails` was modified + +* `isClusterInfraReady()` was added +* `withProtectionClusterId(java.lang.String)` was added +* `protectionClusterId()` was added +* `withIsClusterInfraReady(java.lang.Boolean)` was added + +#### `models.VMwareCbtDiskInput` was modified + +* `withDiskSizeInGB(java.lang.Long)` was added +* `iops()` was added +* `throughputInMbps()` was added +* `sectorSizeInBytes()` was added +* `withThroughputInMbps(java.lang.Long)` was added +* `withIops(java.lang.Long)` was added +* `withSectorSizeInBytes(java.lang.Integer)` was added +* `diskSizeInGB()` was added + +#### `models.VMwareCbtProtectedDiskDetails` was modified + +* `withSectorSizeInBytes(java.lang.Integer)` was added +* `throughputInMbps()` was added +* `sectorSizeInBytes()` was added +* `withIops(java.lang.Long)` was added +* `iops()` was added +* `diskSizeInGB()` was added +* `withDiskSizeInGB(java.lang.Long)` was added +* `withThroughputInMbps(java.lang.Long)` was added + +#### `models.VMwareCbtTestMigrateInput` was modified + +* `withPostMigrationSteps(java.util.List)` was added +* `postMigrationSteps()` was added + +#### `models.VMwareCbtEnableMigrationInput` was modified + +* `withUserSelectedOSName(java.lang.String)` was added +* `linuxLicenseType()` was added +* `userSelectedOSName()` was added +* `withLinuxLicenseType(models.LinuxLicenseType)` was added + +#### `models.VMwareCbtUpdateDiskInput` was modified + +* `withThroughputInMbps(java.lang.Long)` was added +* `iops()` was added +* `diskSizeInGB()` was added +* `withDiskSizeInGB(java.lang.Long)` was added +* `throughputInMbps()` was added +* `withIops(java.lang.Long)` was added + +#### `models.InMageRcmTestFailoverInput` was modified + +* `osUpgradeVersion()` was added +* `withOsUpgradeVersion(java.lang.String)` was added + +#### `models.InMageRcmReplicationDetails` was modified + +* `osName()` was added +* `withSqlServerLicenseType(java.lang.String)` was added +* `seedManagedDiskTags()` was added +* `targetVmSecurityProfile()` was added +* `withTargetNicTags(java.util.List)` was added +* `targetNicTags()` was added +* `withTargetVmTags(java.util.List)` was added +* `withUnprotectedDisks(java.util.List)` was added +* `unprotectedDisks()` was added +* `withTargetVmSecurityProfile(models.SecurityProfileProperties)` was added +* `sqlServerLicenseType()` was added +* `withLinuxLicenseType(models.LinuxLicenseType)` was added +* `withSeedManagedDiskTags(java.util.List)` was added +* `withOsName(java.lang.String)` was added +* `linuxLicenseType()` was added +* `withSupportedOSVersions(java.util.List)` was added +* `targetVmTags()` was added +* `supportedOSVersions()` was added +* `withTargetManagedDiskTags(java.util.List)` was added +* `targetManagedDiskTags()` was added + +#### `models.InMageRcmDisksDefaultInput` was modified + +* `iops()` was added +* `withSectorSizeInBytes(java.lang.Integer)` was added +* `customTargetDiskSize()` was added +* `withThroughputInMbps(java.lang.Integer)` was added +* `withCustomTargetDiskSize(java.lang.Integer)` was added +* `withIops(java.lang.Integer)` was added +* `sectorSizeInBytes()` was added +* `throughputInMbps()` was added + +#### `models.VMwareCbtMigrateInput` was modified + +* `postMigrationSteps()` was added +* `withPostMigrationSteps(java.util.List)` was added + +#### `models.HyperVReplicaAzureEnableProtectionInput` was modified + +* `withTargetVmSecurityProfile(models.SecurityProfileProperties)` was added +* `targetVmSecurityProfile()` was added +* `linuxLicenseType()` was added +* `withUserSelectedOSName(java.lang.String)` was added +* `withLinuxLicenseType(models.LinuxLicenseType)` was added +* `userSelectedOSName()` was added + +#### `models.ReplicationProtectionContainers` was modified + +* `switchClusterProtection(java.lang.String,java.lang.String,java.lang.String,java.lang.String,models.SwitchClusterProtectionInput,com.azure.core.util.Context)` was added +* `switchClusterProtection(java.lang.String,java.lang.String,java.lang.String,java.lang.String,models.SwitchClusterProtectionInput)` was added + +#### `models.A2AEnableProtectionInput` was modified + +* `protectionClusterId()` was added +* `withProtectionClusterId(java.lang.String)` was added + +#### `models.HyperVReplicaAzureUpdateReplicationProtectedItemInput` was modified + +* `linuxLicenseType()` was added +* `withUserSelectedOSName(java.lang.String)` was added +* `withLinuxLicenseType(models.LinuxLicenseType)` was added +* `userSelectedOSName()` was added + +#### `models.HyperVReplicaAzureDiskInputDetails` was modified + +* `withThroughputInMbps(java.lang.Long)` was added +* `throughputInMbps()` was added +* `withSectorSizeInBytes(java.lang.Integer)` was added +* `withDiskSizeInGB(java.lang.Long)` was added +* `withIops(java.lang.Long)` was added +* `sectorSizeInBytes()` was added +* `diskSizeInGB()` was added +* `iops()` was added + +#### `models.HyperVReplicaAzureManagedDiskDetails` was modified + +* `withTargetDiskAccountType(models.DiskAccountType)` was added +* `withThroughputInMbps(java.lang.Long)` was added +* `withIops(java.lang.Long)` was added +* `targetDiskAccountType()` was added +* `iops()` was added +* `sectorSizeInBytes()` was added +* `withDiskSizeInGB(java.lang.Long)` was added +* `throughputInMbps()` was added +* `withSectorSizeInBytes(java.lang.Integer)` was added +* `diskSizeInGB()` was added + +#### `models.InMageRcmEnableProtectionInput` was modified + +* `withTargetVmTags(java.util.List)` was added +* `withLinuxLicenseType(models.LinuxLicenseType)` was added +* `withTargetVmSecurityProfile(models.SecurityProfileProperties)` was added +* `withUserSelectedOSName(java.lang.String)` was added +* `withSqlServerLicenseType(models.SqlServerLicenseType)` was added +* `sqlServerLicenseType()` was added +* `targetVmTags()` was added +* `withTargetNicTags(java.util.List)` was added +* `targetManagedDiskTags()` was added +* `withSeedManagedDiskTags(java.util.List)` was added +* `targetVmSecurityProfile()` was added +* `targetNicTags()` was added +* `userSelectedOSName()` was added +* `linuxLicenseType()` was added +* `seedManagedDiskTags()` was added +* `withTargetManagedDiskTags(java.util.List)` was added + +#### `models.InMageRcmNicInput` was modified + +* `targetNicName()` was added +* `withTargetNicName(java.lang.String)` was added + +#### `models.InMageRcmUnplannedFailoverInput` was modified + +* `osUpgradeVersion()` was added +* `withOsUpgradeVersion(java.lang.String)` was added + +#### `models.VMwareCbtMigrationDetails` was modified -### Other Changes +* `linuxLicenseType()` was added +* `withLinuxLicenseType(models.LinuxLicenseType)` was added ## 1.2.0 (2024-12-23) diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/README.md b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/README.md index 057759fa7668..a027503d2eb8 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/README.md +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/README.md @@ -2,7 +2,7 @@ Azure Resource Manager SiteRecovery client library for Java. -This package contains Microsoft Azure SDK for SiteRecovery Management SDK. Package tag package-2023-08. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). +This package contains Microsoft Azure SDK for SiteRecovery Management SDK. Package tag package-2025-03-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ## We'd love to hear your feedback @@ -52,7 +52,7 @@ Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code: ```java -AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE); +AzureProfile profile = new AzureProfile(AzureCloud.AZURE_PUBLIC_CLOUD); TokenCredential credential = new DefaultAzureCredentialBuilder() .authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint()) .build(); @@ -60,7 +60,7 @@ SiteRecoveryManager manager = SiteRecoveryManager .authenticate(credential, profile); ``` -The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise. +The sample code assumes global Azure. Please change the `AzureCloud.AZURE_PUBLIC_CLOUD` variable if otherwise. See [Authentication][authenticate] for more options. @@ -100,5 +100,3 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m [cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md [coc]: https://opensource.microsoft.com/codeofconduct/ [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ - - diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/SAMPLE.md b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/SAMPLE.md index 6266c8445f37..f10fc237d8f8 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/SAMPLE.md +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/SAMPLE.md @@ -1,6 +1,14 @@ # Code snippets and samples +## ClusterRecoveryPointOperation + +- [Get](#clusterrecoverypointoperation_get) + +## ClusterRecoveryPoints + +- [ListByReplicationProtectionCluster](#clusterrecoverypoints_listbyreplicationprotectioncluster) + ## MigrationRecoveryPoints - [Get](#migrationrecoverypoints_get) @@ -130,6 +138,21 @@ - [UpdateAppliance](#replicationprotecteditems_updateappliance) - [UpdateMobilityService](#replicationprotecteditems_updatemobilityservice) +## ReplicationProtectionClusters + +- [ApplyRecoveryPoint](#replicationprotectionclusters_applyrecoverypoint) +- [Create](#replicationprotectionclusters_create) +- [FailoverCommit](#replicationprotectionclusters_failovercommit) +- [Get](#replicationprotectionclusters_get) +- [GetOperationResults](#replicationprotectionclusters_getoperationresults) +- [List](#replicationprotectionclusters_list) +- [ListByReplicationProtectionContainers](#replicationprotectionclusters_listbyreplicationprotectioncontainers) +- [Purge](#replicationprotectionclusters_purge) +- [RepairReplication](#replicationprotectionclusters_repairreplication) +- [TestFailover](#replicationprotectionclusters_testfailover) +- [TestFailoverCleanup](#replicationprotectionclusters_testfailovercleanup) +- [UnplannedFailover](#replicationprotectionclusters_unplannedfailover) + ## ReplicationProtectionContainerMappings - [Create](#replicationprotectioncontainermappings_create) @@ -148,6 +171,7 @@ - [Get](#replicationprotectioncontainers_get) - [List](#replicationprotectioncontainers_list) - [ListByReplicationFabrics](#replicationprotectioncontainers_listbyreplicationfabrics) +- [SwitchClusterProtection](#replicationprotectioncontainers_switchclusterprotection) - [SwitchProtection](#replicationprotectioncontainers_switchprotection) ## ReplicationProtectionIntents @@ -222,6 +246,58 @@ ## TargetComputeSizes - [ListByReplicationProtectedItems](#targetcomputesizes_listbyreplicationprotecteditems) +### ClusterRecoveryPointOperation_Get + +```java +/** + * Samples for ClusterRecoveryPointOperation Get. + */ +public final class ClusterRecoveryPointOperationGetSamples { + /* + * x-ms-original-file: + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples + * /ClusterRecoveryPoint_Get.json + */ + /** + * Sample code: Gets a recovery point. + * + * @param manager Entry point to SiteRecoveryManager. + */ + public static void + getsARecoveryPoint(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { + manager.clusterRecoveryPointOperations() + .getWithResponse("resourceGroupPS1", "vault1", "fabric-pri-eastus", "pri-cloud-eastus", "testcluster", + "06b9ae7f-f21d-4a76-9897-5cf5d6004d80", com.azure.core.util.Context.NONE); + } +} +``` + +### ClusterRecoveryPoints_ListByReplicationProtectionCluster + +```java +/** + * Samples for ClusterRecoveryPoints ListByReplicationProtectionCluster. + */ +public final class ClusterRecoveryPointsListByReplicationProtectio { + /* + * x-ms-original-file: + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples + * /ClusterRecoveryPoints_ListByReplicationProtectionCluster.json + */ + /** + * Sample code: Gets the list of cluster recovery points. + * + * @param manager Entry point to SiteRecoveryManager. + */ + public static void getsTheListOfClusterRecoveryPoints( + com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { + manager.clusterRecoveryPoints() + .listByReplicationProtectionCluster("resourceGroupPS1", "vault1", "fabric-pri-eastus", "pri-cloud-eastus", + "testcluster", com.azure.core.util.Context.NONE); + } +} +``` + ### MigrationRecoveryPoints_Get ```java @@ -231,7 +307,7 @@ public final class MigrationRecoveryPointsGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /MigrationRecoveryPoints_Get.json */ /** @@ -242,7 +318,7 @@ public final class MigrationRecoveryPointsGetSamples { public static void getsARecoveryPointForAMigrationItem( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.migrationRecoveryPoints() - .getWithResponse("migrationvault", "resourcegroup1", "vmwarefabric1", "vmwareContainer1", "virtualmachine1", + .getWithResponse("resourcegroup1", "migrationvault", "vmwarefabric1", "vmwareContainer1", "virtualmachine1", "b22134ea-620c-474b-9fa5-3c1cb47708e3", com.azure.core.util.Context.NONE); } } @@ -257,7 +333,7 @@ public final class MigrationRecoveryPointsGetSamples { public final class MigrationRecoveryPointsListByReplicationMigrati { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /MigrationRecoveryPoints_ListByReplicationMigrationItems.json */ /** @@ -268,7 +344,7 @@ public final class MigrationRecoveryPointsListByReplicationMigrati { public static void getsTheRecoveryPointsForAMigrationItem( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.migrationRecoveryPoints() - .listByReplicationMigrationItems("migrationvault", "resourcegroup1", "vmwarefabric1", "vmwareContainer1", + .listByReplicationMigrationItems("resourcegroup1", "migrationvault", "vmwarefabric1", "vmwareContainer1", "virtualmachine1", com.azure.core.util.Context.NONE); } } @@ -283,7 +359,7 @@ public final class MigrationRecoveryPointsListByReplicationMigrati { public final class OperationsListByResourceGroupSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /Operations_List.json */ /** @@ -307,7 +383,7 @@ public final class OperationsListByResourceGroupSamples { public final class RecoveryPointsGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /RecoveryPoints_Get.json */ /** @@ -318,7 +394,7 @@ public final class RecoveryPointsGetSamples { public static void getsARecoveryPoint(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.recoveryPoints() - .getWithResponse("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .getWithResponse("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", "b22134ea-620c-474b-9fa5-3c1cb47708e3", com.azure.core.util.Context.NONE); } @@ -334,7 +410,7 @@ public final class RecoveryPointsGetSamples { public final class RecoveryPointsListByReplicationProtectedItemsSa { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /RecoveryPoints_ListByReplicationProtectedItems.json */ /** @@ -345,7 +421,7 @@ public final class RecoveryPointsListByReplicationProtectedItemsSa { public static void getsTheListOfRecoveryPointsForAReplicationProtectedItem( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.recoveryPoints() - .listByReplicationProtectedItems("vault1", "resourceGroupPS1", "cloud1", + .listByReplicationProtectedItems("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", com.azure.core.util.Context.NONE); } @@ -364,7 +440,7 @@ import java.util.Arrays; public final class ReplicationAlertSettingsCreateSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationAlertSettings_Create.json */ /** @@ -376,7 +452,7 @@ public final class ReplicationAlertSettingsCreateSamples { com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationAlertSettings() .define("defaultAlertSetting") - .withExistingVault("vault1", "resourceGroupPS1") + .withExistingVault("resourceGroupPS1", "vault1") .withProperties(new ConfigureAlertRequestProperties().withSendToOwners("false") .withCustomEmailAddresses(Arrays.asList("ronehr@microsoft.com")) .withLocale("")) @@ -394,7 +470,7 @@ public final class ReplicationAlertSettingsCreateSamples { public final class ReplicationAlertSettingsGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationAlertSettings_Get.json */ /** @@ -405,7 +481,7 @@ public final class ReplicationAlertSettingsGetSamples { public static void getsAnEmailNotificationAlertConfiguration( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationAlertSettings() - .getWithResponse("vault1", "resourceGroupPS1", "defaultAlertSetting", com.azure.core.util.Context.NONE); + .getWithResponse("resourceGroupPS1", "vault1", "defaultAlertSetting", com.azure.core.util.Context.NONE); } } ``` @@ -419,7 +495,7 @@ public final class ReplicationAlertSettingsGetSamples { public final class ReplicationAlertSettingsListSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationAlertSettings_List.json */ /** @@ -429,7 +505,7 @@ public final class ReplicationAlertSettingsListSamples { */ public static void getsTheListOfConfiguredEmailNotificationAlertConfigurations( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { - manager.replicationAlertSettings().list("vault1", "resourceGroupPS1", com.azure.core.util.Context.NONE); + manager.replicationAlertSettings().list("resourceGroupPS1", "vault1", com.azure.core.util.Context.NONE); } } ``` @@ -443,7 +519,7 @@ public final class ReplicationAlertSettingsListSamples { public final class ReplicationAppliancesListSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationAppliances_List.json */ /** @@ -453,7 +529,7 @@ public final class ReplicationAppliancesListSamples { */ public static void getsTheListOfAppliances(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { - manager.replicationAppliances().list("vault1", "resourceGroupPS1", null, com.azure.core.util.Context.NONE); + manager.replicationAppliances().list("resourceGroupPS1", "vault1", null, com.azure.core.util.Context.NONE); } } ``` @@ -467,7 +543,7 @@ public final class ReplicationAppliancesListSamples { public final class ReplicationEligibilityResultsOperationGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationEligibilityResults_Get.json */ /** @@ -492,7 +568,7 @@ public final class ReplicationEligibilityResultsOperationGetSamples { public final class ReplicationEligibilityResultsOperationListSampl { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationEligibilityResults_List.json */ /** @@ -517,7 +593,7 @@ public final class ReplicationEligibilityResultsOperationListSampl { public final class ReplicationEventsGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationEvents_Get.json */ /** @@ -528,7 +604,7 @@ public final class ReplicationEventsGetSamples { public static void getTheDetailsOfAnAzureSiteRecoveryEvent( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationEvents() - .getWithResponse("vault1", "resourceGroupPS1", "654b71d0-b2ce-4e6e-a861-98528d4bd375", + .getWithResponse("resourceGroupPS1", "vault1", "654b71d0-b2ce-4e6e-a861-98528d4bd375", com.azure.core.util.Context.NONE); } } @@ -543,7 +619,7 @@ public final class ReplicationEventsGetSamples { public final class ReplicationEventsListSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationEvents_List.json */ /** @@ -553,7 +629,7 @@ public final class ReplicationEventsListSamples { */ public static void getsTheListOfAzureSiteRecoveryEvents( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { - manager.replicationEvents().list("vault1", "resourceGroupPS1", null, com.azure.core.util.Context.NONE); + manager.replicationEvents().list("resourceGroupPS1", "vault1", null, com.azure.core.util.Context.NONE); } } ``` @@ -567,7 +643,7 @@ public final class ReplicationEventsListSamples { public final class ReplicationFabricsCheckConsistencySamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationFabrics_CheckConsistency.json */ /** @@ -578,7 +654,7 @@ public final class ReplicationFabricsCheckConsistencySamples { public static void checksTheConsistencyOfTheASRFabric( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationFabrics() - .checkConsistency("vault1", "resourceGroupPS1", "cloud1", com.azure.core.util.Context.NONE); + .checkConsistency("resourceGroupPS1", "vault1", "cloud1", com.azure.core.util.Context.NONE); } } ``` @@ -595,7 +671,7 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.models.FabricSpeci public final class ReplicationFabricsCreateSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationFabrics_Create.json */ /** @@ -607,7 +683,7 @@ public final class ReplicationFabricsCreateSamples { com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationFabrics() .define("cloud1") - .withExistingVault("vault1", "resourceGroupPS1") + .withExistingVault("resourceGroupPS1", "vault1") .withProperties(new FabricCreationInputProperties().withCustomDetails(new FabricSpecificCreationInput())) .create(); } @@ -623,7 +699,7 @@ public final class ReplicationFabricsCreateSamples { public final class ReplicationFabricsDeleteSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationFabrics_Delete.json */ /** @@ -633,7 +709,7 @@ public final class ReplicationFabricsDeleteSamples { */ public static void deletesTheSite(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { - manager.replicationFabrics().delete("vault1", "resourceGroupPS1", "cloud1", com.azure.core.util.Context.NONE); + manager.replicationFabrics().delete("resourceGroupPS1", "vault1", "cloud1", com.azure.core.util.Context.NONE); } } ``` @@ -647,7 +723,7 @@ public final class ReplicationFabricsDeleteSamples { public final class ReplicationFabricsGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationFabrics_Get.json */ /** @@ -658,7 +734,7 @@ public final class ReplicationFabricsGetSamples { public static void getsTheDetailsOfAnASRFabric( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationFabrics() - .getWithResponse("vault1", "resourceGroupPS1", "cloud1", null, com.azure.core.util.Context.NONE); + .getWithResponse("resourceGroupPS1", "vault1", "cloud1", null, com.azure.core.util.Context.NONE); } } ``` @@ -672,7 +748,7 @@ public final class ReplicationFabricsGetSamples { public final class ReplicationFabricsListSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationFabrics_List.json */ /** @@ -682,7 +758,7 @@ public final class ReplicationFabricsListSamples { */ public static void getsTheListOfASRFabrics(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { - manager.replicationFabrics().list("vault1", "resourceGroupPS1", com.azure.core.util.Context.NONE); + manager.replicationFabrics().list("resourceGroupPS1", "vault1", com.azure.core.util.Context.NONE); } } ``` @@ -696,7 +772,7 @@ public final class ReplicationFabricsListSamples { public final class ReplicationFabricsMigrateToAadSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationFabrics_MigrateToAad.json */ /** @@ -707,7 +783,7 @@ public final class ReplicationFabricsMigrateToAadSamples { public static void migratesTheSiteToAAD(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationFabrics() - .migrateToAad("vault1", "resourceGroupPS1", "cloud1", com.azure.core.util.Context.NONE); + .migrateToAad("resourceGroupPS1", "vault1", "cloud1", com.azure.core.util.Context.NONE); } } ``` @@ -721,7 +797,7 @@ public final class ReplicationFabricsMigrateToAadSamples { public final class ReplicationFabricsPurgeSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationFabrics_Purge.json */ /** @@ -731,7 +807,7 @@ public final class ReplicationFabricsPurgeSamples { */ public static void purgesTheSite(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { - manager.replicationFabrics().purge("vault1", "resourceGroupPS1", "cloud1", com.azure.core.util.Context.NONE); + manager.replicationFabrics().purge("resourceGroupPS1", "vault1", "cloud1", com.azure.core.util.Context.NONE); } } ``` @@ -749,7 +825,7 @@ import java.util.Arrays; public final class ReplicationFabricsReassociateGatewaySamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationFabrics_ReassociateGateway.json */ /** @@ -760,7 +836,7 @@ public final class ReplicationFabricsReassociateGatewaySamples { public static void performFailoverOfTheProcessServer( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationFabrics() - .reassociateGateway("MadhaviVault", "MadhaviVRG", "GRACE-V2A-1", + .reassociateGateway("MadhaviVRG", "MadhaviVault", "GRACE-V2A-1", new FailoverProcessServerRequest().withProperties(new FailoverProcessServerRequestProperties() .withContainerName("cloud_1f3c15af-2256-4568-9e06-e1ef4f728f75") .withSourceProcessServerId("AFA0EC54-1894-4E44-9CAB02DB8854B117") @@ -781,7 +857,7 @@ public final class ReplicationFabricsReassociateGatewaySamples { public final class ReplicationFabricsRemoveInfraSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationInfrastructure_Delete.json */ /** @@ -809,7 +885,7 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.models.RenewCertif public final class ReplicationFabricsRenewCertificateSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationFabrics_RenewCertificate.json */ /** @@ -820,7 +896,7 @@ public final class ReplicationFabricsRenewCertificateSamples { public static void renewsCertificateForTheFabric( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationFabrics() - .renewCertificate("vault1", "resourceGroupPS1", "cloud1", + .renewCertificate("resourceGroupPS1", "vault1", "cloud1", new RenewCertificateInput() .withProperties(new RenewCertificateInputProperties().withRenewCertificateType("Cloud")), com.azure.core.util.Context.NONE); @@ -837,7 +913,7 @@ public final class ReplicationFabricsRenewCertificateSamples { public final class ReplicationJobsCancelSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationJobs_Cancel.json */ /** @@ -848,7 +924,7 @@ public final class ReplicationJobsCancelSamples { public static void cancelsTheSpecifiedJob(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationJobs() - .cancel("vault1", "resourceGroupPS1", "2653c648-fc72-4316-86f3-fdf8eaa0066b", + .cancel("resourceGroupPS1", "vault1", "2653c648-fc72-4316-86f3-fdf8eaa0066b", com.azure.core.util.Context.NONE); } } @@ -865,7 +941,7 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.models.JobQueryPar public final class ReplicationJobsExportSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationJobs_Export.json */ /** @@ -876,7 +952,7 @@ public final class ReplicationJobsExportSamples { public static void exportsTheDetailsOfTheAzureSiteRecoveryJobsOfTheVault( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationJobs() - .export("vault1", "resourceGroupPS1", + .export("resourceGroupPS1", "vault1", new JobQueryParameter().withStartTime("2017-04-27T14:26:51.9161395Z") .withEndTime("2017-05-04T14:26:51.9161395Z") .withAffectedObjectTypes("") @@ -895,7 +971,7 @@ public final class ReplicationJobsExportSamples { public final class ReplicationJobsGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationJobs_Get.json */ /** @@ -906,7 +982,7 @@ public final class ReplicationJobsGetSamples { public static void getsTheJobDetails(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationJobs() - .getWithResponse("vault1", "resourceGroupPS1", "58776d0b-3141-48b2-a377-9ad863eb160d", + .getWithResponse("resourceGroupPS1", "vault1", "58776d0b-3141-48b2-a377-9ad863eb160d", com.azure.core.util.Context.NONE); } } @@ -921,7 +997,7 @@ public final class ReplicationJobsGetSamples { public final class ReplicationJobsListSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationJobs_List.json */ /** @@ -931,7 +1007,7 @@ public final class ReplicationJobsListSamples { */ public static void getsTheListOfJobs(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { - manager.replicationJobs().list("vault1", "resourceGroupPS1", null, com.azure.core.util.Context.NONE); + manager.replicationJobs().list("resourceGroupPS1", "vault1", null, com.azure.core.util.Context.NONE); } } ``` @@ -945,7 +1021,7 @@ public final class ReplicationJobsListSamples { public final class ReplicationJobsRestartSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationJobs_Restart.json */ /** @@ -956,7 +1032,7 @@ public final class ReplicationJobsRestartSamples { public static void restartsTheSpecifiedJob(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationJobs() - .restart("vault1", "resourceGroupPS1", "0664564c-353e-401a-ab0c-722257c10e25", + .restart("resourceGroupPS1", "vault1", "0664564c-353e-401a-ab0c-722257c10e25", com.azure.core.util.Context.NONE); } } @@ -974,7 +1050,7 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.models.ResumeJobPa public final class ReplicationJobsResumeSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationJobs_Resume.json */ /** @@ -985,7 +1061,7 @@ public final class ReplicationJobsResumeSamples { public static void resumesTheSpecifiedJob(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationJobs() - .resume("vault1", "resourceGroupPS1", "58776d0b-3141-48b2-a377-9ad863eb160d", + .resume("resourceGroupPS1", "vault1", "58776d0b-3141-48b2-a377-9ad863eb160d", new ResumeJobParams().withProperties(new ResumeJobParamsProperties().withComments(" ")), com.azure.core.util.Context.NONE); } @@ -1001,7 +1077,7 @@ public final class ReplicationJobsResumeSamples { public final class ReplicationLogicalNetworksGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationLogicalNetworks_Get.json */ /** @@ -1012,7 +1088,7 @@ public final class ReplicationLogicalNetworksGetSamples { public static void getsALogicalNetworkWithSpecifiedServerIdAndLogicalNetworkName( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationLogicalNetworks() - .getWithResponse("vault1", "resourceGroupPS1", "cloud1", "87ab394f-165f-4aa9-bd84-b018500b4509", + .getWithResponse("resourceGroupPS1", "vault1", "cloud1", "87ab394f-165f-4aa9-bd84-b018500b4509", com.azure.core.util.Context.NONE); } } @@ -1027,7 +1103,7 @@ public final class ReplicationLogicalNetworksGetSamples { public final class ReplicationLogicalNetworksListByReplicationFabr { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationLogicalNetworks_ListByReplicationFabrics.json */ /** @@ -1038,7 +1114,7 @@ public final class ReplicationLogicalNetworksListByReplicationFabr { public static void getsTheListOfLogicalNetworksUnderAFabric( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationLogicalNetworks() - .listByReplicationFabrics("vault1", "resourceGroupPS1", "cloud1", com.azure.core.util.Context.NONE); + .listByReplicationFabrics("resourceGroupPS1", "vault1", "cloud1", com.azure.core.util.Context.NONE); } } ``` @@ -1057,7 +1133,7 @@ import java.util.Arrays; public final class ReplicationMigrationItemsCreateSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationMigrationItems_Create.json */ /** @@ -1069,7 +1145,7 @@ public final class ReplicationMigrationItemsCreateSamples { enablesMigration(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationMigrationItems() .define("virtualmachine1") - .withExistingReplicationProtectionContainer("migrationvault", "resourcegroup1", "vmwarefabric1", + .withExistingReplicationProtectionContainer("resourcegroup1", "migrationvault", "vmwarefabric1", "vmwareContainer1") .withProperties(new EnableMigrationInputProperties().withPolicyId( "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.RecoveryServices/vaults/migrationvault/replicationPolicies/vmwarepolicy1") @@ -1079,7 +1155,10 @@ public final class ReplicationMigrationItemsCreateSamples { .withIsOSDisk("true") .withLogStorageAccountId( "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.Storage/storageAccounts/logStorageAccount1") - .withLogStorageAccountSasSecretName("fakeTokenPlaceholder"))) + .withLogStorageAccountSasSecretName("fakeTokenPlaceholder") + .withIops(3000L) + .withThroughputInMbps(5000L) + .withDiskSizeInGB(60L))) .withDataMoverRunAsAccountId( "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.OffAzure/VMwareSites/vmwaresite1/runasaccounts/dataMoverRunAsAccount1") .withSnapshotRunAsAccountId( @@ -1102,7 +1181,7 @@ public final class ReplicationMigrationItemsCreateSamples { public final class ReplicationMigrationItemsDeleteSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationMigrationItems_Delete.json */ /** @@ -1113,7 +1192,7 @@ public final class ReplicationMigrationItemsDeleteSamples { public static void deleteTheMigrationItem(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationMigrationItems() - .delete("migrationvault", "resourcegroup1", "vmwarefabric1", "vmwareContainer1", "virtualmachine1", null, + .delete("resourcegroup1", "migrationvault", "vmwarefabric1", "vmwareContainer1", "virtualmachine1", null, com.azure.core.util.Context.NONE); } } @@ -1128,7 +1207,7 @@ public final class ReplicationMigrationItemsDeleteSamples { public final class ReplicationMigrationItemsGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationMigrationItems_Get.json */ /** @@ -1139,7 +1218,7 @@ public final class ReplicationMigrationItemsGetSamples { public static void getsTheDetailsOfAMigrationItem( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationMigrationItems() - .getWithResponse("migrationvault", "resourcegroup1", "vmwarefabric1", "vmwareContainer1", "virtualmachine1", + .getWithResponse("resourcegroup1", "migrationvault", "vmwarefabric1", "vmwareContainer1", "virtualmachine1", com.azure.core.util.Context.NONE); } } @@ -1154,7 +1233,7 @@ public final class ReplicationMigrationItemsGetSamples { public final class ReplicationMigrationItemsListSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationMigrationItems_List.json */ /** @@ -1165,7 +1244,7 @@ public final class ReplicationMigrationItemsListSamples { public static void getsTheListOfMigrationItemsInTheVault( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationMigrationItems() - .list("migrationvault", "resourcegroup1", null, null, null, com.azure.core.util.Context.NONE); + .list("resourcegroup1", "migrationvault", null, null, null, com.azure.core.util.Context.NONE); } } ``` @@ -1179,7 +1258,7 @@ public final class ReplicationMigrationItemsListSamples { public final class ReplicationMigrationItemsListByReplicationProte { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationMigrationItems_ListByReplicationProtectionContainers.json */ /** @@ -1190,7 +1269,7 @@ public final class ReplicationMigrationItemsListByReplicationProte { public static void getsTheListOfMigrationItemsInTheProtectionContainer( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationMigrationItems() - .listByReplicationProtectionContainers("migrationvault", "resourcegroup1", "vmwarefabric1", + .listByReplicationProtectionContainers("resourcegroup1", "migrationvault", "vmwarefabric1", "vmwareContainer1", null, null, null, com.azure.core.util.Context.NONE); } } @@ -1209,7 +1288,7 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.models.VMwareCbtMi public final class ReplicationMigrationItemsMigrateSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationMigrationItems_Migrate.json */ /** @@ -1219,7 +1298,7 @@ public final class ReplicationMigrationItemsMigrateSamples { */ public static void migrateItem(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationMigrationItems() - .migrate("migrationvault", "resourcegroup1", "vmwarefabric1", "vmwareContainer1", "virtualmachine1", + .migrate("resourcegroup1", "migrationvault", "vmwarefabric1", "vmwareContainer1", "virtualmachine1", new MigrateInput().withProperties(new MigrateInputProperties() .withProviderSpecificDetails(new VMwareCbtMigrateInput().withPerformShutdown("true"))), com.azure.core.util.Context.NONE); @@ -1239,7 +1318,7 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.models.PauseReplic public final class ReplicationMigrationItemsPauseReplicationSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationMigrationItems_PauseReplication.json */ /** @@ -1250,7 +1329,7 @@ public final class ReplicationMigrationItemsPauseReplicationSamples { public static void pauseReplication(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationMigrationItems() - .pauseReplication("migrationvault", "resourcegroup1", "vmwarefabric1", "vmwareContainer1", + .pauseReplication("resourcegroup1", "migrationvault", "vmwarefabric1", "vmwareContainer1", "virtualmachine1", new PauseReplicationInput() .withProperties(new PauseReplicationInputProperties().withInstanceType("VMwareCbt")), @@ -1272,7 +1351,7 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.models.VMwareCbtRe public final class ReplicationMigrationItemsResumeReplicationSampl { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationMigrationItems_ResumeReplication.json */ /** @@ -1283,7 +1362,7 @@ public final class ReplicationMigrationItemsResumeReplicationSampl { public static void resumeReplication(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationMigrationItems() - .resumeReplication("migrationvault", "resourcegroup1", "vmwarefabric1", "vmwareContainer1", + .resumeReplication("resourcegroup1", "migrationvault", "vmwarefabric1", "vmwareContainer1", "virtualmachine1", new ResumeReplicationInput() .withProperties(new ResumeReplicationInputProperties().withProviderSpecificDetails( @@ -1306,7 +1385,7 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.models.VMwareCbtRe public final class ReplicationMigrationItemsResyncSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationMigrationItems_Resync.json */ /** @@ -1317,7 +1396,7 @@ public final class ReplicationMigrationItemsResyncSamples { public static void resynchronizesReplication(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationMigrationItems() - .resync("migrationvault", "resourcegroup1", "vmwarefabric1", "vmwareContainer1", "virtualmachine1", + .resync("resourcegroup1", "migrationvault", "vmwarefabric1", "vmwareContainer1", "virtualmachine1", new ResyncInput().withProperties(new ResyncInputProperties() .withProviderSpecificDetails(new VMwareCbtResyncInput().withSkipCbtReset("true"))), com.azure.core.util.Context.NONE); @@ -1338,7 +1417,7 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.models.VMwareCbtTe public final class ReplicationMigrationItemsTestMigrateSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationMigrationItems_TestMigrate.json */ /** @@ -1349,12 +1428,13 @@ public final class ReplicationMigrationItemsTestMigrateSamples { public static void testMigrateItem(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationMigrationItems() - .testMigrate("migrationvault", "resourcegroup1", "vmwarefabric1", "vmwareContainer1", "virtualmachine1", + .testMigrate("resourcegroup1", "migrationvault", "vmwarefabric1", "vmwareContainer1", "virtualmachine1", new TestMigrateInput().withProperties(new TestMigrateInputProperties() .withProviderSpecificDetails(new VMwareCbtTestMigrateInput().withRecoveryPointId( "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.RecoveryServices/vaults/migrationvault/replicationFabrics/vmwarefabric1/replicationProtectionContainers/vmwareContainer1/replicationMigrationItems/virtualmachine1/migrationRecoveryPoints/9e737191-317e-43d0-8c83-e32ac3b34686") .withNetworkId( - "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.Network/virtualNetworks/virtualNetwork1"))), + "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.Network/virtualNetworks/virtualNetwork1") + .withOsUpgradeVersion("Microsoft Windows Server 2019 (64-bit)"))), com.azure.core.util.Context.NONE); } } @@ -1372,7 +1452,7 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.models.TestMigrate public final class ReplicationMigrationItemsTestMigrateCleanupSamp { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationMigrationItems_TestMigrateCleanup.json */ /** @@ -1383,7 +1463,7 @@ public final class ReplicationMigrationItemsTestMigrateCleanupSamp { public static void testMigrateCleanup(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationMigrationItems() - .testMigrateCleanup("migrationvault", "resourcegroup1", "vmwarefabric1", "vmwareContainer1", + .testMigrateCleanup("resourcegroup1", "migrationvault", "vmwarefabric1", "vmwareContainer1", "virtualmachine1", new TestMigrateCleanupInput() .withProperties(new TestMigrateCleanupInputProperties().withComments("Test Failover Cleanup")), @@ -1405,7 +1485,7 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.models.VMwareCbtUp public final class ReplicationMigrationItemsUpdateSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationMigrationItems_Update.json */ /** @@ -1416,7 +1496,7 @@ public final class ReplicationMigrationItemsUpdateSamples { public static void updatesMigrationItem(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { MigrationItem resource = manager.replicationMigrationItems() - .getWithResponse("migrationvault", "resourcegroup1", "vmwarefabric1", "vmwareContainer1", "virtualmachine1", + .getWithResponse("resourcegroup1", "migrationvault", "vmwarefabric1", "vmwareContainer1", "virtualmachine1", com.azure.core.util.Context.NONE) .getValue(); resource.update() @@ -1439,7 +1519,7 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.models.VmmToAzureC public final class ReplicationNetworkMappingsCreateSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationNetworkMappings_Create.json */ /** @@ -1451,7 +1531,7 @@ public final class ReplicationNetworkMappingsCreateSamples { createsNetworkMapping(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationNetworkMappings() .define("corpe2amap") - .withExistingReplicationNetwork("srce2avaultbvtaC27", "srcBvte2a14C27", + .withExistingReplicationNetwork("srcBvte2a14C27", "srce2avaultbvtaC27", "b0cef6e9a4437b81803d0b55ada4f700ab66caae59c35d62723a1589c0cd13ac", "e2267b5c-2650-49bd-ab3f-d66aae694c06") .withProperties(new CreateNetworkMappingInputProperties().withRecoveryFabricName("Microsoft Azure") @@ -1472,7 +1552,7 @@ public final class ReplicationNetworkMappingsCreateSamples { public final class ReplicationNetworkMappingsDeleteSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationNetworkMappings_Delete.json */ /** @@ -1483,7 +1563,7 @@ public final class ReplicationNetworkMappingsDeleteSamples { public static void deleteNetworkMapping(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationNetworkMappings() - .delete("srce2avaultbvtaC27", "srcBvte2a14C27", + .delete("srcBvte2a14C27", "srce2avaultbvtaC27", "b0cef6e9a4437b81803d0b55ada4f700ab66caae59c35d62723a1589c0cd13ac", "e2267b5c-2650-49bd-ab3f-d66aae694c06", "corpe2amap", com.azure.core.util.Context.NONE); } @@ -1499,7 +1579,7 @@ public final class ReplicationNetworkMappingsDeleteSamples { public final class ReplicationNetworkMappingsGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationNetworkMappings_Get.json */ /** @@ -1510,7 +1590,7 @@ public final class ReplicationNetworkMappingsGetSamples { public static void getsNetworkMappingByName(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationNetworkMappings() - .getWithResponse("srce2avaultbvtaC27", "srcBvte2a14C27", + .getWithResponse("srcBvte2a14C27", "srce2avaultbvtaC27", "b0cef6e9a4437b81803d0b55ada4f700ab66caae59c35d62723a1589c0cd13ac", "e2267b5c-2650-49bd-ab3f-d66aae694c06", "corpe2amap", com.azure.core.util.Context.NONE); } @@ -1526,7 +1606,7 @@ public final class ReplicationNetworkMappingsGetSamples { public final class ReplicationNetworkMappingsListSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationNetworkMappings_List.json */ /** @@ -1537,7 +1617,7 @@ public final class ReplicationNetworkMappingsListSamples { public static void getsAllTheNetworkMappingsUnderAVault( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationNetworkMappings() - .list("srce2avaultbvtaC27", "srcBvte2a14C27", com.azure.core.util.Context.NONE); + .list("srcBvte2a14C27", "srce2avaultbvtaC27", com.azure.core.util.Context.NONE); } } ``` @@ -1551,7 +1631,7 @@ public final class ReplicationNetworkMappingsListSamples { public final class ReplicationNetworkMappingsListByReplicationNetw { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationNetworkMappings_ListByReplicationNetworks.json */ /** @@ -1562,7 +1642,7 @@ public final class ReplicationNetworkMappingsListByReplicationNetw { public static void getsAllTheNetworkMappingsUnderANetwork( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationNetworkMappings() - .listByReplicationNetworks("srce2avaultbvtaC27", "srcBvte2a14C27", + .listByReplicationNetworks("srcBvte2a14C27", "srce2avaultbvtaC27", "b0cef6e9a4437b81803d0b55ada4f700ab66caae59c35d62723a1589c0cd13ac", "e2267b5c-2650-49bd-ab3f-d66aae694c06", com.azure.core.util.Context.NONE); } @@ -1582,7 +1662,7 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.models.VmmToAzureU public final class ReplicationNetworkMappingsUpdateSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationNetworkMappings_Update.json */ /** @@ -1593,7 +1673,7 @@ public final class ReplicationNetworkMappingsUpdateSamples { public static void updatesNetworkMapping(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { NetworkMapping resource = manager.replicationNetworkMappings() - .getWithResponse("srce2avaultbvtaC27", "srcBvte2a14C27", + .getWithResponse("srcBvte2a14C27", "srce2avaultbvtaC27", "b0cef6e9a4437b81803d0b55ada4f700ab66caae59c35d62723a1589c0cd13ac", "e2267b5c-2650-49bd-ab3f-d66aae694c06", "corpe2amap", com.azure.core.util.Context.NONE) .getValue(); @@ -1616,7 +1696,7 @@ public final class ReplicationNetworkMappingsUpdateSamples { public final class ReplicationNetworksGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationNetworks_Get.json */ /** @@ -1627,7 +1707,7 @@ public final class ReplicationNetworksGetSamples { public static void getsANetworkWithSpecifiedServerIdAndNetworkName( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationNetworks() - .getWithResponse("srce2avaultbvtaC27", "srcBvte2a14C27", + .getWithResponse("srcBvte2a14C27", "srce2avaultbvtaC27", "b0cef6e9a4437b81803d0b55ada4f700ab66caae59c35d62723a1589c0cd13ac", "93ce99d7-1219-4914-aa61-73fe5023988e", com.azure.core.util.Context.NONE); } @@ -1643,7 +1723,7 @@ public final class ReplicationNetworksGetSamples { public final class ReplicationNetworksListSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationNetworks_List.json */ /** @@ -1653,7 +1733,7 @@ public final class ReplicationNetworksListSamples { */ public static void getsTheListOfNetworksViewOnlyAPI( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { - manager.replicationNetworks().list("srce2avaultbvtaC27", "srcBvte2a14C27", com.azure.core.util.Context.NONE); + manager.replicationNetworks().list("srcBvte2a14C27", "srce2avaultbvtaC27", com.azure.core.util.Context.NONE); } } ``` @@ -1667,7 +1747,7 @@ public final class ReplicationNetworksListSamples { public final class ReplicationNetworksListByReplicationFabricsSamp { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationNetworks_ListByReplicationFabrics.json */ /** @@ -1678,7 +1758,7 @@ public final class ReplicationNetworksListByReplicationFabricsSamp { public static void getsTheListOfNetworksUnderAFabric( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationNetworks() - .listByReplicationFabrics("srce2avaultbvtaC27", "srcBvte2a14C27", + .listByReplicationFabrics("srcBvte2a14C27", "srce2avaultbvtaC27", "b0cef6e9a4437b81803d0b55ada4f700ab66caae59c35d62723a1589c0cd13ac", com.azure.core.util.Context.NONE); } } @@ -1696,7 +1776,7 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.models.HyperVRepli public final class ReplicationPoliciesCreateSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationPolicies_Create.json */ /** @@ -1708,7 +1788,7 @@ public final class ReplicationPoliciesCreateSamples { createsThePolicy(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationPolicies() .define("protectionprofile1") - .withExistingVault("vault1", "resourceGroupPS1") + .withExistingVault("resourceGroupPS1", "vault1") .withProperties( new CreatePolicyInputProperties().withProviderSpecificInput(new HyperVReplicaAzurePolicyInput())) .create(); @@ -1725,7 +1805,7 @@ public final class ReplicationPoliciesCreateSamples { public final class ReplicationPoliciesDeleteSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationPolicies_Delete.json */ /** @@ -1736,7 +1816,7 @@ public final class ReplicationPoliciesDeleteSamples { public static void deleteThePolicy(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationPolicies() - .delete("vault1", "resourceGroupPS1", "protectionprofile1", com.azure.core.util.Context.NONE); + .delete("resourceGroupPS1", "vault1", "protectionprofile1", com.azure.core.util.Context.NONE); } } ``` @@ -1750,7 +1830,7 @@ public final class ReplicationPoliciesDeleteSamples { public final class ReplicationPoliciesGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationPolicies_Get.json */ /** @@ -1761,7 +1841,7 @@ public final class ReplicationPoliciesGetSamples { public static void getsTheRequestedPolicy(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationPolicies() - .getWithResponse("vault1", "resourceGroupPS1", "protectionprofile1", com.azure.core.util.Context.NONE); + .getWithResponse("resourceGroupPS1", "vault1", "protectionprofile1", com.azure.core.util.Context.NONE); } } ``` @@ -1775,7 +1855,7 @@ public final class ReplicationPoliciesGetSamples { public final class ReplicationPoliciesListSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationPolicies_List.json */ /** @@ -1785,7 +1865,7 @@ public final class ReplicationPoliciesListSamples { */ public static void getsTheListOfReplicationPolicies( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { - manager.replicationPolicies().list("vault1", "resourceGroupPS1", com.azure.core.util.Context.NONE); + manager.replicationPolicies().list("resourceGroupPS1", "vault1", com.azure.core.util.Context.NONE); } } ``` @@ -1803,7 +1883,7 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.models.UpdatePolic public final class ReplicationPoliciesUpdateSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationPolicies_Update.json */ /** @@ -1814,7 +1894,7 @@ public final class ReplicationPoliciesUpdateSamples { public static void updatesThePolicy(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { Policy resource = manager.replicationPolicies() - .getWithResponse("vault1", "resourceGroupPS1", "protectionprofile1", com.azure.core.util.Context.NONE) + .getWithResponse("resourceGroupPS1", "vault1", "protectionprofile1", com.azure.core.util.Context.NONE) .getValue(); resource.update() .withProperties( @@ -1833,7 +1913,7 @@ public final class ReplicationPoliciesUpdateSamples { public final class ReplicationProtectableItemsGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectableItems_Get.json */ /** @@ -1844,7 +1924,7 @@ public final class ReplicationProtectableItemsGetSamples { public static void getsTheDetailsOfAProtectableItem( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectableItems() - .getWithResponse("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .getWithResponse("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "c0c14913-3d7a-48ea-9531-cc99e0e686e6", com.azure.core.util.Context.NONE); } } @@ -1859,7 +1939,7 @@ public final class ReplicationProtectableItemsGetSamples { public final class ReplicationProtectableItemsListByReplicationPro { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectableItems_ListByReplicationProtectionContainers.json */ /** @@ -1870,7 +1950,7 @@ public final class ReplicationProtectableItemsListByReplicationPro { public static void getsTheListOfProtectableItems( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectableItems() - .listByReplicationProtectionContainers("vault1", "resourceGroupPS1", "cloud1", + .listByReplicationProtectionContainers("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", null, null, null, com.azure.core.util.Context.NONE); } } @@ -1891,7 +1971,7 @@ import java.util.Arrays; public final class ReplicationProtectedItemsAddDisksSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectedItems_AddDisks.json */ /** @@ -1902,7 +1982,7 @@ public final class ReplicationProtectedItemsAddDisksSamples { public static void addDiskSForProtection(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectedItems() - .addDisks("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .addDisks("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", new AddDisksInput().withProperties(new AddDisksInputProperties().withProviderSpecificDetails( new A2AAddDisksInput().withVmDisks(Arrays.asList(new A2AVmDiskInputDetails() @@ -1929,7 +2009,7 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.models.HyperVRepli public final class ReplicationProtectedItemsApplyRecoveryPointSamp { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectedItems_ApplyRecoveryPoint.json */ /** @@ -1940,7 +2020,7 @@ public final class ReplicationProtectedItemsApplyRecoveryPointSamp { public static void changeOrApplyRecoveryPoint(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectedItems() - .applyRecoveryPoint("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .applyRecoveryPoint("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", new ApplyRecoveryPointInput().withProperties(new ApplyRecoveryPointInputProperties() .withRecoveryPointId( @@ -1963,7 +2043,7 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.models.HyperVRepli public final class ReplicationProtectedItemsCreateSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectedItems_Create.json */ /** @@ -1975,7 +2055,7 @@ public final class ReplicationProtectedItemsCreateSamples { enablesProtection(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectedItems() .define("f8491e4f-817a-40dd-a90c-af773978c75b") - .withExistingReplicationProtectionContainer("vault1", "resourceGroupPS1", "cloud1", + .withExistingReplicationProtectionContainer("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179") .withProperties(new EnableProtectionInputProperties().withPolicyId( "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationPolicies/protectionprofile1") @@ -2000,7 +2080,7 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.models.DisableProt public final class ReplicationProtectedItemsDeleteSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectedItems_Delete.json */ /** @@ -2011,7 +2091,7 @@ public final class ReplicationProtectedItemsDeleteSamples { public static void disablesProtection(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectedItems() - .delete("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .delete("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "c0c14913-3d7a-48ea-9531-cc99e0e686e6", new DisableProtectionInput().withProperties(new DisableProtectionInputProperties() .withReplicationProviderInput(new DisableProtectionProviderSpecificInput())), @@ -2029,7 +2109,7 @@ public final class ReplicationProtectedItemsDeleteSamples { public final class ReplicationProtectedItemsFailoverCancelSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectedItems_FailoverCancel.json */ /** @@ -2040,7 +2120,7 @@ public final class ReplicationProtectedItemsFailoverCancelSamples { public static void executeCancelFailover(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectedItems() - .failoverCancel("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .failoverCancel("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", com.azure.core.util.Context.NONE); } } @@ -2055,7 +2135,7 @@ public final class ReplicationProtectedItemsFailoverCancelSamples { public final class ReplicationProtectedItemsFailoverCommitSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectedItems_FailoverCommit.json */ /** @@ -2066,7 +2146,7 @@ public final class ReplicationProtectedItemsFailoverCommitSamples { public static void executeCommitFailover(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectedItems() - .failoverCommit("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .failoverCommit("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", com.azure.core.util.Context.NONE); } } @@ -2081,7 +2161,7 @@ public final class ReplicationProtectedItemsFailoverCommitSamples { public final class ReplicationProtectedItemsGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectedItems_Get.json */ /** @@ -2092,7 +2172,7 @@ public final class ReplicationProtectedItemsGetSamples { public static void getsTheDetailsOfAReplicationProtectedItem( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectedItems() - .getWithResponse("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .getWithResponse("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", com.azure.core.util.Context.NONE); } } @@ -2107,7 +2187,7 @@ public final class ReplicationProtectedItemsGetSamples { public final class ReplicationProtectedItemsListSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectedItems_List.json */ /** @@ -2118,7 +2198,7 @@ public final class ReplicationProtectedItemsListSamples { public static void getsTheListOfReplicationProtectedItems( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectedItems() - .list("vault1", "resourceGroupPS1", null, null, com.azure.core.util.Context.NONE); + .list("resourceGroupPS1", "vault1", null, null, com.azure.core.util.Context.NONE); } } ``` @@ -2132,7 +2212,7 @@ public final class ReplicationProtectedItemsListSamples { public final class ReplicationProtectedItemsListByReplicationProte { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectedItems_ListByReplicationProtectionContainers.json */ /** @@ -2143,7 +2223,7 @@ public final class ReplicationProtectedItemsListByReplicationProte { public static void getsTheListOfReplicationProtectedItems( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectedItems() - .listByReplicationProtectionContainers("vault1", "resourceGroupPS1", "cloud1", + .listByReplicationProtectionContainers("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", com.azure.core.util.Context.NONE); } } @@ -2162,7 +2242,7 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.models.PlannedFail public final class ReplicationProtectedItemsPlannedFailoverSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectedItems_PlannedFailover.json */ /** @@ -2173,7 +2253,7 @@ public final class ReplicationProtectedItemsPlannedFailoverSamples { public static void executePlannedFailover(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectedItems() - .plannedFailover("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .plannedFailover("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", new PlannedFailoverInput() .withProperties(new PlannedFailoverInputProperties().withFailoverDirection("PrimaryToRecovery") @@ -2192,7 +2272,7 @@ public final class ReplicationProtectedItemsPlannedFailoverSamples { public final class ReplicationProtectedItemsPurgeSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectedItems_Purge.json */ /** @@ -2203,7 +2283,7 @@ public final class ReplicationProtectedItemsPurgeSamples { public static void purgesProtection(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectedItems() - .purge("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .purge("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "c0c14913-3d7a-48ea-9531-cc99e0e686e6", com.azure.core.util.Context.NONE); } } @@ -2223,7 +2303,7 @@ import java.util.Arrays; public final class ReplicationProtectedItemsRemoveDisksSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectedItems_RemoveDisks.json */ /** @@ -2234,7 +2314,7 @@ public final class ReplicationProtectedItemsRemoveDisksSamples { public static void removesDiskS(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectedItems() - .removeDisks("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .removeDisks("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", new RemoveDisksInput().withProperties( new RemoveDisksInputProperties().withProviderSpecificDetails(new A2ARemoveDisksInput() @@ -2253,7 +2333,7 @@ public final class ReplicationProtectedItemsRemoveDisksSamples { public final class ReplicationProtectedItemsRepairReplicationSampl { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectedItems_RepairReplication.json */ /** @@ -2264,7 +2344,7 @@ public final class ReplicationProtectedItemsRepairReplicationSampl { public static void resynchronizeOrRepairReplication( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectedItems() - .repairReplication("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .repairReplication("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", com.azure.core.util.Context.NONE); } } @@ -2283,7 +2363,7 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReverseRepl public final class ReplicationProtectedItemsReprotectSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectedItems_Reprotect.json */ /** @@ -2294,7 +2374,7 @@ public final class ReplicationProtectedItemsReprotectSamples { public static void executeReverseReplicationReprotect( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectedItems() - .reprotect("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .reprotect("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", new ReverseReplicationInput() .withProperties(new ReverseReplicationInputProperties().withFailoverDirection("PrimaryToRecovery") @@ -2318,7 +2398,7 @@ import java.util.Arrays; public final class ReplicationProtectedItemsResolveHealthErrorsSam { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectedItems_ResolveHealthErrors.json */ /** @@ -2329,7 +2409,7 @@ public final class ReplicationProtectedItemsResolveHealthErrorsSam { public static void resolveHealthErrors(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectedItems() - .resolveHealthErrors("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .resolveHealthErrors("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", new ResolveHealthInput().withProperties(new ResolveHealthInputProperties() .withHealthErrors(Arrays.asList(new ResolveHealthError().withHealthErrorId("3:8020")))), @@ -2351,7 +2431,7 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.models.SwitchProvi public final class ReplicationProtectedItemsSwitchProviderSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectedItems_SwitchProvider.json */ /** @@ -2362,7 +2442,7 @@ public final class ReplicationProtectedItemsSwitchProviderSamples { public static void executeSwitchProvider(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectedItems() - .switchProvider("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .switchProvider("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", new SwitchProviderInput().withProperties(new SwitchProviderInputProperties() .withTargetInstanceType("InMageRcm") @@ -2389,7 +2469,7 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.models.TestFailove public final class ReplicationProtectedItemsTestFailoverSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectedItems_TestFailover.json */ /** @@ -2400,7 +2480,7 @@ public final class ReplicationProtectedItemsTestFailoverSamples { public static void executeTestFailover(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectedItems() - .testFailover("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .testFailover("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", new TestFailoverInput().withProperties(new TestFailoverInputProperties() .withFailoverDirection("PrimaryToRecovery") @@ -2425,7 +2505,7 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.models.TestFailove public final class ReplicationProtectedItemsTestFailoverCleanupSam { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectedItems_TestFailoverCleanup.json */ /** @@ -2436,7 +2516,7 @@ public final class ReplicationProtectedItemsTestFailoverCleanupSam { public static void executeTestFailoverCleanup(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectedItems() - .testFailoverCleanup("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .testFailoverCleanup("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", new TestFailoverCleanupInput() .withProperties(new TestFailoverCleanupInputProperties().withComments("Test Failover Cleanup")), @@ -2458,7 +2538,7 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.models.UnplannedFa public final class ReplicationProtectedItemsUnplannedFailoverSampl { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectedItems_UnplannedFailover.json */ /** @@ -2469,7 +2549,7 @@ public final class ReplicationProtectedItemsUnplannedFailoverSampl { public static void executeUnplannedFailover(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectedItems() - .unplannedFailover("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .unplannedFailover("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", new UnplannedFailoverInput() .withProperties(new UnplannedFailoverInputProperties().withFailoverDirection("PrimaryToRecovery") @@ -2497,7 +2577,7 @@ import java.util.Arrays; public final class ReplicationProtectedItemsUpdateSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectedItems_Update.json */ /** @@ -2508,7 +2588,7 @@ public final class ReplicationProtectedItemsUpdateSamples { public static void updatesTheReplicationProtectedItemSettings( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { ReplicationProtectedItem resource = manager.replicationProtectedItems() - .getWithResponse("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .getWithResponse("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", com.azure.core.util.Context.NONE) .getValue(); resource.update() @@ -2543,7 +2623,7 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.models.UpdateAppli public final class ReplicationProtectedItemsUpdateApplianceSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectedItems_UpdateAppliance.json */ /** @@ -2554,7 +2634,7 @@ public final class ReplicationProtectedItemsUpdateApplianceSamples { public static void updatesApplianceForReplicationProtectedItem( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectedItems() - .updateAppliance("Ayan-0106-SA-Vault", "Ayan-0106-SA-RG", "Ayan-0106-SA-Vaultreplicationfabric", + .updateAppliance("Ayan-0106-SA-RG", "Ayan-0106-SA-Vault", "Ayan-0106-SA-Vaultreplicationfabric", "Ayan-0106-SA-Vaultreplicationcontainer", "idclab-vcen67_50158124-8857-3e08-0893-2ddf8ebb8c1f", new UpdateApplianceForReplicationProtectedItemInput().withProperties( new UpdateApplianceForReplicationProtectedItemInputProperties().withTargetApplianceId("") @@ -2577,7 +2657,7 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.models.UpdateMobil public final class ReplicationProtectedItemsUpdateMobilityServiceS { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectedItems_UpdateMobilityService.json */ /** @@ -2588,7 +2668,7 @@ public final class ReplicationProtectedItemsUpdateMobilityServiceS { public static void updateTheMobilityServiceOnAProtectedItem( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectedItems() - .updateMobilityService("WCUSVault", "wcusValidations", "WIN-JKKJ31QI8U2", + .updateMobilityService("wcusValidations", "WCUSVault", "WIN-JKKJ31QI8U2", "cloud_c6780228-83bd-4f3e-a70e-cb46b7da33a0", "79dd20ab-2b40-11e7-9791-0050568f387e", new UpdateMobilityServiceRequest() .withProperties(new UpdateMobilityServiceRequestProperties().withRunAsAccountId("2")), @@ -2597,6 +2677,371 @@ public final class ReplicationProtectedItemsUpdateMobilityServiceS { } ``` +### ReplicationProtectionClusters_ApplyRecoveryPoint + +```java +import com.azure.resourcemanager.recoveryservicessiterecovery.models.A2AApplyClusterRecoveryPointInput; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ApplyClusterRecoveryPointInput; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ApplyClusterRecoveryPointInputProperties; +import java.util.Arrays; + +/** + * Samples for ReplicationProtectionClusters ApplyRecoveryPoint. + */ +public final class ReplicationProtectionClustersApplyRecoveryPoint { + /* + * x-ms-original-file: + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples + * /ReplicationProtectionClusters_ApplyRecoveryPoint.json + */ + /** + * Sample code: Execute the change recovery point operation for cluster. + * + * @param manager Entry point to SiteRecoveryManager. + */ + public static void executeTheChangeRecoveryPointOperationForCluster( + com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { + manager.replicationProtectionClusters() + .applyRecoveryPoint("resourceGroupPS1", "vault1", "fabric-pri-eastus", "pri-cloud-eastus", "testcluster", + new ApplyClusterRecoveryPointInput().withProperties(new ApplyClusterRecoveryPointInputProperties() + .withClusterRecoveryPointId( + "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/shashankvaultpvt/replicationFabrics/fabric-pri-eastus/replicationProtectionContainers/pri-cloud-eastus/replicationProtectionClusters/testcluster/recoveryPoints/cc48b7f3-b267-432b-ad76-45528974dc62") + .withIndividualNodeRecoveryPoints(Arrays.asList( + "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/shashankvaultpvt/replicationFabrics/fabric-pri-eastus/replicationProtectionContainers/pri-cloud-eastus/replicationProtectedItems/testVM/recoveryPoints/b5c2051b-79e3-41ad-9d25-244f6ef8ce7d")) + .withProviderSpecificDetails(new A2AApplyClusterRecoveryPointInput())), + com.azure.core.util.Context.NONE); + } +} +``` + +### ReplicationProtectionClusters_Create + +```java +import com.azure.resourcemanager.recoveryservicessiterecovery.models.A2AReplicationProtectionClusterDetails; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationProtectionClusterProperties; + +/** + * Samples for ReplicationProtectionClusters Create. + */ +public final class ReplicationProtectionClustersCreateSamples { + /* + * x-ms-original-file: + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples + * /ReplicationProtectionClusters_Create.json + */ + /** + * Sample code: Create Replication protection Cluster. + * + * @param manager Entry point to SiteRecoveryManager. + */ + public static void createReplicationProtectionCluster( + com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { + manager.replicationProtectionClusters() + .define("cluster12") + .withExistingReplicationProtectionContainer("resourceGroupPS1", "vault1", "eastus", "eastus-container") + .withProperties(new ReplicationProtectionClusterProperties().withRecoveryContainerId( + "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/centraluseuap/replicationProtectionContainers/centraluseuap-container") + .withProviderSpecificDetails(new A2AReplicationProtectionClusterDetails()) + .withPolicyId( + "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationPolicies/24-hour-retention-policy")) + .create(); + } +} +``` + +### ReplicationProtectionClusters_FailoverCommit + +```java +/** + * Samples for ReplicationProtectionClusters FailoverCommit. + */ +public final class ReplicationProtectionClustersFailoverCommitSamp { + /* + * x-ms-original-file: + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples + * /ReplicationProtectionClusters_FailoverCommit.json + */ + /** + * Sample code: Execute commit failover for cluster. + * + * @param manager Entry point to SiteRecoveryManager. + */ + public static void executeCommitFailoverForCluster( + com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { + manager.replicationProtectionClusters() + .failoverCommit("resourceGroupPS1", "vault1", "fabric-pri-eastus", "pri-cloud-eastus", "testcluster", + com.azure.core.util.Context.NONE); + } +} +``` + +### ReplicationProtectionClusters_Get + +```java +/** + * Samples for ReplicationProtectionClusters Get. + */ +public final class ReplicationProtectionClustersGetSamples { + /* + * x-ms-original-file: + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples + * /ReplicationProtectionClusters_Get.json + */ + /** + * Sample code: Gets the details of a Replication protection cluster. + * + * @param manager Entry point to SiteRecoveryManager. + */ + public static void getsTheDetailsOfAReplicationProtectionCluster( + com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { + manager.replicationProtectionClusters() + .getWithResponse("resourceGroupPS1", "vault1", "eastus", "eastus-container", "cluster1", + com.azure.core.util.Context.NONE); + } +} +``` + +### ReplicationProtectionClusters_GetOperationResults + +```java +/** + * Samples for ReplicationProtectionClusters GetOperationResults. + */ +public final class ReplicationProtectionClustersGetOperationResult { + /* + * x-ms-original-file: + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples + * /ReplicationProtectionClusters_GetOperationResults.json + */ + /** + * Sample code: Tracks the Replication protection cluster async operation. + * + * @param manager Entry point to SiteRecoveryManager. + */ + public static void tracksTheReplicationProtectionClusterAsyncOperation( + com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { + manager.replicationProtectionClusters() + .getOperationResultsWithResponse("resourceGroupPS1", "vault1", "eastus", "eastus-container", "cluster1", + "ea63a935-59d5-4b12-aff2-98773f63c116", com.azure.core.util.Context.NONE); + } +} +``` + +### ReplicationProtectionClusters_List + +```java +/** + * Samples for ReplicationProtectionClusters List. + */ +public final class ReplicationProtectionClustersListSamples { + /* + * x-ms-original-file: + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples + * /ReplicationProtectionClusters_List.json + */ + /** + * Sample code: Gets the list of Replication protection clusters in vault. + * + * @param manager Entry point to SiteRecoveryManager. + */ + public static void getsTheListOfReplicationProtectionClustersInVault( + com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { + manager.replicationProtectionClusters() + .list("resourceGroupPS1", "vault1", null, + "SourceFabricName eq 'asr-a2a-default-eastus' and SourceFabricLocation eq 'East US' and InstanceType eq 'A2A'", + com.azure.core.util.Context.NONE); + } +} +``` + +### ReplicationProtectionClusters_ListByReplicationProtectionContainers + +```java +/** + * Samples for ReplicationProtectionClusters ListByReplicationProtectionContainers. + */ +public final class ReplicationProtectionClustersListByReplicationP { + /* + * x-ms-original-file: + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples + * /ReplicationProtectionClusters_ListByReplicationProtectionContainers.json + */ + /** + * Sample code: Gets the list of Replication protection clusters in fabric, container. + * + * @param manager Entry point to SiteRecoveryManager. + */ + public static void getsTheListOfReplicationProtectionClustersInFabricContainer( + com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { + manager.replicationProtectionClusters() + .listByReplicationProtectionContainers("resourceGroupPS1", "vault1", "eastus", "eastus-container", + com.azure.core.util.Context.NONE); + } +} +``` + +### ReplicationProtectionClusters_Purge + +```java +/** + * Samples for ReplicationProtectionClusters Purge. + */ +public final class ReplicationProtectionClustersPurgeSamples { + /* + * x-ms-original-file: + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples + * /ReplicationProtectionClusters_Purge.json + */ + /** + * Sample code: Purge the replication protection cluster. + * + * @param manager Entry point to SiteRecoveryManager. + */ + public static void purgeTheReplicationProtectionCluster( + com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { + manager.replicationProtectionClusters() + .purge("resourceGroupPS1", "vault1", "eastus", "eastus-container", "cluster1", + com.azure.core.util.Context.NONE); + } +} +``` + +### ReplicationProtectionClusters_RepairReplication + +```java +/** + * Samples for ReplicationProtectionClusters RepairReplication. + */ +public final class ReplicationProtectionClustersRepairReplicationS { + /* + * x-ms-original-file: + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples + * /ReplicationProtectionClusters_RepairReplication.json + */ + /** + * Sample code: Resynchronize or repair replication of protection cluster. + * + * @param manager Entry point to SiteRecoveryManager. + */ + public static void resynchronizeOrRepairReplicationOfProtectionCluster( + com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { + manager.replicationProtectionClusters() + .repairReplication("resourceGroupPS1", "vault1", "eastus", "eastus-container", "cluster12", + com.azure.core.util.Context.NONE); + } +} +``` + +### ReplicationProtectionClusters_TestFailover + +```java +import com.azure.resourcemanager.recoveryservicessiterecovery.models.A2AClusterTestFailoverInput; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ClusterTestFailoverInput; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ClusterTestFailoverInputProperties; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.FailoverDirection; +import java.util.Arrays; + +/** + * Samples for ReplicationProtectionClusters TestFailover. + */ +public final class ReplicationProtectionClustersTestFailoverSamples { + /* + * x-ms-original-file: + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples + * /ReplicationProtectionClusters_TestFailover.json + */ + /** + * Sample code: Execute test failover for cluster. + * + * @param manager Entry point to SiteRecoveryManager. + */ + public static void executeTestFailoverForCluster( + com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { + manager.replicationProtectionClusters() + .testFailover("resourceGroupPS1", "vault1", "fabric-pri-eastus", "pri-cloud-eastus", "testcluster", + new ClusterTestFailoverInput().withProperties(new ClusterTestFailoverInputProperties() + .withFailoverDirection(FailoverDirection.PRIMARY_TO_RECOVERY) + .withNetworkType("VmNetworkAsInput") + .withNetworkId( + "/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/ClusterTestRG-19-01-asr/providers/Microsoft.Network/virtualNetworks/adVNET-asr") + .withProviderSpecificDetails(new A2AClusterTestFailoverInput().withClusterRecoveryPointId( + "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/fabric-pri-eastus/replicationProtectionContainers/pri-cloud-eastus/replicationProtectionClusters/testcluster/recoveryPoints/cc48b7f3-b267-432b-ad76-45528974dc62") + .withIndividualNodeRecoveryPoints(Arrays.asList( + "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/fabric-pri-eastus/replicationProtectionContainers/pri-cloud-eastus/replicationProtectedItems/testVM/recoveryPoints/b5c2051b-79e3-41ad-9d25-244f6ef8ce7d")))), + com.azure.core.util.Context.NONE); + } +} +``` + +### ReplicationProtectionClusters_TestFailoverCleanup + +```java +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ClusterTestFailoverCleanupInput; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ClusterTestFailoverCleanupInputProperties; + +/** + * Samples for ReplicationProtectionClusters TestFailoverCleanup. + */ +public final class ReplicationProtectionClustersTestFailoverCleanu { + /* + * x-ms-original-file: + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples + * /ReplicationProtectionClusters_TestFailoverCleanup.json + */ + /** + * Sample code: Execute test failover cleanup for cluster. + * + * @param manager Entry point to SiteRecoveryManager. + */ + public static void executeTestFailoverCleanupForCluster( + com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { + manager.replicationProtectionClusters() + .testFailoverCleanup("resourceGroupPS1", "vault1", "fabric-pri-eastus", "pri-cloud-eastus", "testcluster", + new ClusterTestFailoverCleanupInput().withProperties( + new ClusterTestFailoverCleanupInputProperties().withComments("Test Failover Cleanup")), + com.azure.core.util.Context.NONE); + } +} +``` + +### ReplicationProtectionClusters_UnplannedFailover + +```java +import com.azure.resourcemanager.recoveryservicessiterecovery.models.A2AClusterUnplannedFailoverInput; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ClusterUnplannedFailoverInput; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ClusterUnplannedFailoverInputProperties; +import java.util.Arrays; + +/** + * Samples for ReplicationProtectionClusters UnplannedFailover. + */ +public final class ReplicationProtectionClustersUnplannedFailoverS { + /* + * x-ms-original-file: + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples + * /ReplicationProtectionClusters_UnplannedFailover.json + */ + /** + * Sample code: Execute unplanned cluster failover. + * + * @param manager Entry point to SiteRecoveryManager. + */ + public static void executeUnplannedClusterFailover( + com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { + manager.replicationProtectionClusters() + .unplannedFailover("resourceGroupPS1", "vault1", "fabric-pri-eastus", "pri-cloud-eastus", "testcluster", + new ClusterUnplannedFailoverInput().withProperties(new ClusterUnplannedFailoverInputProperties() + .withFailoverDirection("primarytorecovery") + .withSourceSiteOperations("NotRequired") + .withProviderSpecificDetails(new A2AClusterUnplannedFailoverInput().withClusterRecoveryPointId( + "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/fabric-pri-eastus/replicationProtectionContainers/pri-cloud-eastus/replicationProtectionClusters/testcluster/recoveryPoints/cc48b7f3-b267-432b-ad76-45528974dc62") + .withIndividualNodeRecoveryPoints(Arrays.asList( + "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/fabric-pri-eastus/replicationProtectionContainers/pri-cloud-eastus/replicationProtectedItems/testVM/recoveryPoints/b5c2051b-79e3-41ad-9d25-244f6ef8ce7d")))), + com.azure.core.util.Context.NONE); + } +} +``` + ### ReplicationProtectionContainerMappings_Create ```java @@ -2609,7 +3054,7 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.models.Replication public final class ReplicationProtectionContainerMappingsCreateSam { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectionContainerMappings_Create.json */ /** @@ -2621,7 +3066,7 @@ public final class ReplicationProtectionContainerMappingsCreateSam { com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectionContainerMappings() .define("cloud1protectionprofile1") - .withExistingReplicationProtectionContainer("vault1", "resourceGroupPS1", "cloud1", + .withExistingReplicationProtectionContainer("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179") .withProperties(new CreateProtectionContainerMappingInputProperties() .withTargetProtectionContainerId("Microsoft Azure") @@ -2646,7 +3091,7 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.models.Replication public final class ReplicationProtectionContainerMappingsDeleteSam { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectionContainerMappings_Delete.json */ /** @@ -2657,7 +3102,7 @@ public final class ReplicationProtectionContainerMappingsDeleteSam { public static void removeProtectionContainerMapping( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectionContainerMappings() - .delete("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .delete("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "cloud1protectionprofile1", new RemoveProtectionContainerMappingInput() .withProperties(new RemoveProtectionContainerMappingInputProperties() @@ -2676,7 +3121,7 @@ public final class ReplicationProtectionContainerMappingsDeleteSam { public final class ReplicationProtectionContainerMappingsGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectionContainerMappings_Get.json */ /** @@ -2687,7 +3132,7 @@ public final class ReplicationProtectionContainerMappingsGetSamples { public static void getsAProtectionContainerMapping( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectionContainerMappings() - .getWithResponse("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .getWithResponse("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "cloud1protectionprofile1", com.azure.core.util.Context.NONE); } } @@ -2702,7 +3147,7 @@ public final class ReplicationProtectionContainerMappingsGetSamples { public final class ReplicationProtectionContainerMappingsListSampl { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectionContainerMappings_List.json */ /** @@ -2713,7 +3158,7 @@ public final class ReplicationProtectionContainerMappingsListSampl { public static void getsTheListOfAllProtectionContainerMappingsInAVault( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectionContainerMappings() - .list("vault1", "resourceGroupPS1", com.azure.core.util.Context.NONE); + .list("resourceGroupPS1", "vault1", com.azure.core.util.Context.NONE); } } ``` @@ -2727,7 +3172,7 @@ public final class ReplicationProtectionContainerMappingsListSampl { public final class ReplicationProtectionContainerMappingsListByRep { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectionContainerMappings_ListByReplicationProtectionContainers.json */ /** @@ -2738,7 +3183,7 @@ public final class ReplicationProtectionContainerMappingsListByRep { public static void getsTheListOfProtectionContainerMappingsForAProtectionContainer( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectionContainerMappings() - .listByReplicationProtectionContainers("vault1", "resourceGroupPS1", "cloud1", + .listByReplicationProtectionContainers("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", com.azure.core.util.Context.NONE); } } @@ -2753,7 +3198,7 @@ public final class ReplicationProtectionContainerMappingsListByRep { public final class ReplicationProtectionContainerMappingsPurgeSamp { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectionContainerMappings_Purge.json */ /** @@ -2764,7 +3209,7 @@ public final class ReplicationProtectionContainerMappingsPurgeSamp { public static void purgeProtectionContainerMapping( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectionContainerMappings() - .purge("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .purge("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "cloud1protectionprofile1", com.azure.core.util.Context.NONE); } } @@ -2784,7 +3229,7 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.models.UpdateProte public final class ReplicationProtectionContainerMappingsUpdateSam { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectionContainerMappings_Update.json */ /** @@ -2795,7 +3240,7 @@ public final class ReplicationProtectionContainerMappingsUpdateSam { public static void updateProtectionContainerMapping( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { ProtectionContainerMapping resource = manager.replicationProtectionContainerMappings() - .getWithResponse("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .getWithResponse("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "cloud1protectionprofile1", com.azure.core.util.Context.NONE) .getValue(); resource.update() @@ -2821,7 +3266,7 @@ import java.util.Arrays; public final class ReplicationProtectionContainersCreateSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectionContainers_Create.json */ /** @@ -2833,7 +3278,7 @@ public final class ReplicationProtectionContainersCreateSamples { createAProtectionContainer(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectionContainers() .define("cloud_6d224fc6-f326-5d35-96de-fbf51efb3179") - .withExistingReplicationFabric("vault1", "resourceGroupPS1", "cloud1") + .withExistingReplicationFabric("resourceGroupPS1", "vault1", "cloud1") .withProperties(new CreateProtectionContainerInputProperties() .withProviderSpecificInput(Arrays.asList(new ReplicationProviderSpecificContainerCreationInput()))) .create(); @@ -2850,7 +3295,7 @@ public final class ReplicationProtectionContainersCreateSamples { public final class ReplicationProtectionContainersDeleteSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectionContainers_Delete.json */ /** @@ -2861,7 +3306,7 @@ public final class ReplicationProtectionContainersDeleteSamples { public static void removesAProtectionContainer( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectionContainers() - .delete("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .delete("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", com.azure.core.util.Context.NONE); } } @@ -2879,7 +3324,7 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.models.DiscoverPro public final class ReplicationProtectionContainersDiscoverProtecta { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectionContainers_DiscoverProtectableItem.json */ /** @@ -2890,7 +3335,7 @@ public final class ReplicationProtectionContainersDiscoverProtecta { public static void addsAProtectableItemToTheReplicationProtectionContainer( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectionContainers() - .discoverProtectableItem("MadhaviVault", "MadhaviVRG", "V2A-W2K12-660", + .discoverProtectableItem("MadhaviVRG", "MadhaviVault", "V2A-W2K12-660", "cloud_7328549c-5c37-4459-a3c2-e35f9ef6893c", new DiscoverProtectableItemRequest() .withProperties(new DiscoverProtectableItemRequestProperties().withFriendlyName("Test") @@ -2910,7 +3355,7 @@ public final class ReplicationProtectionContainersDiscoverProtecta { public final class ReplicationProtectionContainersGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectionContainers_Get.json */ /** @@ -2921,7 +3366,7 @@ public final class ReplicationProtectionContainersGetSamples { public static void getsTheProtectionContainerDetails( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectionContainers() - .getWithResponse("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .getWithResponse("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", com.azure.core.util.Context.NONE); } } @@ -2936,7 +3381,7 @@ public final class ReplicationProtectionContainersGetSamples { public final class ReplicationProtectionContainersListSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectionContainers_List.json */ /** @@ -2946,7 +3391,7 @@ public final class ReplicationProtectionContainersListSamples { */ public static void getsTheListOfAllProtectionContainersInAVault( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { - manager.replicationProtectionContainers().list("vault1", "resourceGroupPS1", com.azure.core.util.Context.NONE); + manager.replicationProtectionContainers().list("resourceGroupPS1", "vault1", com.azure.core.util.Context.NONE); } } ``` @@ -2960,7 +3405,7 @@ public final class ReplicationProtectionContainersListSamples { public final class ReplicationProtectionContainersListByReplicatio { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectionContainers_ListByReplicationFabrics.json */ /** @@ -2971,7 +3416,66 @@ public final class ReplicationProtectionContainersListByReplicatio { public static void getsTheListOfProtectionContainerForAFabric( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectionContainers() - .listByReplicationFabrics("vault1", "resourceGroupPS1", "cloud1", com.azure.core.util.Context.NONE); + .listByReplicationFabrics("resourceGroupPS1", "vault1", "cloud1", com.azure.core.util.Context.NONE); + } +} +``` + +### ReplicationProtectionContainers_SwitchClusterProtection + +```java +import com.azure.resourcemanager.recoveryservicessiterecovery.models.A2AProtectedItemDetail; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.A2ASwitchClusterProtectionInput; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.A2AVmManagedDiskInputDetails; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.SwitchClusterProtectionInput; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.SwitchClusterProtectionInputProperties; +import java.util.Arrays; + +/** + * Samples for ReplicationProtectionContainers SwitchClusterProtection. + */ +public final class ReplicationProtectionContainersSwitchClusterPro { + /* + * x-ms-original-file: + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples + * /ReplicationProtectionContainers_SwitchClusterProtection.json + */ + /** + * Sample code: Switches protection from one container to another or one replication provider to another. + * + * @param manager Entry point to SiteRecoveryManager. + */ + public static void switchesProtectionFromOneContainerToAnotherOrOneReplicationProviderToAnother( + com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { + manager.replicationProtectionContainers() + .switchClusterProtection("resourceGroupPS1", "vault1", "fabric-pri-eastus", "pri-cloud-eastus", + new SwitchClusterProtectionInput().withProperties(new SwitchClusterProtectionInputProperties() + .withReplicationProtectionClusterName("testcluster") + .withProviderSpecificDetails(new A2ASwitchClusterProtectionInput().withRecoveryContainerId( + "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/fabric-rec-westus/replicationProtectionContainers/rec-cloud-westus") + .withPolicyId( + "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationPolicies/klncksan") + .withProtectedItemsDetail(Arrays.asList(new A2AProtectedItemDetail() + .withVmManagedDisks(Arrays.asList(new A2AVmManagedDiskInputDetails().withDiskId( + "/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourcegroups/clustertestrg-19-01/providers/microsoft.compute/disks/sdgql0-osdisk") + .withPrimaryStagingAzureStorageAccountId( + "/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/clustertestrg-19-01/providers/Microsoft.Storage/storageAccounts/ix701lvaasrcache") + .withRecoveryResourceGroupId( + "/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/ClusterTestRG-19-01-asr"))) + .withRecoveryResourceGroupId( + "/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/ClusterTestRG-19-01-asr") + .withReplicationProtectedItemName("yNdYnDYKZ7hYU7zyVeBychFBCyAbEkrJcJNUarDrXio"), + new A2AProtectedItemDetail() + .withVmManagedDisks(Arrays.asList(new A2AVmManagedDiskInputDetails().withDiskId( + "/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourcegroups/clustertestrg-19-01/providers/microsoft.compute/disks/sdgql1-osdisk") + .withPrimaryStagingAzureStorageAccountId( + "/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/clustertestrg-19-01/providers/Microsoft.Storage/storageAccounts/ix701lvaasrcache") + .withRecoveryResourceGroupId( + "/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/ClusterTestRG-19-01-asr"))) + .withRecoveryResourceGroupId( + "/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/ClusterTestRG-19-01-asr") + .withReplicationProtectedItemName("kdUdWvpVnm3QgOQPHoVMX8YAtAO8OC4kKNjt40ERSr4"))))), + com.azure.core.util.Context.NONE); } } ``` @@ -2989,7 +3493,7 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.models.SwitchProte public final class ReplicationProtectionContainersSwitchProtection { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectionContainers_SwitchProtection.json */ /** @@ -3000,7 +3504,7 @@ public final class ReplicationProtectionContainersSwitchProtection { public static void switchesProtectionFromOneContainerToAnotherOrOneReplicationProviderToAnother( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectionContainers() - .switchProtection("priyanponeboxvault", "priyanprg", "CentralUSCanSite", "CentralUSCancloud", + .switchProtection("priyanprg", "priyanponeboxvault", "CentralUSCanSite", "CentralUSCancloud", new SwitchProtectionInput().withProperties( new SwitchProtectionInputProperties().withReplicationProtectedItemName("a2aSwapOsVm") .withProviderSpecificDetails(new A2ASwitchProtectionInput())), @@ -3022,7 +3526,7 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.models.CreateProte public final class ReplicationProtectionIntentsCreateSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectionIntents_Create.json */ /** @@ -3034,7 +3538,7 @@ public final class ReplicationProtectionIntentsCreateSamples { com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectionIntents() .define("vm1") - .withExistingVault("vault1", "resourceGroupPS1") + .withExistingVault("resourceGroupPS1", "vault1") .withProperties(new CreateProtectionIntentProperties() .withProviderSpecificDetails(new A2ACreateProtectionIntentInput().withFabricObjectId( "/subscriptions/509099b2-9d2c-4636-b43e-bd5cafb6be69/resourceGroups/removeOne/providers/Microsoft.Compute/virtualMachines/vmPpgAv5") @@ -3058,7 +3562,7 @@ public final class ReplicationProtectionIntentsCreateSamples { public final class ReplicationProtectionIntentsGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectionIntents_Get.json */ /** @@ -3069,7 +3573,7 @@ public final class ReplicationProtectionIntentsGetSamples { public static void getsTheDetailsOfAReplicationProtectionIntentItem( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectionIntents() - .getWithResponse("vault1", "resourceGroupPS1", "vm1", com.azure.core.util.Context.NONE); + .getWithResponse("resourceGroupPS1", "vault1", "vm1", com.azure.core.util.Context.NONE); } } ``` @@ -3083,7 +3587,7 @@ public final class ReplicationProtectionIntentsGetSamples { public final class ReplicationProtectionIntentsListSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectionIntents_List.json */ /** @@ -3094,7 +3598,7 @@ public final class ReplicationProtectionIntentsListSamples { public static void getsTheListOfReplicationProtectionIntentObjects( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectionIntents() - .list("2007vttp", "resourceGroupPS1", null, null, com.azure.core.util.Context.NONE); + .list("resourceGroupPS1", "2007vttp", null, null, com.azure.core.util.Context.NONE); } } ``` @@ -3115,7 +3619,7 @@ import java.util.Arrays; public final class ReplicationRecoveryPlansCreateSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationRecoveryPlans_Create.json */ /** @@ -3127,7 +3631,7 @@ public final class ReplicationRecoveryPlansCreateSamples { com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationRecoveryPlans() .define("RPtest1") - .withExistingVault("vault1", "resourceGroupPS1") + .withExistingVault("resourceGroupPS1", "vault1") .withProperties(new CreateRecoveryPlanInputProperties().withPrimaryFabricId( "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/cloud1") .withRecoveryFabricId("Microsoft Azure") @@ -3152,7 +3656,7 @@ public final class ReplicationRecoveryPlansCreateSamples { public final class ReplicationRecoveryPlansDeleteSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationRecoveryPlans_Delete.json */ /** @@ -3163,7 +3667,7 @@ public final class ReplicationRecoveryPlansDeleteSamples { public static void deletesTheSpecifiedRecoveryPlan( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationRecoveryPlans() - .delete("vault1", "resourceGroupPS1", "RPtest1", com.azure.core.util.Context.NONE); + .delete("resourceGroupPS1", "vault1", "RPtest1", com.azure.core.util.Context.NONE); } } ``` @@ -3177,7 +3681,7 @@ public final class ReplicationRecoveryPlansDeleteSamples { public final class ReplicationRecoveryPlansFailoverCancelSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationRecoveryPlans_FailoverCancel.json */ /** @@ -3188,7 +3692,7 @@ public final class ReplicationRecoveryPlansFailoverCancelSamples { public static void executeCancelFailoverOfTheRecoveryPlan( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationRecoveryPlans() - .failoverCancel("vault1", "resourceGroupPS1", "RPtest1", com.azure.core.util.Context.NONE); + .failoverCancel("resourceGroupPS1", "vault1", "RPtest1", com.azure.core.util.Context.NONE); } } ``` @@ -3202,7 +3706,7 @@ public final class ReplicationRecoveryPlansFailoverCancelSamples { public final class ReplicationRecoveryPlansFailoverCommitSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationRecoveryPlans_FailoverCommit.json */ /** @@ -3213,7 +3717,7 @@ public final class ReplicationRecoveryPlansFailoverCommitSamples { public static void executeCommitFailoverOfTheRecoveryPlan( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationRecoveryPlans() - .failoverCommit("vault1", "resourceGroupPS1", "RPtest1", com.azure.core.util.Context.NONE); + .failoverCommit("resourceGroupPS1", "vault1", "RPtest1", com.azure.core.util.Context.NONE); } } ``` @@ -3227,7 +3731,7 @@ public final class ReplicationRecoveryPlansFailoverCommitSamples { public final class ReplicationRecoveryPlansGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationRecoveryPlans_Get.json */ /** @@ -3238,7 +3742,7 @@ public final class ReplicationRecoveryPlansGetSamples { public static void getsTheRequestedRecoveryPlan( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationRecoveryPlans() - .getWithResponse("vault1", "resourceGroupPS1", "RPtest1", com.azure.core.util.Context.NONE); + .getWithResponse("resourceGroupPS1", "vault1", "RPtest1", com.azure.core.util.Context.NONE); } } ``` @@ -3252,7 +3756,7 @@ public final class ReplicationRecoveryPlansGetSamples { public final class ReplicationRecoveryPlansListSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationRecoveryPlans_List.json */ /** @@ -3262,7 +3766,7 @@ public final class ReplicationRecoveryPlansListSamples { */ public static void getsTheListOfRecoveryPlans(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { - manager.replicationRecoveryPlans().list("vault1", "resourceGroupPS1", com.azure.core.util.Context.NONE); + manager.replicationRecoveryPlans().list("resourceGroupPS1", "vault1", com.azure.core.util.Context.NONE); } } ``` @@ -3282,7 +3786,7 @@ import java.util.Arrays; public final class ReplicationRecoveryPlansPlannedFailoverSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationRecoveryPlans_PlannedFailover.json */ /** @@ -3293,7 +3797,7 @@ public final class ReplicationRecoveryPlansPlannedFailoverSamples { public static void executePlannedFailoverOfTheRecoveryPlan( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationRecoveryPlans() - .plannedFailover("vault1", "resourceGroupPS1", "RPtest1", + .plannedFailover("resourceGroupPS1", "vault1", "RPtest1", new RecoveryPlanPlannedFailoverInput().withProperties(new RecoveryPlanPlannedFailoverInputProperties() .withFailoverDirection(PossibleOperationsDirections.PRIMARY_TO_RECOVERY) .withProviderSpecificDetails(Arrays.asList(new RecoveryPlanHyperVReplicaAzureFailoverInput()))), @@ -3311,7 +3815,7 @@ public final class ReplicationRecoveryPlansPlannedFailoverSamples { public final class ReplicationRecoveryPlansReprotectSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationRecoveryPlans_Reprotect.json */ /** @@ -3322,7 +3826,7 @@ public final class ReplicationRecoveryPlansReprotectSamples { public static void executeReprotectOfTheRecoveryPlan( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationRecoveryPlans() - .reprotect("vault1", "resourceGroupPS1", "RPtest1", com.azure.core.util.Context.NONE); + .reprotect("resourceGroupPS1", "vault1", "RPtest1", com.azure.core.util.Context.NONE); } } ``` @@ -3342,7 +3846,7 @@ import java.util.Arrays; public final class ReplicationRecoveryPlansTestFailoverSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationRecoveryPlans_TestFailover.json */ /** @@ -3353,7 +3857,7 @@ public final class ReplicationRecoveryPlansTestFailoverSamples { public static void executeTestFailoverOfTheRecoveryPlan( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationRecoveryPlans() - .testFailover("vault1", "resourceGroupPS1", "RPtest1", + .testFailover("resourceGroupPS1", "vault1", "RPtest1", new RecoveryPlanTestFailoverInput().withProperties(new RecoveryPlanTestFailoverInputProperties() .withFailoverDirection(PossibleOperationsDirections.PRIMARY_TO_RECOVERY) .withNetworkType("VmNetworkAsInput") @@ -3377,7 +3881,7 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPla public final class ReplicationRecoveryPlansTestFailoverCleanupSamp { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationRecoveryPlans_TestFailoverCleanup.json */ /** @@ -3388,7 +3892,7 @@ public final class ReplicationRecoveryPlansTestFailoverCleanupSamp { public static void executeTestFailoverCleanupOfTheRecoveryPlan( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationRecoveryPlans() - .testFailoverCleanup("vault1", "resourceGroupPS1", "RPtest1", + .testFailoverCleanup("resourceGroupPS1", "vault1", "RPtest1", new RecoveryPlanTestFailoverCleanupInput().withProperties( new RecoveryPlanTestFailoverCleanupInputProperties().withComments("Test Failover Cleanup")), com.azure.core.util.Context.NONE); @@ -3412,7 +3916,7 @@ import java.util.Arrays; public final class ReplicationRecoveryPlansUnplannedFailoverSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationRecoveryPlans_UnplannedFailover.json */ /** @@ -3423,7 +3927,7 @@ public final class ReplicationRecoveryPlansUnplannedFailoverSamples { public static void executeUnplannedFailoverOfTheRecoveryPlan( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationRecoveryPlans() - .unplannedFailover("vault1", "resourceGroupPS1", "RPtest1", + .unplannedFailover("resourceGroupPS1", "vault1", "RPtest1", new RecoveryPlanUnplannedFailoverInput() .withProperties(new RecoveryPlanUnplannedFailoverInputProperties() .withFailoverDirection(PossibleOperationsDirections.PRIMARY_TO_RECOVERY) @@ -3450,7 +3954,7 @@ import java.util.Arrays; public final class ReplicationRecoveryPlansUpdateSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationRecoveryPlans_Update.json */ /** @@ -3461,7 +3965,7 @@ public final class ReplicationRecoveryPlansUpdateSamples { public static void updatesTheGivenRecoveryPlan( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { RecoveryPlan resource = manager.replicationRecoveryPlans() - .getWithResponse("vault1", "resourceGroupPS1", "RPtest1", com.azure.core.util.Context.NONE) + .getWithResponse("resourceGroupPS1", "vault1", "RPtest1", com.azure.core.util.Context.NONE) .getValue(); resource.update() .withProperties(new UpdateRecoveryPlanInputProperties().withGroups(Arrays.asList( @@ -3502,7 +4006,7 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.models.IdentityPro public final class ReplicationRecoveryServicesProvidersCreateSampl { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationRecoveryServicesProviders_Create.json */ /** @@ -3514,7 +4018,7 @@ public final class ReplicationRecoveryServicesProvidersCreateSampl { com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationRecoveryServicesProviders() .define("vmwareprovider1") - .withExistingReplicationFabric("migrationvault", "resourcegroup1", "vmwarefabric1") + .withExistingReplicationFabric("resourcegroup1", "migrationvault", "vmwarefabric1") .withProperties(new AddRecoveryServicesProviderInputProperties().withMachineName("vmwareprovider1") .withAuthenticationIdentityInput( new IdentityProviderInput().withTenantId("72f988bf-86f1-41af-91ab-2d7cd011db47") @@ -3542,7 +4046,7 @@ public final class ReplicationRecoveryServicesProvidersCreateSampl { public final class ReplicationRecoveryServicesProvidersDeleteSampl { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationRecoveryServicesProviders_Delete.json */ /** @@ -3556,7 +4060,7 @@ public final class ReplicationRecoveryServicesProvidersDeleteSampl { deletesProviderFromFabricNoteDeletingProviderForAnyFabricOtherThanSingleHostIsUnsupportedToMaintainBackwardCompatibilityForReleasedClientsTheObjectDeleteRspInputIsUsedIfTheObjectIsEmptyWeAssumeThatItIsOldClientAndContinueTheOldBehavior( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationRecoveryServicesProviders() - .delete("vault1", "resourceGroupPS1", "cloud1", "241641e6-ee7b-4ee4-8141-821fadda43fa", + .delete("resourceGroupPS1", "vault1", "cloud1", "241641e6-ee7b-4ee4-8141-821fadda43fa", com.azure.core.util.Context.NONE); } } @@ -3571,7 +4075,7 @@ public final class ReplicationRecoveryServicesProvidersDeleteSampl { public final class ReplicationRecoveryServicesProvidersGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationRecoveryServicesProviders_Get.json */ /** @@ -3582,7 +4086,7 @@ public final class ReplicationRecoveryServicesProvidersGetSamples { public static void getsTheDetailsOfARecoveryServicesProvider( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationRecoveryServicesProviders() - .getWithResponse("vault1", "resourceGroupPS1", "cloud1", "241641e6-ee7b-4ee4-8141-821fadda43fa", + .getWithResponse("resourceGroupPS1", "vault1", "cloud1", "241641e6-ee7b-4ee4-8141-821fadda43fa", com.azure.core.util.Context.NONE); } } @@ -3597,7 +4101,7 @@ public final class ReplicationRecoveryServicesProvidersGetSamples { public final class ReplicationRecoveryServicesProvidersListSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationRecoveryServicesProviders_List.json */ /** @@ -3608,7 +4112,7 @@ public final class ReplicationRecoveryServicesProvidersListSamples { public static void getsTheListOfRegisteredRecoveryServicesProvidersInTheVaultThisIsAViewOnlyApi( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationRecoveryServicesProviders() - .list("vault1", "resourceGroupPS1", com.azure.core.util.Context.NONE); + .list("resourceGroupPS1", "vault1", com.azure.core.util.Context.NONE); } } ``` @@ -3622,7 +4126,7 @@ public final class ReplicationRecoveryServicesProvidersListSamples { public final class ReplicationRecoveryServicesProvidersListByRepli { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationRecoveryServicesProviders_ListByReplicationFabrics.json */ /** @@ -3633,7 +4137,7 @@ public final class ReplicationRecoveryServicesProvidersListByRepli { public static void getsTheListOfRegisteredRecoveryServicesProvidersForTheFabric( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationRecoveryServicesProviders() - .listByReplicationFabrics("vault1", "resourceGroupPS1", "cloud1", com.azure.core.util.Context.NONE); + .listByReplicationFabrics("resourceGroupPS1", "vault1", "cloud1", com.azure.core.util.Context.NONE); } } ``` @@ -3647,7 +4151,7 @@ public final class ReplicationRecoveryServicesProvidersListByRepli { public final class ReplicationRecoveryServicesProvidersPurgeSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationRecoveryServicesProviders_Purge.json */ /** @@ -3658,7 +4162,7 @@ public final class ReplicationRecoveryServicesProvidersPurgeSamples { public static void purgesRecoveryServiceProviderFromFabric( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationRecoveryServicesProviders() - .purge("vault1", "resourceGroupPS1", "cloud1", "241641e6-ee7b-4ee4-8141-821fadda43fa", + .purge("resourceGroupPS1", "vault1", "cloud1", "241641e6-ee7b-4ee4-8141-821fadda43fa", com.azure.core.util.Context.NONE); } } @@ -3673,7 +4177,7 @@ public final class ReplicationRecoveryServicesProvidersPurgeSamples { public final class ReplicationRecoveryServicesProvidersRefreshProv { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationRecoveryServicesProviders_RefreshProvider.json */ /** @@ -3684,7 +4188,7 @@ public final class ReplicationRecoveryServicesProvidersRefreshProv { public static void refreshDetailsFromTheRecoveryServicesProvider( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationRecoveryServicesProviders() - .refreshProvider("vault1", "resourceGroupPS1", "cloud1", "241641e6-ee7b-4ee4-8141-821fadda43fa", + .refreshProvider("resourceGroupPS1", "vault1", "cloud1", "241641e6-ee7b-4ee4-8141-821fadda43fa", com.azure.core.util.Context.NONE); } } @@ -3699,7 +4203,7 @@ public final class ReplicationRecoveryServicesProvidersRefreshProv { public final class ReplicationVaultHealthGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationVaultHealth_Get.json */ /** @@ -3710,7 +4214,7 @@ public final class ReplicationVaultHealthGetSamples { public static void getsTheHealthSummaryForTheVault( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationVaultHealths() - .getWithResponse("vault1", "resourceGroupPS1", com.azure.core.util.Context.NONE); + .getWithResponse("resourceGroupPS1", "vault1", com.azure.core.util.Context.NONE); } } ``` @@ -3724,7 +4228,7 @@ public final class ReplicationVaultHealthGetSamples { public final class ReplicationVaultHealthRefreshSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationVaultHealth_Refresh.json */ /** @@ -3734,7 +4238,7 @@ public final class ReplicationVaultHealthRefreshSamples { */ public static void refreshesHealthSummaryOfTheVault( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { - manager.replicationVaultHealths().refresh("vault1", "resourceGroupPS1", com.azure.core.util.Context.NONE); + manager.replicationVaultHealths().refresh("resourceGroupPS1", "vault1", com.azure.core.util.Context.NONE); } } ``` @@ -3750,7 +4254,7 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.models.VaultSettin public final class ReplicationVaultSettingCreateSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationVaultSetting_Create.json */ /** @@ -3763,7 +4267,7 @@ public final class ReplicationVaultSettingCreateSamples { com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationVaultSettings() .define("default") - .withExistingVault("vault1", "resourceGroupPS1") + .withExistingVault("resourceGroupPS1", "vault1") .withProperties(new VaultSettingCreationInputProperties().withMigrationSolutionId( "/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.Migrate/MigrateProjects/resourceGroupPS1-MigrateProject/Solutions/Servers-Migration-ServerMigration")) .create(); @@ -3780,7 +4284,7 @@ public final class ReplicationVaultSettingCreateSamples { public final class ReplicationVaultSettingGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationVaultSetting_Get.json */ /** @@ -3791,7 +4295,7 @@ public final class ReplicationVaultSettingGetSamples { public static void getsTheVaultSetting(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationVaultSettings() - .getWithResponse("vault1", "resourceGroupPS1", "default", com.azure.core.util.Context.NONE); + .getWithResponse("resourceGroupPS1", "vault1", "default", com.azure.core.util.Context.NONE); } } ``` @@ -3805,7 +4309,7 @@ public final class ReplicationVaultSettingGetSamples { public final class ReplicationVaultSettingListSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationVaultSetting_List.json */ /** @@ -3815,7 +4319,7 @@ public final class ReplicationVaultSettingListSamples { */ public static void getsTheListOfVaultSetting(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { - manager.replicationVaultSettings().list("vault1", "resourceGroupPS1", com.azure.core.util.Context.NONE); + manager.replicationVaultSettings().list("resourceGroupPS1", "vault1", com.azure.core.util.Context.NONE); } } ``` @@ -3831,7 +4335,7 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.models.AddVCenterR public final class ReplicationvCentersCreateSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationvCenters_Create.json */ /** @@ -3842,7 +4346,7 @@ public final class ReplicationvCentersCreateSamples { public static void addVCenter(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationvCenters() .define("esx-78") - .withExistingReplicationFabric("MadhaviVault", "MadhaviVRG", "MadhaviFabric") + .withExistingReplicationFabric("MadhaviVRG", "MadhaviVault", "MadhaviFabric") .withProperties(new AddVCenterRequestProperties().withFriendlyName("esx-78") .withIpAddress("inmtest78") .withProcessServerId("5A720CAB-39CB-F445-BD1662B0B33164B5") @@ -3862,7 +4366,7 @@ public final class ReplicationvCentersCreateSamples { public final class ReplicationvCentersDeleteSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationvCenters_Delete.json */ /** @@ -3873,7 +4377,7 @@ public final class ReplicationvCentersDeleteSamples { public static void removeVCenterOperation(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationvCenters() - .delete("MadhaviVault", "MadhaviVRG", "MadhaviFabric", "esx-78", com.azure.core.util.Context.NONE); + .delete("MadhaviVRG", "MadhaviVault", "MadhaviFabric", "esx-78", com.azure.core.util.Context.NONE); } } ``` @@ -3887,7 +4391,7 @@ public final class ReplicationvCentersDeleteSamples { public final class ReplicationvCentersGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationvCenters_Get.json */ /** @@ -3898,7 +4402,7 @@ public final class ReplicationvCentersGetSamples { public static void getsTheDetailsOfAVCenter(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationvCenters() - .getWithResponse("MadhaviVault", "MadhaviVRG", "MadhaviFabric", "esx-78", com.azure.core.util.Context.NONE); + .getWithResponse("MadhaviVRG", "MadhaviVault", "MadhaviFabric", "esx-78", com.azure.core.util.Context.NONE); } } ``` @@ -3912,7 +4416,7 @@ public final class ReplicationvCentersGetSamples { public final class ReplicationvCentersListSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationvCenters_List.json */ /** @@ -3922,7 +4426,7 @@ public final class ReplicationvCentersListSamples { */ public static void getsTheListOfVCenterRegisteredUnderTheVault( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { - manager.replicationvCenters().list("MadhaviVault", "MadhaviVRG", com.azure.core.util.Context.NONE); + manager.replicationvCenters().list("MadhaviVRG", "MadhaviVault", com.azure.core.util.Context.NONE); } } ``` @@ -3936,7 +4440,7 @@ public final class ReplicationvCentersListSamples { public final class ReplicationvCentersListByReplicationFabricsSamp { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationvCenters_ListByReplicationFabrics.json */ /** @@ -3947,7 +4451,7 @@ public final class ReplicationvCentersListByReplicationFabricsSamp { public static void getsTheListOfVCenterRegisteredUnderAFabric( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationvCenters() - .listByReplicationFabrics("MadhaviVault", "MadhaviVRG", "MadhaviFabric", com.azure.core.util.Context.NONE); + .listByReplicationFabrics("MadhaviVRG", "MadhaviVault", "MadhaviFabric", com.azure.core.util.Context.NONE); } } ``` @@ -3964,7 +4468,7 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.models.VCenter; public final class ReplicationvCentersUpdateSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationvCenters_Update.json */ /** @@ -3975,7 +4479,7 @@ public final class ReplicationvCentersUpdateSamples { public static void updateVCenterOperation(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { VCenter resource = manager.replicationvCenters() - .getWithResponse("MadhaviVault", "MadhaviVRG", "MadhaviFabric", "esx-78", com.azure.core.util.Context.NONE) + .getWithResponse("MadhaviVRG", "MadhaviVault", "MadhaviFabric", "esx-78", com.azure.core.util.Context.NONE) .getValue(); resource.update().withProperties(new UpdateVCenterRequestProperties().withIpAddress("10.150.109.25")).apply(); } @@ -3993,7 +4497,7 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.models.StorageMapp public final class StorageClassificationMappingsCreateSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationStorageClassificationMappings_Create.json */ /** @@ -4005,7 +4509,7 @@ public final class StorageClassificationMappingsCreateSamples { com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.storageClassificationMappings() .define("testStorageMapping") - .withExistingReplicationStorageClassification("vault1", "resourceGroupPS1", + .withExistingReplicationStorageClassification("resourceGroupPS1", "vault1", "2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0", "8891569e-aaef-4a46-a4a0-78c14f2d7b09") .withProperties(new StorageMappingInputProperties().withTargetStorageClassificationId( @@ -4024,7 +4528,7 @@ public final class StorageClassificationMappingsCreateSamples { public final class StorageClassificationMappingsDeleteSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationStorageClassificationMappings_Delete.json */ /** @@ -4035,7 +4539,7 @@ public final class StorageClassificationMappingsDeleteSamples { public static void deleteAStorageClassificationMapping( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.storageClassificationMappings() - .delete("vault1", "resourceGroupPS1", "2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0", + .delete("resourceGroupPS1", "vault1", "2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0", "8891569e-aaef-4a46-a4a0-78c14f2d7b09", "testStorageMapping", com.azure.core.util.Context.NONE); } } @@ -4050,7 +4554,7 @@ public final class StorageClassificationMappingsDeleteSamples { public final class StorageClassificationMappingsGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationStorageClassificationMappings_Get.json */ /** @@ -4061,7 +4565,7 @@ public final class StorageClassificationMappingsGetSamples { public static void getsTheDetailsOfAStorageClassificationMapping( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.storageClassificationMappings() - .getWithResponse("vault1", "resourceGroupPS1", + .getWithResponse("resourceGroupPS1", "vault1", "2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0", "8891569e-aaef-4a46-a4a0-78c14f2d7b09", "testStorageMapping", com.azure.core.util.Context.NONE); } @@ -4077,7 +4581,7 @@ public final class StorageClassificationMappingsGetSamples { public final class StorageClassificationMappingsListSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationStorageClassificationMappings_List.json */ /** @@ -4087,7 +4591,7 @@ public final class StorageClassificationMappingsListSamples { */ public static void getsTheListOfStorageClassificationMappingsObjectsUnderAVault( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { - manager.storageClassificationMappings().list("vault1", "resourceGroupPS1", com.azure.core.util.Context.NONE); + manager.storageClassificationMappings().list("resourceGroupPS1", "vault1", com.azure.core.util.Context.NONE); } } ``` @@ -4101,7 +4605,7 @@ public final class StorageClassificationMappingsListSamples { public final class StorageClassificationMappingsListByReplicationS { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationStorageClassificationMappings_ListByReplicationStorageClassifications.json */ /** @@ -4112,7 +4616,7 @@ public final class StorageClassificationMappingsListByReplicationS { public static void getsTheListOfStorageClassificationMappingsObjectsUnderAStorage( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.storageClassificationMappings() - .listByReplicationStorageClassifications("vault1", "resourceGroupPS1", + .listByReplicationStorageClassifications("resourceGroupPS1", "vault1", "2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0", "8891569e-aaef-4a46-a4a0-78c14f2d7b09", com.azure.core.util.Context.NONE); } @@ -4128,7 +4632,7 @@ public final class StorageClassificationMappingsListByReplicationS { public final class StorageClassificationsGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationStorageClassifications_Get.json */ /** @@ -4139,7 +4643,7 @@ public final class StorageClassificationsGetSamples { public static void getsTheDetailsOfAStorageClassification( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.storageClassifications() - .getWithResponse("vault1", "resourceGroupPS1", + .getWithResponse("resourceGroupPS1", "vault1", "2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0", "8891569e-aaef-4a46-a4a0-78c14f2d7b09", com.azure.core.util.Context.NONE); } @@ -4155,7 +4659,7 @@ public final class StorageClassificationsGetSamples { public final class StorageClassificationsListSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationStorageClassifications_List.json */ /** @@ -4165,7 +4669,7 @@ public final class StorageClassificationsListSamples { */ public static void getsTheListOfStorageClassificationObjectsUnderAVault( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { - manager.storageClassifications().list("vault1", "resourceGroupPS1", com.azure.core.util.Context.NONE); + manager.storageClassifications().list("resourceGroupPS1", "vault1", com.azure.core.util.Context.NONE); } } ``` @@ -4179,7 +4683,7 @@ public final class StorageClassificationsListSamples { public final class StorageClassificationsListByReplicationFabricsS { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationStorageClassifications_ListByReplicationFabrics.json */ /** @@ -4190,7 +4694,7 @@ public final class StorageClassificationsListByReplicationFabricsS { public static void getsTheListOfStorageClassificationObjectsUnderAFabric( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.storageClassifications() - .listByReplicationFabrics("vault1", "resourceGroupPS1", + .listByReplicationFabrics("resourceGroupPS1", "vault1", "2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0", com.azure.core.util.Context.NONE); } } @@ -4205,7 +4709,7 @@ public final class StorageClassificationsListByReplicationFabricsS { public final class SupportedOperatingSystemsOperationGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /SupportedOperatingSystems_Get.json */ /** @@ -4216,7 +4720,7 @@ public final class SupportedOperatingSystemsOperationGetSamples { public static void getsTheDataOfSupportedOperatingSystemsBySRS( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.supportedOperatingSystemsOperations() - .getWithResponse("vault1", "resourceGroupPS1", null, com.azure.core.util.Context.NONE); + .getWithResponse("resourceGroupPS1", "vault1", null, com.azure.core.util.Context.NONE); } } ``` @@ -4230,7 +4734,7 @@ public final class SupportedOperatingSystemsOperationGetSamples { public final class TargetComputeSizesListByReplicationProtectedIte { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /TargetComputeSizes_ListByReplicationProtectedItems.json */ /** @@ -4241,7 +4745,7 @@ public final class TargetComputeSizesListByReplicationProtectedIte { public static void getsTheListOfTargetComputeSizesForTheReplicationProtectedItem( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.targetComputeSizes() - .listByReplicationProtectedItems("avraiMgDiskVault", "avraiMgDiskVaultRG", "asr-a2a-default-centraluseuap", + .listByReplicationProtectedItems("avraiMgDiskVaultRG", "avraiMgDiskVault", "asr-a2a-default-centraluseuap", "asr-a2a-default-centraluseuap-container", "468c912d-b1ab-4ea2-97eb-4b5095155db2", com.azure.core.util.Context.NONE); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/pom.xml b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/pom.xml index 2cc4b3854c42..eec5105feb7a 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/pom.xml +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/pom.xml @@ -18,7 +18,7 @@ jar Microsoft Azure SDK for SiteRecovery Management - This package contains Microsoft Azure SDK for SiteRecovery Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2023-08. + This package contains Microsoft Azure SDK for SiteRecovery Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2025-03-01. https://github.com/Azure/azure-sdk-for-java @@ -45,6 +45,7 @@ UTF-8 0 0 + true false diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/SiteRecoveryManager.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/SiteRecoveryManager.java index 4c9d39ac532b..3fb58de038f5 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/SiteRecoveryManager.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/SiteRecoveryManager.java @@ -22,8 +22,11 @@ import com.azure.core.http.policy.UserAgentPolicy; import com.azure.core.management.profile.AzureProfile; import com.azure.core.util.Configuration; +import com.azure.core.util.CoreUtils; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.SiteRecoveryManagementClient; +import com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ClusterRecoveryPointOperationsImpl; +import com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ClusterRecoveryPointsImpl; import com.azure.resourcemanager.recoveryservicessiterecovery.implementation.MigrationRecoveryPointsImpl; import com.azure.resourcemanager.recoveryservicessiterecovery.implementation.OperationsImpl; import com.azure.resourcemanager.recoveryservicessiterecovery.implementation.RecoveryPointsImpl; @@ -40,6 +43,7 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationPoliciesImpl; import com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationProtectableItemsImpl; import com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationProtectedItemsImpl; +import com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationProtectionClustersImpl; import com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationProtectionContainerMappingsImpl; import com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationProtectionContainersImpl; import com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationProtectionIntentsImpl; @@ -53,6 +57,8 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.implementation.StorageClassificationsImpl; import com.azure.resourcemanager.recoveryservicessiterecovery.implementation.SupportedOperatingSystemsOperationsImpl; import com.azure.resourcemanager.recoveryservicessiterecovery.implementation.TargetComputeSizesImpl; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ClusterRecoveryPointOperations; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ClusterRecoveryPoints; import com.azure.resourcemanager.recoveryservicessiterecovery.models.MigrationRecoveryPoints; import com.azure.resourcemanager.recoveryservicessiterecovery.models.Operations; import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPoints; @@ -69,6 +75,7 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationPolicies; import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationProtectableItems; import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationProtectedItems; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationProtectionClusters; import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationProtectionContainerMappings; import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationProtectionContainers; import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationProtectionIntents; @@ -85,6 +92,7 @@ import java.time.temporal.ChronoUnit; import java.util.ArrayList; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.stream.Collectors; @@ -124,6 +132,12 @@ public final class SiteRecoveryManager { private TargetComputeSizes targetComputeSizes; + private ReplicationProtectionClusters replicationProtectionClusters; + + private ClusterRecoveryPoints clusterRecoveryPoints; + + private ClusterRecoveryPointOperations clusterRecoveryPointOperations; + private ReplicationProtectionContainerMappings replicationProtectionContainerMappings; private ReplicationRecoveryServicesProviders replicationRecoveryServicesProviders; @@ -200,6 +214,9 @@ public static Configurable configure() { */ public static final class Configurable { private static final ClientLogger LOGGER = new ClientLogger(Configurable.class); + private static final String SDK_VERSION = "version"; + private static final Map PROPERTIES + = CoreUtils.getProperties("azure-resourcemanager-recoveryservicessiterecovery.properties"); private HttpClient httpClient; private HttpLogOptions httpLogOptions; @@ -307,12 +324,14 @@ public SiteRecoveryManager authenticate(TokenCredential credential, AzureProfile Objects.requireNonNull(credential, "'credential' cannot be null."); Objects.requireNonNull(profile, "'profile' cannot be null."); + String clientVersion = PROPERTIES.getOrDefault(SDK_VERSION, "UnknownVersion"); + StringBuilder userAgentBuilder = new StringBuilder(); userAgentBuilder.append("azsdk-java") .append("-") .append("com.azure.resourcemanager.recoveryservicessiterecovery") .append("/") - .append("1.2.0"); + .append(clientVersion); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder.append(" (") .append(Configuration.getGlobalConfiguration().get("java.version")) @@ -559,6 +578,44 @@ public TargetComputeSizes targetComputeSizes() { return targetComputeSizes; } + /** + * Gets the resource collection API of ReplicationProtectionClusters. It manages ReplicationProtectionCluster. + * + * @return Resource collection API of ReplicationProtectionClusters. + */ + public ReplicationProtectionClusters replicationProtectionClusters() { + if (this.replicationProtectionClusters == null) { + this.replicationProtectionClusters + = new ReplicationProtectionClustersImpl(clientObject.getReplicationProtectionClusters(), this); + } + return replicationProtectionClusters; + } + + /** + * Gets the resource collection API of ClusterRecoveryPoints. + * + * @return Resource collection API of ClusterRecoveryPoints. + */ + public ClusterRecoveryPoints clusterRecoveryPoints() { + if (this.clusterRecoveryPoints == null) { + this.clusterRecoveryPoints = new ClusterRecoveryPointsImpl(clientObject.getClusterRecoveryPoints(), this); + } + return clusterRecoveryPoints; + } + + /** + * Gets the resource collection API of ClusterRecoveryPointOperations. + * + * @return Resource collection API of ClusterRecoveryPointOperations. + */ + public ClusterRecoveryPointOperations clusterRecoveryPointOperations() { + if (this.clusterRecoveryPointOperations == null) { + this.clusterRecoveryPointOperations + = new ClusterRecoveryPointOperationsImpl(clientObject.getClusterRecoveryPointOperations(), this); + } + return clusterRecoveryPointOperations; + } + /** * Gets the resource collection API of ReplicationProtectionContainerMappings. It manages * ProtectionContainerMapping. diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ClusterRecoveryPointOperationsClient.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ClusterRecoveryPointOperationsClient.java new file mode 100644 index 000000000000..a3f6592bf3c4 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ClusterRecoveryPointOperationsClient.java @@ -0,0 +1,58 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; +import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.ClusterRecoveryPointInner; + +/** + * An instance of this class provides access to all the operations defined in ClusterRecoveryPointOperationsClient. + */ +public interface ClusterRecoveryPointOperationsClient { + /** + * Gets a recovery point. + * + * Get the details of specified recovery point. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param recoveryPointName The recovery point name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the details of specified recovery point along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName, + String recoveryPointName, Context context); + + /** + * Gets a recovery point. + * + * Get the details of specified recovery point. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param recoveryPointName The recovery point name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the details of specified recovery point. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ClusterRecoveryPointInner get(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, String recoveryPointName); +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ClusterRecoveryPointsClient.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ClusterRecoveryPointsClient.java new file mode 100644 index 000000000000..8350b8ffacac --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ClusterRecoveryPointsClient.java @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.util.Context; +import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.ClusterRecoveryPointInner; + +/** + * An instance of this class provides access to all the operations defined in ClusterRecoveryPointsClient. + */ +public interface ClusterRecoveryPointsClient { + /** + * Gets the list of cluster recovery points. + * + * The list of cluster recovery points. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return collection of cluster recovery point details as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByReplicationProtectionCluster(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, + String replicationProtectionClusterName); + + /** + * Gets the list of cluster recovery points. + * + * The list of cluster recovery points. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return collection of cluster recovery point details as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByReplicationProtectionCluster(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicationProtectionClusterName, + Context context); +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/MigrationRecoveryPointsClient.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/MigrationRecoveryPointsClient.java index 0a44744cc17f..51b700f4b84b 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/MigrationRecoveryPointsClient.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/MigrationRecoveryPointsClient.java @@ -18,8 +18,8 @@ public interface MigrationRecoveryPointsClient { /** * Gets the recovery points for a migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric unique name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -29,14 +29,14 @@ public interface MigrationRecoveryPointsClient { * @return the recovery points for a migration item as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByReplicationMigrationItems(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName); + PagedIterable listByReplicationMigrationItems(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName); /** * Gets the recovery points for a migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric unique name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -47,15 +47,15 @@ PagedIterable listByReplicationMigrationItems(Strin * @return the recovery points for a migration item as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByReplicationMigrationItems(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, + PagedIterable listByReplicationMigrationItems(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName, Context context); /** * Gets a recovery point for a migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric unique name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -67,15 +67,15 @@ PagedIterable listByReplicationMigrationItems(Strin * @return a recovery point for a migration item along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceName, String resourceGroupName, + Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, String migrationRecoveryPointName, Context context); /** * Gets a recovery point for a migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric unique name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -86,6 +86,6 @@ Response getWithResponse(String resourceName, Strin * @return a recovery point for a migration item. */ @ServiceMethod(returns = ReturnType.SINGLE) - MigrationRecoveryPointInner get(String resourceName, String resourceGroupName, String fabricName, + MigrationRecoveryPointInner get(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, String migrationRecoveryPointName); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/RecoveryPointsClient.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/RecoveryPointsClient.java index 148dec55e1c4..53bb1804e809 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/RecoveryPointsClient.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/RecoveryPointsClient.java @@ -20,8 +20,8 @@ public interface RecoveryPointsClient { * * Lists the available recovery points for a replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The fabric name. * @param protectionContainerName The protection container name. * @param replicatedProtectedItemName The replication protected item name. @@ -31,7 +31,7 @@ public interface RecoveryPointsClient { * @return collection of recovery point details as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByReplicationProtectedItems(String resourceName, String resourceGroupName, + PagedIterable listByReplicationProtectedItems(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName); /** @@ -39,8 +39,8 @@ PagedIterable listByReplicationProtectedItems(String resourc * * Lists the available recovery points for a replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The fabric name. * @param protectionContainerName The protection container name. * @param replicatedProtectedItemName The replication protected item name. @@ -51,7 +51,7 @@ PagedIterable listByReplicationProtectedItems(String resourc * @return collection of recovery point details as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByReplicationProtectedItems(String resourceName, String resourceGroupName, + PagedIterable listByReplicationProtectedItems(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context); /** @@ -59,8 +59,8 @@ PagedIterable listByReplicationProtectedItems(String resourc * * Get the details of specified recovery point. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The fabric name. * @param protectionContainerName The protection container name. * @param replicatedProtectedItemName The replication protected item name. @@ -72,7 +72,7 @@ PagedIterable listByReplicationProtectedItems(String resourc * @return the details of specified recovery point along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceName, String resourceGroupName, String fabricName, + Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, String recoveryPointName, Context context); /** @@ -80,8 +80,8 @@ Response getWithResponse(String resourceName, String resourc * * Get the details of specified recovery point. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The fabric name. * @param protectionContainerName The protection container name. * @param replicatedProtectedItemName The replication protected item name. @@ -92,6 +92,6 @@ Response getWithResponse(String resourceName, String resourc * @return the details of specified recovery point. */ @ServiceMethod(returns = ReturnType.SINGLE) - RecoveryPointInner get(String resourceName, String resourceGroupName, String fabricName, + RecoveryPointInner get(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, String recoveryPointName); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationAlertSettingsClient.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationAlertSettingsClient.java index ec0b3cf51c50..bd261860c258 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationAlertSettingsClient.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationAlertSettingsClient.java @@ -21,8 +21,8 @@ public interface ReplicationAlertSettingsClient { * * Gets the list of email notification(alert) configurations for the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -30,15 +30,15 @@ public interface ReplicationAlertSettingsClient { * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceName, String resourceGroupName); + PagedIterable list(String resourceGroupName, String resourceName); /** * Gets the list of configured email notification(alert) configurations. * * Gets the list of email notification(alert) configurations for the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -47,15 +47,15 @@ public interface ReplicationAlertSettingsClient { * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceName, String resourceGroupName, Context context); + PagedIterable list(String resourceGroupName, String resourceName, Context context); /** * Gets an email notification(alert) configuration. * * Gets the details of the specified email notification(alert) configuration. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param alertSettingName The name of the email notification configuration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -64,7 +64,7 @@ public interface ReplicationAlertSettingsClient { * @return the details of the specified email notification(alert) configuration along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceName, String resourceGroupName, String alertSettingName, + Response getWithResponse(String resourceGroupName, String resourceName, String alertSettingName, Context context); /** @@ -72,8 +72,8 @@ Response getWithResponse(String resourceName, String resourceGroupNa * * Gets the details of the specified email notification(alert) configuration. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param alertSettingName The name of the email notification configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -81,15 +81,15 @@ Response getWithResponse(String resourceName, String resourceGroupNa * @return the details of the specified email notification(alert) configuration. */ @ServiceMethod(returns = ReturnType.SINGLE) - AlertInner get(String resourceName, String resourceGroupName, String alertSettingName); + AlertInner get(String resourceGroupName, String resourceName, String alertSettingName); /** * Configures email notifications for this vault. * * Create or update an email notification(alert) configuration. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param alertSettingName The name of the email notification(alert) configuration. * @param request The input to configure the email notification(alert). * @param context The context to associate with this operation. @@ -99,7 +99,7 @@ Response getWithResponse(String resourceName, String resourceGroupNa * @return implements the Alert class along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createWithResponse(String resourceName, String resourceGroupName, String alertSettingName, + Response createWithResponse(String resourceGroupName, String resourceName, String alertSettingName, ConfigureAlertRequest request, Context context); /** @@ -107,8 +107,8 @@ Response createWithResponse(String resourceName, String resourceGrou * * Create or update an email notification(alert) configuration. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param alertSettingName The name of the email notification(alert) configuration. * @param request The input to configure the email notification(alert). * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -117,6 +117,6 @@ Response createWithResponse(String resourceName, String resourceGrou * @return implements the Alert class. */ @ServiceMethod(returns = ReturnType.SINGLE) - AlertInner create(String resourceName, String resourceGroupName, String alertSettingName, + AlertInner create(String resourceGroupName, String resourceName, String alertSettingName, ConfigureAlertRequest request); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationAppliancesClient.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationAppliancesClient.java index b42de98f1162..5395051f24c4 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationAppliancesClient.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationAppliancesClient.java @@ -19,8 +19,8 @@ public interface ReplicationAppliancesClient { * * Gets the list of Azure Site Recovery appliances for the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -28,15 +28,15 @@ public interface ReplicationAppliancesClient { * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceName, String resourceGroupName); + PagedIterable list(String resourceGroupName, String resourceName); /** * Gets the list of appliances. * * Gets the list of Azure Site Recovery appliances for the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param filter OData filter options. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -46,6 +46,6 @@ public interface ReplicationAppliancesClient { * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceName, String resourceGroupName, String filter, + PagedIterable list(String resourceGroupName, String resourceName, String filter, Context context); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationEventsClient.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationEventsClient.java index 6f8a5808b613..fd14c3d7fda9 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationEventsClient.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationEventsClient.java @@ -20,23 +20,23 @@ public interface ReplicationEventsClient { * * Gets the list of Azure Site Recovery events for the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of Azure Site Recovery events for the vault as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceName, String resourceGroupName); + PagedIterable list(String resourceGroupName, String resourceName); /** * Gets the list of Azure Site Recovery events. * * Gets the list of Azure Site Recovery events for the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param filter OData filter options. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -45,15 +45,15 @@ public interface ReplicationEventsClient { * @return the list of Azure Site Recovery events for the vault as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceName, String resourceGroupName, String filter, Context context); + PagedIterable list(String resourceGroupName, String resourceName, String filter, Context context); /** * Get the details of an Azure Site recovery event. * * The operation to get the details of an Azure Site recovery event. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param eventName The name of the Azure Site Recovery event. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -62,7 +62,7 @@ public interface ReplicationEventsClient { * @return implements the Event class along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceName, String resourceGroupName, String eventName, + Response getWithResponse(String resourceGroupName, String resourceName, String eventName, Context context); /** @@ -70,8 +70,8 @@ Response getWithResponse(String resourceName, String resourceGroupNa * * The operation to get the details of an Azure Site recovery event. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param eventName The name of the Azure Site Recovery event. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -79,5 +79,5 @@ Response getWithResponse(String resourceName, String resourceGroupNa * @return implements the Event class. */ @ServiceMethod(returns = ReturnType.SINGLE) - EventInner get(String resourceName, String resourceGroupName, String eventName); + EventInner get(String resourceGroupName, String resourceName, String eventName); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationFabricsClient.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationFabricsClient.java index c7eefa8f738a..4aeefe7b2a54 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationFabricsClient.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationFabricsClient.java @@ -25,23 +25,23 @@ public interface ReplicationFabricsClient { * * Gets a list of the Azure Site Recovery fabrics in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of the Azure Site Recovery fabrics in the vault as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceName, String resourceGroupName); + PagedIterable list(String resourceGroupName, String resourceName); /** * Gets the list of ASR fabrics. * * Gets a list of the Azure Site Recovery fabrics in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -49,15 +49,15 @@ public interface ReplicationFabricsClient { * @return a list of the Azure Site Recovery fabrics in the vault as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceName, String resourceGroupName, Context context); + PagedIterable list(String resourceGroupName, String resourceName, Context context); /** * Gets the details of an ASR fabric. * * Gets the details of an Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param filter OData filter options. * @param context The context to associate with this operation. @@ -67,7 +67,7 @@ public interface ReplicationFabricsClient { * @return the details of an Azure Site Recovery fabric along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceName, String resourceGroupName, String fabricName, + Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String filter, Context context); /** @@ -75,8 +75,8 @@ Response getWithResponse(String resourceName, String resourceGroupN * * Gets the details of an Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -84,15 +84,15 @@ Response getWithResponse(String resourceName, String resourceGroupN * @return the details of an Azure Site Recovery fabric. */ @ServiceMethod(returns = ReturnType.SINGLE) - FabricInner get(String resourceName, String resourceGroupName, String fabricName); + FabricInner get(String resourceGroupName, String resourceName, String fabricName); /** * Creates an Azure Site Recovery fabric. * * The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V site). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Name of the ASR fabric. * @param input Fabric creation input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -101,7 +101,7 @@ Response getWithResponse(String resourceName, String resourceGroupN * @return the {@link SyncPoller} for polling of fabric definition. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, FabricInner> beginCreate(String resourceName, String resourceGroupName, + SyncPoller, FabricInner> beginCreate(String resourceGroupName, String resourceName, String fabricName, FabricCreationInput input); /** @@ -109,8 +109,8 @@ SyncPoller, FabricInner> beginCreate(String resourceName * * The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V site). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Name of the ASR fabric. * @param input Fabric creation input. * @param context The context to associate with this operation. @@ -120,7 +120,7 @@ SyncPoller, FabricInner> beginCreate(String resourceName * @return the {@link SyncPoller} for polling of fabric definition. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, FabricInner> beginCreate(String resourceName, String resourceGroupName, + SyncPoller, FabricInner> beginCreate(String resourceGroupName, String resourceName, String fabricName, FabricCreationInput input, Context context); /** @@ -128,8 +128,8 @@ SyncPoller, FabricInner> beginCreate(String resourceName * * The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V site). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Name of the ASR fabric. * @param input Fabric creation input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -138,15 +138,15 @@ SyncPoller, FabricInner> beginCreate(String resourceName * @return fabric definition. */ @ServiceMethod(returns = ReturnType.SINGLE) - FabricInner create(String resourceName, String resourceGroupName, String fabricName, FabricCreationInput input); + FabricInner create(String resourceGroupName, String resourceName, String fabricName, FabricCreationInput input); /** * Creates an Azure Site Recovery fabric. * * The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V site). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Name of the ASR fabric. * @param input Fabric creation input. * @param context The context to associate with this operation. @@ -156,7 +156,7 @@ SyncPoller, FabricInner> beginCreate(String resourceName * @return fabric definition. */ @ServiceMethod(returns = ReturnType.SINGLE) - FabricInner create(String resourceName, String resourceGroupName, String fabricName, FabricCreationInput input, + FabricInner create(String resourceGroupName, String resourceName, String fabricName, FabricCreationInput input, Context context); /** @@ -164,8 +164,8 @@ FabricInner create(String resourceName, String resourceGroupName, String fabricN * * The operation to purge(force delete) an Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to purge. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -173,15 +173,15 @@ FabricInner create(String resourceName, String resourceGroupName, String fabricN * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginPurge(String resourceName, String resourceGroupName, String fabricName); + SyncPoller, Void> beginPurge(String resourceGroupName, String resourceName, String fabricName); /** * Purges the site. * * The operation to purge(force delete) an Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to purge. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -190,7 +190,7 @@ FabricInner create(String resourceName, String resourceGroupName, String fabricN * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginPurge(String resourceName, String resourceGroupName, String fabricName, + SyncPoller, Void> beginPurge(String resourceGroupName, String resourceName, String fabricName, Context context); /** @@ -198,23 +198,23 @@ SyncPoller, Void> beginPurge(String resourceName, String resour * * The operation to purge(force delete) an Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to purge. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void purge(String resourceName, String resourceGroupName, String fabricName); + void purge(String resourceGroupName, String resourceName, String fabricName); /** * Purges the site. * * The operation to purge(force delete) an Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to purge. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -222,15 +222,15 @@ SyncPoller, Void> beginPurge(String resourceName, String resour * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void purge(String resourceName, String resourceGroupName, String fabricName, Context context); + void purge(String resourceGroupName, String resourceName, String fabricName, Context context); /** * Checks the consistency of the ASR fabric. * * The operation to perform a consistency check on the fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -238,16 +238,16 @@ SyncPoller, Void> beginPurge(String resourceName, String resour * @return the {@link SyncPoller} for polling of fabric definition. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, FabricInner> beginCheckConsistency(String resourceName, - String resourceGroupName, String fabricName); + SyncPoller, FabricInner> beginCheckConsistency(String resourceGroupName, + String resourceName, String fabricName); /** * Checks the consistency of the ASR fabric. * * The operation to perform a consistency check on the fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -256,16 +256,16 @@ SyncPoller, FabricInner> beginCheckConsistency(String re * @return the {@link SyncPoller} for polling of fabric definition. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, FabricInner> beginCheckConsistency(String resourceName, - String resourceGroupName, String fabricName, Context context); + SyncPoller, FabricInner> beginCheckConsistency(String resourceGroupName, + String resourceName, String fabricName, Context context); /** * Checks the consistency of the ASR fabric. * * The operation to perform a consistency check on the fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -273,15 +273,15 @@ SyncPoller, FabricInner> beginCheckConsistency(String re * @return fabric definition. */ @ServiceMethod(returns = ReturnType.SINGLE) - FabricInner checkConsistency(String resourceName, String resourceGroupName, String fabricName); + FabricInner checkConsistency(String resourceGroupName, String resourceName, String fabricName); /** * Checks the consistency of the ASR fabric. * * The operation to perform a consistency check on the fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -290,15 +290,15 @@ SyncPoller, FabricInner> beginCheckConsistency(String re * @return fabric definition. */ @ServiceMethod(returns = ReturnType.SINGLE) - FabricInner checkConsistency(String resourceName, String resourceGroupName, String fabricName, Context context); + FabricInner checkConsistency(String resourceGroupName, String resourceName, String fabricName, Context context); /** * Migrates the site to AAD. * * The operation to migrate an Azure Site Recovery fabric to AAD. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to migrate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -306,7 +306,7 @@ SyncPoller, FabricInner> beginCheckConsistency(String re * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginMigrateToAad(String resourceName, String resourceGroupName, + SyncPoller, Void> beginMigrateToAad(String resourceGroupName, String resourceName, String fabricName); /** @@ -314,8 +314,8 @@ SyncPoller, Void> beginMigrateToAad(String resourceName, String * * The operation to migrate an Azure Site Recovery fabric to AAD. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to migrate. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -324,7 +324,7 @@ SyncPoller, Void> beginMigrateToAad(String resourceName, String * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginMigrateToAad(String resourceName, String resourceGroupName, + SyncPoller, Void> beginMigrateToAad(String resourceGroupName, String resourceName, String fabricName, Context context); /** @@ -332,23 +332,23 @@ SyncPoller, Void> beginMigrateToAad(String resourceName, String * * The operation to migrate an Azure Site Recovery fabric to AAD. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to migrate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void migrateToAad(String resourceName, String resourceGroupName, String fabricName); + void migrateToAad(String resourceGroupName, String resourceName, String fabricName); /** * Migrates the site to AAD. * * The operation to migrate an Azure Site Recovery fabric to AAD. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to migrate. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -356,15 +356,15 @@ SyncPoller, Void> beginMigrateToAad(String resourceName, String * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void migrateToAad(String resourceName, String resourceGroupName, String fabricName, Context context); + void migrateToAad(String resourceGroupName, String resourceName, String fabricName, Context context); /** * Perform failover of the process server. * * The operation to move replications from a process server to another process server. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric containing the process server. * @param failoverProcessServerRequest The input to the failover process server operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -373,16 +373,16 @@ SyncPoller, Void> beginMigrateToAad(String resourceName, String * @return the {@link SyncPoller} for polling of fabric definition. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, FabricInner> beginReassociateGateway(String resourceName, - String resourceGroupName, String fabricName, FailoverProcessServerRequest failoverProcessServerRequest); + SyncPoller, FabricInner> beginReassociateGateway(String resourceGroupName, + String resourceName, String fabricName, FailoverProcessServerRequest failoverProcessServerRequest); /** * Perform failover of the process server. * * The operation to move replications from a process server to another process server. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric containing the process server. * @param failoverProcessServerRequest The input to the failover process server operation. * @param context The context to associate with this operation. @@ -392,8 +392,8 @@ SyncPoller, FabricInner> beginReassociateGateway(String * @return the {@link SyncPoller} for polling of fabric definition. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, FabricInner> beginReassociateGateway(String resourceName, - String resourceGroupName, String fabricName, FailoverProcessServerRequest failoverProcessServerRequest, + SyncPoller, FabricInner> beginReassociateGateway(String resourceGroupName, + String resourceName, String fabricName, FailoverProcessServerRequest failoverProcessServerRequest, Context context); /** @@ -401,8 +401,8 @@ SyncPoller, FabricInner> beginReassociateGateway(String * * The operation to move replications from a process server to another process server. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric containing the process server. * @param failoverProcessServerRequest The input to the failover process server operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -411,7 +411,7 @@ SyncPoller, FabricInner> beginReassociateGateway(String * @return fabric definition. */ @ServiceMethod(returns = ReturnType.SINGLE) - FabricInner reassociateGateway(String resourceName, String resourceGroupName, String fabricName, + FabricInner reassociateGateway(String resourceGroupName, String resourceName, String fabricName, FailoverProcessServerRequest failoverProcessServerRequest); /** @@ -419,8 +419,8 @@ FabricInner reassociateGateway(String resourceName, String resourceGroupName, St * * The operation to move replications from a process server to another process server. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric containing the process server. * @param failoverProcessServerRequest The input to the failover process server operation. * @param context The context to associate with this operation. @@ -430,7 +430,7 @@ FabricInner reassociateGateway(String resourceName, String resourceGroupName, St * @return fabric definition. */ @ServiceMethod(returns = ReturnType.SINGLE) - FabricInner reassociateGateway(String resourceName, String resourceGroupName, String fabricName, + FabricInner reassociateGateway(String resourceGroupName, String resourceName, String fabricName, FailoverProcessServerRequest failoverProcessServerRequest, Context context); /** @@ -438,8 +438,8 @@ FabricInner reassociateGateway(String resourceName, String resourceGroupName, St * * The operation to delete or remove an Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to delete. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -447,15 +447,15 @@ FabricInner reassociateGateway(String resourceName, String resourceGroupName, St * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceName, String resourceGroupName, String fabricName); + SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String fabricName); /** * Deletes the site. * * The operation to delete or remove an Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to delete. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -464,7 +464,7 @@ FabricInner reassociateGateway(String resourceName, String resourceGroupName, St * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceName, String resourceGroupName, String fabricName, + SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String fabricName, Context context); /** @@ -472,23 +472,23 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * * The operation to delete or remove an Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to delete. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceName, String resourceGroupName, String fabricName); + void delete(String resourceGroupName, String resourceName, String fabricName); /** * Deletes the site. * * The operation to delete or remove an Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to delete. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -496,15 +496,15 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceName, String resourceGroupName, String fabricName, Context context); + void delete(String resourceGroupName, String resourceName, String fabricName, Context context); /** * Renews certificate for the fabric. * * Renews the connection certificate for the ASR replication fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName fabric name to renew certs for. * @param renewCertificate Renew certificate input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -513,16 +513,16 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * @return the {@link SyncPoller} for polling of fabric definition. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, FabricInner> beginRenewCertificate(String resourceName, - String resourceGroupName, String fabricName, RenewCertificateInput renewCertificate); + SyncPoller, FabricInner> beginRenewCertificate(String resourceGroupName, + String resourceName, String fabricName, RenewCertificateInput renewCertificate); /** * Renews certificate for the fabric. * * Renews the connection certificate for the ASR replication fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName fabric name to renew certs for. * @param renewCertificate Renew certificate input. * @param context The context to associate with this operation. @@ -532,16 +532,16 @@ SyncPoller, FabricInner> beginRenewCertificate(String re * @return the {@link SyncPoller} for polling of fabric definition. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, FabricInner> beginRenewCertificate(String resourceName, - String resourceGroupName, String fabricName, RenewCertificateInput renewCertificate, Context context); + SyncPoller, FabricInner> beginRenewCertificate(String resourceGroupName, + String resourceName, String fabricName, RenewCertificateInput renewCertificate, Context context); /** * Renews certificate for the fabric. * * Renews the connection certificate for the ASR replication fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName fabric name to renew certs for. * @param renewCertificate Renew certificate input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -550,7 +550,7 @@ SyncPoller, FabricInner> beginRenewCertificate(String re * @return fabric definition. */ @ServiceMethod(returns = ReturnType.SINGLE) - FabricInner renewCertificate(String resourceName, String resourceGroupName, String fabricName, + FabricInner renewCertificate(String resourceGroupName, String resourceName, String fabricName, RenewCertificateInput renewCertificate); /** @@ -558,8 +558,8 @@ FabricInner renewCertificate(String resourceName, String resourceGroupName, Stri * * Renews the connection certificate for the ASR replication fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName fabric name to renew certs for. * @param renewCertificate Renew certificate input. * @param context The context to associate with this operation. @@ -569,7 +569,7 @@ FabricInner renewCertificate(String resourceName, String resourceGroupName, Stri * @return fabric definition. */ @ServiceMethod(returns = ReturnType.SINGLE) - FabricInner renewCertificate(String resourceName, String resourceGroupName, String fabricName, + FabricInner renewCertificate(String resourceGroupName, String resourceName, String fabricName, RenewCertificateInput renewCertificate, Context context); /** diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationJobsClient.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationJobsClient.java index 0aa8f2d1cff5..8bd000cdc7fb 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationJobsClient.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationJobsClient.java @@ -24,23 +24,23 @@ public interface ReplicationJobsClient { * * Gets the list of Azure Site Recovery Jobs for the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of Azure Site Recovery Jobs for the vault as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceName, String resourceGroupName); + PagedIterable list(String resourceGroupName, String resourceName); /** * Gets the list of jobs. * * Gets the list of Azure Site Recovery Jobs for the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param filter OData filter options. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -49,15 +49,15 @@ public interface ReplicationJobsClient { * @return the list of Azure Site Recovery Jobs for the vault as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceName, String resourceGroupName, String filter, Context context); + PagedIterable list(String resourceGroupName, String resourceName, String filter, Context context); /** * Gets the job details. * * Get the details of an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -66,15 +66,15 @@ public interface ReplicationJobsClient { * @return the details of an Azure Site Recovery job along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceName, String resourceGroupName, String jobName, Context context); + Response getWithResponse(String resourceGroupName, String resourceName, String jobName, Context context); /** * Gets the job details. * * Get the details of an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -82,15 +82,15 @@ public interface ReplicationJobsClient { * @return the details of an Azure Site Recovery job. */ @ServiceMethod(returns = ReturnType.SINGLE) - JobInner get(String resourceName, String resourceGroupName, String jobName); + JobInner get(String resourceGroupName, String resourceName, String jobName); /** * Cancels the specified job. * * The operation to cancel an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -98,7 +98,7 @@ public interface ReplicationJobsClient { * @return the {@link SyncPoller} for polling of job details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, JobInner> beginCancel(String resourceName, String resourceGroupName, + SyncPoller, JobInner> beginCancel(String resourceGroupName, String resourceName, String jobName); /** @@ -106,8 +106,8 @@ SyncPoller, JobInner> beginCancel(String resourceName, Stri * * The operation to cancel an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -116,7 +116,7 @@ SyncPoller, JobInner> beginCancel(String resourceName, Stri * @return the {@link SyncPoller} for polling of job details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, JobInner> beginCancel(String resourceName, String resourceGroupName, + SyncPoller, JobInner> beginCancel(String resourceGroupName, String resourceName, String jobName, Context context); /** @@ -124,8 +124,8 @@ SyncPoller, JobInner> beginCancel(String resourceName, Stri * * The operation to cancel an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -133,15 +133,15 @@ SyncPoller, JobInner> beginCancel(String resourceName, Stri * @return job details. */ @ServiceMethod(returns = ReturnType.SINGLE) - JobInner cancel(String resourceName, String resourceGroupName, String jobName); + JobInner cancel(String resourceGroupName, String resourceName, String jobName); /** * Cancels the specified job. * * The operation to cancel an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -150,15 +150,15 @@ SyncPoller, JobInner> beginCancel(String resourceName, Stri * @return job details. */ @ServiceMethod(returns = ReturnType.SINGLE) - JobInner cancel(String resourceName, String resourceGroupName, String jobName, Context context); + JobInner cancel(String resourceGroupName, String resourceName, String jobName, Context context); /** * Restarts the specified job. * * The operation to restart an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -166,7 +166,7 @@ SyncPoller, JobInner> beginCancel(String resourceName, Stri * @return the {@link SyncPoller} for polling of job details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, JobInner> beginRestart(String resourceName, String resourceGroupName, + SyncPoller, JobInner> beginRestart(String resourceGroupName, String resourceName, String jobName); /** @@ -174,8 +174,8 @@ SyncPoller, JobInner> beginRestart(String resourceName, Str * * The operation to restart an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -184,7 +184,7 @@ SyncPoller, JobInner> beginRestart(String resourceName, Str * @return the {@link SyncPoller} for polling of job details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, JobInner> beginRestart(String resourceName, String resourceGroupName, + SyncPoller, JobInner> beginRestart(String resourceGroupName, String resourceName, String jobName, Context context); /** @@ -192,8 +192,8 @@ SyncPoller, JobInner> beginRestart(String resourceName, Str * * The operation to restart an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -201,15 +201,15 @@ SyncPoller, JobInner> beginRestart(String resourceName, Str * @return job details. */ @ServiceMethod(returns = ReturnType.SINGLE) - JobInner restart(String resourceName, String resourceGroupName, String jobName); + JobInner restart(String resourceGroupName, String resourceName, String jobName); /** * Restarts the specified job. * * The operation to restart an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -218,15 +218,15 @@ SyncPoller, JobInner> beginRestart(String resourceName, Str * @return job details. */ @ServiceMethod(returns = ReturnType.SINGLE) - JobInner restart(String resourceName, String resourceGroupName, String jobName, Context context); + JobInner restart(String resourceGroupName, String resourceName, String jobName, Context context); /** * Resumes the specified job. * * The operation to resume an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param resumeJobParams Resume rob comments. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -235,7 +235,7 @@ SyncPoller, JobInner> beginRestart(String resourceName, Str * @return the {@link SyncPoller} for polling of job details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, JobInner> beginResume(String resourceName, String resourceGroupName, + SyncPoller, JobInner> beginResume(String resourceGroupName, String resourceName, String jobName, ResumeJobParams resumeJobParams); /** @@ -243,8 +243,8 @@ SyncPoller, JobInner> beginResume(String resourceName, Stri * * The operation to resume an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param resumeJobParams Resume rob comments. * @param context The context to associate with this operation. @@ -254,7 +254,7 @@ SyncPoller, JobInner> beginResume(String resourceName, Stri * @return the {@link SyncPoller} for polling of job details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, JobInner> beginResume(String resourceName, String resourceGroupName, + SyncPoller, JobInner> beginResume(String resourceGroupName, String resourceName, String jobName, ResumeJobParams resumeJobParams, Context context); /** @@ -262,8 +262,8 @@ SyncPoller, JobInner> beginResume(String resourceName, Stri * * The operation to resume an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param resumeJobParams Resume rob comments. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -272,15 +272,15 @@ SyncPoller, JobInner> beginResume(String resourceName, Stri * @return job details. */ @ServiceMethod(returns = ReturnType.SINGLE) - JobInner resume(String resourceName, String resourceGroupName, String jobName, ResumeJobParams resumeJobParams); + JobInner resume(String resourceGroupName, String resourceName, String jobName, ResumeJobParams resumeJobParams); /** * Resumes the specified job. * * The operation to resume an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param resumeJobParams Resume rob comments. * @param context The context to associate with this operation. @@ -290,7 +290,7 @@ SyncPoller, JobInner> beginResume(String resourceName, Stri * @return job details. */ @ServiceMethod(returns = ReturnType.SINGLE) - JobInner resume(String resourceName, String resourceGroupName, String jobName, ResumeJobParams resumeJobParams, + JobInner resume(String resourceGroupName, String resourceName, String jobName, ResumeJobParams resumeJobParams, Context context); /** @@ -298,8 +298,8 @@ JobInner resume(String resourceName, String resourceGroupName, String jobName, R * * The operation to export the details of the Azure Site Recovery jobs of the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobQueryParameter job query filter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -307,7 +307,7 @@ JobInner resume(String resourceName, String resourceGroupName, String jobName, R * @return the {@link SyncPoller} for polling of job details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, JobInner> beginExport(String resourceName, String resourceGroupName, + SyncPoller, JobInner> beginExport(String resourceGroupName, String resourceName, JobQueryParameter jobQueryParameter); /** @@ -315,8 +315,8 @@ SyncPoller, JobInner> beginExport(String resourceName, Stri * * The operation to export the details of the Azure Site Recovery jobs of the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobQueryParameter job query filter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -325,7 +325,7 @@ SyncPoller, JobInner> beginExport(String resourceName, Stri * @return the {@link SyncPoller} for polling of job details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, JobInner> beginExport(String resourceName, String resourceGroupName, + SyncPoller, JobInner> beginExport(String resourceGroupName, String resourceName, JobQueryParameter jobQueryParameter, Context context); /** @@ -333,8 +333,8 @@ SyncPoller, JobInner> beginExport(String resourceName, Stri * * The operation to export the details of the Azure Site Recovery jobs of the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobQueryParameter job query filter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -342,15 +342,15 @@ SyncPoller, JobInner> beginExport(String resourceName, Stri * @return job details. */ @ServiceMethod(returns = ReturnType.SINGLE) - JobInner export(String resourceName, String resourceGroupName, JobQueryParameter jobQueryParameter); + JobInner export(String resourceGroupName, String resourceName, JobQueryParameter jobQueryParameter); /** * Exports the details of the Azure Site Recovery jobs of the vault. * * The operation to export the details of the Azure Site Recovery jobs of the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobQueryParameter job query filter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -359,6 +359,6 @@ SyncPoller, JobInner> beginExport(String resourceName, Stri * @return job details. */ @ServiceMethod(returns = ReturnType.SINGLE) - JobInner export(String resourceName, String resourceGroupName, JobQueryParameter jobQueryParameter, + JobInner export(String resourceGroupName, String resourceName, JobQueryParameter jobQueryParameter, Context context); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationLogicalNetworksClient.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationLogicalNetworksClient.java index 3b5960c6c42c..05e7eaeb8757 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationLogicalNetworksClient.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationLogicalNetworksClient.java @@ -20,8 +20,8 @@ public interface ReplicationLogicalNetworksClient { * * Lists all the logical networks of the Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Server Id. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -29,7 +29,7 @@ public interface ReplicationLogicalNetworksClient { * @return list of logical networks as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByReplicationFabrics(String resourceName, String resourceGroupName, + PagedIterable listByReplicationFabrics(String resourceGroupName, String resourceName, String fabricName); /** @@ -37,8 +37,8 @@ PagedIterable listByReplicationFabrics(String resourceName, * * Lists all the logical networks of the Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Server Id. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -47,7 +47,7 @@ PagedIterable listByReplicationFabrics(String resourceName, * @return list of logical networks as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByReplicationFabrics(String resourceName, String resourceGroupName, + PagedIterable listByReplicationFabrics(String resourceGroupName, String resourceName, String fabricName, Context context); /** @@ -55,8 +55,8 @@ PagedIterable listByReplicationFabrics(String resourceName, * * Gets the details of a logical network. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Server Id. * @param logicalNetworkName Logical network name. * @param context The context to associate with this operation. @@ -66,7 +66,7 @@ PagedIterable listByReplicationFabrics(String resourceName, * @return the details of a logical network along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceName, String resourceGroupName, String fabricName, + Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String logicalNetworkName, Context context); /** @@ -74,8 +74,8 @@ Response getWithResponse(String resourceName, String resour * * Gets the details of a logical network. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Server Id. * @param logicalNetworkName Logical network name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -84,6 +84,6 @@ Response getWithResponse(String resourceName, String resour * @return the details of a logical network. */ @ServiceMethod(returns = ReturnType.SINGLE) - LogicalNetworkInner get(String resourceName, String resourceGroupName, String fabricName, + LogicalNetworkInner get(String resourceGroupName, String resourceName, String fabricName, String logicalNetworkName); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationMigrationItemsClient.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationMigrationItemsClient.java index 76896ba821e5..9b563f7e4f8e 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationMigrationItemsClient.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationMigrationItemsClient.java @@ -30,8 +30,8 @@ public interface ReplicationMigrationItemsClient { * * Gets the list of ASR migration items in the protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -41,16 +41,16 @@ public interface ReplicationMigrationItemsClient { * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByReplicationProtectionContainers(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName); + PagedIterable listByReplicationProtectionContainers(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName); /** * Gets the list of migration items in the protection container. * * Gets the list of ASR migration items in the protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param skipToken The pagination token. @@ -64,15 +64,15 @@ PagedIterable listByReplicationProtectionContainers(String r * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByReplicationProtectionContainers(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String skipToken, String takeToken, + PagedIterable listByReplicationProtectionContainers(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String skipToken, String takeToken, String filter, Context context); /** * Gets the details of a migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric unique name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -83,14 +83,14 @@ PagedIterable listByReplicationProtectionContainers(String r * @return the details of a migration item along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceName, String resourceGroupName, String fabricName, + Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, Context context); /** * Gets the details of a migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric unique name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -100,7 +100,7 @@ Response getWithResponse(String resourceName, String resourc * @return the details of a migration item. */ @ServiceMethod(returns = ReturnType.SINGLE) - MigrationItemInner get(String resourceName, String resourceGroupName, String fabricName, + MigrationItemInner get(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName); /** @@ -108,8 +108,8 @@ MigrationItemInner get(String resourceName, String resourceGroupName, String fab * * The operation to create an ASR migration item (enable migration). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -120,8 +120,8 @@ MigrationItemInner get(String resourceName, String resourceGroupName, String fab * @return the {@link SyncPoller} for polling of migration item. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, MigrationItemInner> beginCreate(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, + SyncPoller, MigrationItemInner> beginCreate(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName, EnableMigrationInput input); /** @@ -129,8 +129,8 @@ SyncPoller, MigrationItemInner> beginCreate(Strin * * The operation to create an ASR migration item (enable migration). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -142,8 +142,8 @@ SyncPoller, MigrationItemInner> beginCreate(Strin * @return the {@link SyncPoller} for polling of migration item. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, MigrationItemInner> beginCreate(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, + SyncPoller, MigrationItemInner> beginCreate(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName, EnableMigrationInput input, Context context); /** @@ -151,8 +151,8 @@ SyncPoller, MigrationItemInner> beginCreate(Strin * * The operation to create an ASR migration item (enable migration). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -163,7 +163,7 @@ SyncPoller, MigrationItemInner> beginCreate(Strin * @return migration item. */ @ServiceMethod(returns = ReturnType.SINGLE) - MigrationItemInner create(String resourceName, String resourceGroupName, String fabricName, + MigrationItemInner create(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, EnableMigrationInput input); /** @@ -171,8 +171,8 @@ MigrationItemInner create(String resourceName, String resourceGroupName, String * * The operation to create an ASR migration item (enable migration). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -184,7 +184,7 @@ MigrationItemInner create(String resourceName, String resourceGroupName, String * @return migration item. */ @ServiceMethod(returns = ReturnType.SINGLE) - MigrationItemInner create(String resourceName, String resourceGroupName, String fabricName, + MigrationItemInner create(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, EnableMigrationInput input, Context context); /** @@ -192,8 +192,8 @@ MigrationItemInner create(String resourceName, String resourceGroupName, String * * The operation to delete an ASR migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -203,7 +203,7 @@ MigrationItemInner create(String resourceName, String resourceGroupName, String * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceName, String resourceGroupName, String fabricName, + SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName); /** @@ -211,8 +211,8 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * * The operation to delete an ASR migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -224,7 +224,7 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceName, String resourceGroupName, String fabricName, + SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, String deleteOption, Context context); /** @@ -232,8 +232,8 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * * The operation to delete an ASR migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -242,7 +242,7 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + void delete(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName); /** @@ -250,8 +250,8 @@ void delete(String resourceName, String resourceGroupName, String fabricName, St * * The operation to delete an ASR migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -262,7 +262,7 @@ void delete(String resourceName, String resourceGroupName, String fabricName, St * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + void delete(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, String deleteOption, Context context); /** @@ -270,8 +270,8 @@ void delete(String resourceName, String resourceGroupName, String fabricName, St * * The operation to update the recovery settings of an ASR migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -282,8 +282,8 @@ void delete(String resourceName, String resourceGroupName, String fabricName, St * @return the {@link SyncPoller} for polling of migration item. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, MigrationItemInner> beginUpdate(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, + SyncPoller, MigrationItemInner> beginUpdate(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName, UpdateMigrationItemInput input); /** @@ -291,8 +291,8 @@ SyncPoller, MigrationItemInner> beginUpdate(Strin * * The operation to update the recovery settings of an ASR migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -304,8 +304,8 @@ SyncPoller, MigrationItemInner> beginUpdate(Strin * @return the {@link SyncPoller} for polling of migration item. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, MigrationItemInner> beginUpdate(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, + SyncPoller, MigrationItemInner> beginUpdate(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName, UpdateMigrationItemInput input, Context context); /** @@ -313,8 +313,8 @@ SyncPoller, MigrationItemInner> beginUpdate(Strin * * The operation to update the recovery settings of an ASR migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -325,7 +325,7 @@ SyncPoller, MigrationItemInner> beginUpdate(Strin * @return migration item. */ @ServiceMethod(returns = ReturnType.SINGLE) - MigrationItemInner update(String resourceName, String resourceGroupName, String fabricName, + MigrationItemInner update(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, UpdateMigrationItemInput input); /** @@ -333,8 +333,8 @@ MigrationItemInner update(String resourceName, String resourceGroupName, String * * The operation to update the recovery settings of an ASR migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -346,7 +346,7 @@ MigrationItemInner update(String resourceName, String resourceGroupName, String * @return migration item. */ @ServiceMethod(returns = ReturnType.SINGLE) - MigrationItemInner update(String resourceName, String resourceGroupName, String fabricName, + MigrationItemInner update(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, UpdateMigrationItemInput input, Context context); /** @@ -354,8 +354,8 @@ MigrationItemInner update(String resourceName, String resourceGroupName, String * * The operation to initiate migration of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -366,8 +366,8 @@ MigrationItemInner update(String resourceName, String resourceGroupName, String * @return the {@link SyncPoller} for polling of migration item. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, MigrationItemInner> beginMigrate(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, + SyncPoller, MigrationItemInner> beginMigrate(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName, MigrateInput migrateInput); /** @@ -375,8 +375,8 @@ SyncPoller, MigrationItemInner> beginMigrate(Stri * * The operation to initiate migration of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -388,8 +388,8 @@ SyncPoller, MigrationItemInner> beginMigrate(Stri * @return the {@link SyncPoller} for polling of migration item. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, MigrationItemInner> beginMigrate(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, + SyncPoller, MigrationItemInner> beginMigrate(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName, MigrateInput migrateInput, Context context); /** @@ -397,8 +397,8 @@ SyncPoller, MigrationItemInner> beginMigrate(Stri * * The operation to initiate migration of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -409,7 +409,7 @@ SyncPoller, MigrationItemInner> beginMigrate(Stri * @return migration item. */ @ServiceMethod(returns = ReturnType.SINGLE) - MigrationItemInner migrate(String resourceName, String resourceGroupName, String fabricName, + MigrationItemInner migrate(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, MigrateInput migrateInput); /** @@ -417,8 +417,8 @@ MigrationItemInner migrate(String resourceName, String resourceGroupName, String * * The operation to initiate migration of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -430,7 +430,7 @@ MigrationItemInner migrate(String resourceName, String resourceGroupName, String * @return migration item. */ @ServiceMethod(returns = ReturnType.SINGLE) - MigrationItemInner migrate(String resourceName, String resourceGroupName, String fabricName, + MigrationItemInner migrate(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, MigrateInput migrateInput, Context context); /** @@ -438,8 +438,8 @@ MigrationItemInner migrate(String resourceName, String resourceGroupName, String * * The operation to initiate pause replication of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -450,8 +450,8 @@ MigrationItemInner migrate(String resourceName, String resourceGroupName, String * @return the {@link SyncPoller} for polling of migration item. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, MigrationItemInner> beginPauseReplication(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, + SyncPoller, MigrationItemInner> beginPauseReplication(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName, PauseReplicationInput pauseReplicationInput); /** @@ -459,8 +459,8 @@ SyncPoller, MigrationItemInner> beginPauseReplica * * The operation to initiate pause replication of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -472,8 +472,8 @@ SyncPoller, MigrationItemInner> beginPauseReplica * @return the {@link SyncPoller} for polling of migration item. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, MigrationItemInner> beginPauseReplication(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, + SyncPoller, MigrationItemInner> beginPauseReplication(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName, PauseReplicationInput pauseReplicationInput, Context context); /** @@ -481,8 +481,8 @@ SyncPoller, MigrationItemInner> beginPauseReplica * * The operation to initiate pause replication of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -493,7 +493,7 @@ SyncPoller, MigrationItemInner> beginPauseReplica * @return migration item. */ @ServiceMethod(returns = ReturnType.SINGLE) - MigrationItemInner pauseReplication(String resourceName, String resourceGroupName, String fabricName, + MigrationItemInner pauseReplication(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, PauseReplicationInput pauseReplicationInput); /** @@ -501,8 +501,8 @@ MigrationItemInner pauseReplication(String resourceName, String resourceGroupNam * * The operation to initiate pause replication of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -514,7 +514,7 @@ MigrationItemInner pauseReplication(String resourceName, String resourceGroupNam * @return migration item. */ @ServiceMethod(returns = ReturnType.SINGLE) - MigrationItemInner pauseReplication(String resourceName, String resourceGroupName, String fabricName, + MigrationItemInner pauseReplication(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, PauseReplicationInput pauseReplicationInput, Context context); @@ -523,8 +523,8 @@ MigrationItemInner pauseReplication(String resourceName, String resourceGroupNam * * The operation to initiate resume replication of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -535,8 +535,8 @@ MigrationItemInner pauseReplication(String resourceName, String resourceGroupNam * @return the {@link SyncPoller} for polling of migration item. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, MigrationItemInner> beginResumeReplication(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, + SyncPoller, MigrationItemInner> beginResumeReplication(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName, ResumeReplicationInput resumeReplicationInput); /** @@ -544,8 +544,8 @@ SyncPoller, MigrationItemInner> beginResumeReplic * * The operation to initiate resume replication of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -557,8 +557,8 @@ SyncPoller, MigrationItemInner> beginResumeReplic * @return the {@link SyncPoller} for polling of migration item. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, MigrationItemInner> beginResumeReplication(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, + SyncPoller, MigrationItemInner> beginResumeReplication(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName, ResumeReplicationInput resumeReplicationInput, Context context); /** @@ -566,8 +566,8 @@ SyncPoller, MigrationItemInner> beginResumeReplic * * The operation to initiate resume replication of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -578,7 +578,7 @@ SyncPoller, MigrationItemInner> beginResumeReplic * @return migration item. */ @ServiceMethod(returns = ReturnType.SINGLE) - MigrationItemInner resumeReplication(String resourceName, String resourceGroupName, String fabricName, + MigrationItemInner resumeReplication(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, ResumeReplicationInput resumeReplicationInput); /** @@ -586,8 +586,8 @@ MigrationItemInner resumeReplication(String resourceName, String resourceGroupNa * * The operation to initiate resume replication of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -599,7 +599,7 @@ MigrationItemInner resumeReplication(String resourceName, String resourceGroupNa * @return migration item. */ @ServiceMethod(returns = ReturnType.SINGLE) - MigrationItemInner resumeReplication(String resourceName, String resourceGroupName, String fabricName, + MigrationItemInner resumeReplication(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, ResumeReplicationInput resumeReplicationInput, Context context); @@ -608,8 +608,8 @@ MigrationItemInner resumeReplication(String resourceName, String resourceGroupNa * * The operation to resynchronize replication of an ASR migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -620,8 +620,8 @@ MigrationItemInner resumeReplication(String resourceName, String resourceGroupNa * @return the {@link SyncPoller} for polling of migration item. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, MigrationItemInner> beginResync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, + SyncPoller, MigrationItemInner> beginResync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName, ResyncInput input); /** @@ -629,8 +629,8 @@ SyncPoller, MigrationItemInner> beginResync(Strin * * The operation to resynchronize replication of an ASR migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -642,8 +642,8 @@ SyncPoller, MigrationItemInner> beginResync(Strin * @return the {@link SyncPoller} for polling of migration item. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, MigrationItemInner> beginResync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, + SyncPoller, MigrationItemInner> beginResync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName, ResyncInput input, Context context); /** @@ -651,8 +651,8 @@ SyncPoller, MigrationItemInner> beginResync(Strin * * The operation to resynchronize replication of an ASR migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -663,7 +663,7 @@ SyncPoller, MigrationItemInner> beginResync(Strin * @return migration item. */ @ServiceMethod(returns = ReturnType.SINGLE) - MigrationItemInner resync(String resourceName, String resourceGroupName, String fabricName, + MigrationItemInner resync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, ResyncInput input); /** @@ -671,8 +671,8 @@ MigrationItemInner resync(String resourceName, String resourceGroupName, String * * The operation to resynchronize replication of an ASR migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -684,7 +684,7 @@ MigrationItemInner resync(String resourceName, String resourceGroupName, String * @return migration item. */ @ServiceMethod(returns = ReturnType.SINGLE) - MigrationItemInner resync(String resourceName, String resourceGroupName, String fabricName, + MigrationItemInner resync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, ResyncInput input, Context context); /** @@ -692,8 +692,8 @@ MigrationItemInner resync(String resourceName, String resourceGroupName, String * * The operation to initiate test migration of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -704,8 +704,8 @@ MigrationItemInner resync(String resourceName, String resourceGroupName, String * @return the {@link SyncPoller} for polling of migration item. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, MigrationItemInner> beginTestMigrate(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, + SyncPoller, MigrationItemInner> beginTestMigrate(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName, TestMigrateInput testMigrateInput); /** @@ -713,8 +713,8 @@ SyncPoller, MigrationItemInner> beginTestMigrate( * * The operation to initiate test migration of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -726,8 +726,8 @@ SyncPoller, MigrationItemInner> beginTestMigrate( * @return the {@link SyncPoller} for polling of migration item. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, MigrationItemInner> beginTestMigrate(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, + SyncPoller, MigrationItemInner> beginTestMigrate(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName, TestMigrateInput testMigrateInput, Context context); /** @@ -735,8 +735,8 @@ SyncPoller, MigrationItemInner> beginTestMigrate( * * The operation to initiate test migration of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -747,7 +747,7 @@ SyncPoller, MigrationItemInner> beginTestMigrate( * @return migration item. */ @ServiceMethod(returns = ReturnType.SINGLE) - MigrationItemInner testMigrate(String resourceName, String resourceGroupName, String fabricName, + MigrationItemInner testMigrate(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, TestMigrateInput testMigrateInput); /** @@ -755,8 +755,8 @@ MigrationItemInner testMigrate(String resourceName, String resourceGroupName, St * * The operation to initiate test migration of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -768,7 +768,7 @@ MigrationItemInner testMigrate(String resourceName, String resourceGroupName, St * @return migration item. */ @ServiceMethod(returns = ReturnType.SINGLE) - MigrationItemInner testMigrate(String resourceName, String resourceGroupName, String fabricName, + MigrationItemInner testMigrate(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, TestMigrateInput testMigrateInput, Context context); /** @@ -776,8 +776,8 @@ MigrationItemInner testMigrate(String resourceName, String resourceGroupName, St * * The operation to initiate test migrate cleanup. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -788,8 +788,8 @@ MigrationItemInner testMigrate(String resourceName, String resourceGroupName, St * @return the {@link SyncPoller} for polling of migration item. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, MigrationItemInner> beginTestMigrateCleanup(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, + SyncPoller, MigrationItemInner> beginTestMigrateCleanup(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName, TestMigrateCleanupInput testMigrateCleanupInput); /** @@ -797,8 +797,8 @@ SyncPoller, MigrationItemInner> beginTestMigrateC * * The operation to initiate test migrate cleanup. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -810,8 +810,8 @@ SyncPoller, MigrationItemInner> beginTestMigrateC * @return the {@link SyncPoller} for polling of migration item. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, MigrationItemInner> beginTestMigrateCleanup(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, + SyncPoller, MigrationItemInner> beginTestMigrateCleanup(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName, TestMigrateCleanupInput testMigrateCleanupInput, Context context); /** @@ -819,8 +819,8 @@ SyncPoller, MigrationItemInner> beginTestMigrateC * * The operation to initiate test migrate cleanup. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -831,7 +831,7 @@ SyncPoller, MigrationItemInner> beginTestMigrateC * @return migration item. */ @ServiceMethod(returns = ReturnType.SINGLE) - MigrationItemInner testMigrateCleanup(String resourceName, String resourceGroupName, String fabricName, + MigrationItemInner testMigrateCleanup(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, TestMigrateCleanupInput testMigrateCleanupInput); /** @@ -839,8 +839,8 @@ MigrationItemInner testMigrateCleanup(String resourceName, String resourceGroupN * * The operation to initiate test migrate cleanup. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -852,28 +852,28 @@ MigrationItemInner testMigrateCleanup(String resourceName, String resourceGroupN * @return migration item. */ @ServiceMethod(returns = ReturnType.SINGLE) - MigrationItemInner testMigrateCleanup(String resourceName, String resourceGroupName, String fabricName, + MigrationItemInner testMigrateCleanup(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, TestMigrateCleanupInput testMigrateCleanupInput, Context context); /** * Gets the list of migration items in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of migration items in the vault as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceName, String resourceGroupName); + PagedIterable list(String resourceGroupName, String resourceName); /** * Gets the list of migration items in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param skipToken The pagination token. * @param takeToken The page size. * @param filter OData filter options. @@ -884,6 +884,6 @@ MigrationItemInner testMigrateCleanup(String resourceName, String resourceGroupN * @return the list of migration items in the vault as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceName, String resourceGroupName, String skipToken, + PagedIterable list(String resourceGroupName, String resourceName, String skipToken, String takeToken, String filter, Context context); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationNetworkMappingsClient.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationNetworkMappingsClient.java index 18b892f65f81..569118400014 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationNetworkMappingsClient.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationNetworkMappingsClient.java @@ -24,8 +24,8 @@ public interface ReplicationNetworkMappingsClient { * * Lists all ASR network mappings for the specified network. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -34,7 +34,7 @@ public interface ReplicationNetworkMappingsClient { * @return list of network mappings as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByReplicationNetworks(String resourceName, String resourceGroupName, + PagedIterable listByReplicationNetworks(String resourceGroupName, String resourceName, String fabricName, String networkName); /** @@ -42,8 +42,8 @@ PagedIterable listByReplicationNetworks(String resourceName * * Lists all ASR network mappings for the specified network. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param context The context to associate with this operation. @@ -53,7 +53,7 @@ PagedIterable listByReplicationNetworks(String resourceName * @return list of network mappings as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByReplicationNetworks(String resourceName, String resourceGroupName, + PagedIterable listByReplicationNetworks(String resourceGroupName, String resourceName, String fabricName, String networkName, Context context); /** @@ -61,8 +61,8 @@ PagedIterable listByReplicationNetworks(String resourceName * * Gets the details of an ASR network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName Network mapping name. @@ -73,7 +73,7 @@ PagedIterable listByReplicationNetworks(String resourceName * @return the details of an ASR network mapping along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceName, String resourceGroupName, String fabricName, + Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String networkName, String networkMappingName, Context context); /** @@ -81,8 +81,8 @@ Response getWithResponse(String resourceName, String resour * * Gets the details of an ASR network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName Network mapping name. @@ -92,7 +92,7 @@ Response getWithResponse(String resourceName, String resour * @return the details of an ASR network mapping. */ @ServiceMethod(returns = ReturnType.SINGLE) - NetworkMappingInner get(String resourceName, String resourceGroupName, String fabricName, String networkName, + NetworkMappingInner get(String resourceGroupName, String resourceName, String fabricName, String networkName, String networkMappingName); /** @@ -100,8 +100,8 @@ NetworkMappingInner get(String resourceName, String resourceGroupName, String fa * * The operation to create an ASR network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName Network mapping name. @@ -112,8 +112,8 @@ NetworkMappingInner get(String resourceName, String resourceGroupName, String fa * @return the {@link SyncPoller} for polling of network Mapping model. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, NetworkMappingInner> beginCreate(String resourceName, - String resourceGroupName, String fabricName, String networkName, String networkMappingName, + SyncPoller, NetworkMappingInner> beginCreate(String resourceGroupName, + String resourceName, String fabricName, String networkName, String networkMappingName, CreateNetworkMappingInput input); /** @@ -121,8 +121,8 @@ SyncPoller, NetworkMappingInner> beginCreate(Str * * The operation to create an ASR network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName Network mapping name. @@ -134,8 +134,8 @@ SyncPoller, NetworkMappingInner> beginCreate(Str * @return the {@link SyncPoller} for polling of network Mapping model. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, NetworkMappingInner> beginCreate(String resourceName, - String resourceGroupName, String fabricName, String networkName, String networkMappingName, + SyncPoller, NetworkMappingInner> beginCreate(String resourceGroupName, + String resourceName, String fabricName, String networkName, String networkMappingName, CreateNetworkMappingInput input, Context context); /** @@ -143,8 +143,8 @@ SyncPoller, NetworkMappingInner> beginCreate(Str * * The operation to create an ASR network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName Network mapping name. @@ -155,7 +155,7 @@ SyncPoller, NetworkMappingInner> beginCreate(Str * @return network Mapping model. */ @ServiceMethod(returns = ReturnType.SINGLE) - NetworkMappingInner create(String resourceName, String resourceGroupName, String fabricName, String networkName, + NetworkMappingInner create(String resourceGroupName, String resourceName, String fabricName, String networkName, String networkMappingName, CreateNetworkMappingInput input); /** @@ -163,8 +163,8 @@ NetworkMappingInner create(String resourceName, String resourceGroupName, String * * The operation to create an ASR network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName Network mapping name. @@ -176,7 +176,7 @@ NetworkMappingInner create(String resourceName, String resourceGroupName, String * @return network Mapping model. */ @ServiceMethod(returns = ReturnType.SINGLE) - NetworkMappingInner create(String resourceName, String resourceGroupName, String fabricName, String networkName, + NetworkMappingInner create(String resourceGroupName, String resourceName, String fabricName, String networkName, String networkMappingName, CreateNetworkMappingInput input, Context context); /** @@ -184,8 +184,8 @@ NetworkMappingInner create(String resourceName, String resourceGroupName, String * * The operation to delete a network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName ARM Resource Name for network mapping. @@ -195,7 +195,7 @@ NetworkMappingInner create(String resourceName, String resourceGroupName, String * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceName, String resourceGroupName, String fabricName, + SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String fabricName, String networkName, String networkMappingName); /** @@ -203,8 +203,8 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * * The operation to delete a network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName ARM Resource Name for network mapping. @@ -215,7 +215,7 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceName, String resourceGroupName, String fabricName, + SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String fabricName, String networkName, String networkMappingName, Context context); /** @@ -223,8 +223,8 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * * The operation to delete a network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName ARM Resource Name for network mapping. @@ -233,7 +233,7 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceName, String resourceGroupName, String fabricName, String networkName, + void delete(String resourceGroupName, String resourceName, String fabricName, String networkName, String networkMappingName); /** @@ -241,8 +241,8 @@ void delete(String resourceName, String resourceGroupName, String fabricName, St * * The operation to delete a network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName ARM Resource Name for network mapping. @@ -252,7 +252,7 @@ void delete(String resourceName, String resourceGroupName, String fabricName, St * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceName, String resourceGroupName, String fabricName, String networkName, + void delete(String resourceGroupName, String resourceName, String fabricName, String networkName, String networkMappingName, Context context); /** @@ -260,8 +260,8 @@ void delete(String resourceName, String resourceGroupName, String fabricName, St * * The operation to update an ASR network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName Network mapping name. @@ -272,8 +272,8 @@ void delete(String resourceName, String resourceGroupName, String fabricName, St * @return the {@link SyncPoller} for polling of network Mapping model. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, NetworkMappingInner> beginUpdate(String resourceName, - String resourceGroupName, String fabricName, String networkName, String networkMappingName, + SyncPoller, NetworkMappingInner> beginUpdate(String resourceGroupName, + String resourceName, String fabricName, String networkName, String networkMappingName, UpdateNetworkMappingInput input); /** @@ -281,8 +281,8 @@ SyncPoller, NetworkMappingInner> beginUpdate(Str * * The operation to update an ASR network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName Network mapping name. @@ -294,8 +294,8 @@ SyncPoller, NetworkMappingInner> beginUpdate(Str * @return the {@link SyncPoller} for polling of network Mapping model. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, NetworkMappingInner> beginUpdate(String resourceName, - String resourceGroupName, String fabricName, String networkName, String networkMappingName, + SyncPoller, NetworkMappingInner> beginUpdate(String resourceGroupName, + String resourceName, String fabricName, String networkName, String networkMappingName, UpdateNetworkMappingInput input, Context context); /** @@ -303,8 +303,8 @@ SyncPoller, NetworkMappingInner> beginUpdate(Str * * The operation to update an ASR network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName Network mapping name. @@ -315,7 +315,7 @@ SyncPoller, NetworkMappingInner> beginUpdate(Str * @return network Mapping model. */ @ServiceMethod(returns = ReturnType.SINGLE) - NetworkMappingInner update(String resourceName, String resourceGroupName, String fabricName, String networkName, + NetworkMappingInner update(String resourceGroupName, String resourceName, String fabricName, String networkName, String networkMappingName, UpdateNetworkMappingInput input); /** @@ -323,8 +323,8 @@ NetworkMappingInner update(String resourceName, String resourceGroupName, String * * The operation to update an ASR network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName Network mapping name. @@ -336,7 +336,7 @@ NetworkMappingInner update(String resourceName, String resourceGroupName, String * @return network Mapping model. */ @ServiceMethod(returns = ReturnType.SINGLE) - NetworkMappingInner update(String resourceName, String resourceGroupName, String fabricName, String networkName, + NetworkMappingInner update(String resourceGroupName, String resourceName, String fabricName, String networkName, String networkMappingName, UpdateNetworkMappingInput input, Context context); /** @@ -344,23 +344,23 @@ NetworkMappingInner update(String resourceName, String resourceGroupName, String * * Lists all ASR network mappings in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return list of network mappings as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceName, String resourceGroupName); + PagedIterable list(String resourceGroupName, String resourceName); /** * Gets all the network mappings under a vault. * * Lists all ASR network mappings in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -368,5 +368,5 @@ NetworkMappingInner update(String resourceName, String resourceGroupName, String * @return list of network mappings as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceName, String resourceGroupName, Context context); + PagedIterable list(String resourceGroupName, String resourceName, Context context); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationNetworksClient.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationNetworksClient.java index 38d7ba4592c2..de17cee44a38 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationNetworksClient.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationNetworksClient.java @@ -20,8 +20,8 @@ public interface ReplicationNetworksClient { * * Lists the networks available for a fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -29,7 +29,7 @@ public interface ReplicationNetworksClient { * @return list of networks as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByReplicationFabrics(String resourceName, String resourceGroupName, + PagedIterable listByReplicationFabrics(String resourceGroupName, String resourceName, String fabricName); /** @@ -37,8 +37,8 @@ PagedIterable listByReplicationFabrics(String resourceName, String * * Lists the networks available for a fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -47,7 +47,7 @@ PagedIterable listByReplicationFabrics(String resourceName, String * @return list of networks as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByReplicationFabrics(String resourceName, String resourceGroupName, + PagedIterable listByReplicationFabrics(String resourceGroupName, String resourceName, String fabricName, Context context); /** @@ -55,8 +55,8 @@ PagedIterable listByReplicationFabrics(String resourceName, String * * Gets the details of a network. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Server Id. * @param networkName Primary network name. * @param context The context to associate with this operation. @@ -66,7 +66,7 @@ PagedIterable listByReplicationFabrics(String resourceName, String * @return the details of a network along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceName, String resourceGroupName, String fabricName, + Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String networkName, Context context); /** @@ -74,8 +74,8 @@ Response getWithResponse(String resourceName, String resourceGroup * * Gets the details of a network. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Server Id. * @param networkName Primary network name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -84,30 +84,30 @@ Response getWithResponse(String resourceName, String resourceGroup * @return the details of a network. */ @ServiceMethod(returns = ReturnType.SINGLE) - NetworkInner get(String resourceName, String resourceGroupName, String fabricName, String networkName); + NetworkInner get(String resourceGroupName, String resourceName, String fabricName, String networkName); /** * Gets the list of networks. View-only API. * * Lists the networks available in a vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return list of networks as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceName, String resourceGroupName); + PagedIterable list(String resourceGroupName, String resourceName); /** * Gets the list of networks. View-only API. * * Lists the networks available in a vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -115,5 +115,5 @@ Response getWithResponse(String resourceName, String resourceGroup * @return list of networks as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceName, String resourceGroupName, Context context); + PagedIterable list(String resourceGroupName, String resourceName, Context context); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationPoliciesClient.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationPoliciesClient.java index 9e6035c53142..ecfe7d26d552 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationPoliciesClient.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationPoliciesClient.java @@ -24,23 +24,23 @@ public interface ReplicationPoliciesClient { * * Lists the replication policies for a vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return protection Profile Collection details as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceName, String resourceGroupName); + PagedIterable list(String resourceGroupName, String resourceName); /** * Gets the list of replication policies. * * Lists the replication policies for a vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -48,15 +48,15 @@ public interface ReplicationPoliciesClient { * @return protection Profile Collection details as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceName, String resourceGroupName, Context context); + PagedIterable list(String resourceGroupName, String resourceName, Context context); /** * Gets the requested policy. * * Gets the details of a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -65,7 +65,7 @@ public interface ReplicationPoliciesClient { * @return the details of a replication policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceName, String resourceGroupName, String policyName, + Response getWithResponse(String resourceGroupName, String resourceName, String policyName, Context context); /** @@ -73,8 +73,8 @@ Response getWithResponse(String resourceName, String resourceGroupN * * Gets the details of a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -82,15 +82,15 @@ Response getWithResponse(String resourceName, String resourceGroupN * @return the details of a replication policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - PolicyInner get(String resourceName, String resourceGroupName, String policyName); + PolicyInner get(String resourceGroupName, String resourceName, String policyName); /** * Creates the policy. * * The operation to create a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @param input Create policy input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -99,7 +99,7 @@ Response getWithResponse(String resourceName, String resourceGroupN * @return the {@link SyncPoller} for polling of protection profile details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, PolicyInner> beginCreate(String resourceName, String resourceGroupName, + SyncPoller, PolicyInner> beginCreate(String resourceGroupName, String resourceName, String policyName, CreatePolicyInput input); /** @@ -107,8 +107,8 @@ SyncPoller, PolicyInner> beginCreate(String resourceName * * The operation to create a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @param input Create policy input. * @param context The context to associate with this operation. @@ -118,7 +118,7 @@ SyncPoller, PolicyInner> beginCreate(String resourceName * @return the {@link SyncPoller} for polling of protection profile details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, PolicyInner> beginCreate(String resourceName, String resourceGroupName, + SyncPoller, PolicyInner> beginCreate(String resourceGroupName, String resourceName, String policyName, CreatePolicyInput input, Context context); /** @@ -126,8 +126,8 @@ SyncPoller, PolicyInner> beginCreate(String resourceName * * The operation to create a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @param input Create policy input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -136,15 +136,15 @@ SyncPoller, PolicyInner> beginCreate(String resourceName * @return protection profile details. */ @ServiceMethod(returns = ReturnType.SINGLE) - PolicyInner create(String resourceName, String resourceGroupName, String policyName, CreatePolicyInput input); + PolicyInner create(String resourceGroupName, String resourceName, String policyName, CreatePolicyInput input); /** * Creates the policy. * * The operation to create a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @param input Create policy input. * @param context The context to associate with this operation. @@ -154,7 +154,7 @@ SyncPoller, PolicyInner> beginCreate(String resourceName * @return protection profile details. */ @ServiceMethod(returns = ReturnType.SINGLE) - PolicyInner create(String resourceName, String resourceGroupName, String policyName, CreatePolicyInput input, + PolicyInner create(String resourceGroupName, String resourceName, String policyName, CreatePolicyInput input, Context context); /** @@ -162,8 +162,8 @@ PolicyInner create(String resourceName, String resourceGroupName, String policyN * * The operation to delete a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -171,15 +171,15 @@ PolicyInner create(String resourceName, String resourceGroupName, String policyN * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceName, String resourceGroupName, String policyName); + SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String policyName); /** * Delete the policy. * * The operation to delete a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -188,7 +188,7 @@ PolicyInner create(String resourceName, String resourceGroupName, String policyN * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceName, String resourceGroupName, String policyName, + SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String policyName, Context context); /** @@ -196,23 +196,23 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * * The operation to delete a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceName, String resourceGroupName, String policyName); + void delete(String resourceGroupName, String resourceName, String policyName); /** * Delete the policy. * * The operation to delete a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -220,15 +220,15 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceName, String resourceGroupName, String policyName, Context context); + void delete(String resourceGroupName, String resourceName, String policyName, Context context); /** * Updates the policy. * * The operation to update a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Policy Id. * @param input Update Policy Input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -237,7 +237,7 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * @return the {@link SyncPoller} for polling of protection profile details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, PolicyInner> beginUpdate(String resourceName, String resourceGroupName, + SyncPoller, PolicyInner> beginUpdate(String resourceGroupName, String resourceName, String policyName, UpdatePolicyInput input); /** @@ -245,8 +245,8 @@ SyncPoller, PolicyInner> beginUpdate(String resourceName * * The operation to update a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Policy Id. * @param input Update Policy Input. * @param context The context to associate with this operation. @@ -256,7 +256,7 @@ SyncPoller, PolicyInner> beginUpdate(String resourceName * @return the {@link SyncPoller} for polling of protection profile details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, PolicyInner> beginUpdate(String resourceName, String resourceGroupName, + SyncPoller, PolicyInner> beginUpdate(String resourceGroupName, String resourceName, String policyName, UpdatePolicyInput input, Context context); /** @@ -264,8 +264,8 @@ SyncPoller, PolicyInner> beginUpdate(String resourceName * * The operation to update a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Policy Id. * @param input Update Policy Input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -274,15 +274,15 @@ SyncPoller, PolicyInner> beginUpdate(String resourceName * @return protection profile details. */ @ServiceMethod(returns = ReturnType.SINGLE) - PolicyInner update(String resourceName, String resourceGroupName, String policyName, UpdatePolicyInput input); + PolicyInner update(String resourceGroupName, String resourceName, String policyName, UpdatePolicyInput input); /** * Updates the policy. * * The operation to update a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Policy Id. * @param input Update Policy Input. * @param context The context to associate with this operation. @@ -292,6 +292,6 @@ SyncPoller, PolicyInner> beginUpdate(String resourceName * @return protection profile details. */ @ServiceMethod(returns = ReturnType.SINGLE) - PolicyInner update(String resourceName, String resourceGroupName, String policyName, UpdatePolicyInput input, + PolicyInner update(String resourceGroupName, String resourceName, String policyName, UpdatePolicyInput input, Context context); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationProtectableItemsClient.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationProtectableItemsClient.java index 9a3e2dfcf910..614ccf139480 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationProtectableItemsClient.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationProtectableItemsClient.java @@ -20,8 +20,8 @@ public interface ReplicationProtectableItemsClient { * * Lists the protectable items in a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -30,16 +30,16 @@ public interface ReplicationProtectableItemsClient { * @return protectable item collection as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByReplicationProtectionContainers(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName); + PagedIterable listByReplicationProtectionContainers(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName); /** * Gets the list of protectable items. * * Lists the protectable items in a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param filter OData filter options. @@ -52,8 +52,8 @@ PagedIterable listByReplicationProtectionContainers(String * @return protectable item collection as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByReplicationProtectionContainers(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String filter, String take, + PagedIterable listByReplicationProtectionContainers(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String filter, String take, String skipToken, Context context); /** @@ -61,8 +61,8 @@ PagedIterable listByReplicationProtectionContainers(String * * The operation to get the details of a protectable item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param protectableItemName Protectable item name. @@ -73,7 +73,7 @@ PagedIterable listByReplicationProtectionContainers(String * @return replication protected item along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceName, String resourceGroupName, String fabricName, + Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String protectableItemName, Context context); /** @@ -81,8 +81,8 @@ Response getWithResponse(String resourceName, String resou * * The operation to get the details of a protectable item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param protectableItemName Protectable item name. @@ -92,6 +92,6 @@ Response getWithResponse(String resourceName, String resou * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - ProtectableItemInner get(String resourceName, String resourceGroupName, String fabricName, + ProtectableItemInner get(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String protectableItemName); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationProtectedItemsClient.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationProtectedItemsClient.java index 7e88401da201..563489442cbd 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationProtectedItemsClient.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationProtectedItemsClient.java @@ -37,8 +37,8 @@ public interface ReplicationProtectedItemsClient { * * Gets the list of ASR replication protected items in the protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -48,16 +48,16 @@ public interface ReplicationProtectedItemsClient { * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByReplicationProtectionContainers(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName); + PagedIterable listByReplicationProtectionContainers(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName); /** * Gets the list of Replication protected items. * * Gets the list of ASR replication protected items in the protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param context The context to associate with this operation. @@ -68,16 +68,16 @@ PagedIterable listByReplicationProtectionContaine * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByReplicationProtectionContainers(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, Context context); + PagedIterable listByReplicationProtectionContainers(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, Context context); /** * Gets the details of a Replication protected item. * * Gets the details of an ASR replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric unique name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -88,7 +88,7 @@ PagedIterable listByReplicationProtectionContaine * @return the details of an ASR replication protected item along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceName, String resourceGroupName, + Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context); /** @@ -96,8 +96,8 @@ Response getWithResponse(String resourceName, Str * * Gets the details of an ASR replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric unique name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -107,7 +107,7 @@ Response getWithResponse(String resourceName, Str * @return the details of an ASR replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - ReplicationProtectedItemInner get(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItemInner get(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName); /** @@ -115,8 +115,8 @@ ReplicationProtectedItemInner get(String resourceName, String resourceGroupName, * * The operation to create an ASR replication protected item (Enable replication). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Name of the fabric. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName A name for the replication protected item. @@ -128,7 +128,7 @@ ReplicationProtectedItemInner get(String resourceName, String resourceGroupName, */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ReplicationProtectedItemInner> beginCreate( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, EnableProtectionInput input); /** @@ -136,8 +136,8 @@ SyncPoller, ReplicationProtectedItemIn * * The operation to create an ASR replication protected item (Enable replication). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Name of the fabric. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName A name for the replication protected item. @@ -150,7 +150,7 @@ SyncPoller, ReplicationProtectedItemIn */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ReplicationProtectedItemInner> beginCreate( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, EnableProtectionInput input, Context context); /** @@ -158,8 +158,8 @@ SyncPoller, ReplicationProtectedItemIn * * The operation to create an ASR replication protected item (Enable replication). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Name of the fabric. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName A name for the replication protected item. @@ -170,7 +170,7 @@ SyncPoller, ReplicationProtectedItemIn * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - ReplicationProtectedItemInner create(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItemInner create(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, EnableProtectionInput input); /** @@ -178,8 +178,8 @@ ReplicationProtectedItemInner create(String resourceName, String resourceGroupNa * * The operation to create an ASR replication protected item (Enable replication). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Name of the fabric. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName A name for the replication protected item. @@ -191,7 +191,7 @@ ReplicationProtectedItemInner create(String resourceName, String resourceGroupNa * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - ReplicationProtectedItemInner create(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItemInner create(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, EnableProtectionInput input, Context context); @@ -202,8 +202,8 @@ ReplicationProtectedItemInner create(String resourceName, String resourceGroupNa * protected item. Use the remove operation on replication protected item to perform a clean disable replication for * the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -213,7 +213,7 @@ ReplicationProtectedItemInner create(String resourceName, String resourceGroupNa * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginPurge(String resourceName, String resourceGroupName, String fabricName, + SyncPoller, Void> beginPurge(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName); /** @@ -223,8 +223,8 @@ SyncPoller, Void> beginPurge(String resourceName, String resour * protected item. Use the remove operation on replication protected item to perform a clean disable replication for * the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -235,7 +235,7 @@ SyncPoller, Void> beginPurge(String resourceName, String resour * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginPurge(String resourceName, String resourceGroupName, String fabricName, + SyncPoller, Void> beginPurge(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context); /** @@ -245,8 +245,8 @@ SyncPoller, Void> beginPurge(String resourceName, String resour * protected item. Use the remove operation on replication protected item to perform a clean disable replication for * the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -255,7 +255,7 @@ SyncPoller, Void> beginPurge(String resourceName, String resour * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void purge(String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + void purge(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName); /** @@ -265,8 +265,8 @@ void purge(String resourceName, String resourceGroupName, String fabricName, Str * protected item. Use the remove operation on replication protected item to perform a clean disable replication for * the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -276,7 +276,7 @@ void purge(String resourceName, String resourceGroupName, String fabricName, Str * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void purge(String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + void purge(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context); /** @@ -284,8 +284,8 @@ void purge(String resourceName, String resourceGroupName, String fabricName, Str * * The operation to update the recovery settings of an ASR replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -297,7 +297,7 @@ void purge(String resourceName, String resourceGroupName, String fabricName, Str */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ReplicationProtectedItemInner> beginUpdate( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateReplicationProtectedItemInput updateProtectionInput); /** @@ -305,8 +305,8 @@ SyncPoller, ReplicationProtectedItemIn * * The operation to update the recovery settings of an ASR replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -319,7 +319,7 @@ SyncPoller, ReplicationProtectedItemIn */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ReplicationProtectedItemInner> beginUpdate( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateReplicationProtectedItemInput updateProtectionInput, Context context); /** @@ -327,8 +327,8 @@ SyncPoller, ReplicationProtectedItemIn * * The operation to update the recovery settings of an ASR replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -339,7 +339,7 @@ SyncPoller, ReplicationProtectedItemIn * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - ReplicationProtectedItemInner update(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItemInner update(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateReplicationProtectedItemInput updateProtectionInput); @@ -348,8 +348,8 @@ ReplicationProtectedItemInner update(String resourceName, String resourceGroupNa * * The operation to update the recovery settings of an ASR replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -361,7 +361,7 @@ ReplicationProtectedItemInner update(String resourceName, String resourceGroupNa * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - ReplicationProtectedItemInner update(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItemInner update(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateReplicationProtectedItemInput updateProtectionInput, Context context); @@ -370,8 +370,8 @@ ReplicationProtectedItemInner update(String resourceName, String resourceGroupNa * * Operation to add disks(s) to the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -383,7 +383,7 @@ ReplicationProtectedItemInner update(String resourceName, String resourceGroupNa */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ReplicationProtectedItemInner> beginAddDisks( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, AddDisksInput addDisksInput); /** @@ -391,8 +391,8 @@ SyncPoller, ReplicationProtectedItemIn * * Operation to add disks(s) to the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -405,7 +405,7 @@ SyncPoller, ReplicationProtectedItemIn */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ReplicationProtectedItemInner> beginAddDisks( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, AddDisksInput addDisksInput, Context context); /** @@ -413,8 +413,8 @@ SyncPoller, ReplicationProtectedItemIn * * Operation to add disks(s) to the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -425,7 +425,7 @@ SyncPoller, ReplicationProtectedItemIn * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - ReplicationProtectedItemInner addDisks(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItemInner addDisks(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, AddDisksInput addDisksInput); /** @@ -433,8 +433,8 @@ ReplicationProtectedItemInner addDisks(String resourceName, String resourceGroup * * Operation to add disks(s) to the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -446,7 +446,7 @@ ReplicationProtectedItemInner addDisks(String resourceName, String resourceGroup * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - ReplicationProtectedItemInner addDisks(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItemInner addDisks(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, AddDisksInput addDisksInput, Context context); @@ -455,8 +455,8 @@ ReplicationProtectedItemInner addDisks(String resourceName, String resourceGroup * * The operation to change the recovery point of a failed over replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The ARM fabric name. * @param protectionContainerName The protection container name. * @param replicatedProtectedItemName The replicated protected item name. @@ -468,7 +468,7 @@ ReplicationProtectedItemInner addDisks(String resourceName, String resourceGroup */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ReplicationProtectedItemInner> beginApplyRecoveryPoint( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ApplyRecoveryPointInput applyRecoveryPointInput); /** @@ -476,8 +476,8 @@ SyncPoller, ReplicationProtectedItemIn * * The operation to change the recovery point of a failed over replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The ARM fabric name. * @param protectionContainerName The protection container name. * @param replicatedProtectedItemName The replicated protected item name. @@ -490,7 +490,7 @@ SyncPoller, ReplicationProtectedItemIn */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ReplicationProtectedItemInner> beginApplyRecoveryPoint( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ApplyRecoveryPointInput applyRecoveryPointInput, Context context); /** @@ -498,8 +498,8 @@ SyncPoller, ReplicationProtectedItemIn * * The operation to change the recovery point of a failed over replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The ARM fabric name. * @param protectionContainerName The protection container name. * @param replicatedProtectedItemName The replicated protected item name. @@ -510,7 +510,7 @@ SyncPoller, ReplicationProtectedItemIn * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - ReplicationProtectedItemInner applyRecoveryPoint(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItemInner applyRecoveryPoint(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ApplyRecoveryPointInput applyRecoveryPointInput); @@ -519,8 +519,8 @@ ReplicationProtectedItemInner applyRecoveryPoint(String resourceName, String res * * The operation to change the recovery point of a failed over replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The ARM fabric name. * @param protectionContainerName The protection container name. * @param replicatedProtectedItemName The replicated protected item name. @@ -532,7 +532,7 @@ ReplicationProtectedItemInner applyRecoveryPoint(String resourceName, String res * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - ReplicationProtectedItemInner applyRecoveryPoint(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItemInner applyRecoveryPoint(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ApplyRecoveryPointInput applyRecoveryPointInput, Context context); @@ -541,8 +541,8 @@ ReplicationProtectedItemInner applyRecoveryPoint(String resourceName, String res * * Operation to cancel the failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -553,7 +553,7 @@ ReplicationProtectedItemInner applyRecoveryPoint(String resourceName, String res */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ReplicationProtectedItemInner> beginFailoverCancel( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName); /** @@ -561,8 +561,8 @@ SyncPoller, ReplicationProtectedItemIn * * Operation to cancel the failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -574,7 +574,7 @@ SyncPoller, ReplicationProtectedItemIn */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ReplicationProtectedItemInner> beginFailoverCancel( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context); /** @@ -582,8 +582,8 @@ SyncPoller, ReplicationProtectedItemIn * * Operation to cancel the failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -593,7 +593,7 @@ SyncPoller, ReplicationProtectedItemIn * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - ReplicationProtectedItemInner failoverCancel(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItemInner failoverCancel(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName); /** @@ -601,8 +601,8 @@ ReplicationProtectedItemInner failoverCancel(String resourceName, String resourc * * Operation to cancel the failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -613,7 +613,7 @@ ReplicationProtectedItemInner failoverCancel(String resourceName, String resourc * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - ReplicationProtectedItemInner failoverCancel(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItemInner failoverCancel(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context); /** @@ -621,8 +621,8 @@ ReplicationProtectedItemInner failoverCancel(String resourceName, String resourc * * Operation to commit the failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -633,7 +633,7 @@ ReplicationProtectedItemInner failoverCancel(String resourceName, String resourc */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ReplicationProtectedItemInner> beginFailoverCommit( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName); /** @@ -641,8 +641,8 @@ SyncPoller, ReplicationProtectedItemIn * * Operation to commit the failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -654,7 +654,7 @@ SyncPoller, ReplicationProtectedItemIn */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ReplicationProtectedItemInner> beginFailoverCommit( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context); /** @@ -662,8 +662,8 @@ SyncPoller, ReplicationProtectedItemIn * * Operation to commit the failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -673,7 +673,7 @@ SyncPoller, ReplicationProtectedItemIn * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - ReplicationProtectedItemInner failoverCommit(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItemInner failoverCommit(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName); /** @@ -681,8 +681,8 @@ ReplicationProtectedItemInner failoverCommit(String resourceName, String resourc * * Operation to commit the failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -693,7 +693,7 @@ ReplicationProtectedItemInner failoverCommit(String resourceName, String resourc * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - ReplicationProtectedItemInner failoverCommit(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItemInner failoverCommit(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context); /** @@ -701,8 +701,8 @@ ReplicationProtectedItemInner failoverCommit(String resourceName, String resourc * * Operation to initiate a planned failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -714,7 +714,7 @@ ReplicationProtectedItemInner failoverCommit(String resourceName, String resourc */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ReplicationProtectedItemInner> beginPlannedFailover( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, PlannedFailoverInput failoverInput); /** @@ -722,8 +722,8 @@ SyncPoller, ReplicationProtectedItemIn * * Operation to initiate a planned failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -736,7 +736,7 @@ SyncPoller, ReplicationProtectedItemIn */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ReplicationProtectedItemInner> beginPlannedFailover( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, PlannedFailoverInput failoverInput, Context context); /** @@ -744,8 +744,8 @@ SyncPoller, ReplicationProtectedItemIn * * Operation to initiate a planned failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -756,7 +756,7 @@ SyncPoller, ReplicationProtectedItemIn * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - ReplicationProtectedItemInner plannedFailover(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItemInner plannedFailover(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, PlannedFailoverInput failoverInput); /** @@ -764,8 +764,8 @@ ReplicationProtectedItemInner plannedFailover(String resourceName, String resour * * Operation to initiate a planned failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -777,7 +777,7 @@ ReplicationProtectedItemInner plannedFailover(String resourceName, String resour * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - ReplicationProtectedItemInner plannedFailover(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItemInner plannedFailover(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, PlannedFailoverInput failoverInput, Context context); @@ -786,8 +786,8 @@ ReplicationProtectedItemInner plannedFailover(String resourceName, String resour * * The operation to disable replication on a replication protected item. This will also remove the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -798,7 +798,7 @@ ReplicationProtectedItemInner plannedFailover(String resourceName, String resour * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceName, String resourceGroupName, String fabricName, + SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, DisableProtectionInput disableProtectionInput); @@ -807,8 +807,8 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * * The operation to disable replication on a replication protected item. This will also remove the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -820,7 +820,7 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceName, String resourceGroupName, String fabricName, + SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, DisableProtectionInput disableProtectionInput, Context context); @@ -829,8 +829,8 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * * The operation to disable replication on a replication protected item. This will also remove the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -840,7 +840,7 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + void delete(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, DisableProtectionInput disableProtectionInput); /** @@ -848,8 +848,8 @@ void delete(String resourceName, String resourceGroupName, String fabricName, St * * The operation to disable replication on a replication protected item. This will also remove the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -860,7 +860,7 @@ void delete(String resourceName, String resourceGroupName, String fabricName, St * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + void delete(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, DisableProtectionInput disableProtectionInput, Context context); /** @@ -868,8 +868,8 @@ void delete(String resourceName, String resourceGroupName, String fabricName, St * * Operation to remove disk(s) from the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -881,7 +881,7 @@ void delete(String resourceName, String resourceGroupName, String fabricName, St */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ReplicationProtectedItemInner> beginRemoveDisks( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, RemoveDisksInput removeDisksInput); /** @@ -889,8 +889,8 @@ SyncPoller, ReplicationProtectedItemIn * * Operation to remove disk(s) from the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -903,7 +903,7 @@ SyncPoller, ReplicationProtectedItemIn */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ReplicationProtectedItemInner> beginRemoveDisks( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, RemoveDisksInput removeDisksInput, Context context); /** @@ -911,8 +911,8 @@ SyncPoller, ReplicationProtectedItemIn * * Operation to remove disk(s) from the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -923,7 +923,7 @@ SyncPoller, ReplicationProtectedItemIn * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - ReplicationProtectedItemInner removeDisks(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItemInner removeDisks(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, RemoveDisksInput removeDisksInput); /** @@ -931,8 +931,8 @@ ReplicationProtectedItemInner removeDisks(String resourceName, String resourceGr * * Operation to remove disk(s) from the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -944,7 +944,7 @@ ReplicationProtectedItemInner removeDisks(String resourceName, String resourceGr * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - ReplicationProtectedItemInner removeDisks(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItemInner removeDisks(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, RemoveDisksInput removeDisksInput, Context context); @@ -954,8 +954,8 @@ ReplicationProtectedItemInner removeDisks(String resourceName, String resourceGr * The operation to start resynchronize/repair replication for a replication protected item requiring * resynchronization. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric. * @param protectionContainerName The name of the container. * @param replicatedProtectedItemName The name of the replication protected item. @@ -966,7 +966,7 @@ ReplicationProtectedItemInner removeDisks(String resourceName, String resourceGr */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ReplicationProtectedItemInner> beginRepairReplication( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName); /** @@ -975,8 +975,8 @@ SyncPoller, ReplicationProtectedItemIn * The operation to start resynchronize/repair replication for a replication protected item requiring * resynchronization. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric. * @param protectionContainerName The name of the container. * @param replicatedProtectedItemName The name of the replication protected item. @@ -988,7 +988,7 @@ SyncPoller, ReplicationProtectedItemIn */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ReplicationProtectedItemInner> beginRepairReplication( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context); /** @@ -997,8 +997,8 @@ SyncPoller, ReplicationProtectedItemIn * The operation to start resynchronize/repair replication for a replication protected item requiring * resynchronization. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric. * @param protectionContainerName The name of the container. * @param replicatedProtectedItemName The name of the replication protected item. @@ -1008,7 +1008,7 @@ SyncPoller, ReplicationProtectedItemIn * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - ReplicationProtectedItemInner repairReplication(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItemInner repairReplication(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName); /** @@ -1017,8 +1017,8 @@ ReplicationProtectedItemInner repairReplication(String resourceName, String reso * The operation to start resynchronize/repair replication for a replication protected item requiring * resynchronization. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric. * @param protectionContainerName The name of the container. * @param replicatedProtectedItemName The name of the replication protected item. @@ -1029,7 +1029,7 @@ ReplicationProtectedItemInner repairReplication(String resourceName, String reso * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - ReplicationProtectedItemInner repairReplication(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItemInner repairReplication(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context); /** @@ -1037,8 +1037,8 @@ ReplicationProtectedItemInner repairReplication(String resourceName, String reso * * Operation to reprotect or reverse replicate a failed over replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1050,7 +1050,7 @@ ReplicationProtectedItemInner repairReplication(String resourceName, String reso */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ReplicationProtectedItemInner> beginReprotect( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ReverseReplicationInput reprotectInput); /** @@ -1058,8 +1058,8 @@ SyncPoller, ReplicationProtectedItemIn * * Operation to reprotect or reverse replicate a failed over replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1072,7 +1072,7 @@ SyncPoller, ReplicationProtectedItemIn */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ReplicationProtectedItemInner> beginReprotect( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ReverseReplicationInput reprotectInput, Context context); /** @@ -1080,8 +1080,8 @@ SyncPoller, ReplicationProtectedItemIn * * Operation to reprotect or reverse replicate a failed over replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1092,7 +1092,7 @@ SyncPoller, ReplicationProtectedItemIn * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - ReplicationProtectedItemInner reprotect(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItemInner reprotect(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ReverseReplicationInput reprotectInput); /** @@ -1100,8 +1100,8 @@ ReplicationProtectedItemInner reprotect(String resourceName, String resourceGrou * * Operation to reprotect or reverse replicate a failed over replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1113,7 +1113,7 @@ ReplicationProtectedItemInner reprotect(String resourceName, String resourceGrou * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - ReplicationProtectedItemInner reprotect(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItemInner reprotect(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ReverseReplicationInput reprotectInput, Context context); @@ -1122,8 +1122,8 @@ ReplicationProtectedItemInner reprotect(String resourceName, String resourceGrou * * Operation to resolve health issues of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1135,7 +1135,7 @@ ReplicationProtectedItemInner reprotect(String resourceName, String resourceGrou */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ReplicationProtectedItemInner> beginResolveHealthErrors( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ResolveHealthInput resolveHealthInput); /** @@ -1143,8 +1143,8 @@ SyncPoller, ReplicationProtectedItemIn * * Operation to resolve health issues of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1157,7 +1157,7 @@ SyncPoller, ReplicationProtectedItemIn */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ReplicationProtectedItemInner> beginResolveHealthErrors( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ResolveHealthInput resolveHealthInput, Context context); /** @@ -1165,8 +1165,8 @@ SyncPoller, ReplicationProtectedItemIn * * Operation to resolve health issues of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1177,7 +1177,7 @@ SyncPoller, ReplicationProtectedItemIn * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - ReplicationProtectedItemInner resolveHealthErrors(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItemInner resolveHealthErrors(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ResolveHealthInput resolveHealthInput); /** @@ -1185,8 +1185,8 @@ ReplicationProtectedItemInner resolveHealthErrors(String resourceName, String re * * Operation to resolve health issues of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1198,7 +1198,7 @@ ReplicationProtectedItemInner resolveHealthErrors(String resourceName, String re * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - ReplicationProtectedItemInner resolveHealthErrors(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItemInner resolveHealthErrors(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ResolveHealthInput resolveHealthInput, Context context); @@ -1207,8 +1207,8 @@ ReplicationProtectedItemInner resolveHealthErrors(String resourceName, String re * * Operation to initiate a switch provider of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1220,7 +1220,7 @@ ReplicationProtectedItemInner resolveHealthErrors(String resourceName, String re */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ReplicationProtectedItemInner> beginSwitchProvider( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, SwitchProviderInput switchProviderInput); /** @@ -1228,8 +1228,8 @@ SyncPoller, ReplicationProtectedItemIn * * Operation to initiate a switch provider of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1242,7 +1242,7 @@ SyncPoller, ReplicationProtectedItemIn */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ReplicationProtectedItemInner> beginSwitchProvider( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, SwitchProviderInput switchProviderInput, Context context); /** @@ -1250,8 +1250,8 @@ SyncPoller, ReplicationProtectedItemIn * * Operation to initiate a switch provider of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1262,7 +1262,7 @@ SyncPoller, ReplicationProtectedItemIn * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - ReplicationProtectedItemInner switchProvider(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItemInner switchProvider(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, SwitchProviderInput switchProviderInput); /** @@ -1270,8 +1270,8 @@ ReplicationProtectedItemInner switchProvider(String resourceName, String resourc * * Operation to initiate a switch provider of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1283,7 +1283,7 @@ ReplicationProtectedItemInner switchProvider(String resourceName, String resourc * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - ReplicationProtectedItemInner switchProvider(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItemInner switchProvider(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, SwitchProviderInput switchProviderInput, Context context); @@ -1292,8 +1292,8 @@ ReplicationProtectedItemInner switchProvider(String resourceName, String resourc * * Operation to perform a test failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1305,7 +1305,7 @@ ReplicationProtectedItemInner switchProvider(String resourceName, String resourc */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ReplicationProtectedItemInner> beginTestFailover( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, TestFailoverInput testfailoverInput); /** @@ -1313,8 +1313,8 @@ SyncPoller, ReplicationProtectedItemIn * * Operation to perform a test failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1327,7 +1327,7 @@ SyncPoller, ReplicationProtectedItemIn */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ReplicationProtectedItemInner> beginTestFailover( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, TestFailoverInput testfailoverInput, Context context); /** @@ -1335,8 +1335,8 @@ SyncPoller, ReplicationProtectedItemIn * * Operation to perform a test failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1347,7 +1347,7 @@ SyncPoller, ReplicationProtectedItemIn * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - ReplicationProtectedItemInner testFailover(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItemInner testFailover(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, TestFailoverInput testfailoverInput); /** @@ -1355,8 +1355,8 @@ ReplicationProtectedItemInner testFailover(String resourceName, String resourceG * * Operation to perform a test failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1368,7 +1368,7 @@ ReplicationProtectedItemInner testFailover(String resourceName, String resourceG * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - ReplicationProtectedItemInner testFailover(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItemInner testFailover(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, TestFailoverInput testfailoverInput, Context context); @@ -1377,8 +1377,8 @@ ReplicationProtectedItemInner testFailover(String resourceName, String resourceG * * Operation to clean up the test failover of a replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1390,7 +1390,7 @@ ReplicationProtectedItemInner testFailover(String resourceName, String resourceG */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ReplicationProtectedItemInner> beginTestFailoverCleanup( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, TestFailoverCleanupInput cleanupInput); /** @@ -1398,8 +1398,8 @@ SyncPoller, ReplicationProtectedItemIn * * Operation to clean up the test failover of a replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1412,7 +1412,7 @@ SyncPoller, ReplicationProtectedItemIn */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ReplicationProtectedItemInner> beginTestFailoverCleanup( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, TestFailoverCleanupInput cleanupInput, Context context); /** @@ -1420,8 +1420,8 @@ SyncPoller, ReplicationProtectedItemIn * * Operation to clean up the test failover of a replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1432,7 +1432,7 @@ SyncPoller, ReplicationProtectedItemIn * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - ReplicationProtectedItemInner testFailoverCleanup(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItemInner testFailoverCleanup(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, TestFailoverCleanupInput cleanupInput); /** @@ -1440,8 +1440,8 @@ ReplicationProtectedItemInner testFailoverCleanup(String resourceName, String re * * Operation to clean up the test failover of a replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1453,7 +1453,7 @@ ReplicationProtectedItemInner testFailoverCleanup(String resourceName, String re * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - ReplicationProtectedItemInner testFailoverCleanup(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItemInner testFailoverCleanup(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, TestFailoverCleanupInput cleanupInput, Context context); @@ -1462,8 +1462,8 @@ ReplicationProtectedItemInner testFailoverCleanup(String resourceName, String re * * Operation to initiate a failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1475,7 +1475,7 @@ ReplicationProtectedItemInner testFailoverCleanup(String resourceName, String re */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ReplicationProtectedItemInner> beginUnplannedFailover( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UnplannedFailoverInput failoverInput); /** @@ -1483,8 +1483,8 @@ SyncPoller, ReplicationProtectedItemIn * * Operation to initiate a failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1497,7 +1497,7 @@ SyncPoller, ReplicationProtectedItemIn */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ReplicationProtectedItemInner> beginUnplannedFailover( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UnplannedFailoverInput failoverInput, Context context); /** @@ -1505,8 +1505,8 @@ SyncPoller, ReplicationProtectedItemIn * * Operation to initiate a failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1517,7 +1517,7 @@ SyncPoller, ReplicationProtectedItemIn * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - ReplicationProtectedItemInner unplannedFailover(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItemInner unplannedFailover(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UnplannedFailoverInput failoverInput); /** @@ -1525,8 +1525,8 @@ ReplicationProtectedItemInner unplannedFailover(String resourceName, String reso * * Operation to initiate a failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1538,7 +1538,7 @@ ReplicationProtectedItemInner unplannedFailover(String resourceName, String reso * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - ReplicationProtectedItemInner unplannedFailover(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItemInner unplannedFailover(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UnplannedFailoverInput failoverInput, Context context); @@ -1547,8 +1547,8 @@ ReplicationProtectedItemInner unplannedFailover(String resourceName, String reso * * The operation to update appliance of an ASR replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1560,7 +1560,7 @@ ReplicationProtectedItemInner unplannedFailover(String resourceName, String reso */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ReplicationProtectedItemInner> beginUpdateAppliance( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateApplianceForReplicationProtectedItemInput applianceUpdateInput); /** @@ -1568,8 +1568,8 @@ SyncPoller, ReplicationProtectedItemIn * * The operation to update appliance of an ASR replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1582,7 +1582,7 @@ SyncPoller, ReplicationProtectedItemIn */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ReplicationProtectedItemInner> beginUpdateAppliance( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateApplianceForReplicationProtectedItemInput applianceUpdateInput, Context context); @@ -1591,8 +1591,8 @@ SyncPoller, ReplicationProtectedItemIn * * The operation to update appliance of an ASR replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1603,7 +1603,7 @@ SyncPoller, ReplicationProtectedItemIn * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - ReplicationProtectedItemInner updateAppliance(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItemInner updateAppliance(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateApplianceForReplicationProtectedItemInput applianceUpdateInput); @@ -1612,8 +1612,8 @@ ReplicationProtectedItemInner updateAppliance(String resourceName, String resour * * The operation to update appliance of an ASR replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1625,7 +1625,7 @@ ReplicationProtectedItemInner updateAppliance(String resourceName, String resour * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - ReplicationProtectedItemInner updateAppliance(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItemInner updateAppliance(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateApplianceForReplicationProtectedItemInput applianceUpdateInput, Context context); @@ -1635,8 +1635,8 @@ ReplicationProtectedItemInner updateAppliance(String resourceName, String resour * The operation to update(push update) the installed mobility service software on a replication protected item to * the latest available version. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric containing the protected item. * @param protectionContainerName The name of the container containing the protected item. * @param replicatedProtectedItemName The name of the protected item on which the agent is to be updated. @@ -1648,7 +1648,7 @@ ReplicationProtectedItemInner updateAppliance(String resourceName, String resour */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ReplicationProtectedItemInner> beginUpdateMobilityService( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateMobilityServiceRequest updateMobilityServiceRequest); /** @@ -1657,8 +1657,8 @@ SyncPoller, ReplicationProtectedItemIn * The operation to update(push update) the installed mobility service software on a replication protected item to * the latest available version. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric containing the protected item. * @param protectionContainerName The name of the container containing the protected item. * @param replicatedProtectedItemName The name of the protected item on which the agent is to be updated. @@ -1671,7 +1671,7 @@ SyncPoller, ReplicationProtectedItemIn */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ReplicationProtectedItemInner> beginUpdateMobilityService( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateMobilityServiceRequest updateMobilityServiceRequest, Context context); /** @@ -1680,8 +1680,8 @@ SyncPoller, ReplicationProtectedItemIn * The operation to update(push update) the installed mobility service software on a replication protected item to * the latest available version. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric containing the protected item. * @param protectionContainerName The name of the container containing the protected item. * @param replicatedProtectedItemName The name of the protected item on which the agent is to be updated. @@ -1692,7 +1692,7 @@ SyncPoller, ReplicationProtectedItemIn * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - ReplicationProtectedItemInner updateMobilityService(String resourceName, String resourceGroupName, + ReplicationProtectedItemInner updateMobilityService(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateMobilityServiceRequest updateMobilityServiceRequest); @@ -1702,8 +1702,8 @@ ReplicationProtectedItemInner updateMobilityService(String resourceName, String * The operation to update(push update) the installed mobility service software on a replication protected item to * the latest available version. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric containing the protected item. * @param protectionContainerName The name of the container containing the protected item. * @param replicatedProtectedItemName The name of the protected item on which the agent is to be updated. @@ -1715,7 +1715,7 @@ ReplicationProtectedItemInner updateMobilityService(String resourceName, String * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - ReplicationProtectedItemInner updateMobilityService(String resourceName, String resourceGroupName, + ReplicationProtectedItemInner updateMobilityService(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateMobilityServiceRequest updateMobilityServiceRequest, Context context); @@ -1724,8 +1724,8 @@ ReplicationProtectedItemInner updateMobilityService(String resourceName, String * * Gets the list of ASR replication protected items in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1733,15 +1733,15 @@ ReplicationProtectedItemInner updateMobilityService(String resourceName, String * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceName, String resourceGroupName); + PagedIterable list(String resourceGroupName, String resourceName); /** * Gets the list of replication protected items. * * Gets the list of ASR replication protected items in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param skipToken The pagination token. Possible values: "FabricId" or "FabricId_CloudId" or null. * @param filter OData filter options. * @param context The context to associate with this operation. @@ -1752,6 +1752,6 @@ ReplicationProtectedItemInner updateMobilityService(String resourceName, String * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceName, String resourceGroupName, String skipToken, + PagedIterable list(String resourceGroupName, String resourceName, String skipToken, String filter, Context context); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationProtectionClustersClient.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationProtectionClustersClient.java new file mode 100644 index 000000000000..bf50f3009c77 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationProtectionClustersClient.java @@ -0,0 +1,858 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.ReplicationProtectionClusterInner; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ApplyClusterRecoveryPointInput; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ClusterTestFailoverCleanupInput; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ClusterTestFailoverInput; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ClusterUnplannedFailoverInput; + +/** + * An instance of this class provides access to all the operations defined in ReplicationProtectionClustersClient. + */ +public interface ReplicationProtectionClustersClient { + /** + * Gets the list of Replication protection clusters in fabric, container. + * + * Gets the list of ASR replication protected clusters in the protection container. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of ASR replication protected clusters in the protection container as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByReplicationProtectionContainers(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName); + + /** + * Gets the list of Replication protection clusters in fabric, container. + * + * Gets the list of ASR replication protected clusters in the protection container. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of ASR replication protected clusters in the protection container as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByReplicationProtectionContainers(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, Context context); + + /** + * Gets the details of a Replication protection cluster. + * + * Gets the details of an ASR replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the details of an ASR replication protection cluster along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName, Context context); + + /** + * Gets the details of a Replication protection cluster. + * + * Gets the details of an ASR replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the details of an ASR replication protection cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ReplicationProtectionClusterInner get(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName); + + /** + * Create Replication protection Cluster. + * + * The operation to create an ASR replication protection cluster item. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param replicationProtectionCluster Create replication protection cluster Input. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ReplicationProtectionClusterInner> beginCreate( + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, + String replicationProtectionClusterName, ReplicationProtectionClusterInner replicationProtectionCluster); + + /** + * Create Replication protection Cluster. + * + * The operation to create an ASR replication protection cluster item. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param replicationProtectionCluster Create replication protection cluster Input. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ReplicationProtectionClusterInner> beginCreate( + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, + String replicationProtectionClusterName, ReplicationProtectionClusterInner replicationProtectionCluster, + Context context); + + /** + * Create Replication protection Cluster. + * + * The operation to create an ASR replication protection cluster item. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param replicationProtectionCluster Create replication protection cluster Input. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ReplicationProtectionClusterInner create(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, + ReplicationProtectionClusterInner replicationProtectionCluster); + + /** + * Create Replication protection Cluster. + * + * The operation to create an ASR replication protection cluster item. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param replicationProtectionCluster Create replication protection cluster Input. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ReplicationProtectionClusterInner create(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, + ReplicationProtectionClusterInner replicationProtectionCluster, Context context); + + /** + * Purge the replication protection cluster. + * + * The operation to purge the replication protection cluster. This operation will force delete the replication + * protection cluster. Use the remove operation on replication protection cluster to perform a clean disable + * replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginPurge(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName); + + /** + * Purge the replication protection cluster. + * + * The operation to purge the replication protection cluster. This operation will force delete the replication + * protection cluster. Use the remove operation on replication protection cluster to perform a clean disable + * replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginPurge(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, Context context); + + /** + * Purge the replication protection cluster. + * + * The operation to purge the replication protection cluster. This operation will force delete the replication + * protection cluster. Use the remove operation on replication protection cluster to perform a clean disable + * replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void purge(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, + String replicationProtectionClusterName); + + /** + * Purge the replication protection cluster. + * + * The operation to purge the replication protection cluster. This operation will force delete the replication + * protection cluster. Use the remove operation on replication protection cluster to perform a clean disable + * replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void purge(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, + String replicationProtectionClusterName, Context context); + + /** + * Execute the change recovery point operation for cluster. + * + * Operation to apply a new cluster recovery point on the Protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param applyClusterRecoveryPointInput Apply recovery point input. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ReplicationProtectionClusterInner> + beginApplyRecoveryPoint(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, + ApplyClusterRecoveryPointInput applyClusterRecoveryPointInput); + + /** + * Execute the change recovery point operation for cluster. + * + * Operation to apply a new cluster recovery point on the Protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param applyClusterRecoveryPointInput Apply recovery point input. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ReplicationProtectionClusterInner> + beginApplyRecoveryPoint(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, + ApplyClusterRecoveryPointInput applyClusterRecoveryPointInput, Context context); + + /** + * Execute the change recovery point operation for cluster. + * + * Operation to apply a new cluster recovery point on the Protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param applyClusterRecoveryPointInput Apply recovery point input. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ReplicationProtectionClusterInner applyRecoveryPoint(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName, + ApplyClusterRecoveryPointInput applyClusterRecoveryPointInput); + + /** + * Execute the change recovery point operation for cluster. + * + * Operation to apply a new cluster recovery point on the Protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param applyClusterRecoveryPointInput Apply recovery point input. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ReplicationProtectionClusterInner applyRecoveryPoint(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName, + ApplyClusterRecoveryPointInput applyClusterRecoveryPointInput, Context context); + + /** + * Execute commit failover for cluster. + * + * Operation to initiate commit failover of the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ReplicationProtectionClusterInner> beginFailoverCommit( + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, + String replicationProtectionClusterName); + + /** + * Execute commit failover for cluster. + * + * Operation to initiate commit failover of the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ReplicationProtectionClusterInner> beginFailoverCommit( + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, + String replicationProtectionClusterName, Context context); + + /** + * Execute commit failover for cluster. + * + * Operation to initiate commit failover of the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ReplicationProtectionClusterInner failoverCommit(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName); + + /** + * Execute commit failover for cluster. + * + * Operation to initiate commit failover of the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ReplicationProtectionClusterInner failoverCommit(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, Context context); + + /** + * Tracks the Replication protection cluster async operation. + * + * Track the results of an asynchronous operation on the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param jobId job id to track. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getOperationResultsWithResponse(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicationProtectionClusterName, + String jobId, Context context); + + /** + * Tracks the Replication protection cluster async operation. + * + * Track the results of an asynchronous operation on the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param jobId job id to track. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ReplicationProtectionClusterInner getOperationResults(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName, String jobId); + + /** + * Resynchronize or repair replication of protection cluster. + * + * The operation to repair replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ReplicationProtectionClusterInner> beginRepairReplication( + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, + String replicationProtectionClusterName); + + /** + * Resynchronize or repair replication of protection cluster. + * + * The operation to repair replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ReplicationProtectionClusterInner> beginRepairReplication( + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, + String replicationProtectionClusterName, Context context); + + /** + * Resynchronize or repair replication of protection cluster. + * + * The operation to repair replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ReplicationProtectionClusterInner repairReplication(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName); + + /** + * Resynchronize or repair replication of protection cluster. + * + * The operation to repair replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ReplicationProtectionClusterInner repairReplication(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName, Context context); + + /** + * Execute test failover for cluster. + * + * Operation to initiate a failover of the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param failoverInput Cluster test failover input body. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ReplicationProtectionClusterInner> beginTestFailover( + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, + String replicationProtectionClusterName, ClusterTestFailoverInput failoverInput); + + /** + * Execute test failover for cluster. + * + * Operation to initiate a failover of the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param failoverInput Cluster test failover input body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ReplicationProtectionClusterInner> beginTestFailover( + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, + String replicationProtectionClusterName, ClusterTestFailoverInput failoverInput, Context context); + + /** + * Execute test failover for cluster. + * + * Operation to initiate a failover of the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param failoverInput Cluster test failover input body. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ReplicationProtectionClusterInner testFailover(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, + ClusterTestFailoverInput failoverInput); + + /** + * Execute test failover for cluster. + * + * Operation to initiate a failover of the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param failoverInput Cluster test failover input body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ReplicationProtectionClusterInner testFailover(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, ClusterTestFailoverInput failoverInput, + Context context); + + /** + * Execute test failover cleanup for cluster. + * + * Operation to clean up the test failover of a replication protected cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param cleanupInput Test failover cleanup input. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ReplicationProtectionClusterInner> + beginTestFailoverCleanup(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, + ClusterTestFailoverCleanupInput cleanupInput); + + /** + * Execute test failover cleanup for cluster. + * + * Operation to clean up the test failover of a replication protected cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param cleanupInput Test failover cleanup input. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ReplicationProtectionClusterInner> + beginTestFailoverCleanup(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, + ClusterTestFailoverCleanupInput cleanupInput, Context context); + + /** + * Execute test failover cleanup for cluster. + * + * Operation to clean up the test failover of a replication protected cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param cleanupInput Test failover cleanup input. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ReplicationProtectionClusterInner testFailoverCleanup(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName, + ClusterTestFailoverCleanupInput cleanupInput); + + /** + * Execute test failover cleanup for cluster. + * + * Operation to clean up the test failover of a replication protected cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param cleanupInput Test failover cleanup input. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ReplicationProtectionClusterInner testFailoverCleanup(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName, + ClusterTestFailoverCleanupInput cleanupInput, Context context); + + /** + * Execute unplanned cluster failover. + * + * Operation to initiate a failover of the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param failoverInput Failover input. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ReplicationProtectionClusterInner> beginUnplannedFailover( + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, + String replicationProtectionClusterName, ClusterUnplannedFailoverInput failoverInput); + + /** + * Execute unplanned cluster failover. + * + * Operation to initiate a failover of the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param failoverInput Failover input. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ReplicationProtectionClusterInner> beginUnplannedFailover( + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, + String replicationProtectionClusterName, ClusterUnplannedFailoverInput failoverInput, Context context); + + /** + * Execute unplanned cluster failover. + * + * Operation to initiate a failover of the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param failoverInput Failover input. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ReplicationProtectionClusterInner unplannedFailover(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName, + ClusterUnplannedFailoverInput failoverInput); + + /** + * Execute unplanned cluster failover. + * + * Operation to initiate a failover of the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param failoverInput Failover input. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ReplicationProtectionClusterInner unplannedFailover(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName, + ClusterUnplannedFailoverInput failoverInput, Context context); + + /** + * Gets the list of Replication protection clusters in vault. + * + * Gets the list of ASR replication protected clusters in the vault. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of ASR replication protected clusters in the vault as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String resourceName); + + /** + * Gets the list of Replication protection clusters in vault. + * + * Gets the list of ASR replication protected clusters in the vault. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param skipToken The pagination token. Possible values: "FabricId" or "FabricId_CloudId" or null. + * @param filter OData filter options. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of ASR replication protected clusters in the vault as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String resourceName, + String skipToken, String filter, Context context); +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationProtectionContainerMappingsClient.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationProtectionContainerMappingsClient.java index 1803e3473fa0..554b9f3c9d62 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationProtectionContainerMappingsClient.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationProtectionContainerMappingsClient.java @@ -26,8 +26,8 @@ public interface ReplicationProtectionContainerMappingsClient { * * Lists the protection container mappings for a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -36,16 +36,16 @@ public interface ReplicationProtectionContainerMappingsClient { * @return protection container mapping collection class as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByReplicationProtectionContainers(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName); + PagedIterable listByReplicationProtectionContainers(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName); /** * Gets the list of protection container mappings for a protection container. * * Lists the protection container mappings for a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param context The context to associate with this operation. @@ -55,16 +55,16 @@ PagedIterable listByReplicationProtectionContai * @return protection container mapping collection class as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByReplicationProtectionContainers(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, Context context); + PagedIterable listByReplicationProtectionContainers(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, Context context); /** * Gets a protection container mapping. * * Gets the details of a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection Container mapping name. @@ -75,7 +75,7 @@ PagedIterable listByReplicationProtectionContai * @return the details of a protection container mapping along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceName, String resourceGroupName, + Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, Context context); /** @@ -83,8 +83,8 @@ Response getWithResponse(String resourceName, S * * Gets the details of a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection Container mapping name. @@ -94,7 +94,7 @@ Response getWithResponse(String resourceName, S * @return the details of a protection container mapping. */ @ServiceMethod(returns = ReturnType.SINGLE) - ProtectionContainerMappingInner get(String resourceName, String resourceGroupName, String fabricName, + ProtectionContainerMappingInner get(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName); /** @@ -102,8 +102,8 @@ ProtectionContainerMappingInner get(String resourceName, String resourceGroupNam * * The operation to create a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -115,7 +115,7 @@ ProtectionContainerMappingInner get(String resourceName, String resourceGroupNam */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ProtectionContainerMappingInner> beginCreate( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, CreateProtectionContainerMappingInput creationInput); /** @@ -123,8 +123,8 @@ SyncPoller, ProtectionContainerMappi * * The operation to create a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -137,7 +137,7 @@ SyncPoller, ProtectionContainerMappi */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ProtectionContainerMappingInner> beginCreate( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, CreateProtectionContainerMappingInput creationInput, Context context); /** @@ -145,8 +145,8 @@ SyncPoller, ProtectionContainerMappi * * The operation to create a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -157,7 +157,7 @@ SyncPoller, ProtectionContainerMappi * @return protection container mapping object. */ @ServiceMethod(returns = ReturnType.SINGLE) - ProtectionContainerMappingInner create(String resourceName, String resourceGroupName, String fabricName, + ProtectionContainerMappingInner create(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, CreateProtectionContainerMappingInput creationInput); /** @@ -165,8 +165,8 @@ ProtectionContainerMappingInner create(String resourceName, String resourceGroup * * The operation to create a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -178,7 +178,7 @@ ProtectionContainerMappingInner create(String resourceName, String resourceGroup * @return protection container mapping object. */ @ServiceMethod(returns = ReturnType.SINGLE) - ProtectionContainerMappingInner create(String resourceName, String resourceGroupName, String fabricName, + ProtectionContainerMappingInner create(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, CreateProtectionContainerMappingInput creationInput, Context context); @@ -187,8 +187,8 @@ ProtectionContainerMappingInner create(String resourceName, String resourceGroup * * The operation to purge(force delete) a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -198,7 +198,7 @@ ProtectionContainerMappingInner create(String resourceName, String resourceGroup * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginPurge(String resourceName, String resourceGroupName, String fabricName, + SyncPoller, Void> beginPurge(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName); /** @@ -206,8 +206,8 @@ SyncPoller, Void> beginPurge(String resourceName, String resour * * The operation to purge(force delete) a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -218,7 +218,7 @@ SyncPoller, Void> beginPurge(String resourceName, String resour * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginPurge(String resourceName, String resourceGroupName, String fabricName, + SyncPoller, Void> beginPurge(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, Context context); /** @@ -226,8 +226,8 @@ SyncPoller, Void> beginPurge(String resourceName, String resour * * The operation to purge(force delete) a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -236,7 +236,7 @@ SyncPoller, Void> beginPurge(String resourceName, String resour * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void purge(String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + void purge(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName); /** @@ -244,8 +244,8 @@ void purge(String resourceName, String resourceGroupName, String fabricName, Str * * The operation to purge(force delete) a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -255,7 +255,7 @@ void purge(String resourceName, String resourceGroupName, String fabricName, Str * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void purge(String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + void purge(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, Context context); /** @@ -263,8 +263,8 @@ void purge(String resourceName, String resourceGroupName, String fabricName, Str * * The operation to update protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -276,7 +276,7 @@ void purge(String resourceName, String resourceGroupName, String fabricName, Str */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ProtectionContainerMappingInner> beginUpdate( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, UpdateProtectionContainerMappingInput updateInput); /** @@ -284,8 +284,8 @@ SyncPoller, ProtectionContainerMappi * * The operation to update protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -298,7 +298,7 @@ SyncPoller, ProtectionContainerMappi */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ProtectionContainerMappingInner> beginUpdate( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, UpdateProtectionContainerMappingInput updateInput, Context context); /** @@ -306,8 +306,8 @@ SyncPoller, ProtectionContainerMappi * * The operation to update protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -318,7 +318,7 @@ SyncPoller, ProtectionContainerMappi * @return protection container mapping object. */ @ServiceMethod(returns = ReturnType.SINGLE) - ProtectionContainerMappingInner update(String resourceName, String resourceGroupName, String fabricName, + ProtectionContainerMappingInner update(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, UpdateProtectionContainerMappingInput updateInput); /** @@ -326,8 +326,8 @@ ProtectionContainerMappingInner update(String resourceName, String resourceGroup * * The operation to update protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -339,7 +339,7 @@ ProtectionContainerMappingInner update(String resourceName, String resourceGroup * @return protection container mapping object. */ @ServiceMethod(returns = ReturnType.SINGLE) - ProtectionContainerMappingInner update(String resourceName, String resourceGroupName, String fabricName, + ProtectionContainerMappingInner update(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, UpdateProtectionContainerMappingInput updateInput, Context context); @@ -348,8 +348,8 @@ ProtectionContainerMappingInner update(String resourceName, String resourceGroup * * The operation to delete or remove a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -360,7 +360,7 @@ ProtectionContainerMappingInner update(String resourceName, String resourceGroup * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceName, String resourceGroupName, String fabricName, + SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, RemoveProtectionContainerMappingInput removalInput); /** @@ -368,8 +368,8 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * * The operation to delete or remove a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -381,7 +381,7 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceName, String resourceGroupName, String fabricName, + SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, RemoveProtectionContainerMappingInput removalInput, Context context); @@ -390,8 +390,8 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * * The operation to delete or remove a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -401,7 +401,7 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + void delete(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, RemoveProtectionContainerMappingInput removalInput); /** @@ -409,8 +409,8 @@ void delete(String resourceName, String resourceGroupName, String fabricName, St * * The operation to delete or remove a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -421,7 +421,7 @@ void delete(String resourceName, String resourceGroupName, String fabricName, St * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + void delete(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, RemoveProtectionContainerMappingInput removalInput, Context context); /** @@ -429,23 +429,23 @@ void delete(String resourceName, String resourceGroupName, String fabricName, St * * Lists the protection container mappings in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return protection container mapping collection class as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceName, String resourceGroupName); + PagedIterable list(String resourceGroupName, String resourceName); /** * Gets the list of all protection container mappings in a vault. * * Lists the protection container mappings in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -453,5 +453,5 @@ void delete(String resourceName, String resourceGroupName, String fabricName, St * @return protection container mapping collection class as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceName, String resourceGroupName, Context context); + PagedIterable list(String resourceGroupName, String resourceName, Context context); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationProtectionContainersClient.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationProtectionContainersClient.java index 4d6262469e68..24ccdd8c00c5 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationProtectionContainersClient.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationProtectionContainersClient.java @@ -14,6 +14,7 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.ProtectionContainerInner; import com.azure.resourcemanager.recoveryservicessiterecovery.models.CreateProtectionContainerInput; import com.azure.resourcemanager.recoveryservicessiterecovery.models.DiscoverProtectableItemRequest; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.SwitchClusterProtectionInput; import com.azure.resourcemanager.recoveryservicessiterecovery.models.SwitchProtectionInput; /** @@ -25,8 +26,8 @@ public interface ReplicationProtectionContainersClient { * * Lists the protection containers in the specified fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -34,7 +35,7 @@ public interface ReplicationProtectionContainersClient { * @return protection Container collection as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByReplicationFabrics(String resourceName, String resourceGroupName, + PagedIterable listByReplicationFabrics(String resourceGroupName, String resourceName, String fabricName); /** @@ -42,8 +43,8 @@ PagedIterable listByReplicationFabrics(String resource * * Lists the protection containers in the specified fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -52,7 +53,7 @@ PagedIterable listByReplicationFabrics(String resource * @return protection Container collection as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByReplicationFabrics(String resourceName, String resourceGroupName, + PagedIterable listByReplicationFabrics(String resourceGroupName, String resourceName, String fabricName, Context context); /** @@ -60,8 +61,8 @@ PagedIterable listByReplicationFabrics(String resource * * Gets the details of a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param context The context to associate with this operation. @@ -71,7 +72,7 @@ PagedIterable listByReplicationFabrics(String resource * @return the details of a protection container along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceName, String resourceGroupName, String fabricName, + Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, Context context); /** @@ -79,8 +80,8 @@ Response getWithResponse(String resourceName, String r * * Gets the details of a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -89,7 +90,7 @@ Response getWithResponse(String resourceName, String r * @return the details of a protection container. */ @ServiceMethod(returns = ReturnType.SINGLE) - ProtectionContainerInner get(String resourceName, String resourceGroupName, String fabricName, + ProtectionContainerInner get(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName); /** @@ -97,8 +98,8 @@ ProtectionContainerInner get(String resourceName, String resourceGroupName, Stri * * Operation to create a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric ARM name. * @param protectionContainerName Unique protection container ARM name. * @param creationInput Creation input. @@ -108,8 +109,8 @@ ProtectionContainerInner get(String resourceName, String resourceGroupName, Stri * @return the {@link SyncPoller} for polling of protection container details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ProtectionContainerInner> beginCreate(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, + SyncPoller, ProtectionContainerInner> beginCreate(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, CreateProtectionContainerInput creationInput); /** @@ -117,8 +118,8 @@ SyncPoller, ProtectionContainerInner> begin * * Operation to create a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric ARM name. * @param protectionContainerName Unique protection container ARM name. * @param creationInput Creation input. @@ -129,8 +130,8 @@ SyncPoller, ProtectionContainerInner> begin * @return the {@link SyncPoller} for polling of protection container details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ProtectionContainerInner> beginCreate(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, + SyncPoller, ProtectionContainerInner> beginCreate(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, CreateProtectionContainerInput creationInput, Context context); /** @@ -138,8 +139,8 @@ SyncPoller, ProtectionContainerInner> begin * * Operation to create a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric ARM name. * @param protectionContainerName Unique protection container ARM name. * @param creationInput Creation input. @@ -149,7 +150,7 @@ SyncPoller, ProtectionContainerInner> begin * @return protection container details. */ @ServiceMethod(returns = ReturnType.SINGLE) - ProtectionContainerInner create(String resourceName, String resourceGroupName, String fabricName, + ProtectionContainerInner create(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, CreateProtectionContainerInput creationInput); /** @@ -157,8 +158,8 @@ ProtectionContainerInner create(String resourceName, String resourceGroupName, S * * Operation to create a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric ARM name. * @param protectionContainerName Unique protection container ARM name. * @param creationInput Creation input. @@ -169,7 +170,7 @@ ProtectionContainerInner create(String resourceName, String resourceGroupName, S * @return protection container details. */ @ServiceMethod(returns = ReturnType.SINGLE) - ProtectionContainerInner create(String resourceName, String resourceGroupName, String fabricName, + ProtectionContainerInner create(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, CreateProtectionContainerInput creationInput, Context context); /** @@ -177,8 +178,8 @@ ProtectionContainerInner create(String resourceName, String resourceGroupName, S * * The operation to a add a protectable item to a protection container(Add physical server). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric. * @param protectionContainerName The name of the protection container. * @param discoverProtectableItemRequest The request object to add a protectable item. @@ -189,7 +190,7 @@ ProtectionContainerInner create(String resourceName, String resourceGroupName, S */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ProtectionContainerInner> beginDiscoverProtectableItem( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, DiscoverProtectableItemRequest discoverProtectableItemRequest); /** @@ -197,8 +198,8 @@ SyncPoller, ProtectionContainerInner> begin * * The operation to a add a protectable item to a protection container(Add physical server). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric. * @param protectionContainerName The name of the protection container. * @param discoverProtectableItemRequest The request object to add a protectable item. @@ -210,7 +211,7 @@ SyncPoller, ProtectionContainerInner> begin */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ProtectionContainerInner> beginDiscoverProtectableItem( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, DiscoverProtectableItemRequest discoverProtectableItemRequest, Context context); /** @@ -218,8 +219,8 @@ SyncPoller, ProtectionContainerInner> begin * * The operation to a add a protectable item to a protection container(Add physical server). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric. * @param protectionContainerName The name of the protection container. * @param discoverProtectableItemRequest The request object to add a protectable item. @@ -229,7 +230,7 @@ SyncPoller, ProtectionContainerInner> begin * @return protection container details. */ @ServiceMethod(returns = ReturnType.SINGLE) - ProtectionContainerInner discoverProtectableItem(String resourceName, String resourceGroupName, String fabricName, + ProtectionContainerInner discoverProtectableItem(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, DiscoverProtectableItemRequest discoverProtectableItemRequest); /** @@ -237,8 +238,8 @@ ProtectionContainerInner discoverProtectableItem(String resourceName, String res * * The operation to a add a protectable item to a protection container(Add physical server). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric. * @param protectionContainerName The name of the protection container. * @param discoverProtectableItemRequest The request object to add a protectable item. @@ -249,7 +250,7 @@ ProtectionContainerInner discoverProtectableItem(String resourceName, String res * @return protection container details. */ @ServiceMethod(returns = ReturnType.SINGLE) - ProtectionContainerInner discoverProtectableItem(String resourceName, String resourceGroupName, String fabricName, + ProtectionContainerInner discoverProtectableItem(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, DiscoverProtectableItemRequest discoverProtectableItemRequest, Context context); /** @@ -257,8 +258,8 @@ ProtectionContainerInner discoverProtectableItem(String resourceName, String res * * Operation to remove a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric ARM name. * @param protectionContainerName Unique protection container ARM name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -267,7 +268,7 @@ ProtectionContainerInner discoverProtectableItem(String resourceName, String res * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceName, String resourceGroupName, String fabricName, + SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName); /** @@ -275,8 +276,8 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * * Operation to remove a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric ARM name. * @param protectionContainerName Unique protection container ARM name. * @param context The context to associate with this operation. @@ -286,7 +287,7 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceName, String resourceGroupName, String fabricName, + SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, Context context); /** @@ -294,8 +295,8 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * * Operation to remove a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric ARM name. * @param protectionContainerName Unique protection container ARM name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -303,15 +304,15 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceName, String resourceGroupName, String fabricName, String protectionContainerName); + void delete(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName); /** * Removes a protection container. * * Operation to remove a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric ARM name. * @param protectionContainerName Unique protection container ARM name. * @param context The context to associate with this operation. @@ -320,16 +321,96 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + void delete(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, Context context); + /** + * Switches protection from one container to another. + * + * Operation to switch protection from one container to another. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param switchInput Switch protection input. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of protection container details. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ProtectionContainerInner> beginSwitchClusterProtection( + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, + SwitchClusterProtectionInput switchInput); + + /** + * Switches protection from one container to another. + * + * Operation to switch protection from one container to another. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param switchInput Switch protection input. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of protection container details. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ProtectionContainerInner> beginSwitchClusterProtection( + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, + SwitchClusterProtectionInput switchInput, Context context); + + /** + * Switches protection from one container to another. + * + * Operation to switch protection from one container to another. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param switchInput Switch protection input. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return protection container details. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ProtectionContainerInner switchClusterProtection(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, SwitchClusterProtectionInput switchInput); + + /** + * Switches protection from one container to another. + * + * Operation to switch protection from one container to another. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param switchInput Switch protection input. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return protection container details. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ProtectionContainerInner switchClusterProtection(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, SwitchClusterProtectionInput switchInput, Context context); + /** * Switches protection from one container to another or one replication provider to another. * * Operation to switch protection from one container to another or one replication provider to another. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param switchInput Switch protection input. @@ -340,7 +421,7 @@ void delete(String resourceName, String resourceGroupName, String fabricName, St */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ProtectionContainerInner> beginSwitchProtection( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, SwitchProtectionInput switchInput); /** @@ -348,8 +429,8 @@ SyncPoller, ProtectionContainerInner> begin * * Operation to switch protection from one container to another or one replication provider to another. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param switchInput Switch protection input. @@ -361,7 +442,7 @@ SyncPoller, ProtectionContainerInner> begin */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ProtectionContainerInner> beginSwitchProtection( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, SwitchProtectionInput switchInput, Context context); /** @@ -369,8 +450,8 @@ SyncPoller, ProtectionContainerInner> begin * * Operation to switch protection from one container to another or one replication provider to another. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param switchInput Switch protection input. @@ -380,7 +461,7 @@ SyncPoller, ProtectionContainerInner> begin * @return protection container details. */ @ServiceMethod(returns = ReturnType.SINGLE) - ProtectionContainerInner switchProtection(String resourceName, String resourceGroupName, String fabricName, + ProtectionContainerInner switchProtection(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, SwitchProtectionInput switchInput); /** @@ -388,8 +469,8 @@ ProtectionContainerInner switchProtection(String resourceName, String resourceGr * * Operation to switch protection from one container to another or one replication provider to another. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param switchInput Switch protection input. @@ -400,7 +481,7 @@ ProtectionContainerInner switchProtection(String resourceName, String resourceGr * @return protection container details. */ @ServiceMethod(returns = ReturnType.SINGLE) - ProtectionContainerInner switchProtection(String resourceName, String resourceGroupName, String fabricName, + ProtectionContainerInner switchProtection(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, SwitchProtectionInput switchInput, Context context); /** @@ -408,23 +489,23 @@ ProtectionContainerInner switchProtection(String resourceName, String resourceGr * * Lists the protection containers in a vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return protection Container collection as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceName, String resourceGroupName); + PagedIterable list(String resourceGroupName, String resourceName); /** * Gets the list of all protection containers in a vault. * * Lists the protection containers in a vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -432,5 +513,5 @@ ProtectionContainerInner switchProtection(String resourceName, String resourceGr * @return protection Container collection as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceName, String resourceGroupName, Context context); + PagedIterable list(String resourceGroupName, String resourceName, Context context); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationProtectionIntentsClient.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationProtectionIntentsClient.java index 290d6a9e6aa3..6f3f1388128f 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationProtectionIntentsClient.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationProtectionIntentsClient.java @@ -21,8 +21,8 @@ public interface ReplicationProtectionIntentsClient { * * Gets the list of ASR replication protection intent objects in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -30,15 +30,15 @@ public interface ReplicationProtectionIntentsClient { * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceName, String resourceGroupName); + PagedIterable list(String resourceGroupName, String resourceName); /** * Gets the list of replication protection intent objects. * * Gets the list of ASR replication protection intent objects in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param skipToken The pagination token. * @param takeToken The page size. * @param context The context to associate with this operation. @@ -49,7 +49,7 @@ public interface ReplicationProtectionIntentsClient { * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceName, String resourceGroupName, + PagedIterable list(String resourceGroupName, String resourceName, String skipToken, String takeToken, Context context); /** @@ -57,8 +57,8 @@ PagedIterable list(String resourceName, String * * Gets the details of an ASR replication protection intent. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param intentObjectName Replication protection intent name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -67,7 +67,7 @@ PagedIterable list(String resourceName, String * @return the details of an ASR replication protection intent along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceName, String resourceGroupName, + Response getWithResponse(String resourceGroupName, String resourceName, String intentObjectName, Context context); /** @@ -75,8 +75,8 @@ Response getWithResponse(String resourceName, * * Gets the details of an ASR replication protection intent. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param intentObjectName Replication protection intent name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -84,15 +84,15 @@ Response getWithResponse(String resourceName, * @return the details of an ASR replication protection intent. */ @ServiceMethod(returns = ReturnType.SINGLE) - ReplicationProtectionIntentInner get(String resourceName, String resourceGroupName, String intentObjectName); + ReplicationProtectionIntentInner get(String resourceGroupName, String resourceName, String intentObjectName); /** * Create protection intent Resource. * * The operation to create an ASR replication protection intent item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param intentObjectName A name for the replication protection item. * @param input Create Protection Intent Input. * @param context The context to associate with this operation. @@ -102,7 +102,7 @@ Response getWithResponse(String resourceName, * @return replication protection intent along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createWithResponse(String resourceName, String resourceGroupName, + Response createWithResponse(String resourceGroupName, String resourceName, String intentObjectName, CreateProtectionIntentInput input, Context context); /** @@ -110,8 +110,8 @@ Response createWithResponse(String resourceNam * * The operation to create an ASR replication protection intent item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param intentObjectName A name for the replication protection item. * @param input Create Protection Intent Input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -120,6 +120,6 @@ Response createWithResponse(String resourceNam * @return replication protection intent. */ @ServiceMethod(returns = ReturnType.SINGLE) - ReplicationProtectionIntentInner create(String resourceName, String resourceGroupName, String intentObjectName, + ReplicationProtectionIntentInner create(String resourceGroupName, String resourceName, String intentObjectName, CreateProtectionIntentInput input); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationRecoveryPlansClient.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationRecoveryPlansClient.java index a42695108cb3..55601370e718 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationRecoveryPlansClient.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationRecoveryPlansClient.java @@ -28,23 +28,23 @@ public interface ReplicationRecoveryPlansClient { * * Lists the recovery plans in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return recovery plan collection details as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceName, String resourceGroupName); + PagedIterable list(String resourceGroupName, String resourceName); /** * Gets the list of recovery plans. * * Lists the recovery plans in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -52,15 +52,15 @@ public interface ReplicationRecoveryPlansClient { * @return recovery plan collection details as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceName, String resourceGroupName, Context context); + PagedIterable list(String resourceGroupName, String resourceName, Context context); /** * Gets the requested recovery plan. * * Gets the details of the recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Name of the recovery plan. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -69,7 +69,7 @@ public interface ReplicationRecoveryPlansClient { * @return the details of the recovery plan along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceName, String resourceGroupName, String recoveryPlanName, + Response getWithResponse(String resourceGroupName, String resourceName, String recoveryPlanName, Context context); /** @@ -77,8 +77,8 @@ Response getWithResponse(String resourceName, String resource * * Gets the details of the recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Name of the recovery plan. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -86,15 +86,15 @@ Response getWithResponse(String resourceName, String resource * @return the details of the recovery plan. */ @ServiceMethod(returns = ReturnType.SINGLE) - RecoveryPlanInner get(String resourceName, String resourceGroupName, String recoveryPlanName); + RecoveryPlanInner get(String resourceGroupName, String resourceName, String recoveryPlanName); /** * Creates a recovery plan with the given details. * * The operation to create a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery Plan creation input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -103,16 +103,16 @@ Response getWithResponse(String resourceName, String resource * @return the {@link SyncPoller} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, RecoveryPlanInner> beginCreate(String resourceName, - String resourceGroupName, String recoveryPlanName, CreateRecoveryPlanInput input); + SyncPoller, RecoveryPlanInner> beginCreate(String resourceGroupName, + String resourceName, String recoveryPlanName, CreateRecoveryPlanInput input); /** * Creates a recovery plan with the given details. * * The operation to create a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery Plan creation input. * @param context The context to associate with this operation. @@ -122,16 +122,16 @@ SyncPoller, RecoveryPlanInner> beginCreate(String * @return the {@link SyncPoller} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, RecoveryPlanInner> beginCreate(String resourceName, - String resourceGroupName, String recoveryPlanName, CreateRecoveryPlanInput input, Context context); + SyncPoller, RecoveryPlanInner> beginCreate(String resourceGroupName, + String resourceName, String recoveryPlanName, CreateRecoveryPlanInput input, Context context); /** * Creates a recovery plan with the given details. * * The operation to create a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery Plan creation input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -140,7 +140,7 @@ SyncPoller, RecoveryPlanInner> beginCreate(String * @return recovery plan details. */ @ServiceMethod(returns = ReturnType.SINGLE) - RecoveryPlanInner create(String resourceName, String resourceGroupName, String recoveryPlanName, + RecoveryPlanInner create(String resourceGroupName, String resourceName, String recoveryPlanName, CreateRecoveryPlanInput input); /** @@ -148,8 +148,8 @@ RecoveryPlanInner create(String resourceName, String resourceGroupName, String r * * The operation to create a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery Plan creation input. * @param context The context to associate with this operation. @@ -159,7 +159,7 @@ RecoveryPlanInner create(String resourceName, String resourceGroupName, String r * @return recovery plan details. */ @ServiceMethod(returns = ReturnType.SINGLE) - RecoveryPlanInner create(String resourceName, String resourceGroupName, String recoveryPlanName, + RecoveryPlanInner create(String resourceGroupName, String resourceName, String recoveryPlanName, CreateRecoveryPlanInput input, Context context); /** @@ -167,8 +167,8 @@ RecoveryPlanInner create(String resourceName, String resourceGroupName, String r * * Delete a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -176,7 +176,7 @@ RecoveryPlanInner create(String resourceName, String resourceGroupName, String r * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceName, String resourceGroupName, + SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String recoveryPlanName); /** @@ -184,8 +184,8 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * * Delete a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -194,7 +194,7 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceName, String resourceGroupName, + SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String recoveryPlanName, Context context); /** @@ -202,23 +202,23 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * * Delete a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceName, String resourceGroupName, String recoveryPlanName); + void delete(String resourceGroupName, String resourceName, String recoveryPlanName); /** * Deletes the specified recovery plan. * * Delete a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -226,15 +226,15 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceName, String resourceGroupName, String recoveryPlanName, Context context); + void delete(String resourceGroupName, String resourceName, String recoveryPlanName, Context context); /** * Updates the given recovery plan. * * The operation to update a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Update recovery plan input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -243,16 +243,16 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * @return the {@link SyncPoller} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, RecoveryPlanInner> beginUpdate(String resourceName, - String resourceGroupName, String recoveryPlanName, UpdateRecoveryPlanInput input); + SyncPoller, RecoveryPlanInner> beginUpdate(String resourceGroupName, + String resourceName, String recoveryPlanName, UpdateRecoveryPlanInput input); /** * Updates the given recovery plan. * * The operation to update a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Update recovery plan input. * @param context The context to associate with this operation. @@ -262,16 +262,16 @@ SyncPoller, RecoveryPlanInner> beginUpdate(String * @return the {@link SyncPoller} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, RecoveryPlanInner> beginUpdate(String resourceName, - String resourceGroupName, String recoveryPlanName, UpdateRecoveryPlanInput input, Context context); + SyncPoller, RecoveryPlanInner> beginUpdate(String resourceGroupName, + String resourceName, String recoveryPlanName, UpdateRecoveryPlanInput input, Context context); /** * Updates the given recovery plan. * * The operation to update a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Update recovery plan input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -280,7 +280,7 @@ SyncPoller, RecoveryPlanInner> beginUpdate(String * @return recovery plan details. */ @ServiceMethod(returns = ReturnType.SINGLE) - RecoveryPlanInner update(String resourceName, String resourceGroupName, String recoveryPlanName, + RecoveryPlanInner update(String resourceGroupName, String resourceName, String recoveryPlanName, UpdateRecoveryPlanInput input); /** @@ -288,8 +288,8 @@ RecoveryPlanInner update(String resourceName, String resourceGroupName, String r * * The operation to update a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Update recovery plan input. * @param context The context to associate with this operation. @@ -299,7 +299,7 @@ RecoveryPlanInner update(String resourceName, String resourceGroupName, String r * @return recovery plan details. */ @ServiceMethod(returns = ReturnType.SINGLE) - RecoveryPlanInner update(String resourceName, String resourceGroupName, String recoveryPlanName, + RecoveryPlanInner update(String resourceGroupName, String resourceName, String recoveryPlanName, UpdateRecoveryPlanInput input, Context context); /** @@ -307,8 +307,8 @@ RecoveryPlanInner update(String resourceName, String resourceGroupName, String r * * The operation to cancel the failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -316,16 +316,16 @@ RecoveryPlanInner update(String resourceName, String resourceGroupName, String r * @return the {@link SyncPoller} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, RecoveryPlanInner> beginFailoverCancel(String resourceName, - String resourceGroupName, String recoveryPlanName); + SyncPoller, RecoveryPlanInner> beginFailoverCancel(String resourceGroupName, + String resourceName, String recoveryPlanName); /** * Execute cancel failover of the recovery plan. * * The operation to cancel the failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -334,16 +334,16 @@ SyncPoller, RecoveryPlanInner> beginFailoverCancel * @return the {@link SyncPoller} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, RecoveryPlanInner> beginFailoverCancel(String resourceName, - String resourceGroupName, String recoveryPlanName, Context context); + SyncPoller, RecoveryPlanInner> beginFailoverCancel(String resourceGroupName, + String resourceName, String recoveryPlanName, Context context); /** * Execute cancel failover of the recovery plan. * * The operation to cancel the failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -351,15 +351,15 @@ SyncPoller, RecoveryPlanInner> beginFailoverCancel * @return recovery plan details. */ @ServiceMethod(returns = ReturnType.SINGLE) - RecoveryPlanInner failoverCancel(String resourceName, String resourceGroupName, String recoveryPlanName); + RecoveryPlanInner failoverCancel(String resourceGroupName, String resourceName, String recoveryPlanName); /** * Execute cancel failover of the recovery plan. * * The operation to cancel the failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -368,7 +368,7 @@ SyncPoller, RecoveryPlanInner> beginFailoverCancel * @return recovery plan details. */ @ServiceMethod(returns = ReturnType.SINGLE) - RecoveryPlanInner failoverCancel(String resourceName, String resourceGroupName, String recoveryPlanName, + RecoveryPlanInner failoverCancel(String resourceGroupName, String resourceName, String recoveryPlanName, Context context); /** @@ -376,8 +376,8 @@ RecoveryPlanInner failoverCancel(String resourceName, String resourceGroupName, * * The operation to commit the failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -385,16 +385,16 @@ RecoveryPlanInner failoverCancel(String resourceName, String resourceGroupName, * @return the {@link SyncPoller} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, RecoveryPlanInner> beginFailoverCommit(String resourceName, - String resourceGroupName, String recoveryPlanName); + SyncPoller, RecoveryPlanInner> beginFailoverCommit(String resourceGroupName, + String resourceName, String recoveryPlanName); /** * Execute commit failover of the recovery plan. * * The operation to commit the failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -403,16 +403,16 @@ SyncPoller, RecoveryPlanInner> beginFailoverCommit * @return the {@link SyncPoller} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, RecoveryPlanInner> beginFailoverCommit(String resourceName, - String resourceGroupName, String recoveryPlanName, Context context); + SyncPoller, RecoveryPlanInner> beginFailoverCommit(String resourceGroupName, + String resourceName, String recoveryPlanName, Context context); /** * Execute commit failover of the recovery plan. * * The operation to commit the failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -420,15 +420,15 @@ SyncPoller, RecoveryPlanInner> beginFailoverCommit * @return recovery plan details. */ @ServiceMethod(returns = ReturnType.SINGLE) - RecoveryPlanInner failoverCommit(String resourceName, String resourceGroupName, String recoveryPlanName); + RecoveryPlanInner failoverCommit(String resourceGroupName, String resourceName, String recoveryPlanName); /** * Execute commit failover of the recovery plan. * * The operation to commit the failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -437,7 +437,7 @@ SyncPoller, RecoveryPlanInner> beginFailoverCommit * @return recovery plan details. */ @ServiceMethod(returns = ReturnType.SINGLE) - RecoveryPlanInner failoverCommit(String resourceName, String resourceGroupName, String recoveryPlanName, + RecoveryPlanInner failoverCommit(String resourceGroupName, String resourceName, String recoveryPlanName, Context context); /** @@ -445,8 +445,8 @@ RecoveryPlanInner failoverCommit(String resourceName, String resourceGroupName, * * The operation to start the planned failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Failover input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -455,16 +455,16 @@ RecoveryPlanInner failoverCommit(String resourceName, String resourceGroupName, * @return the {@link SyncPoller} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, RecoveryPlanInner> beginPlannedFailover(String resourceName, - String resourceGroupName, String recoveryPlanName, RecoveryPlanPlannedFailoverInput input); + SyncPoller, RecoveryPlanInner> beginPlannedFailover(String resourceGroupName, + String resourceName, String recoveryPlanName, RecoveryPlanPlannedFailoverInput input); /** * Execute planned failover of the recovery plan. * * The operation to start the planned failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Failover input. * @param context The context to associate with this operation. @@ -474,16 +474,16 @@ SyncPoller, RecoveryPlanInner> beginPlannedFailove * @return the {@link SyncPoller} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, RecoveryPlanInner> beginPlannedFailover(String resourceName, - String resourceGroupName, String recoveryPlanName, RecoveryPlanPlannedFailoverInput input, Context context); + SyncPoller, RecoveryPlanInner> beginPlannedFailover(String resourceGroupName, + String resourceName, String recoveryPlanName, RecoveryPlanPlannedFailoverInput input, Context context); /** * Execute planned failover of the recovery plan. * * The operation to start the planned failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Failover input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -492,7 +492,7 @@ SyncPoller, RecoveryPlanInner> beginPlannedFailove * @return recovery plan details. */ @ServiceMethod(returns = ReturnType.SINGLE) - RecoveryPlanInner plannedFailover(String resourceName, String resourceGroupName, String recoveryPlanName, + RecoveryPlanInner plannedFailover(String resourceGroupName, String resourceName, String recoveryPlanName, RecoveryPlanPlannedFailoverInput input); /** @@ -500,8 +500,8 @@ RecoveryPlanInner plannedFailover(String resourceName, String resourceGroupName, * * The operation to start the planned failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Failover input. * @param context The context to associate with this operation. @@ -511,16 +511,17 @@ RecoveryPlanInner plannedFailover(String resourceName, String resourceGroupName, * @return recovery plan details. */ @ServiceMethod(returns = ReturnType.SINGLE) - RecoveryPlanInner plannedFailover(String resourceName, String resourceGroupName, String recoveryPlanName, + RecoveryPlanInner plannedFailover(String resourceGroupName, String resourceName, String recoveryPlanName, RecoveryPlanPlannedFailoverInput input, Context context); /** * Execute reprotect of the recovery plan. * - * The operation to reprotect(reverse replicate) a recovery plan. + * The operation to reprotect(reverse replicate) a recovery plan. This api is for deprecated scenarios and no longer + * works. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -528,16 +529,17 @@ RecoveryPlanInner plannedFailover(String resourceName, String resourceGroupName, * @return the {@link SyncPoller} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, RecoveryPlanInner> beginReprotect(String resourceName, - String resourceGroupName, String recoveryPlanName); + SyncPoller, RecoveryPlanInner> beginReprotect(String resourceGroupName, + String resourceName, String recoveryPlanName); /** * Execute reprotect of the recovery plan. * - * The operation to reprotect(reverse replicate) a recovery plan. + * The operation to reprotect(reverse replicate) a recovery plan. This api is for deprecated scenarios and no longer + * works. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -546,16 +548,17 @@ SyncPoller, RecoveryPlanInner> beginReprotect(Stri * @return the {@link SyncPoller} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, RecoveryPlanInner> beginReprotect(String resourceName, - String resourceGroupName, String recoveryPlanName, Context context); + SyncPoller, RecoveryPlanInner> beginReprotect(String resourceGroupName, + String resourceName, String recoveryPlanName, Context context); /** * Execute reprotect of the recovery plan. * - * The operation to reprotect(reverse replicate) a recovery plan. + * The operation to reprotect(reverse replicate) a recovery plan. This api is for deprecated scenarios and no longer + * works. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -563,15 +566,16 @@ SyncPoller, RecoveryPlanInner> beginReprotect(Stri * @return recovery plan details. */ @ServiceMethod(returns = ReturnType.SINGLE) - RecoveryPlanInner reprotect(String resourceName, String resourceGroupName, String recoveryPlanName); + RecoveryPlanInner reprotect(String resourceGroupName, String resourceName, String recoveryPlanName); /** * Execute reprotect of the recovery plan. * - * The operation to reprotect(reverse replicate) a recovery plan. + * The operation to reprotect(reverse replicate) a recovery plan. This api is for deprecated scenarios and no longer + * works. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -580,7 +584,7 @@ SyncPoller, RecoveryPlanInner> beginReprotect(Stri * @return recovery plan details. */ @ServiceMethod(returns = ReturnType.SINGLE) - RecoveryPlanInner reprotect(String resourceName, String resourceGroupName, String recoveryPlanName, + RecoveryPlanInner reprotect(String resourceGroupName, String resourceName, String recoveryPlanName, Context context); /** @@ -588,8 +592,8 @@ RecoveryPlanInner reprotect(String resourceName, String resourceGroupName, Strin * * The operation to start the test failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan test failover input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -598,16 +602,16 @@ RecoveryPlanInner reprotect(String resourceName, String resourceGroupName, Strin * @return the {@link SyncPoller} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, RecoveryPlanInner> beginTestFailover(String resourceName, - String resourceGroupName, String recoveryPlanName, RecoveryPlanTestFailoverInput input); + SyncPoller, RecoveryPlanInner> beginTestFailover(String resourceGroupName, + String resourceName, String recoveryPlanName, RecoveryPlanTestFailoverInput input); /** * Execute test failover of the recovery plan. * * The operation to start the test failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan test failover input. * @param context The context to associate with this operation. @@ -617,16 +621,16 @@ SyncPoller, RecoveryPlanInner> beginTestFailover(S * @return the {@link SyncPoller} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, RecoveryPlanInner> beginTestFailover(String resourceName, - String resourceGroupName, String recoveryPlanName, RecoveryPlanTestFailoverInput input, Context context); + SyncPoller, RecoveryPlanInner> beginTestFailover(String resourceGroupName, + String resourceName, String recoveryPlanName, RecoveryPlanTestFailoverInput input, Context context); /** * Execute test failover of the recovery plan. * * The operation to start the test failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan test failover input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -635,7 +639,7 @@ SyncPoller, RecoveryPlanInner> beginTestFailover(S * @return recovery plan details. */ @ServiceMethod(returns = ReturnType.SINGLE) - RecoveryPlanInner testFailover(String resourceName, String resourceGroupName, String recoveryPlanName, + RecoveryPlanInner testFailover(String resourceGroupName, String resourceName, String recoveryPlanName, RecoveryPlanTestFailoverInput input); /** @@ -643,8 +647,8 @@ RecoveryPlanInner testFailover(String resourceName, String resourceGroupName, St * * The operation to start the test failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan test failover input. * @param context The context to associate with this operation. @@ -654,7 +658,7 @@ RecoveryPlanInner testFailover(String resourceName, String resourceGroupName, St * @return recovery plan details. */ @ServiceMethod(returns = ReturnType.SINGLE) - RecoveryPlanInner testFailover(String resourceName, String resourceGroupName, String recoveryPlanName, + RecoveryPlanInner testFailover(String resourceGroupName, String resourceName, String recoveryPlanName, RecoveryPlanTestFailoverInput input, Context context); /** @@ -662,8 +666,8 @@ RecoveryPlanInner testFailover(String resourceName, String resourceGroupName, St * * The operation to cleanup test failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan test failover cleanup input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -672,16 +676,16 @@ RecoveryPlanInner testFailover(String resourceName, String resourceGroupName, St * @return the {@link SyncPoller} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, RecoveryPlanInner> beginTestFailoverCleanup(String resourceName, - String resourceGroupName, String recoveryPlanName, RecoveryPlanTestFailoverCleanupInput input); + SyncPoller, RecoveryPlanInner> beginTestFailoverCleanup(String resourceGroupName, + String resourceName, String recoveryPlanName, RecoveryPlanTestFailoverCleanupInput input); /** * Execute test failover cleanup of the recovery plan. * * The operation to cleanup test failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan test failover cleanup input. * @param context The context to associate with this operation. @@ -691,16 +695,16 @@ SyncPoller, RecoveryPlanInner> beginTestFailoverCl * @return the {@link SyncPoller} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, RecoveryPlanInner> beginTestFailoverCleanup(String resourceName, - String resourceGroupName, String recoveryPlanName, RecoveryPlanTestFailoverCleanupInput input, Context context); + SyncPoller, RecoveryPlanInner> beginTestFailoverCleanup(String resourceGroupName, + String resourceName, String recoveryPlanName, RecoveryPlanTestFailoverCleanupInput input, Context context); /** * Execute test failover cleanup of the recovery plan. * * The operation to cleanup test failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan test failover cleanup input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -709,7 +713,7 @@ SyncPoller, RecoveryPlanInner> beginTestFailoverCl * @return recovery plan details. */ @ServiceMethod(returns = ReturnType.SINGLE) - RecoveryPlanInner testFailoverCleanup(String resourceName, String resourceGroupName, String recoveryPlanName, + RecoveryPlanInner testFailoverCleanup(String resourceGroupName, String resourceName, String recoveryPlanName, RecoveryPlanTestFailoverCleanupInput input); /** @@ -717,8 +721,8 @@ RecoveryPlanInner testFailoverCleanup(String resourceName, String resourceGroupN * * The operation to cleanup test failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan test failover cleanup input. * @param context The context to associate with this operation. @@ -728,7 +732,7 @@ RecoveryPlanInner testFailoverCleanup(String resourceName, String resourceGroupN * @return recovery plan details. */ @ServiceMethod(returns = ReturnType.SINGLE) - RecoveryPlanInner testFailoverCleanup(String resourceName, String resourceGroupName, String recoveryPlanName, + RecoveryPlanInner testFailoverCleanup(String resourceGroupName, String resourceName, String recoveryPlanName, RecoveryPlanTestFailoverCleanupInput input, Context context); /** @@ -736,8 +740,8 @@ RecoveryPlanInner testFailoverCleanup(String resourceName, String resourceGroupN * * The operation to start the unplanned failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan unplanned failover input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -746,16 +750,16 @@ RecoveryPlanInner testFailoverCleanup(String resourceName, String resourceGroupN * @return the {@link SyncPoller} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, RecoveryPlanInner> beginUnplannedFailover(String resourceName, - String resourceGroupName, String recoveryPlanName, RecoveryPlanUnplannedFailoverInput input); + SyncPoller, RecoveryPlanInner> beginUnplannedFailover(String resourceGroupName, + String resourceName, String recoveryPlanName, RecoveryPlanUnplannedFailoverInput input); /** * Execute unplanned failover of the recovery plan. * * The operation to start the unplanned failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan unplanned failover input. * @param context The context to associate with this operation. @@ -765,16 +769,16 @@ SyncPoller, RecoveryPlanInner> beginUnplannedFailo * @return the {@link SyncPoller} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, RecoveryPlanInner> beginUnplannedFailover(String resourceName, - String resourceGroupName, String recoveryPlanName, RecoveryPlanUnplannedFailoverInput input, Context context); + SyncPoller, RecoveryPlanInner> beginUnplannedFailover(String resourceGroupName, + String resourceName, String recoveryPlanName, RecoveryPlanUnplannedFailoverInput input, Context context); /** * Execute unplanned failover of the recovery plan. * * The operation to start the unplanned failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan unplanned failover input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -783,7 +787,7 @@ SyncPoller, RecoveryPlanInner> beginUnplannedFailo * @return recovery plan details. */ @ServiceMethod(returns = ReturnType.SINGLE) - RecoveryPlanInner unplannedFailover(String resourceName, String resourceGroupName, String recoveryPlanName, + RecoveryPlanInner unplannedFailover(String resourceGroupName, String resourceName, String recoveryPlanName, RecoveryPlanUnplannedFailoverInput input); /** @@ -791,8 +795,8 @@ RecoveryPlanInner unplannedFailover(String resourceName, String resourceGroupNam * * The operation to start the unplanned failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan unplanned failover input. * @param context The context to associate with this operation. @@ -802,6 +806,6 @@ RecoveryPlanInner unplannedFailover(String resourceName, String resourceGroupNam * @return recovery plan details. */ @ServiceMethod(returns = ReturnType.SINGLE) - RecoveryPlanInner unplannedFailover(String resourceName, String resourceGroupName, String recoveryPlanName, + RecoveryPlanInner unplannedFailover(String resourceGroupName, String resourceName, String recoveryPlanName, RecoveryPlanUnplannedFailoverInput input, Context context); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationRecoveryServicesProvidersClient.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationRecoveryServicesProvidersClient.java index 51dd08c2c0a1..39f9815f5465 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationRecoveryServicesProvidersClient.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationRecoveryServicesProvidersClient.java @@ -24,8 +24,8 @@ public interface ReplicationRecoveryServicesProvidersClient { * * Lists the registered recovery services providers for the specified fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -33,7 +33,7 @@ public interface ReplicationRecoveryServicesProvidersClient { * @return collection of providers as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByReplicationFabrics(String resourceName, String resourceGroupName, + PagedIterable listByReplicationFabrics(String resourceGroupName, String resourceName, String fabricName); /** @@ -41,8 +41,8 @@ PagedIterable listByReplicationFabrics(String res * * Lists the registered recovery services providers for the specified fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -51,7 +51,7 @@ PagedIterable listByReplicationFabrics(String res * @return collection of providers as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByReplicationFabrics(String resourceName, String resourceGroupName, + PagedIterable listByReplicationFabrics(String resourceGroupName, String resourceName, String fabricName, Context context); /** @@ -59,8 +59,8 @@ PagedIterable listByReplicationFabrics(String res * * Gets the details of registered recovery services provider. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param context The context to associate with this operation. @@ -70,7 +70,7 @@ PagedIterable listByReplicationFabrics(String res * @return the details of registered recovery services provider along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceName, String resourceGroupName, + Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String providerName, Context context); /** @@ -78,8 +78,8 @@ Response getWithResponse(String resourceName, Str * * Gets the details of registered recovery services provider. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -88,7 +88,7 @@ Response getWithResponse(String resourceName, Str * @return the details of registered recovery services provider. */ @ServiceMethod(returns = ReturnType.SINGLE) - RecoveryServicesProviderInner get(String resourceName, String resourceGroupName, String fabricName, + RecoveryServicesProviderInner get(String resourceGroupName, String resourceName, String fabricName, String providerName); /** @@ -96,8 +96,8 @@ RecoveryServicesProviderInner get(String resourceName, String resourceGroupName, * * The operation to add a recovery services provider. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param addProviderInput Add provider input. @@ -108,7 +108,7 @@ RecoveryServicesProviderInner get(String resourceName, String resourceGroupName, */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, RecoveryServicesProviderInner> beginCreate( - String resourceName, String resourceGroupName, String fabricName, String providerName, + String resourceGroupName, String resourceName, String fabricName, String providerName, AddRecoveryServicesProviderInput addProviderInput); /** @@ -116,8 +116,8 @@ SyncPoller, RecoveryServicesProviderIn * * The operation to add a recovery services provider. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param addProviderInput Add provider input. @@ -129,7 +129,7 @@ SyncPoller, RecoveryServicesProviderIn */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, RecoveryServicesProviderInner> beginCreate( - String resourceName, String resourceGroupName, String fabricName, String providerName, + String resourceGroupName, String resourceName, String fabricName, String providerName, AddRecoveryServicesProviderInput addProviderInput, Context context); /** @@ -137,8 +137,8 @@ SyncPoller, RecoveryServicesProviderIn * * The operation to add a recovery services provider. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param addProviderInput Add provider input. @@ -148,7 +148,7 @@ SyncPoller, RecoveryServicesProviderIn * @return provider details. */ @ServiceMethod(returns = ReturnType.SINGLE) - RecoveryServicesProviderInner create(String resourceName, String resourceGroupName, String fabricName, + RecoveryServicesProviderInner create(String resourceGroupName, String resourceName, String fabricName, String providerName, AddRecoveryServicesProviderInput addProviderInput); /** @@ -156,8 +156,8 @@ RecoveryServicesProviderInner create(String resourceName, String resourceGroupNa * * The operation to add a recovery services provider. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param addProviderInput Add provider input. @@ -168,7 +168,7 @@ RecoveryServicesProviderInner create(String resourceName, String resourceGroupNa * @return provider details. */ @ServiceMethod(returns = ReturnType.SINGLE) - RecoveryServicesProviderInner create(String resourceName, String resourceGroupName, String fabricName, + RecoveryServicesProviderInner create(String resourceGroupName, String resourceName, String fabricName, String providerName, AddRecoveryServicesProviderInput addProviderInput, Context context); /** @@ -176,8 +176,8 @@ RecoveryServicesProviderInner create(String resourceName, String resourceGroupNa * * The operation to purge(force delete) a recovery services provider from the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -186,7 +186,7 @@ RecoveryServicesProviderInner create(String resourceName, String resourceGroupNa * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginPurge(String resourceName, String resourceGroupName, String fabricName, + SyncPoller, Void> beginPurge(String resourceGroupName, String resourceName, String fabricName, String providerName); /** @@ -194,8 +194,8 @@ SyncPoller, Void> beginPurge(String resourceName, String resour * * The operation to purge(force delete) a recovery services provider from the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param context The context to associate with this operation. @@ -205,7 +205,7 @@ SyncPoller, Void> beginPurge(String resourceName, String resour * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginPurge(String resourceName, String resourceGroupName, String fabricName, + SyncPoller, Void> beginPurge(String resourceGroupName, String resourceName, String fabricName, String providerName, Context context); /** @@ -213,8 +213,8 @@ SyncPoller, Void> beginPurge(String resourceName, String resour * * The operation to purge(force delete) a recovery services provider from the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -222,15 +222,15 @@ SyncPoller, Void> beginPurge(String resourceName, String resour * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void purge(String resourceName, String resourceGroupName, String fabricName, String providerName); + void purge(String resourceGroupName, String resourceName, String fabricName, String providerName); /** * Purges recovery service provider from fabric. * * The operation to purge(force delete) a recovery services provider from the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param context The context to associate with this operation. @@ -239,15 +239,15 @@ SyncPoller, Void> beginPurge(String resourceName, String resour * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void purge(String resourceName, String resourceGroupName, String fabricName, String providerName, Context context); + void purge(String resourceGroupName, String resourceName, String fabricName, String providerName, Context context); /** * Refresh details from the recovery services provider. * * The operation to refresh the information from the recovery services provider. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -257,15 +257,15 @@ SyncPoller, Void> beginPurge(String resourceName, String resour */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, RecoveryServicesProviderInner> - beginRefreshProvider(String resourceName, String resourceGroupName, String fabricName, String providerName); + beginRefreshProvider(String resourceGroupName, String resourceName, String fabricName, String providerName); /** * Refresh details from the recovery services provider. * * The operation to refresh the information from the recovery services provider. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param context The context to associate with this operation. @@ -276,15 +276,15 @@ SyncPoller, Void> beginPurge(String resourceName, String resour */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, RecoveryServicesProviderInner> beginRefreshProvider( - String resourceName, String resourceGroupName, String fabricName, String providerName, Context context); + String resourceGroupName, String resourceName, String fabricName, String providerName, Context context); /** * Refresh details from the recovery services provider. * * The operation to refresh the information from the recovery services provider. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -293,7 +293,7 @@ SyncPoller, RecoveryServicesProviderIn * @return provider details. */ @ServiceMethod(returns = ReturnType.SINGLE) - RecoveryServicesProviderInner refreshProvider(String resourceName, String resourceGroupName, String fabricName, + RecoveryServicesProviderInner refreshProvider(String resourceGroupName, String resourceName, String fabricName, String providerName); /** @@ -301,8 +301,8 @@ RecoveryServicesProviderInner refreshProvider(String resourceName, String resour * * The operation to refresh the information from the recovery services provider. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param context The context to associate with this operation. @@ -312,7 +312,7 @@ RecoveryServicesProviderInner refreshProvider(String resourceName, String resour * @return provider details. */ @ServiceMethod(returns = ReturnType.SINGLE) - RecoveryServicesProviderInner refreshProvider(String resourceName, String resourceGroupName, String fabricName, + RecoveryServicesProviderInner refreshProvider(String resourceGroupName, String resourceName, String fabricName, String providerName, Context context); /** @@ -322,8 +322,8 @@ RecoveryServicesProviderInner refreshProvider(String resourceName, String resour * * The operation to removes/delete(unregister) a recovery services provider from the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -332,7 +332,7 @@ RecoveryServicesProviderInner refreshProvider(String resourceName, String resour * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceName, String resourceGroupName, String fabricName, + SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String fabricName, String providerName); /** @@ -342,8 +342,8 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * * The operation to removes/delete(unregister) a recovery services provider from the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param context The context to associate with this operation. @@ -353,7 +353,7 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceName, String resourceGroupName, String fabricName, + SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String fabricName, String providerName, Context context); /** @@ -363,8 +363,8 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * * The operation to removes/delete(unregister) a recovery services provider from the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -372,7 +372,7 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceName, String resourceGroupName, String fabricName, String providerName); + void delete(String resourceGroupName, String resourceName, String fabricName, String providerName); /** * Deletes provider from fabric. Note: Deleting provider for any fabric other than SingleHost is unsupported. To @@ -381,8 +381,8 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * * The operation to removes/delete(unregister) a recovery services provider from the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param context The context to associate with this operation. @@ -391,30 +391,30 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceName, String resourceGroupName, String fabricName, String providerName, Context context); + void delete(String resourceGroupName, String resourceName, String fabricName, String providerName, Context context); /** * Gets the list of registered recovery services providers in the vault. This is a view only api. * * Lists the registered recovery services providers in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return collection of providers as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceName, String resourceGroupName); + PagedIterable list(String resourceGroupName, String resourceName); /** * Gets the list of registered recovery services providers in the vault. This is a view only api. * * Lists the registered recovery services providers in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -422,5 +422,5 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * @return collection of providers as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceName, String resourceGroupName, Context context); + PagedIterable list(String resourceGroupName, String resourceName, Context context); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationVaultHealthsClient.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationVaultHealthsClient.java index ca2941bea2f2..7dfbfd1104c3 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationVaultHealthsClient.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationVaultHealthsClient.java @@ -21,8 +21,8 @@ public interface ReplicationVaultHealthsClient { * * Gets the health details of the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -30,42 +30,42 @@ public interface ReplicationVaultHealthsClient { * @return the health details of the vault along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceName, String resourceGroupName, Context context); + Response getWithResponse(String resourceGroupName, String resourceName, Context context); /** * Gets the health summary for the vault. * * Gets the health details of the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the health details of the vault. */ @ServiceMethod(returns = ReturnType.SINGLE) - VaultHealthDetailsInner get(String resourceName, String resourceGroupName); + VaultHealthDetailsInner get(String resourceGroupName, String resourceName); /** * Refreshes health summary of the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of vault health details definition. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, VaultHealthDetailsInner> beginRefresh(String resourceName, - String resourceGroupName); + SyncPoller, VaultHealthDetailsInner> beginRefresh(String resourceGroupName, + String resourceName); /** * Refreshes health summary of the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -73,27 +73,27 @@ SyncPoller, VaultHealthDetailsInner> beginRe * @return the {@link SyncPoller} for polling of vault health details definition. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, VaultHealthDetailsInner> beginRefresh(String resourceName, - String resourceGroupName, Context context); + SyncPoller, VaultHealthDetailsInner> beginRefresh(String resourceGroupName, + String resourceName, Context context); /** * Refreshes health summary of the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return vault health details definition. */ @ServiceMethod(returns = ReturnType.SINGLE) - VaultHealthDetailsInner refresh(String resourceName, String resourceGroupName); + VaultHealthDetailsInner refresh(String resourceGroupName, String resourceName); /** * Refreshes health summary of the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -101,5 +101,5 @@ SyncPoller, VaultHealthDetailsInner> beginRe * @return vault health details definition. */ @ServiceMethod(returns = ReturnType.SINGLE) - VaultHealthDetailsInner refresh(String resourceName, String resourceGroupName, Context context); + VaultHealthDetailsInner refresh(String resourceGroupName, String resourceName, Context context); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationVaultSettingsClient.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationVaultSettingsClient.java index 4c0825344888..13cfad0baabd 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationVaultSettingsClient.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationVaultSettingsClient.java @@ -23,23 +23,23 @@ public interface ReplicationVaultSettingsClient { * * Gets the list of vault setting. This includes the Migration Hub connection settings. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of vault setting as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceName, String resourceGroupName); + PagedIterable list(String resourceGroupName, String resourceName); /** * Gets the list of vault setting. * * Gets the list of vault setting. This includes the Migration Hub connection settings. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -47,15 +47,15 @@ public interface ReplicationVaultSettingsClient { * @return the list of vault setting as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceName, String resourceGroupName, Context context); + PagedIterable list(String resourceGroupName, String resourceName, Context context); /** * Gets the vault setting. * * Gets the vault setting. This includes the Migration Hub connection settings. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param vaultSettingName Vault setting name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -64,7 +64,7 @@ public interface ReplicationVaultSettingsClient { * @return the vault setting along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceName, String resourceGroupName, String vaultSettingName, + Response getWithResponse(String resourceGroupName, String resourceName, String vaultSettingName, Context context); /** @@ -72,8 +72,8 @@ Response getWithResponse(String resourceName, String resource * * Gets the vault setting. This includes the Migration Hub connection settings. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param vaultSettingName Vault setting name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -81,15 +81,15 @@ Response getWithResponse(String resourceName, String resource * @return the vault setting. */ @ServiceMethod(returns = ReturnType.SINGLE) - VaultSettingInner get(String resourceName, String resourceGroupName, String vaultSettingName); + VaultSettingInner get(String resourceGroupName, String resourceName, String vaultSettingName); /** * Updates vault setting. A vault setting object is a singleton per vault and it is always present by default. * * The operation to configure vault setting. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param vaultSettingName Vault setting name. * @param input Vault setting creation input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -98,16 +98,16 @@ Response getWithResponse(String resourceName, String resource * @return the {@link SyncPoller} for polling of vault setting. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, VaultSettingInner> beginCreate(String resourceName, - String resourceGroupName, String vaultSettingName, VaultSettingCreationInput input); + SyncPoller, VaultSettingInner> beginCreate(String resourceGroupName, + String resourceName, String vaultSettingName, VaultSettingCreationInput input); /** * Updates vault setting. A vault setting object is a singleton per vault and it is always present by default. * * The operation to configure vault setting. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param vaultSettingName Vault setting name. * @param input Vault setting creation input. * @param context The context to associate with this operation. @@ -117,16 +117,16 @@ SyncPoller, VaultSettingInner> beginCreate(String * @return the {@link SyncPoller} for polling of vault setting. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, VaultSettingInner> beginCreate(String resourceName, - String resourceGroupName, String vaultSettingName, VaultSettingCreationInput input, Context context); + SyncPoller, VaultSettingInner> beginCreate(String resourceGroupName, + String resourceName, String vaultSettingName, VaultSettingCreationInput input, Context context); /** * Updates vault setting. A vault setting object is a singleton per vault and it is always present by default. * * The operation to configure vault setting. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param vaultSettingName Vault setting name. * @param input Vault setting creation input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -135,7 +135,7 @@ SyncPoller, VaultSettingInner> beginCreate(String * @return vault setting. */ @ServiceMethod(returns = ReturnType.SINGLE) - VaultSettingInner create(String resourceName, String resourceGroupName, String vaultSettingName, + VaultSettingInner create(String resourceGroupName, String resourceName, String vaultSettingName, VaultSettingCreationInput input); /** @@ -143,8 +143,8 @@ VaultSettingInner create(String resourceName, String resourceGroupName, String v * * The operation to configure vault setting. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param vaultSettingName Vault setting name. * @param input Vault setting creation input. * @param context The context to associate with this operation. @@ -154,6 +154,6 @@ VaultSettingInner create(String resourceName, String resourceGroupName, String v * @return vault setting. */ @ServiceMethod(returns = ReturnType.SINGLE) - VaultSettingInner create(String resourceName, String resourceGroupName, String vaultSettingName, + VaultSettingInner create(String resourceGroupName, String resourceName, String vaultSettingName, VaultSettingCreationInput input, Context context); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationvCentersClient.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationvCentersClient.java index 8a401dd57504..5c056d4e68a4 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationvCentersClient.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationvCentersClient.java @@ -24,8 +24,8 @@ public interface ReplicationvCentersClient { * * Lists the vCenter servers registered in a fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -33,7 +33,7 @@ public interface ReplicationvCentersClient { * @return collection of vCenter details as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByReplicationFabrics(String resourceName, String resourceGroupName, + PagedIterable listByReplicationFabrics(String resourceGroupName, String resourceName, String fabricName); /** @@ -41,8 +41,8 @@ PagedIterable listByReplicationFabrics(String resourceName, String * * Lists the vCenter servers registered in a fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -51,7 +51,7 @@ PagedIterable listByReplicationFabrics(String resourceName, String * @return collection of vCenter details as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByReplicationFabrics(String resourceName, String resourceGroupName, + PagedIterable listByReplicationFabrics(String resourceGroupName, String resourceName, String fabricName, Context context); /** @@ -59,8 +59,8 @@ PagedIterable listByReplicationFabrics(String resourceName, String * * Gets the details of a registered vCenter server(Add vCenter server). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param context The context to associate with this operation. @@ -70,7 +70,7 @@ PagedIterable listByReplicationFabrics(String resourceName, String * @return the details of a registered vCenter server(Add vCenter server) along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceName, String resourceGroupName, String fabricName, + Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String vcenterName, Context context); /** @@ -78,8 +78,8 @@ Response getWithResponse(String resourceName, String resourceGroup * * Gets the details of a registered vCenter server(Add vCenter server). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -88,15 +88,15 @@ Response getWithResponse(String resourceName, String resourceGroup * @return the details of a registered vCenter server(Add vCenter server). */ @ServiceMethod(returns = ReturnType.SINGLE) - VCenterInner get(String resourceName, String resourceGroupName, String fabricName, String vcenterName); + VCenterInner get(String resourceGroupName, String resourceName, String fabricName, String vcenterName); /** * Add vCenter. * * The operation to create a vCenter object.. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param addVCenterRequest The input to the add vCenter operation. @@ -106,7 +106,7 @@ Response getWithResponse(String resourceName, String resourceGroup * @return the {@link SyncPoller} for polling of vCenter definition. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, VCenterInner> beginCreate(String resourceName, String resourceGroupName, + SyncPoller, VCenterInner> beginCreate(String resourceGroupName, String resourceName, String fabricName, String vcenterName, AddVCenterRequest addVCenterRequest); /** @@ -114,8 +114,8 @@ SyncPoller, VCenterInner> beginCreate(String resourceNa * * The operation to create a vCenter object.. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param addVCenterRequest The input to the add vCenter operation. @@ -126,7 +126,7 @@ SyncPoller, VCenterInner> beginCreate(String resourceNa * @return the {@link SyncPoller} for polling of vCenter definition. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, VCenterInner> beginCreate(String resourceName, String resourceGroupName, + SyncPoller, VCenterInner> beginCreate(String resourceGroupName, String resourceName, String fabricName, String vcenterName, AddVCenterRequest addVCenterRequest, Context context); /** @@ -134,8 +134,8 @@ SyncPoller, VCenterInner> beginCreate(String resourceNa * * The operation to create a vCenter object.. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param addVCenterRequest The input to the add vCenter operation. @@ -145,7 +145,7 @@ SyncPoller, VCenterInner> beginCreate(String resourceNa * @return vCenter definition. */ @ServiceMethod(returns = ReturnType.SINGLE) - VCenterInner create(String resourceName, String resourceGroupName, String fabricName, String vcenterName, + VCenterInner create(String resourceGroupName, String resourceName, String fabricName, String vcenterName, AddVCenterRequest addVCenterRequest); /** @@ -153,8 +153,8 @@ VCenterInner create(String resourceName, String resourceGroupName, String fabric * * The operation to create a vCenter object.. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param addVCenterRequest The input to the add vCenter operation. @@ -165,7 +165,7 @@ VCenterInner create(String resourceName, String resourceGroupName, String fabric * @return vCenter definition. */ @ServiceMethod(returns = ReturnType.SINGLE) - VCenterInner create(String resourceName, String resourceGroupName, String fabricName, String vcenterName, + VCenterInner create(String resourceGroupName, String resourceName, String fabricName, String vcenterName, AddVCenterRequest addVCenterRequest, Context context); /** @@ -173,8 +173,8 @@ VCenterInner create(String resourceName, String resourceGroupName, String fabric * * The operation to remove(unregister) a registered vCenter server from the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -183,7 +183,7 @@ VCenterInner create(String resourceName, String resourceGroupName, String fabric * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceName, String resourceGroupName, String fabricName, + SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String fabricName, String vcenterName); /** @@ -191,8 +191,8 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * * The operation to remove(unregister) a registered vCenter server from the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param context The context to associate with this operation. @@ -202,7 +202,7 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceName, String resourceGroupName, String fabricName, + SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String fabricName, String vcenterName, Context context); /** @@ -210,8 +210,8 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * * The operation to remove(unregister) a registered vCenter server from the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -219,15 +219,15 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceName, String resourceGroupName, String fabricName, String vcenterName); + void delete(String resourceGroupName, String resourceName, String fabricName, String vcenterName); /** * Remove vcenter operation. * * The operation to remove(unregister) a registered vCenter server from the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param context The context to associate with this operation. @@ -236,15 +236,15 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceName, String resourceGroupName, String fabricName, String vcenterName, Context context); + void delete(String resourceGroupName, String resourceName, String fabricName, String vcenterName, Context context); /** * Update vCenter operation. * * The operation to update a registered vCenter. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param updateVCenterRequest The input to the update vCenter operation. @@ -254,7 +254,7 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * @return the {@link SyncPoller} for polling of vCenter definition. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, VCenterInner> beginUpdate(String resourceName, String resourceGroupName, + SyncPoller, VCenterInner> beginUpdate(String resourceGroupName, String resourceName, String fabricName, String vcenterName, UpdateVCenterRequest updateVCenterRequest); /** @@ -262,8 +262,8 @@ SyncPoller, VCenterInner> beginUpdate(String resourceNa * * The operation to update a registered vCenter. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param updateVCenterRequest The input to the update vCenter operation. @@ -274,7 +274,7 @@ SyncPoller, VCenterInner> beginUpdate(String resourceNa * @return the {@link SyncPoller} for polling of vCenter definition. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, VCenterInner> beginUpdate(String resourceName, String resourceGroupName, + SyncPoller, VCenterInner> beginUpdate(String resourceGroupName, String resourceName, String fabricName, String vcenterName, UpdateVCenterRequest updateVCenterRequest, Context context); /** @@ -282,8 +282,8 @@ SyncPoller, VCenterInner> beginUpdate(String resourceNa * * The operation to update a registered vCenter. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param updateVCenterRequest The input to the update vCenter operation. @@ -293,7 +293,7 @@ SyncPoller, VCenterInner> beginUpdate(String resourceNa * @return vCenter definition. */ @ServiceMethod(returns = ReturnType.SINGLE) - VCenterInner update(String resourceName, String resourceGroupName, String fabricName, String vcenterName, + VCenterInner update(String resourceGroupName, String resourceName, String fabricName, String vcenterName, UpdateVCenterRequest updateVCenterRequest); /** @@ -301,8 +301,8 @@ VCenterInner update(String resourceName, String resourceGroupName, String fabric * * The operation to update a registered vCenter. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param updateVCenterRequest The input to the update vCenter operation. @@ -313,7 +313,7 @@ VCenterInner update(String resourceName, String resourceGroupName, String fabric * @return vCenter definition. */ @ServiceMethod(returns = ReturnType.SINGLE) - VCenterInner update(String resourceName, String resourceGroupName, String fabricName, String vcenterName, + VCenterInner update(String resourceGroupName, String resourceName, String fabricName, String vcenterName, UpdateVCenterRequest updateVCenterRequest, Context context); /** @@ -321,23 +321,23 @@ VCenterInner update(String resourceName, String resourceGroupName, String fabric * * Lists the vCenter servers registered in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return collection of vCenter details as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceName, String resourceGroupName); + PagedIterable list(String resourceGroupName, String resourceName); /** * Gets the list of vCenter registered under the vault. * * Lists the vCenter servers registered in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -345,5 +345,5 @@ VCenterInner update(String resourceName, String resourceGroupName, String fabric * @return collection of vCenter details as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceName, String resourceGroupName, Context context); + PagedIterable list(String resourceGroupName, String resourceName, Context context); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/SiteRecoveryManagementClient.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/SiteRecoveryManagementClient.java index 10f9fd06bb48..cd9f3a153353 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/SiteRecoveryManagementClient.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/SiteRecoveryManagementClient.java @@ -158,6 +158,27 @@ public interface SiteRecoveryManagementClient { */ TargetComputeSizesClient getTargetComputeSizes(); + /** + * Gets the ReplicationProtectionClustersClient object to access its operations. + * + * @return the ReplicationProtectionClustersClient object. + */ + ReplicationProtectionClustersClient getReplicationProtectionClusters(); + + /** + * Gets the ClusterRecoveryPointsClient object to access its operations. + * + * @return the ClusterRecoveryPointsClient object. + */ + ClusterRecoveryPointsClient getClusterRecoveryPoints(); + + /** + * Gets the ClusterRecoveryPointOperationsClient object to access its operations. + * + * @return the ClusterRecoveryPointOperationsClient object. + */ + ClusterRecoveryPointOperationsClient getClusterRecoveryPointOperations(); + /** * Gets the ReplicationProtectionContainerMappingsClient object to access its operations. * diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/StorageClassificationMappingsClient.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/StorageClassificationMappingsClient.java index ecf3081e146a..8fed37b290ff 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/StorageClassificationMappingsClient.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/StorageClassificationMappingsClient.java @@ -23,8 +23,8 @@ public interface StorageClassificationMappingsClient { * * Lists the storage classification mappings for the fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -33,16 +33,16 @@ public interface StorageClassificationMappingsClient { * @return collection of storage mapping details as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByReplicationStorageClassifications(String resourceName, - String resourceGroupName, String fabricName, String storageClassificationName); + PagedIterable listByReplicationStorageClassifications(String resourceGroupName, + String resourceName, String fabricName, String storageClassificationName); /** * Gets the list of storage classification mappings objects under a storage. * * Lists the storage classification mappings for the fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param context The context to associate with this operation. @@ -52,16 +52,16 @@ PagedIterable listByReplicationStorageClassif * @return collection of storage mapping details as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByReplicationStorageClassifications(String resourceName, - String resourceGroupName, String fabricName, String storageClassificationName, Context context); + PagedIterable listByReplicationStorageClassifications(String resourceGroupName, + String resourceName, String fabricName, String storageClassificationName, Context context); /** * Gets the details of a storage classification mapping. * * Gets the details of the specified storage classification mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. @@ -72,7 +72,7 @@ PagedIterable listByReplicationStorageClassif * @return the details of the specified storage classification mapping along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceName, String resourceGroupName, + Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName, String storageClassificationMappingName, Context context); /** @@ -80,8 +80,8 @@ Response getWithResponse(String resourceName, * * Gets the details of the specified storage classification mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. @@ -91,7 +91,7 @@ Response getWithResponse(String resourceName, * @return the details of the specified storage classification mapping. */ @ServiceMethod(returns = ReturnType.SINGLE) - StorageClassificationMappingInner get(String resourceName, String resourceGroupName, String fabricName, + StorageClassificationMappingInner get(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName, String storageClassificationMappingName); /** @@ -99,8 +99,8 @@ StorageClassificationMappingInner get(String resourceName, String resourceGroupN * * The operation to create a storage classification mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. @@ -112,7 +112,7 @@ StorageClassificationMappingInner get(String resourceName, String resourceGroupN */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, StorageClassificationMappingInner> beginCreate( - String resourceName, String resourceGroupName, String fabricName, String storageClassificationName, + String resourceGroupName, String resourceName, String fabricName, String storageClassificationName, String storageClassificationMappingName, StorageClassificationMappingInput pairingInput); /** @@ -120,8 +120,8 @@ SyncPoller, StorageClassificationM * * The operation to create a storage classification mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. @@ -134,7 +134,7 @@ SyncPoller, StorageClassificationM */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, StorageClassificationMappingInner> beginCreate( - String resourceName, String resourceGroupName, String fabricName, String storageClassificationName, + String resourceGroupName, String resourceName, String fabricName, String storageClassificationName, String storageClassificationMappingName, StorageClassificationMappingInput pairingInput, Context context); /** @@ -142,8 +142,8 @@ SyncPoller, StorageClassificationM * * The operation to create a storage classification mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. @@ -154,7 +154,7 @@ SyncPoller, StorageClassificationM * @return storage mapping object. */ @ServiceMethod(returns = ReturnType.SINGLE) - StorageClassificationMappingInner create(String resourceName, String resourceGroupName, String fabricName, + StorageClassificationMappingInner create(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName, String storageClassificationMappingName, StorageClassificationMappingInput pairingInput); @@ -163,8 +163,8 @@ StorageClassificationMappingInner create(String resourceName, String resourceGro * * The operation to create a storage classification mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. @@ -176,7 +176,7 @@ StorageClassificationMappingInner create(String resourceName, String resourceGro * @return storage mapping object. */ @ServiceMethod(returns = ReturnType.SINGLE) - StorageClassificationMappingInner create(String resourceName, String resourceGroupName, String fabricName, + StorageClassificationMappingInner create(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName, String storageClassificationMappingName, StorageClassificationMappingInput pairingInput, Context context); @@ -185,8 +185,8 @@ StorageClassificationMappingInner create(String resourceName, String resourceGro * * The operation to delete a storage classification mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. @@ -196,7 +196,7 @@ StorageClassificationMappingInner create(String resourceName, String resourceGro * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceName, String resourceGroupName, String fabricName, + SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName, String storageClassificationMappingName); /** @@ -204,8 +204,8 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * * The operation to delete a storage classification mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. @@ -216,7 +216,7 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceName, String resourceGroupName, String fabricName, + SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName, String storageClassificationMappingName, Context context); /** @@ -224,8 +224,8 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * * The operation to delete a storage classification mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. @@ -234,7 +234,7 @@ SyncPoller, Void> beginDelete(String resourceName, String resou * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceName, String resourceGroupName, String fabricName, String storageClassificationName, + void delete(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName, String storageClassificationMappingName); /** @@ -242,8 +242,8 @@ void delete(String resourceName, String resourceGroupName, String fabricName, St * * The operation to delete a storage classification mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. @@ -253,7 +253,7 @@ void delete(String resourceName, String resourceGroupName, String fabricName, St * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceName, String resourceGroupName, String fabricName, String storageClassificationName, + void delete(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName, String storageClassificationMappingName, Context context); /** @@ -261,23 +261,23 @@ void delete(String resourceName, String resourceGroupName, String fabricName, St * * Lists the storage classification mappings in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return collection of storage mapping details as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceName, String resourceGroupName); + PagedIterable list(String resourceGroupName, String resourceName); /** * Gets the list of storage classification mappings objects under a vault. * * Lists the storage classification mappings in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -285,6 +285,6 @@ void delete(String resourceName, String resourceGroupName, String fabricName, St * @return collection of storage mapping details as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceName, String resourceGroupName, + PagedIterable list(String resourceGroupName, String resourceName, Context context); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/StorageClassificationsClient.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/StorageClassificationsClient.java index 0fa6042a9e38..f1fdf586fe51 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/StorageClassificationsClient.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/StorageClassificationsClient.java @@ -20,8 +20,8 @@ public interface StorageClassificationsClient { * * Lists the storage classifications available in the specified fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Site name of interest. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -29,7 +29,7 @@ public interface StorageClassificationsClient { * @return collection of storage details as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByReplicationFabrics(String resourceName, String resourceGroupName, + PagedIterable listByReplicationFabrics(String resourceGroupName, String resourceName, String fabricName); /** @@ -37,8 +37,8 @@ PagedIterable listByReplicationFabrics(String resour * * Lists the storage classifications available in the specified fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Site name of interest. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -47,7 +47,7 @@ PagedIterable listByReplicationFabrics(String resour * @return collection of storage details as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByReplicationFabrics(String resourceName, String resourceGroupName, + PagedIterable listByReplicationFabrics(String resourceGroupName, String resourceName, String fabricName, Context context); /** @@ -55,8 +55,8 @@ PagedIterable listByReplicationFabrics(String resour * * Gets the details of the specified storage classification. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param context The context to associate with this operation. @@ -66,7 +66,7 @@ PagedIterable listByReplicationFabrics(String resour * @return the details of the specified storage classification along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceName, String resourceGroupName, + Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName, Context context); /** @@ -74,8 +74,8 @@ Response getWithResponse(String resourceName, String * * Gets the details of the specified storage classification. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -84,7 +84,7 @@ Response getWithResponse(String resourceName, String * @return the details of the specified storage classification. */ @ServiceMethod(returns = ReturnType.SINGLE) - StorageClassificationInner get(String resourceName, String resourceGroupName, String fabricName, + StorageClassificationInner get(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName); /** @@ -92,23 +92,23 @@ StorageClassificationInner get(String resourceName, String resourceGroupName, St * * Lists the storage classifications in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return collection of storage details as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceName, String resourceGroupName); + PagedIterable list(String resourceGroupName, String resourceName); /** * Gets the list of storage classification objects under a vault. * * Lists the storage classifications in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -116,5 +116,5 @@ StorageClassificationInner get(String resourceName, String resourceGroupName, St * @return collection of storage details as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceName, String resourceGroupName, Context context); + PagedIterable list(String resourceGroupName, String resourceName, Context context); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/SupportedOperatingSystemsOperationsClient.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/SupportedOperatingSystemsOperationsClient.java index 9429601b95a1..d8e15becbdc6 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/SupportedOperatingSystemsOperationsClient.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/SupportedOperatingSystemsOperationsClient.java @@ -17,8 +17,8 @@ public interface SupportedOperatingSystemsOperationsClient { /** * Gets the data of supported operating systems by SRS. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param instanceType The instance type. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -27,19 +27,19 @@ public interface SupportedOperatingSystemsOperationsClient { * @return the data of supported operating systems by SRS along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceName, String resourceGroupName, + Response getWithResponse(String resourceGroupName, String resourceName, String instanceType, Context context); /** * Gets the data of supported operating systems by SRS. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the data of supported operating systems by SRS. */ @ServiceMethod(returns = ReturnType.SINGLE) - SupportedOperatingSystemsInner get(String resourceName, String resourceGroupName); + SupportedOperatingSystemsInner get(String resourceGroupName, String resourceName); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/TargetComputeSizesClient.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/TargetComputeSizesClient.java index c19347900a8e..2e0e5e0fcd59 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/TargetComputeSizesClient.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/TargetComputeSizesClient.java @@ -19,8 +19,8 @@ public interface TargetComputeSizesClient { * * Lists the available target compute sizes for a replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -30,7 +30,7 @@ public interface TargetComputeSizesClient { * @return target compute size collection as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByReplicationProtectedItems(String resourceName, String resourceGroupName, + PagedIterable listByReplicationProtectedItems(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName); /** @@ -38,8 +38,8 @@ PagedIterable listByReplicationProtectedItems(String res * * Lists the available target compute sizes for a replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -50,6 +50,6 @@ PagedIterable listByReplicationProtectedItems(String res * @return target compute size collection as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByReplicationProtectedItems(String resourceName, String resourceGroupName, + PagedIterable listByReplicationProtectedItems(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/models/ClusterRecoveryPointInner.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/models/ClusterRecoveryPointInner.java new file mode 100644 index 000000000000..041a2061ae90 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/models/ClusterRecoveryPointInner.java @@ -0,0 +1,181 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ClusterRecoveryPointProperties; +import java.io.IOException; + +/** + * Recovery point. + */ +@Fluent +public final class ClusterRecoveryPointInner implements JsonSerializable { + /* + * The recovery point Id. + */ + private String id; + + /* + * The name of the recovery point. + */ + private String name; + + /* + * The resource type. + */ + private String type; + + /* + * The recovery point properties. + */ + private ClusterRecoveryPointProperties properties; + + /** + * Creates an instance of ClusterRecoveryPointInner class. + */ + public ClusterRecoveryPointInner() { + } + + /** + * Get the id property: The recovery point Id. + * + * @return the id value. + */ + public String id() { + return this.id; + } + + /** + * Set the id property: The recovery point Id. + * + * @param id the id value to set. + * @return the ClusterRecoveryPointInner object itself. + */ + public ClusterRecoveryPointInner withId(String id) { + this.id = id; + return this; + } + + /** + * Get the name property: The name of the recovery point. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Set the name property: The name of the recovery point. + * + * @param name the name value to set. + * @return the ClusterRecoveryPointInner object itself. + */ + public ClusterRecoveryPointInner withName(String name) { + this.name = name; + return this; + } + + /** + * Get the type property: The resource type. + * + * @return the type value. + */ + public String type() { + return this.type; + } + + /** + * Set the type property: The resource type. + * + * @param type the type value to set. + * @return the ClusterRecoveryPointInner object itself. + */ + public ClusterRecoveryPointInner withType(String type) { + this.type = type; + return this; + } + + /** + * Get the properties property: The recovery point properties. + * + * @return the properties value. + */ + public ClusterRecoveryPointProperties properties() { + return this.properties; + } + + /** + * Set the properties property: The recovery point properties. + * + * @param properties the properties value to set. + * @return the ClusterRecoveryPointInner object itself. + */ + public ClusterRecoveryPointInner withProperties(ClusterRecoveryPointProperties properties) { + this.properties = properties; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (properties() != null) { + properties().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("id", this.id); + jsonWriter.writeStringField("name", this.name); + jsonWriter.writeStringField("type", this.type); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterRecoveryPointInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterRecoveryPointInner if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ClusterRecoveryPointInner. + */ + public static ClusterRecoveryPointInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterRecoveryPointInner deserializedClusterRecoveryPointInner = new ClusterRecoveryPointInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedClusterRecoveryPointInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedClusterRecoveryPointInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedClusterRecoveryPointInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedClusterRecoveryPointInner.properties = ClusterRecoveryPointProperties.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedClusterRecoveryPointInner; + }); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/models/ReplicationProtectionClusterInner.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/models/ReplicationProtectionClusterInner.java new file mode 100644 index 000000000000..ce5f6e58c70c --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/models/ReplicationProtectionClusterInner.java @@ -0,0 +1,151 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.ProxyResource; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationProtectionClusterProperties; +import java.io.IOException; + +/** + * Replication protection Cluster. + */ +@Fluent +public final class ReplicationProtectionClusterInner extends ProxyResource { + /* + * The custom data. + */ + private ReplicationProtectionClusterProperties properties; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of ReplicationProtectionClusterInner class. + */ + public ReplicationProtectionClusterInner() { + } + + /** + * Get the properties property: The custom data. + * + * @return the properties value. + */ + public ReplicationProtectionClusterProperties properties() { + return this.properties; + } + + /** + * Set the properties property: The custom data. + * + * @param properties the properties value to set. + * @return the ReplicationProtectionClusterInner object itself. + */ + public ReplicationProtectionClusterInner withProperties(ReplicationProtectionClusterProperties properties) { + this.properties = properties; + return this; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (properties() != null) { + properties().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ReplicationProtectionClusterInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ReplicationProtectionClusterInner if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the ReplicationProtectionClusterInner. + */ + public static ReplicationProtectionClusterInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ReplicationProtectionClusterInner deserializedReplicationProtectionClusterInner + = new ReplicationProtectionClusterInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedReplicationProtectionClusterInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedReplicationProtectionClusterInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedReplicationProtectionClusterInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedReplicationProtectionClusterInner.properties + = ReplicationProtectionClusterProperties.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedReplicationProtectionClusterInner; + }); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/AlertImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/AlertImpl.java index 8d3e4fb255b9..aaad6204f0df 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/AlertImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/AlertImpl.java @@ -59,24 +59,24 @@ private com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManag return this.serviceManager; } - private String resourceName; - private String resourceGroupName; + private String resourceName; + private String alertSettingName; private ConfigureAlertRequest createRequest; - public AlertImpl withExistingVault(String resourceName, String resourceGroupName) { - this.resourceName = resourceName; + public AlertImpl withExistingVault(String resourceGroupName, String resourceName) { this.resourceGroupName = resourceGroupName; + this.resourceName = resourceName; return this; } public Alert create() { this.innerObject = serviceManager.serviceClient() .getReplicationAlertSettings() - .createWithResponse(resourceName, resourceGroupName, alertSettingName, createRequest, Context.NONE) + .createWithResponse(resourceGroupName, resourceName, alertSettingName, createRequest, Context.NONE) .getValue(); return this; } @@ -84,7 +84,7 @@ public Alert create() { public Alert create(Context context) { this.innerObject = serviceManager.serviceClient() .getReplicationAlertSettings() - .createWithResponse(resourceName, resourceGroupName, alertSettingName, createRequest, context) + .createWithResponse(resourceGroupName, resourceName, alertSettingName, createRequest, context) .getValue(); return this; } @@ -99,7 +99,7 @@ public Alert create(Context context) { public Alert refresh() { this.innerObject = serviceManager.serviceClient() .getReplicationAlertSettings() - .getWithResponse(resourceName, resourceGroupName, alertSettingName, Context.NONE) + .getWithResponse(resourceGroupName, resourceName, alertSettingName, Context.NONE) .getValue(); return this; } @@ -107,7 +107,7 @@ public Alert refresh() { public Alert refresh(Context context) { this.innerObject = serviceManager.serviceClient() .getReplicationAlertSettings() - .getWithResponse(resourceName, resourceGroupName, alertSettingName, context) + .getWithResponse(resourceGroupName, resourceName, alertSettingName, context) .getValue(); return this; } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ClusterRecoveryPointImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ClusterRecoveryPointImpl.java new file mode 100644 index 000000000000..105415d701d7 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ClusterRecoveryPointImpl.java @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.implementation; + +import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.ClusterRecoveryPointInner; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ClusterRecoveryPoint; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ClusterRecoveryPointProperties; + +public final class ClusterRecoveryPointImpl implements ClusterRecoveryPoint { + private ClusterRecoveryPointInner innerObject; + + private final com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager serviceManager; + + ClusterRecoveryPointImpl(ClusterRecoveryPointInner innerObject, + com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public ClusterRecoveryPointProperties properties() { + return this.innerModel().properties(); + } + + public ClusterRecoveryPointInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ClusterRecoveryPointOperationsClientImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ClusterRecoveryPointOperationsClientImpl.java new file mode 100644 index 000000000000..1752375173f4 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ClusterRecoveryPointOperationsClientImpl.java @@ -0,0 +1,262 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.implementation; + +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.ClusterRecoveryPointOperationsClient; +import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.ClusterRecoveryPointInner; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in ClusterRecoveryPointOperationsClient. + */ +public final class ClusterRecoveryPointOperationsClientImpl implements ClusterRecoveryPointOperationsClient { + /** + * The proxy service used to perform REST calls. + */ + private final ClusterRecoveryPointOperationsService service; + + /** + * The service client containing this operation class. + */ + private final SiteRecoveryManagementClientImpl client; + + /** + * Initializes an instance of ClusterRecoveryPointOperationsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + ClusterRecoveryPointOperationsClientImpl(SiteRecoveryManagementClientImpl client) { + this.service = RestProxy.create(ClusterRecoveryPointOperationsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for SiteRecoveryManagementClientClusterRecoveryPointOperations to be used + * by the proxy service to perform REST calls. + */ + @Host("{$host}") + @ServiceInterface(name = "SiteRecoveryManageme") + public interface ClusterRecoveryPointOperationsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionClusters/{replicationProtectionClusterName}/recoveryPoints/{recoveryPointName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, + @PathParam("protectionContainerName") String protectionContainerName, + @PathParam("replicationProtectionClusterName") String replicationProtectionClusterName, + @PathParam("recoveryPointName") String recoveryPointName, @HeaderParam("Accept") String accept, + Context context); + } + + /** + * Gets a recovery point. + * + * Get the details of specified recovery point. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param recoveryPointName The recovery point name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the details of specified recovery point along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicationProtectionClusterName, + String recoveryPointName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (fabricName == null) { + return Mono.error(new IllegalArgumentException("Parameter fabricName is required and cannot be null.")); + } + if (protectionContainerName == null) { + return Mono.error( + new IllegalArgumentException("Parameter protectionContainerName is required and cannot be null.")); + } + if (replicationProtectionClusterName == null) { + return Mono.error(new IllegalArgumentException( + "Parameter replicationProtectionClusterName is required and cannot be null.")); + } + if (recoveryPointName == null) { + return Mono + .error(new IllegalArgumentException("Parameter recoveryPointName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + replicationProtectionClusterName, recoveryPointName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets a recovery point. + * + * Get the details of specified recovery point. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param recoveryPointName The recovery point name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the details of specified recovery point along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicationProtectionClusterName, + String recoveryPointName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (fabricName == null) { + return Mono.error(new IllegalArgumentException("Parameter fabricName is required and cannot be null.")); + } + if (protectionContainerName == null) { + return Mono.error( + new IllegalArgumentException("Parameter protectionContainerName is required and cannot be null.")); + } + if (replicationProtectionClusterName == null) { + return Mono.error(new IllegalArgumentException( + "Parameter replicationProtectionClusterName is required and cannot be null.")); + } + if (recoveryPointName == null) { + return Mono + .error(new IllegalArgumentException("Parameter recoveryPointName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, + this.client.getSubscriptionId(), fabricName, protectionContainerName, replicationProtectionClusterName, + recoveryPointName, accept, context); + } + + /** + * Gets a recovery point. + * + * Get the details of specified recovery point. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param recoveryPointName The recovery point name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the details of specified recovery point on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, String recoveryPointName) { + return getWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, recoveryPointName).flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets a recovery point. + * + * Get the details of specified recovery point. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param recoveryPointName The recovery point name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the details of specified recovery point along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName, + String recoveryPointName, Context context) { + return getWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, recoveryPointName, context).block(); + } + + /** + * Gets a recovery point. + * + * Get the details of specified recovery point. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param recoveryPointName The recovery point name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the details of specified recovery point. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ClusterRecoveryPointInner get(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, String recoveryPointName) { + return getWithResponse(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, recoveryPointName, Context.NONE).getValue(); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ClusterRecoveryPointOperationsImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ClusterRecoveryPointOperationsImpl.java new file mode 100644 index 000000000000..6b7cb548b2cd --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ClusterRecoveryPointOperationsImpl.java @@ -0,0 +1,62 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.implementation; + +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.ClusterRecoveryPointOperationsClient; +import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.ClusterRecoveryPointInner; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ClusterRecoveryPoint; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ClusterRecoveryPointOperations; + +public final class ClusterRecoveryPointOperationsImpl implements ClusterRecoveryPointOperations { + private static final ClientLogger LOGGER = new ClientLogger(ClusterRecoveryPointOperationsImpl.class); + + private final ClusterRecoveryPointOperationsClient innerClient; + + private final com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager serviceManager; + + public ClusterRecoveryPointOperationsImpl(ClusterRecoveryPointOperationsClient innerClient, + com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public Response getWithResponse(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName, + String recoveryPointName, Context context) { + Response inner = this.serviceClient() + .getWithResponse(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, recoveryPointName, context); + if (inner != null) { + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new ClusterRecoveryPointImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public ClusterRecoveryPoint get(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, String recoveryPointName) { + ClusterRecoveryPointInner inner = this.serviceClient() + .get(resourceGroupName, resourceName, fabricName, protectionContainerName, replicationProtectionClusterName, + recoveryPointName); + if (inner != null) { + return new ClusterRecoveryPointImpl(inner, this.manager()); + } else { + return null; + } + } + + private ClusterRecoveryPointOperationsClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ClusterRecoveryPointsClientImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ClusterRecoveryPointsClientImpl.java new file mode 100644 index 000000000000..3dbdfe19bb86 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ClusterRecoveryPointsClientImpl.java @@ -0,0 +1,353 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.implementation; + +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.ClusterRecoveryPointsClient; +import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.ClusterRecoveryPointInner; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ClusterRecoveryPointCollection; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in ClusterRecoveryPointsClient. + */ +public final class ClusterRecoveryPointsClientImpl implements ClusterRecoveryPointsClient { + /** + * The proxy service used to perform REST calls. + */ + private final ClusterRecoveryPointsService service; + + /** + * The service client containing this operation class. + */ + private final SiteRecoveryManagementClientImpl client; + + /** + * Initializes an instance of ClusterRecoveryPointsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + ClusterRecoveryPointsClientImpl(SiteRecoveryManagementClientImpl client) { + this.service = RestProxy.create(ClusterRecoveryPointsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for SiteRecoveryManagementClientClusterRecoveryPoints to be used by the + * proxy service to perform REST calls. + */ + @Host("{$host}") + @ServiceInterface(name = "SiteRecoveryManageme") + public interface ClusterRecoveryPointsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionClusters/{replicationProtectionClusterName}/recoveryPoints") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByReplicationProtectionCluster( + @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @PathParam("protectionContainerName") String protectionContainerName, + @PathParam("replicationProtectionClusterName") String replicationProtectionClusterName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByReplicationProtectionClusterNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * Gets the list of cluster recovery points. + * + * The list of cluster recovery points. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return collection of cluster recovery point details along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByReplicationProtectionClusterSinglePageAsync( + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, + String replicationProtectionClusterName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (fabricName == null) { + return Mono.error(new IllegalArgumentException("Parameter fabricName is required and cannot be null.")); + } + if (protectionContainerName == null) { + return Mono.error( + new IllegalArgumentException("Parameter protectionContainerName is required and cannot be null.")); + } + if (replicationProtectionClusterName == null) { + return Mono.error(new IllegalArgumentException( + "Parameter replicationProtectionClusterName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByReplicationProtectionCluster(this.client.getEndpoint(), + this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), + fabricName, protectionContainerName, replicationProtectionClusterName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets the list of cluster recovery points. + * + * The list of cluster recovery points. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return collection of cluster recovery point details along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByReplicationProtectionClusterSinglePageAsync( + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, + String replicationProtectionClusterName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (fabricName == null) { + return Mono.error(new IllegalArgumentException("Parameter fabricName is required and cannot be null.")); + } + if (protectionContainerName == null) { + return Mono.error( + new IllegalArgumentException("Parameter protectionContainerName is required and cannot be null.")); + } + if (replicationProtectionClusterName == null) { + return Mono.error(new IllegalArgumentException( + "Parameter replicationProtectionClusterName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listByReplicationProtectionCluster(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + replicationProtectionClusterName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Gets the list of cluster recovery points. + * + * The list of cluster recovery points. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return collection of cluster recovery point details as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByReplicationProtectionClusterAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, + String replicationProtectionClusterName) { + return new PagedFlux<>( + () -> listByReplicationProtectionClusterSinglePageAsync(resourceGroupName, resourceName, fabricName, + protectionContainerName, replicationProtectionClusterName), + nextLink -> listByReplicationProtectionClusterNextSinglePageAsync(nextLink)); + } + + /** + * Gets the list of cluster recovery points. + * + * The list of cluster recovery points. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return collection of cluster recovery point details as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByReplicationProtectionClusterAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicationProtectionClusterName, + Context context) { + return new PagedFlux<>( + () -> listByReplicationProtectionClusterSinglePageAsync(resourceGroupName, resourceName, fabricName, + protectionContainerName, replicationProtectionClusterName, context), + nextLink -> listByReplicationProtectionClusterNextSinglePageAsync(nextLink, context)); + } + + /** + * Gets the list of cluster recovery points. + * + * The list of cluster recovery points. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return collection of cluster recovery point details as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByReplicationProtectionCluster(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, + String replicationProtectionClusterName) { + return new PagedIterable<>(listByReplicationProtectionClusterAsync(resourceGroupName, resourceName, fabricName, + protectionContainerName, replicationProtectionClusterName)); + } + + /** + * Gets the list of cluster recovery points. + * + * The list of cluster recovery points. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return collection of cluster recovery point details as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByReplicationProtectionCluster(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicationProtectionClusterName, + Context context) { + return new PagedIterable<>(listByReplicationProtectionClusterAsync(resourceGroupName, resourceName, fabricName, + protectionContainerName, replicationProtectionClusterName, context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return collection of cluster recovery point details along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listByReplicationProtectionClusterNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByReplicationProtectionClusterNext(nextLink, this.client.getEndpoint(), + accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return collection of cluster recovery point details along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listByReplicationProtectionClusterNextSinglePageAsync(String nextLink, Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listByReplicationProtectionClusterNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ClusterRecoveryPointsImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ClusterRecoveryPointsImpl.java new file mode 100644 index 000000000000..e34aa9377198 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ClusterRecoveryPointsImpl.java @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.ClusterRecoveryPointsClient; +import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.ClusterRecoveryPointInner; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ClusterRecoveryPoint; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ClusterRecoveryPoints; + +public final class ClusterRecoveryPointsImpl implements ClusterRecoveryPoints { + private static final ClientLogger LOGGER = new ClientLogger(ClusterRecoveryPointsImpl.class); + + private final ClusterRecoveryPointsClient innerClient; + + private final com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager serviceManager; + + public ClusterRecoveryPointsImpl(ClusterRecoveryPointsClient innerClient, + com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public PagedIterable listByReplicationProtectionCluster(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, + String replicationProtectionClusterName) { + PagedIterable inner = this.serviceClient() + .listByReplicationProtectionCluster(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ClusterRecoveryPointImpl(inner1, this.manager())); + } + + public PagedIterable listByReplicationProtectionCluster(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicationProtectionClusterName, + Context context) { + PagedIterable inner = this.serviceClient() + .listByReplicationProtectionCluster(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ClusterRecoveryPointImpl(inner1, this.manager())); + } + + private ClusterRecoveryPointsClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/FabricImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/FabricImpl.java index 3879ff9e14b1..44a6e53eda43 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/FabricImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/FabricImpl.java @@ -61,31 +61,31 @@ private com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManag return this.serviceManager; } - private String resourceName; - private String resourceGroupName; + private String resourceName; + private String fabricName; private FabricCreationInput createInput; - public FabricImpl withExistingVault(String resourceName, String resourceGroupName) { - this.resourceName = resourceName; + public FabricImpl withExistingVault(String resourceGroupName, String resourceName) { this.resourceGroupName = resourceGroupName; + this.resourceName = resourceName; return this; } public Fabric create() { this.innerObject = serviceManager.serviceClient() .getReplicationFabrics() - .create(resourceName, resourceGroupName, fabricName, createInput, Context.NONE); + .create(resourceGroupName, resourceName, fabricName, createInput, Context.NONE); return this; } public Fabric create(Context context) { this.innerObject = serviceManager.serviceClient() .getReplicationFabrics() - .create(resourceName, resourceGroupName, fabricName, createInput, context); + .create(resourceGroupName, resourceName, fabricName, createInput, context); return this; } @@ -100,7 +100,7 @@ public Fabric refresh() { String localFilter = null; this.innerObject = serviceManager.serviceClient() .getReplicationFabrics() - .getWithResponse(resourceName, resourceGroupName, fabricName, localFilter, Context.NONE) + .getWithResponse(resourceGroupName, resourceName, fabricName, localFilter, Context.NONE) .getValue(); return this; } @@ -109,54 +109,54 @@ public Fabric refresh(Context context) { String localFilter = null; this.innerObject = serviceManager.serviceClient() .getReplicationFabrics() - .getWithResponse(resourceName, resourceGroupName, fabricName, localFilter, context) + .getWithResponse(resourceGroupName, resourceName, fabricName, localFilter, context) .getValue(); return this; } public Fabric checkConsistency() { - return serviceManager.replicationFabrics().checkConsistency(resourceName, resourceGroupName, fabricName); + return serviceManager.replicationFabrics().checkConsistency(resourceGroupName, resourceName, fabricName); } public Fabric checkConsistency(Context context) { return serviceManager.replicationFabrics() - .checkConsistency(resourceName, resourceGroupName, fabricName, context); + .checkConsistency(resourceGroupName, resourceName, fabricName, context); } public void migrateToAad() { - serviceManager.replicationFabrics().migrateToAad(resourceName, resourceGroupName, fabricName); + serviceManager.replicationFabrics().migrateToAad(resourceGroupName, resourceName, fabricName); } public void migrateToAad(Context context) { - serviceManager.replicationFabrics().migrateToAad(resourceName, resourceGroupName, fabricName, context); + serviceManager.replicationFabrics().migrateToAad(resourceGroupName, resourceName, fabricName, context); } public Fabric reassociateGateway(FailoverProcessServerRequest failoverProcessServerRequest) { return serviceManager.replicationFabrics() - .reassociateGateway(resourceName, resourceGroupName, fabricName, failoverProcessServerRequest); + .reassociateGateway(resourceGroupName, resourceName, fabricName, failoverProcessServerRequest); } public Fabric reassociateGateway(FailoverProcessServerRequest failoverProcessServerRequest, Context context) { return serviceManager.replicationFabrics() - .reassociateGateway(resourceName, resourceGroupName, fabricName, failoverProcessServerRequest, context); + .reassociateGateway(resourceGroupName, resourceName, fabricName, failoverProcessServerRequest, context); } public void delete() { - serviceManager.replicationFabrics().delete(resourceName, resourceGroupName, fabricName); + serviceManager.replicationFabrics().delete(resourceGroupName, resourceName, fabricName); } public void delete(Context context) { - serviceManager.replicationFabrics().delete(resourceName, resourceGroupName, fabricName, context); + serviceManager.replicationFabrics().delete(resourceGroupName, resourceName, fabricName, context); } public Fabric renewCertificate(RenewCertificateInput renewCertificate) { return serviceManager.replicationFabrics() - .renewCertificate(resourceName, resourceGroupName, fabricName, renewCertificate); + .renewCertificate(resourceGroupName, resourceName, fabricName, renewCertificate); } public Fabric renewCertificate(RenewCertificateInput renewCertificate, Context context) { return serviceManager.replicationFabrics() - .renewCertificate(resourceName, resourceGroupName, fabricName, renewCertificate, context); + .renewCertificate(resourceGroupName, resourceName, fabricName, renewCertificate, context); } public void removeInfra() { diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/MigrationItemImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/MigrationItemImpl.java index 168bd813b7e1..4cc56ece3b14 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/MigrationItemImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/MigrationItemImpl.java @@ -65,10 +65,10 @@ private com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManag return this.serviceManager; } - private String resourceName; - private String resourceGroupName; + private String resourceName; + private String fabricName; private String protectionContainerName; @@ -79,10 +79,10 @@ private com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManag private UpdateMigrationItemInput updateInput; - public MigrationItemImpl withExistingReplicationProtectionContainer(String resourceName, String resourceGroupName, + public MigrationItemImpl withExistingReplicationProtectionContainer(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName) { - this.resourceName = resourceName; this.resourceGroupName = resourceGroupName; + this.resourceName = resourceName; this.fabricName = fabricName; this.protectionContainerName = protectionContainerName; return this; @@ -91,7 +91,7 @@ public MigrationItemImpl withExistingReplicationProtectionContainer(String resou public MigrationItem create() { this.innerObject = serviceManager.serviceClient() .getReplicationMigrationItems() - .create(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + .create(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, createInput, Context.NONE); return this; } @@ -99,7 +99,7 @@ public MigrationItem create() { public MigrationItem create(Context context) { this.innerObject = serviceManager.serviceClient() .getReplicationMigrationItems() - .create(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + .create(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, createInput, context); return this; } @@ -120,7 +120,7 @@ public MigrationItemImpl update() { public MigrationItem apply() { this.innerObject = serviceManager.serviceClient() .getReplicationMigrationItems() - .update(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + .update(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, updateInput, Context.NONE); return this; } @@ -128,7 +128,7 @@ public MigrationItem apply() { public MigrationItem apply(Context context) { this.innerObject = serviceManager.serviceClient() .getReplicationMigrationItems() - .update(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + .update(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, updateInput, context); return this; } @@ -137,8 +137,8 @@ public MigrationItem apply(Context context) { com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "vaults"); this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.resourceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "vaults"); this.fabricName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "replicationFabrics"); this.protectionContainerName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "replicationProtectionContainers"); @@ -149,7 +149,7 @@ public MigrationItem apply(Context context) { public MigrationItem refresh() { this.innerObject = serviceManager.serviceClient() .getReplicationMigrationItems() - .getWithResponse(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + .getWithResponse(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, Context.NONE) .getValue(); return this; @@ -158,7 +158,7 @@ public MigrationItem refresh() { public MigrationItem refresh(Context context) { this.innerObject = serviceManager.serviceClient() .getReplicationMigrationItems() - .getWithResponse(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + .getWithResponse(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, context) .getValue(); return this; @@ -166,72 +166,72 @@ public MigrationItem refresh(Context context) { public MigrationItem migrate(MigrateInput migrateInput) { return serviceManager.replicationMigrationItems() - .migrate(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + .migrate(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, migrateInput); } public MigrationItem migrate(MigrateInput migrateInput, Context context) { return serviceManager.replicationMigrationItems() - .migrate(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + .migrate(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, migrateInput, context); } public MigrationItem pauseReplication(PauseReplicationInput pauseReplicationInput) { return serviceManager.replicationMigrationItems() - .pauseReplication(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + .pauseReplication(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, pauseReplicationInput); } public MigrationItem pauseReplication(PauseReplicationInput pauseReplicationInput, Context context) { return serviceManager.replicationMigrationItems() - .pauseReplication(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + .pauseReplication(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, pauseReplicationInput, context); } public MigrationItem resumeReplication(ResumeReplicationInput resumeReplicationInput) { return serviceManager.replicationMigrationItems() - .resumeReplication(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + .resumeReplication(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, resumeReplicationInput); } public MigrationItem resumeReplication(ResumeReplicationInput resumeReplicationInput, Context context) { return serviceManager.replicationMigrationItems() - .resumeReplication(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + .resumeReplication(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, resumeReplicationInput, context); } public MigrationItem resync(ResyncInput input) { return serviceManager.replicationMigrationItems() - .resync(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, input); + .resync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, input); } public MigrationItem resync(ResyncInput input, Context context) { return serviceManager.replicationMigrationItems() - .resync(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, input, + .resync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, input, context); } public MigrationItem testMigrate(TestMigrateInput testMigrateInput) { return serviceManager.replicationMigrationItems() - .testMigrate(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + .testMigrate(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, testMigrateInput); } public MigrationItem testMigrate(TestMigrateInput testMigrateInput, Context context) { return serviceManager.replicationMigrationItems() - .testMigrate(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + .testMigrate(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, testMigrateInput, context); } public MigrationItem testMigrateCleanup(TestMigrateCleanupInput testMigrateCleanupInput) { return serviceManager.replicationMigrationItems() - .testMigrateCleanup(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + .testMigrateCleanup(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, testMigrateCleanupInput); } public MigrationItem testMigrateCleanup(TestMigrateCleanupInput testMigrateCleanupInput, Context context) { return serviceManager.replicationMigrationItems() - .testMigrateCleanup(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + .testMigrateCleanup(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, testMigrateCleanupInput, context); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/MigrationRecoveryPointsClientImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/MigrationRecoveryPointsClientImpl.java index 3147f243ceae..2bb768962851 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/MigrationRecoveryPointsClientImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/MigrationRecoveryPointsClientImpl.java @@ -68,7 +68,7 @@ public interface MigrationRecoveryPointsService { @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByReplicationMigrationItems( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("resourceName") String resourceName, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @PathParam("migrationItemName") String migrationItemName, @HeaderParam("Accept") String accept, @@ -79,9 +79,9 @@ Mono> listByReplicationMigrationItems @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @PathParam("migrationItemName") String migrationItemName, @PathParam("migrationRecoveryPointName") String migrationRecoveryPointName, @@ -99,8 +99,8 @@ Mono> listByReplicationMigrationItems /** * Gets the recovery points for a migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric unique name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -112,19 +112,19 @@ Mono> listByReplicationMigrationItems */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByReplicationMigrationItemsSinglePageAsync( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -143,7 +143,7 @@ private Mono> listByReplicationMigrat final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByReplicationMigrationItems(this.client.getEndpoint(), - this.client.getApiVersion(), resourceName, resourceGroupName, this.client.getSubscriptionId(), + this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, migrationItemName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) @@ -153,8 +153,8 @@ private Mono> listByReplicationMigrat /** * Gets the recovery points for a migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric unique name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -167,19 +167,19 @@ private Mono> listByReplicationMigrat */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByReplicationMigrationItemsSinglePageAsync( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -198,9 +198,9 @@ private Mono> listByReplicationMigrat final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByReplicationMigrationItems(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, - migrationItemName, accept, context) + .listByReplicationMigrationItems(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, migrationItemName, + accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -208,8 +208,8 @@ private Mono> listByReplicationMigrat /** * Gets the recovery points for a migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric unique name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -219,10 +219,10 @@ private Mono> listByReplicationMigrat * @return the recovery points for a migration item as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByReplicationMigrationItemsAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName) { + private PagedFlux listByReplicationMigrationItemsAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName) { return new PagedFlux<>( - () -> listByReplicationMigrationItemsSinglePageAsync(resourceName, resourceGroupName, fabricName, + () -> listByReplicationMigrationItemsSinglePageAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName), nextLink -> listByReplicationMigrationItemsNextSinglePageAsync(nextLink)); } @@ -230,8 +230,8 @@ private PagedFlux listByReplicationMigrationItemsAs /** * Gets the recovery points for a migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric unique name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -242,11 +242,11 @@ private PagedFlux listByReplicationMigrationItemsAs * @return the recovery points for a migration item as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByReplicationMigrationItemsAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, + private PagedFlux listByReplicationMigrationItemsAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName, Context context) { return new PagedFlux<>( - () -> listByReplicationMigrationItemsSinglePageAsync(resourceName, resourceGroupName, fabricName, + () -> listByReplicationMigrationItemsSinglePageAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, context), nextLink -> listByReplicationMigrationItemsNextSinglePageAsync(nextLink, context)); } @@ -254,8 +254,8 @@ private PagedFlux listByReplicationMigrationItemsAs /** * Gets the recovery points for a migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric unique name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -265,17 +265,17 @@ private PagedFlux listByReplicationMigrationItemsAs * @return the recovery points for a migration item as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByReplicationMigrationItems(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName) { - return new PagedIterable<>(listByReplicationMigrationItemsAsync(resourceName, resourceGroupName, fabricName, + public PagedIterable listByReplicationMigrationItems(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName) { + return new PagedIterable<>(listByReplicationMigrationItemsAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName)); } /** * Gets the recovery points for a migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric unique name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -286,18 +286,18 @@ public PagedIterable listByReplicationMigrationItem * @return the recovery points for a migration item as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByReplicationMigrationItems(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, + public PagedIterable listByReplicationMigrationItems(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName, Context context) { - return new PagedIterable<>(listByReplicationMigrationItemsAsync(resourceName, resourceGroupName, fabricName, + return new PagedIterable<>(listByReplicationMigrationItemsAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, context)); } /** * Gets a recovery point for a migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric unique name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -309,20 +309,20 @@ public PagedIterable listByReplicationMigrationItem * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, + private Mono> getWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName, String migrationRecoveryPointName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -344,8 +344,8 @@ private Mono> getWithResponseAsync(String } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, migrationItemName, migrationRecoveryPointName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -353,8 +353,8 @@ private Mono> getWithResponseAsync(String /** * Gets a recovery point for a migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric unique name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -367,20 +367,20 @@ private Mono> getWithResponseAsync(String * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, + private Mono> getWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName, String migrationRecoveryPointName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -402,7 +402,7 @@ private Mono> getWithResponseAsync(String } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, migrationItemName, migrationRecoveryPointName, accept, context); } @@ -410,8 +410,8 @@ private Mono> getWithResponseAsync(String /** * Gets a recovery point for a migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric unique name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -422,17 +422,17 @@ private Mono> getWithResponseAsync(String * @return a recovery point for a migration item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono getAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, String migrationRecoveryPointName) { - return getWithResponseAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return getWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, migrationRecoveryPointName).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Gets a recovery point for a migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric unique name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -444,18 +444,18 @@ private Mono getAsync(String resourceName, String r * @return a recovery point for a migration item along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceName, String resourceGroupName, + public Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, String migrationRecoveryPointName, Context context) { - return getWithResponseAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return getWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, migrationRecoveryPointName, context).block(); } /** * Gets a recovery point for a migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric unique name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -466,9 +466,9 @@ public Response getWithResponse(String resourceName * @return a recovery point for a migration item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public MigrationRecoveryPointInner get(String resourceName, String resourceGroupName, String fabricName, + public MigrationRecoveryPointInner get(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, String migrationRecoveryPointName) { - return getWithResponse(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + return getWithResponse(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, migrationRecoveryPointName, Context.NONE).getValue(); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/MigrationRecoveryPointsImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/MigrationRecoveryPointsImpl.java index 3d19fdddff24..79798226b494 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/MigrationRecoveryPointsImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/MigrationRecoveryPointsImpl.java @@ -27,28 +27,28 @@ public MigrationRecoveryPointsImpl(MigrationRecoveryPointsClient innerClient, this.serviceManager = serviceManager; } - public PagedIterable listByReplicationMigrationItems(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName) { + public PagedIterable listByReplicationMigrationItems(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName) { PagedIterable inner = this.serviceClient() - .listByReplicationMigrationItems(resourceName, resourceGroupName, fabricName, protectionContainerName, + .listByReplicationMigrationItems(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName); return ResourceManagerUtils.mapPage(inner, inner1 -> new MigrationRecoveryPointImpl(inner1, this.manager())); } - public PagedIterable listByReplicationMigrationItems(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, + public PagedIterable listByReplicationMigrationItems(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName, Context context) { PagedIterable inner = this.serviceClient() - .listByReplicationMigrationItems(resourceName, resourceGroupName, fabricName, protectionContainerName, + .listByReplicationMigrationItems(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, context); return ResourceManagerUtils.mapPage(inner, inner1 -> new MigrationRecoveryPointImpl(inner1, this.manager())); } - public Response getWithResponse(String resourceName, String resourceGroupName, + public Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, String migrationRecoveryPointName, Context context) { Response inner = this.serviceClient() - .getWithResponse(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + .getWithResponse(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, migrationRecoveryPointName, context); if (inner != null) { return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), @@ -58,10 +58,10 @@ public Response getWithResponse(String resourceName, Str } } - public MigrationRecoveryPoint get(String resourceName, String resourceGroupName, String fabricName, + public MigrationRecoveryPoint get(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, String migrationRecoveryPointName) { MigrationRecoveryPointInner inner = this.serviceClient() - .get(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + .get(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, migrationRecoveryPointName); if (inner != null) { return new MigrationRecoveryPointImpl(inner, this.manager()); diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/NetworkMappingImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/NetworkMappingImpl.java index 46edf9564116..b16ca33c6bd1 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/NetworkMappingImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/NetworkMappingImpl.java @@ -59,10 +59,10 @@ private com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManag return this.serviceManager; } - private String resourceName; - private String resourceGroupName; + private String resourceName; + private String fabricName; private String networkName; @@ -73,10 +73,10 @@ private com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManag private UpdateNetworkMappingInput updateInput; - public NetworkMappingImpl withExistingReplicationNetwork(String resourceName, String resourceGroupName, + public NetworkMappingImpl withExistingReplicationNetwork(String resourceGroupName, String resourceName, String fabricName, String networkName) { - this.resourceName = resourceName; this.resourceGroupName = resourceGroupName; + this.resourceName = resourceName; this.fabricName = fabricName; this.networkName = networkName; return this; @@ -85,7 +85,7 @@ public NetworkMappingImpl withExistingReplicationNetwork(String resourceName, St public NetworkMapping create() { this.innerObject = serviceManager.serviceClient() .getReplicationNetworkMappings() - .create(resourceName, resourceGroupName, fabricName, networkName, networkMappingName, createInput, + .create(resourceGroupName, resourceName, fabricName, networkName, networkMappingName, createInput, Context.NONE); return this; } @@ -93,7 +93,7 @@ public NetworkMapping create() { public NetworkMapping create(Context context) { this.innerObject = serviceManager.serviceClient() .getReplicationNetworkMappings() - .create(resourceName, resourceGroupName, fabricName, networkName, networkMappingName, createInput, context); + .create(resourceGroupName, resourceName, fabricName, networkName, networkMappingName, createInput, context); return this; } @@ -113,7 +113,7 @@ public NetworkMappingImpl update() { public NetworkMapping apply() { this.innerObject = serviceManager.serviceClient() .getReplicationNetworkMappings() - .update(resourceName, resourceGroupName, fabricName, networkName, networkMappingName, updateInput, + .update(resourceGroupName, resourceName, fabricName, networkName, networkMappingName, updateInput, Context.NONE); return this; } @@ -121,7 +121,7 @@ public NetworkMapping apply() { public NetworkMapping apply(Context context) { this.innerObject = serviceManager.serviceClient() .getReplicationNetworkMappings() - .update(resourceName, resourceGroupName, fabricName, networkName, networkMappingName, updateInput, context); + .update(resourceGroupName, resourceName, fabricName, networkName, networkMappingName, updateInput, context); return this; } @@ -129,8 +129,8 @@ public NetworkMapping apply(Context context) { com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "vaults"); this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.resourceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "vaults"); this.fabricName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "replicationFabrics"); this.networkName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "replicationNetworks"); this.networkMappingName @@ -140,7 +140,7 @@ public NetworkMapping apply(Context context) { public NetworkMapping refresh() { this.innerObject = serviceManager.serviceClient() .getReplicationNetworkMappings() - .getWithResponse(resourceName, resourceGroupName, fabricName, networkName, networkMappingName, Context.NONE) + .getWithResponse(resourceGroupName, resourceName, fabricName, networkName, networkMappingName, Context.NONE) .getValue(); return this; } @@ -148,7 +148,7 @@ public NetworkMapping refresh() { public NetworkMapping refresh(Context context) { this.innerObject = serviceManager.serviceClient() .getReplicationNetworkMappings() - .getWithResponse(resourceName, resourceGroupName, fabricName, networkName, networkMappingName, context) + .getWithResponse(resourceGroupName, resourceName, fabricName, networkName, networkMappingName, context) .getValue(); return this; } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/PolicyImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/PolicyImpl.java index 06a52eb8920b..9b542b1d82db 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/PolicyImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/PolicyImpl.java @@ -59,33 +59,33 @@ private com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManag return this.serviceManager; } - private String resourceName; - private String resourceGroupName; + private String resourceName; + private String policyName; private CreatePolicyInput createInput; private UpdatePolicyInput updateInput; - public PolicyImpl withExistingVault(String resourceName, String resourceGroupName) { - this.resourceName = resourceName; + public PolicyImpl withExistingVault(String resourceGroupName, String resourceName) { this.resourceGroupName = resourceGroupName; + this.resourceName = resourceName; return this; } public Policy create() { this.innerObject = serviceManager.serviceClient() .getReplicationPolicies() - .create(resourceName, resourceGroupName, policyName, createInput, Context.NONE); + .create(resourceGroupName, resourceName, policyName, createInput, Context.NONE); return this; } public Policy create(Context context) { this.innerObject = serviceManager.serviceClient() .getReplicationPolicies() - .create(resourceName, resourceGroupName, policyName, createInput, context); + .create(resourceGroupName, resourceName, policyName, createInput, context); return this; } @@ -104,14 +104,14 @@ public PolicyImpl update() { public Policy apply() { this.innerObject = serviceManager.serviceClient() .getReplicationPolicies() - .update(resourceName, resourceGroupName, policyName, updateInput, Context.NONE); + .update(resourceGroupName, resourceName, policyName, updateInput, Context.NONE); return this; } public Policy apply(Context context) { this.innerObject = serviceManager.serviceClient() .getReplicationPolicies() - .update(resourceName, resourceGroupName, policyName, updateInput, context); + .update(resourceGroupName, resourceName, policyName, updateInput, context); return this; } @@ -119,15 +119,15 @@ public Policy apply(Context context) { com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "vaults"); this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.resourceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "vaults"); this.policyName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "replicationPolicies"); } public Policy refresh() { this.innerObject = serviceManager.serviceClient() .getReplicationPolicies() - .getWithResponse(resourceName, resourceGroupName, policyName, Context.NONE) + .getWithResponse(resourceGroupName, resourceName, policyName, Context.NONE) .getValue(); return this; } @@ -135,7 +135,7 @@ public Policy refresh() { public Policy refresh(Context context) { this.innerObject = serviceManager.serviceClient() .getReplicationPolicies() - .getWithResponse(resourceName, resourceGroupName, policyName, context) + .getWithResponse(resourceGroupName, resourceName, policyName, context) .getValue(); return this; } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ProtectionContainerImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ProtectionContainerImpl.java index 709aadd81a53..8e62dd7a66d8 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ProtectionContainerImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ProtectionContainerImpl.java @@ -12,6 +12,7 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.models.DiscoverProtectableItemRequest; import com.azure.resourcemanager.recoveryservicessiterecovery.models.ProtectionContainer; import com.azure.resourcemanager.recoveryservicessiterecovery.models.ProtectionContainerProperties; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.SwitchClusterProtectionInput; import com.azure.resourcemanager.recoveryservicessiterecovery.models.SwitchProtectionInput; public final class ProtectionContainerImpl implements ProtectionContainer, ProtectionContainer.Definition { @@ -61,20 +62,20 @@ private com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManag return this.serviceManager; } - private String resourceName; - private String resourceGroupName; + private String resourceName; + private String fabricName; private String protectionContainerName; private CreateProtectionContainerInput createCreationInput; - public ProtectionContainerImpl withExistingReplicationFabric(String resourceName, String resourceGroupName, + public ProtectionContainerImpl withExistingReplicationFabric(String resourceGroupName, String resourceName, String fabricName) { - this.resourceName = resourceName; this.resourceGroupName = resourceGroupName; + this.resourceName = resourceName; this.fabricName = fabricName; return this; } @@ -82,7 +83,7 @@ public ProtectionContainerImpl withExistingReplicationFabric(String resourceName public ProtectionContainer create() { this.innerObject = serviceManager.serviceClient() .getReplicationProtectionContainers() - .create(resourceName, resourceGroupName, fabricName, protectionContainerName, createCreationInput, + .create(resourceGroupName, resourceName, fabricName, protectionContainerName, createCreationInput, Context.NONE); return this; } @@ -90,7 +91,7 @@ public ProtectionContainer create() { public ProtectionContainer create(Context context) { this.innerObject = serviceManager.serviceClient() .getReplicationProtectionContainers() - .create(resourceName, resourceGroupName, fabricName, protectionContainerName, createCreationInput, context); + .create(resourceGroupName, resourceName, fabricName, protectionContainerName, createCreationInput, context); return this; } @@ -105,7 +106,7 @@ public ProtectionContainer create(Context context) { public ProtectionContainer refresh() { this.innerObject = serviceManager.serviceClient() .getReplicationProtectionContainers() - .getWithResponse(resourceName, resourceGroupName, fabricName, protectionContainerName, Context.NONE) + .getWithResponse(resourceGroupName, resourceName, fabricName, protectionContainerName, Context.NONE) .getValue(); return this; } @@ -113,42 +114,53 @@ public ProtectionContainer refresh() { public ProtectionContainer refresh(Context context) { this.innerObject = serviceManager.serviceClient() .getReplicationProtectionContainers() - .getWithResponse(resourceName, resourceGroupName, fabricName, protectionContainerName, context) + .getWithResponse(resourceGroupName, resourceName, fabricName, protectionContainerName, context) .getValue(); return this; } public ProtectionContainer discoverProtectableItem(DiscoverProtectableItemRequest discoverProtectableItemRequest) { return serviceManager.replicationProtectionContainers() - .discoverProtectableItem(resourceName, resourceGroupName, fabricName, protectionContainerName, + .discoverProtectableItem(resourceGroupName, resourceName, fabricName, protectionContainerName, discoverProtectableItemRequest); } public ProtectionContainer discoverProtectableItem(DiscoverProtectableItemRequest discoverProtectableItemRequest, Context context) { return serviceManager.replicationProtectionContainers() - .discoverProtectableItem(resourceName, resourceGroupName, fabricName, protectionContainerName, + .discoverProtectableItem(resourceGroupName, resourceName, fabricName, protectionContainerName, discoverProtectableItemRequest, context); } public void delete() { serviceManager.replicationProtectionContainers() - .delete(resourceName, resourceGroupName, fabricName, protectionContainerName); + .delete(resourceGroupName, resourceName, fabricName, protectionContainerName); } public void delete(Context context) { serviceManager.replicationProtectionContainers() - .delete(resourceName, resourceGroupName, fabricName, protectionContainerName, context); + .delete(resourceGroupName, resourceName, fabricName, protectionContainerName, context); + } + + public ProtectionContainer switchClusterProtection(SwitchClusterProtectionInput switchInput) { + return serviceManager.replicationProtectionContainers() + .switchClusterProtection(resourceGroupName, resourceName, fabricName, protectionContainerName, switchInput); + } + + public ProtectionContainer switchClusterProtection(SwitchClusterProtectionInput switchInput, Context context) { + return serviceManager.replicationProtectionContainers() + .switchClusterProtection(resourceGroupName, resourceName, fabricName, protectionContainerName, switchInput, + context); } public ProtectionContainer switchProtection(SwitchProtectionInput switchInput) { return serviceManager.replicationProtectionContainers() - .switchProtection(resourceName, resourceGroupName, fabricName, protectionContainerName, switchInput); + .switchProtection(resourceGroupName, resourceName, fabricName, protectionContainerName, switchInput); } public ProtectionContainer switchProtection(SwitchProtectionInput switchInput, Context context) { return serviceManager.replicationProtectionContainers() - .switchProtection(resourceName, resourceGroupName, fabricName, protectionContainerName, switchInput, + .switchProtection(resourceGroupName, resourceName, fabricName, protectionContainerName, switchInput, context); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ProtectionContainerMappingImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ProtectionContainerMappingImpl.java index faa262d96282..64d5c5187721 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ProtectionContainerMappingImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ProtectionContainerMappingImpl.java @@ -61,10 +61,10 @@ private com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManag return this.serviceManager; } - private String resourceName; - private String resourceGroupName; + private String resourceName; + private String fabricName; private String protectionContainerName; @@ -75,10 +75,10 @@ private com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManag private UpdateProtectionContainerMappingInput updateUpdateInput; - public ProtectionContainerMappingImpl withExistingReplicationProtectionContainer(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName) { - this.resourceName = resourceName; + public ProtectionContainerMappingImpl withExistingReplicationProtectionContainer(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName) { this.resourceGroupName = resourceGroupName; + this.resourceName = resourceName; this.fabricName = fabricName; this.protectionContainerName = protectionContainerName; return this; @@ -87,7 +87,7 @@ public ProtectionContainerMappingImpl withExistingReplicationProtectionContainer public ProtectionContainerMapping create() { this.innerObject = serviceManager.serviceClient() .getReplicationProtectionContainerMappings() - .create(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, + .create(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName, createCreationInput, Context.NONE); return this; } @@ -95,7 +95,7 @@ public ProtectionContainerMapping create() { public ProtectionContainerMapping create(Context context) { this.innerObject = serviceManager.serviceClient() .getReplicationProtectionContainerMappings() - .create(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, + .create(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName, createCreationInput, context); return this; } @@ -116,7 +116,7 @@ public ProtectionContainerMappingImpl update() { public ProtectionContainerMapping apply() { this.innerObject = serviceManager.serviceClient() .getReplicationProtectionContainerMappings() - .update(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, + .update(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName, updateUpdateInput, Context.NONE); return this; } @@ -124,7 +124,7 @@ public ProtectionContainerMapping apply() { public ProtectionContainerMapping apply(Context context) { this.innerObject = serviceManager.serviceClient() .getReplicationProtectionContainerMappings() - .update(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, + .update(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName, updateUpdateInput, context); return this; } @@ -133,8 +133,8 @@ public ProtectionContainerMapping apply(Context context) { com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "vaults"); this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.resourceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "vaults"); this.fabricName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "replicationFabrics"); this.protectionContainerName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "replicationProtectionContainers"); @@ -145,7 +145,7 @@ public ProtectionContainerMapping apply(Context context) { public ProtectionContainerMapping refresh() { this.innerObject = serviceManager.serviceClient() .getReplicationProtectionContainerMappings() - .getWithResponse(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, + .getWithResponse(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName, Context.NONE) .getValue(); return this; @@ -154,19 +154,19 @@ public ProtectionContainerMapping refresh() { public ProtectionContainerMapping refresh(Context context) { this.innerObject = serviceManager.serviceClient() .getReplicationProtectionContainerMappings() - .getWithResponse(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, context) + .getWithResponse(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName, context) .getValue(); return this; } public void delete(RemoveProtectionContainerMappingInput removalInput) { serviceManager.replicationProtectionContainerMappings() - .delete(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, removalInput); + .delete(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName, removalInput); } public void delete(RemoveProtectionContainerMappingInput removalInput, Context context) { serviceManager.replicationProtectionContainerMappings() - .delete(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, removalInput, + .delete(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName, removalInput, context); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/RecoveryPlanImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/RecoveryPlanImpl.java index 3b48b9764e55..b88b1fac9ff2 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/RecoveryPlanImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/RecoveryPlanImpl.java @@ -63,33 +63,33 @@ private com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManag return this.serviceManager; } - private String resourceName; - private String resourceGroupName; + private String resourceName; + private String recoveryPlanName; private CreateRecoveryPlanInput createInput; private UpdateRecoveryPlanInput updateInput; - public RecoveryPlanImpl withExistingVault(String resourceName, String resourceGroupName) { - this.resourceName = resourceName; + public RecoveryPlanImpl withExistingVault(String resourceGroupName, String resourceName) { this.resourceGroupName = resourceGroupName; + this.resourceName = resourceName; return this; } public RecoveryPlan create() { this.innerObject = serviceManager.serviceClient() .getReplicationRecoveryPlans() - .create(resourceName, resourceGroupName, recoveryPlanName, createInput, Context.NONE); + .create(resourceGroupName, resourceName, recoveryPlanName, createInput, Context.NONE); return this; } public RecoveryPlan create(Context context) { this.innerObject = serviceManager.serviceClient() .getReplicationRecoveryPlans() - .create(resourceName, resourceGroupName, recoveryPlanName, createInput, context); + .create(resourceGroupName, resourceName, recoveryPlanName, createInput, context); return this; } @@ -109,14 +109,14 @@ public RecoveryPlanImpl update() { public RecoveryPlan apply() { this.innerObject = serviceManager.serviceClient() .getReplicationRecoveryPlans() - .update(resourceName, resourceGroupName, recoveryPlanName, updateInput, Context.NONE); + .update(resourceGroupName, resourceName, recoveryPlanName, updateInput, Context.NONE); return this; } public RecoveryPlan apply(Context context) { this.innerObject = serviceManager.serviceClient() .getReplicationRecoveryPlans() - .update(resourceName, resourceGroupName, recoveryPlanName, updateInput, context); + .update(resourceGroupName, resourceName, recoveryPlanName, updateInput, context); return this; } @@ -124,15 +124,15 @@ public RecoveryPlan apply(Context context) { com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "vaults"); this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.resourceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "vaults"); this.recoveryPlanName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "replicationRecoveryPlans"); } public RecoveryPlan refresh() { this.innerObject = serviceManager.serviceClient() .getReplicationRecoveryPlans() - .getWithResponse(resourceName, resourceGroupName, recoveryPlanName, Context.NONE) + .getWithResponse(resourceGroupName, resourceName, recoveryPlanName, Context.NONE) .getValue(); return this; } @@ -140,78 +140,78 @@ public RecoveryPlan refresh() { public RecoveryPlan refresh(Context context) { this.innerObject = serviceManager.serviceClient() .getReplicationRecoveryPlans() - .getWithResponse(resourceName, resourceGroupName, recoveryPlanName, context) + .getWithResponse(resourceGroupName, resourceName, recoveryPlanName, context) .getValue(); return this; } public RecoveryPlan failoverCancel() { return serviceManager.replicationRecoveryPlans() - .failoverCancel(resourceName, resourceGroupName, recoveryPlanName); + .failoverCancel(resourceGroupName, resourceName, recoveryPlanName); } public RecoveryPlan failoverCancel(Context context) { return serviceManager.replicationRecoveryPlans() - .failoverCancel(resourceName, resourceGroupName, recoveryPlanName, context); + .failoverCancel(resourceGroupName, resourceName, recoveryPlanName, context); } public RecoveryPlan failoverCommit() { return serviceManager.replicationRecoveryPlans() - .failoverCommit(resourceName, resourceGroupName, recoveryPlanName); + .failoverCommit(resourceGroupName, resourceName, recoveryPlanName); } public RecoveryPlan failoverCommit(Context context) { return serviceManager.replicationRecoveryPlans() - .failoverCommit(resourceName, resourceGroupName, recoveryPlanName, context); + .failoverCommit(resourceGroupName, resourceName, recoveryPlanName, context); } public RecoveryPlan plannedFailover(RecoveryPlanPlannedFailoverInput input) { return serviceManager.replicationRecoveryPlans() - .plannedFailover(resourceName, resourceGroupName, recoveryPlanName, input); + .plannedFailover(resourceGroupName, resourceName, recoveryPlanName, input); } public RecoveryPlan plannedFailover(RecoveryPlanPlannedFailoverInput input, Context context) { return serviceManager.replicationRecoveryPlans() - .plannedFailover(resourceName, resourceGroupName, recoveryPlanName, input, context); + .plannedFailover(resourceGroupName, resourceName, recoveryPlanName, input, context); } public RecoveryPlan reprotect() { - return serviceManager.replicationRecoveryPlans().reprotect(resourceName, resourceGroupName, recoveryPlanName); + return serviceManager.replicationRecoveryPlans().reprotect(resourceGroupName, resourceName, recoveryPlanName); } public RecoveryPlan reprotect(Context context) { return serviceManager.replicationRecoveryPlans() - .reprotect(resourceName, resourceGroupName, recoveryPlanName, context); + .reprotect(resourceGroupName, resourceName, recoveryPlanName, context); } public RecoveryPlan testFailover(RecoveryPlanTestFailoverInput input) { return serviceManager.replicationRecoveryPlans() - .testFailover(resourceName, resourceGroupName, recoveryPlanName, input); + .testFailover(resourceGroupName, resourceName, recoveryPlanName, input); } public RecoveryPlan testFailover(RecoveryPlanTestFailoverInput input, Context context) { return serviceManager.replicationRecoveryPlans() - .testFailover(resourceName, resourceGroupName, recoveryPlanName, input, context); + .testFailover(resourceGroupName, resourceName, recoveryPlanName, input, context); } public RecoveryPlan testFailoverCleanup(RecoveryPlanTestFailoverCleanupInput input) { return serviceManager.replicationRecoveryPlans() - .testFailoverCleanup(resourceName, resourceGroupName, recoveryPlanName, input); + .testFailoverCleanup(resourceGroupName, resourceName, recoveryPlanName, input); } public RecoveryPlan testFailoverCleanup(RecoveryPlanTestFailoverCleanupInput input, Context context) { return serviceManager.replicationRecoveryPlans() - .testFailoverCleanup(resourceName, resourceGroupName, recoveryPlanName, input, context); + .testFailoverCleanup(resourceGroupName, resourceName, recoveryPlanName, input, context); } public RecoveryPlan unplannedFailover(RecoveryPlanUnplannedFailoverInput input) { return serviceManager.replicationRecoveryPlans() - .unplannedFailover(resourceName, resourceGroupName, recoveryPlanName, input); + .unplannedFailover(resourceGroupName, resourceName, recoveryPlanName, input); } public RecoveryPlan unplannedFailover(RecoveryPlanUnplannedFailoverInput input, Context context) { return serviceManager.replicationRecoveryPlans() - .unplannedFailover(resourceName, resourceGroupName, recoveryPlanName, input, context); + .unplannedFailover(resourceGroupName, resourceName, recoveryPlanName, input, context); } public RecoveryPlanImpl withProperties(CreateRecoveryPlanInputProperties properties) { diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/RecoveryPointsClientImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/RecoveryPointsClientImpl.java index 9348fa9fd77f..dc034062f82b 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/RecoveryPointsClientImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/RecoveryPointsClientImpl.java @@ -67,9 +67,9 @@ public interface RecoveryPointsService { @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByReplicationProtectedItems(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @PathParam("replicatedProtectedItemName") String replicatedProtectedItemName, @HeaderParam("Accept") String accept, Context context); @@ -79,9 +79,9 @@ Mono> listByReplicationProtectedItems(@HostPar @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @PathParam("replicatedProtectedItemName") String replicatedProtectedItemName, @PathParam("recoveryPointName") String recoveryPointName, @HeaderParam("Accept") String accept, @@ -101,8 +101,8 @@ Mono> listByReplicationProtectedItemsNext( * * Lists the available recovery points for a replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The fabric name. * @param protectionContainerName The protection container name. * @param replicatedProtectedItemName The replication protected item name. @@ -113,20 +113,20 @@ Mono> listByReplicationProtectedItemsNext( * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByReplicationProtectedItemsSinglePageAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, + private Mono> listByReplicationProtectedItemsSinglePageAsync( + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -145,7 +145,7 @@ private Mono> listByReplicationProtectedItemsS final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByReplicationProtectedItems(this.client.getEndpoint(), - this.client.getApiVersion(), resourceName, resourceGroupName, this.client.getSubscriptionId(), + this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, replicatedProtectedItemName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) @@ -157,8 +157,8 @@ private Mono> listByReplicationProtectedItemsS * * Lists the available recovery points for a replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The fabric name. * @param protectionContainerName The protection container name. * @param replicatedProtectedItemName The replication protected item name. @@ -170,20 +170,20 @@ private Mono> listByReplicationProtectedItemsS * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByReplicationProtectedItemsSinglePageAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, - Context context) { + private Mono> listByReplicationProtectedItemsSinglePageAsync( + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, + String replicatedProtectedItemName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -202,8 +202,8 @@ private Mono> listByReplicationProtectedItemsS final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByReplicationProtectedItems(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + .listByReplicationProtectedItems(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, replicatedProtectedItemName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); @@ -214,8 +214,8 @@ private Mono> listByReplicationProtectedItemsS * * Lists the available recovery points for a replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The fabric name. * @param protectionContainerName The protection container name. * @param replicatedProtectedItemName The replication protected item name. @@ -225,11 +225,10 @@ private Mono> listByReplicationProtectedItemsS * @return collection of recovery point details as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByReplicationProtectedItemsAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, - String replicatedProtectedItemName) { + private PagedFlux listByReplicationProtectedItemsAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName) { return new PagedFlux<>( - () -> listByReplicationProtectedItemsSinglePageAsync(resourceName, resourceGroupName, fabricName, + () -> listByReplicationProtectedItemsSinglePageAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName), nextLink -> listByReplicationProtectedItemsNextSinglePageAsync(nextLink)); } @@ -239,8 +238,8 @@ private PagedFlux listByReplicationProtectedItemsAsync(Strin * * Lists the available recovery points for a replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The fabric name. * @param protectionContainerName The protection container name. * @param replicatedProtectedItemName The replication protected item name. @@ -251,11 +250,11 @@ private PagedFlux listByReplicationProtectedItemsAsync(Strin * @return collection of recovery point details as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByReplicationProtectedItemsAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, + private PagedFlux listByReplicationProtectedItemsAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context) { return new PagedFlux<>( - () -> listByReplicationProtectedItemsSinglePageAsync(resourceName, resourceGroupName, fabricName, + () -> listByReplicationProtectedItemsSinglePageAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, context), nextLink -> listByReplicationProtectedItemsNextSinglePageAsync(nextLink, context)); } @@ -265,8 +264,8 @@ private PagedFlux listByReplicationProtectedItemsAsync(Strin * * Lists the available recovery points for a replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The fabric name. * @param protectionContainerName The protection container name. * @param replicatedProtectedItemName The replication protected item name. @@ -276,10 +275,9 @@ private PagedFlux listByReplicationProtectedItemsAsync(Strin * @return collection of recovery point details as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByReplicationProtectedItems(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, - String replicatedProtectedItemName) { - return new PagedIterable<>(listByReplicationProtectedItemsAsync(resourceName, resourceGroupName, fabricName, + public PagedIterable listByReplicationProtectedItems(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName) { + return new PagedIterable<>(listByReplicationProtectedItemsAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName)); } @@ -288,8 +286,8 @@ public PagedIterable listByReplicationProtectedItems(String * * Lists the available recovery points for a replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The fabric name. * @param protectionContainerName The protection container name. * @param replicatedProtectedItemName The replication protected item name. @@ -300,10 +298,10 @@ public PagedIterable listByReplicationProtectedItems(String * @return collection of recovery point details as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByReplicationProtectedItems(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, + public PagedIterable listByReplicationProtectedItems(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context) { - return new PagedIterable<>(listByReplicationProtectedItemsAsync(resourceName, resourceGroupName, fabricName, + return new PagedIterable<>(listByReplicationProtectedItemsAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, context)); } @@ -312,8 +310,8 @@ public PagedIterable listByReplicationProtectedItems(String * * Get the details of specified recovery point. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The fabric name. * @param protectionContainerName The protection container name. * @param replicatedProtectedItemName The replication protected item name. @@ -325,20 +323,20 @@ public PagedIterable listByReplicationProtectedItems(String * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceName, String resourceGroupName, + private Mono> getWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, String recoveryPointName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -360,8 +358,8 @@ private Mono> getWithResponseAsync(String resourceN } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, replicatedProtectedItemName, recoveryPointName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -371,8 +369,8 @@ private Mono> getWithResponseAsync(String resourceN * * Get the details of specified recovery point. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The fabric name. * @param protectionContainerName The protection container name. * @param replicatedProtectedItemName The replication protected item name. @@ -385,20 +383,20 @@ private Mono> getWithResponseAsync(String resourceN * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceName, String resourceGroupName, + private Mono> getWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, String recoveryPointName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -420,7 +418,7 @@ private Mono> getWithResponseAsync(String resourceN } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, replicatedProtectedItemName, recoveryPointName, accept, context); } @@ -430,8 +428,8 @@ private Mono> getWithResponseAsync(String resourceN * * Get the details of specified recovery point. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The fabric name. * @param protectionContainerName The protection container name. * @param replicatedProtectedItemName The replication protected item name. @@ -442,9 +440,9 @@ private Mono> getWithResponseAsync(String resourceN * @return the details of specified recovery point on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono getAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, String recoveryPointName) { - return getWithResponseAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return getWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, recoveryPointName).flatMap(res -> Mono.justOrEmpty(res.getValue())); } @@ -453,8 +451,8 @@ private Mono getAsync(String resourceName, String resourceGr * * Get the details of specified recovery point. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The fabric name. * @param protectionContainerName The protection container name. * @param replicatedProtectedItemName The replication protected item name. @@ -466,10 +464,10 @@ private Mono getAsync(String resourceName, String resourceGr * @return the details of specified recovery point along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceName, String resourceGroupName, + public Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, String recoveryPointName, Context context) { - return getWithResponseAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return getWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, recoveryPointName, context).block(); } @@ -478,8 +476,8 @@ public Response getWithResponse(String resourceName, String * * Get the details of specified recovery point. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The fabric name. * @param protectionContainerName The protection container name. * @param replicatedProtectedItemName The replication protected item name. @@ -490,9 +488,9 @@ public Response getWithResponse(String resourceName, String * @return the details of specified recovery point. */ @ServiceMethod(returns = ReturnType.SINGLE) - public RecoveryPointInner get(String resourceName, String resourceGroupName, String fabricName, + public RecoveryPointInner get(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, String recoveryPointName) { - return getWithResponse(resourceName, resourceGroupName, fabricName, protectionContainerName, + return getWithResponse(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, recoveryPointName, Context.NONE).getValue(); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/RecoveryPointsImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/RecoveryPointsImpl.java index eeb4806faaf1..8542be002beb 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/RecoveryPointsImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/RecoveryPointsImpl.java @@ -27,26 +27,26 @@ public RecoveryPointsImpl(RecoveryPointsClient innerClient, this.serviceManager = serviceManager; } - public PagedIterable listByReplicationProtectedItems(String resourceName, String resourceGroupName, + public PagedIterable listByReplicationProtectedItems(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName) { PagedIterable inner = this.serviceClient() - .listByReplicationProtectedItems(resourceName, resourceGroupName, fabricName, protectionContainerName, + .listByReplicationProtectedItems(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName); return ResourceManagerUtils.mapPage(inner, inner1 -> new RecoveryPointImpl(inner1, this.manager())); } - public PagedIterable listByReplicationProtectedItems(String resourceName, String resourceGroupName, + public PagedIterable listByReplicationProtectedItems(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context) { PagedIterable inner = this.serviceClient() - .listByReplicationProtectedItems(resourceName, resourceGroupName, fabricName, protectionContainerName, + .listByReplicationProtectedItems(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, context); return ResourceManagerUtils.mapPage(inner, inner1 -> new RecoveryPointImpl(inner1, this.manager())); } - public Response getWithResponse(String resourceName, String resourceGroupName, String fabricName, + public Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, String recoveryPointName, Context context) { Response inner = this.serviceClient() - .getWithResponse(resourceName, resourceGroupName, fabricName, protectionContainerName, + .getWithResponse(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, recoveryPointName, context); if (inner != null) { return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), @@ -56,10 +56,10 @@ public Response getWithResponse(String resourceName, String resou } } - public RecoveryPoint get(String resourceName, String resourceGroupName, String fabricName, + public RecoveryPoint get(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, String recoveryPointName) { RecoveryPointInner inner = this.serviceClient() - .get(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, + .get(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, recoveryPointName); if (inner != null) { return new RecoveryPointImpl(inner, this.manager()); diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/RecoveryServicesProviderImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/RecoveryServicesProviderImpl.java index 46ea832e460c..00f7e3946a87 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/RecoveryServicesProviderImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/RecoveryServicesProviderImpl.java @@ -60,20 +60,20 @@ private com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManag return this.serviceManager; } - private String resourceName; - private String resourceGroupName; + private String resourceName; + private String fabricName; private String providerName; private AddRecoveryServicesProviderInput createAddProviderInput; - public RecoveryServicesProviderImpl withExistingReplicationFabric(String resourceName, String resourceGroupName, + public RecoveryServicesProviderImpl withExistingReplicationFabric(String resourceGroupName, String resourceName, String fabricName) { - this.resourceName = resourceName; this.resourceGroupName = resourceGroupName; + this.resourceName = resourceName; this.fabricName = fabricName; return this; } @@ -81,14 +81,14 @@ public RecoveryServicesProviderImpl withExistingReplicationFabric(String resourc public RecoveryServicesProvider create() { this.innerObject = serviceManager.serviceClient() .getReplicationRecoveryServicesProviders() - .create(resourceName, resourceGroupName, fabricName, providerName, createAddProviderInput, Context.NONE); + .create(resourceGroupName, resourceName, fabricName, providerName, createAddProviderInput, Context.NONE); return this; } public RecoveryServicesProvider create(Context context) { this.innerObject = serviceManager.serviceClient() .getReplicationRecoveryServicesProviders() - .create(resourceName, resourceGroupName, fabricName, providerName, createAddProviderInput, context); + .create(resourceGroupName, resourceName, fabricName, providerName, createAddProviderInput, context); return this; } @@ -103,7 +103,7 @@ public RecoveryServicesProvider create(Context context) { public RecoveryServicesProvider refresh() { this.innerObject = serviceManager.serviceClient() .getReplicationRecoveryServicesProviders() - .getWithResponse(resourceName, resourceGroupName, fabricName, providerName, Context.NONE) + .getWithResponse(resourceGroupName, resourceName, fabricName, providerName, Context.NONE) .getValue(); return this; } @@ -111,29 +111,29 @@ public RecoveryServicesProvider refresh() { public RecoveryServicesProvider refresh(Context context) { this.innerObject = serviceManager.serviceClient() .getReplicationRecoveryServicesProviders() - .getWithResponse(resourceName, resourceGroupName, fabricName, providerName, context) + .getWithResponse(resourceGroupName, resourceName, fabricName, providerName, context) .getValue(); return this; } public RecoveryServicesProvider refreshProvider() { return serviceManager.replicationRecoveryServicesProviders() - .refreshProvider(resourceName, resourceGroupName, fabricName, providerName); + .refreshProvider(resourceGroupName, resourceName, fabricName, providerName); } public RecoveryServicesProvider refreshProvider(Context context) { return serviceManager.replicationRecoveryServicesProviders() - .refreshProvider(resourceName, resourceGroupName, fabricName, providerName, context); + .refreshProvider(resourceGroupName, resourceName, fabricName, providerName, context); } public void delete() { serviceManager.replicationRecoveryServicesProviders() - .delete(resourceName, resourceGroupName, fabricName, providerName); + .delete(resourceGroupName, resourceName, fabricName, providerName); } public void delete(Context context) { serviceManager.replicationRecoveryServicesProviders() - .delete(resourceName, resourceGroupName, fabricName, providerName, context); + .delete(resourceGroupName, resourceName, fabricName, providerName, context); } public RecoveryServicesProviderImpl withProperties(AddRecoveryServicesProviderInputProperties properties) { diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationAlertSettingsClientImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationAlertSettingsClientImpl.java index 47a4561e5e50..cd31cd9997f2 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationAlertSettingsClientImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationAlertSettingsClientImpl.java @@ -70,28 +70,28 @@ public interface ReplicationAlertSettingsService { @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> list(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationAlertSettings/{alertSettingName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("alertSettingName") String alertSettingName, - @HeaderParam("Accept") String accept, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("alertSettingName") String alertSettingName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationAlertSettings/{alertSettingName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> create(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("alertSettingName") String alertSettingName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("alertSettingName") String alertSettingName, @BodyParam("application/json") ConfigureAlertRequest request, @HeaderParam("Accept") String accept, Context context); @@ -108,8 +108,8 @@ Mono> listNext(@PathParam(value = "nextLink", encoded * * Gets the list of email notification(alert) configurations for the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -117,26 +117,26 @@ Mono> listNext(@PathParam(value = "nextLink", encoded * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceName, String resourceGroupName) { + private Mono> listSinglePageAsync(String resourceGroupName, String resourceName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -147,8 +147,8 @@ private Mono> listSinglePageAsync(String resourceName, * * Gets the list of email notification(alert) configurations for the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -157,19 +157,19 @@ private Mono> listSinglePageAsync(String resourceName, * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceName, String resourceGroupName, + private Mono> listSinglePageAsync(String resourceGroupName, String resourceName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -177,7 +177,7 @@ private Mono> listSinglePageAsync(String resourceName, final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + .list(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); @@ -188,8 +188,8 @@ private Mono> listSinglePageAsync(String resourceName, * * Gets the list of email notification(alert) configurations for the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -197,8 +197,8 @@ private Mono> listSinglePageAsync(String resourceName, * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceName, String resourceGroupName) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceName, resourceGroupName), + private PagedFlux listAsync(String resourceGroupName, String resourceName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName), nextLink -> listNextSinglePageAsync(nextLink)); } @@ -207,8 +207,8 @@ private PagedFlux listAsync(String resourceName, String resourceGrou * * Gets the list of email notification(alert) configurations for the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -217,8 +217,8 @@ private PagedFlux listAsync(String resourceName, String resourceGrou * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceName, String resourceGroupName, Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceName, resourceGroupName, context), + private PagedFlux listAsync(String resourceGroupName, String resourceName, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } @@ -227,8 +227,8 @@ private PagedFlux listAsync(String resourceName, String resourceGrou * * Gets the list of email notification(alert) configurations for the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -236,8 +236,8 @@ private PagedFlux listAsync(String resourceName, String resourceGrou * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceName, String resourceGroupName) { - return new PagedIterable<>(listAsync(resourceName, resourceGroupName)); + public PagedIterable list(String resourceGroupName, String resourceName) { + return new PagedIterable<>(listAsync(resourceGroupName, resourceName)); } /** @@ -245,8 +245,8 @@ public PagedIterable list(String resourceName, String resourceGroupN * * Gets the list of email notification(alert) configurations for the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -255,8 +255,8 @@ public PagedIterable list(String resourceName, String resourceGroupN * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceName, String resourceGroupName, Context context) { - return new PagedIterable<>(listAsync(resourceName, resourceGroupName, context)); + public PagedIterable list(String resourceGroupName, String resourceName, Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, resourceName, context)); } /** @@ -264,8 +264,8 @@ public PagedIterable list(String resourceName, String resourceGroupN * * Gets the details of the specified email notification(alert) configuration. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param alertSettingName The name of the email notification configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -274,19 +274,19 @@ public PagedIterable list(String resourceName, String resourceGroupN * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceName, String resourceGroupName, + private Mono> getWithResponseAsync(String resourceGroupName, String resourceName, String alertSettingName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -297,8 +297,8 @@ private Mono> getWithResponseAsync(String resourceName, Str } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), alertSettingName, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), alertSettingName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -307,8 +307,8 @@ private Mono> getWithResponseAsync(String resourceName, Str * * Gets the details of the specified email notification(alert) configuration. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param alertSettingName The name of the email notification configuration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -318,19 +318,19 @@ private Mono> getWithResponseAsync(String resourceName, Str * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceName, String resourceGroupName, + private Mono> getWithResponseAsync(String resourceGroupName, String resourceName, String alertSettingName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -341,7 +341,7 @@ private Mono> getWithResponseAsync(String resourceName, Str } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), alertSettingName, accept, context); } @@ -350,8 +350,8 @@ private Mono> getWithResponseAsync(String resourceName, Str * * Gets the details of the specified email notification(alert) configuration. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param alertSettingName The name of the email notification configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -360,8 +360,8 @@ private Mono> getWithResponseAsync(String resourceName, Str * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceName, String resourceGroupName, String alertSettingName) { - return getWithResponseAsync(resourceName, resourceGroupName, alertSettingName) + private Mono getAsync(String resourceGroupName, String resourceName, String alertSettingName) { + return getWithResponseAsync(resourceGroupName, resourceName, alertSettingName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } @@ -370,8 +370,8 @@ private Mono getAsync(String resourceName, String resourceGroupName, * * Gets the details of the specified email notification(alert) configuration. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param alertSettingName The name of the email notification configuration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -380,9 +380,9 @@ private Mono getAsync(String resourceName, String resourceGroupName, * @return the details of the specified email notification(alert) configuration along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceName, String resourceGroupName, String alertSettingName, + public Response getWithResponse(String resourceGroupName, String resourceName, String alertSettingName, Context context) { - return getWithResponseAsync(resourceName, resourceGroupName, alertSettingName, context).block(); + return getWithResponseAsync(resourceGroupName, resourceName, alertSettingName, context).block(); } /** @@ -390,8 +390,8 @@ public Response getWithResponse(String resourceName, String resource * * Gets the details of the specified email notification(alert) configuration. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param alertSettingName The name of the email notification configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -399,8 +399,8 @@ public Response getWithResponse(String resourceName, String resource * @return the details of the specified email notification(alert) configuration. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AlertInner get(String resourceName, String resourceGroupName, String alertSettingName) { - return getWithResponse(resourceName, resourceGroupName, alertSettingName, Context.NONE).getValue(); + public AlertInner get(String resourceGroupName, String resourceName, String alertSettingName) { + return getWithResponse(resourceGroupName, resourceName, alertSettingName, Context.NONE).getValue(); } /** @@ -408,8 +408,8 @@ public AlertInner get(String resourceName, String resourceGroupName, String aler * * Create or update an email notification(alert) configuration. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param alertSettingName The name of the email notification(alert) configuration. * @param request The input to configure the email notification(alert). * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -418,19 +418,19 @@ public AlertInner get(String resourceName, String resourceGroupName, String aler * @return implements the Alert class along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createWithResponseAsync(String resourceName, String resourceGroupName, + private Mono> createWithResponseAsync(String resourceGroupName, String resourceName, String alertSettingName, ConfigureAlertRequest request) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -446,8 +446,9 @@ private Mono> createWithResponseAsync(String resourceName, } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), alertSettingName, request, accept, context)) + .withContext( + context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), alertSettingName, request, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -456,8 +457,8 @@ private Mono> createWithResponseAsync(String resourceName, * * Create or update an email notification(alert) configuration. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param alertSettingName The name of the email notification(alert) configuration. * @param request The input to configure the email notification(alert). * @param context The context to associate with this operation. @@ -467,19 +468,19 @@ private Mono> createWithResponseAsync(String resourceName, * @return implements the Alert class along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createWithResponseAsync(String resourceName, String resourceGroupName, + private Mono> createWithResponseAsync(String resourceGroupName, String resourceName, String alertSettingName, ConfigureAlertRequest request, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -495,7 +496,7 @@ private Mono> createWithResponseAsync(String resourceName, } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.create(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.create(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), alertSettingName, request, accept, context); } @@ -504,8 +505,8 @@ private Mono> createWithResponseAsync(String resourceName, * * Create or update an email notification(alert) configuration. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param alertSettingName The name of the email notification(alert) configuration. * @param request The input to configure the email notification(alert). * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -514,9 +515,9 @@ private Mono> createWithResponseAsync(String resourceName, * @return implements the Alert class on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync(String resourceName, String resourceGroupName, String alertSettingName, + private Mono createAsync(String resourceGroupName, String resourceName, String alertSettingName, ConfigureAlertRequest request) { - return createWithResponseAsync(resourceName, resourceGroupName, alertSettingName, request) + return createWithResponseAsync(resourceGroupName, resourceName, alertSettingName, request) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } @@ -525,8 +526,8 @@ private Mono createAsync(String resourceName, String resourceGroupNa * * Create or update an email notification(alert) configuration. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param alertSettingName The name of the email notification(alert) configuration. * @param request The input to configure the email notification(alert). * @param context The context to associate with this operation. @@ -536,9 +537,9 @@ private Mono createAsync(String resourceName, String resourceGroupNa * @return implements the Alert class along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createWithResponse(String resourceName, String resourceGroupName, + public Response createWithResponse(String resourceGroupName, String resourceName, String alertSettingName, ConfigureAlertRequest request, Context context) { - return createWithResponseAsync(resourceName, resourceGroupName, alertSettingName, request, context).block(); + return createWithResponseAsync(resourceGroupName, resourceName, alertSettingName, request, context).block(); } /** @@ -546,8 +547,8 @@ public Response createWithResponse(String resourceName, String resou * * Create or update an email notification(alert) configuration. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param alertSettingName The name of the email notification(alert) configuration. * @param request The input to configure the email notification(alert). * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -556,9 +557,9 @@ public Response createWithResponse(String resourceName, String resou * @return implements the Alert class. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AlertInner create(String resourceName, String resourceGroupName, String alertSettingName, + public AlertInner create(String resourceGroupName, String resourceName, String alertSettingName, ConfigureAlertRequest request) { - return createWithResponse(resourceName, resourceGroupName, alertSettingName, request, Context.NONE).getValue(); + return createWithResponse(resourceGroupName, resourceName, alertSettingName, request, Context.NONE).getValue(); } /** diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationAlertSettingsImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationAlertSettingsImpl.java index dd2438391f3f..3e045ced171c 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationAlertSettingsImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationAlertSettingsImpl.java @@ -27,20 +27,20 @@ public ReplicationAlertSettingsImpl(ReplicationAlertSettingsClient innerClient, this.serviceManager = serviceManager; } - public PagedIterable list(String resourceName, String resourceGroupName) { - PagedIterable inner = this.serviceClient().list(resourceName, resourceGroupName); + public PagedIterable list(String resourceGroupName, String resourceName) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, resourceName); return ResourceManagerUtils.mapPage(inner, inner1 -> new AlertImpl(inner1, this.manager())); } - public PagedIterable list(String resourceName, String resourceGroupName, Context context) { - PagedIterable inner = this.serviceClient().list(resourceName, resourceGroupName, context); + public PagedIterable list(String resourceGroupName, String resourceName, Context context) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, resourceName, context); return ResourceManagerUtils.mapPage(inner, inner1 -> new AlertImpl(inner1, this.manager())); } - public Response getWithResponse(String resourceName, String resourceGroupName, String alertSettingName, + public Response getWithResponse(String resourceGroupName, String resourceName, String alertSettingName, Context context) { Response inner - = this.serviceClient().getWithResponse(resourceName, resourceGroupName, alertSettingName, context); + = this.serviceClient().getWithResponse(resourceGroupName, resourceName, alertSettingName, context); if (inner != null) { return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new AlertImpl(inner.getValue(), this.manager())); @@ -49,8 +49,8 @@ public Response getWithResponse(String resourceName, String resourceGroup } } - public Alert get(String resourceName, String resourceGroupName, String alertSettingName) { - AlertInner inner = this.serviceClient().get(resourceName, resourceGroupName, alertSettingName); + public Alert get(String resourceGroupName, String resourceName, String alertSettingName) { + AlertInner inner = this.serviceClient().get(resourceGroupName, resourceName, alertSettingName); if (inner != null) { return new AlertImpl(inner, this.manager()); } else { @@ -59,41 +59,41 @@ public Alert get(String resourceName, String resourceGroupName, String alertSett } public Alert getById(String id) { - String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); - if (resourceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); - } String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); + if (resourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); + } String alertSettingName = ResourceManagerUtils.getValueFromIdByName(id, "replicationAlertSettings"); if (alertSettingName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException(String .format("The resource ID '%s' is not valid. Missing path segment 'replicationAlertSettings'.", id))); } - return this.getWithResponse(resourceName, resourceGroupName, alertSettingName, Context.NONE).getValue(); + return this.getWithResponse(resourceGroupName, resourceName, alertSettingName, Context.NONE).getValue(); } public Response getByIdWithResponse(String id, Context context) { - String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); - if (resourceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); - } String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); + if (resourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); + } String alertSettingName = ResourceManagerUtils.getValueFromIdByName(id, "replicationAlertSettings"); if (alertSettingName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException(String .format("The resource ID '%s' is not valid. Missing path segment 'replicationAlertSettings'.", id))); } - return this.getWithResponse(resourceName, resourceGroupName, alertSettingName, context); + return this.getWithResponse(resourceGroupName, resourceName, alertSettingName, context); } private ReplicationAlertSettingsClient serviceClient() { diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationAppliancesClientImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationAppliancesClientImpl.java index 1bf0bbda9fef..b372c83e5546 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationAppliancesClientImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationAppliancesClientImpl.java @@ -67,10 +67,9 @@ public interface ReplicationAppliancesService { @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> list(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("$filter") String filter, - @HeaderParam("Accept") String accept, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @QueryParam("$filter") String filter, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @@ -85,8 +84,8 @@ Mono> listNext(@PathParam(value = "nextLink", enco * * Gets the list of Azure Site Recovery appliances for the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param filter OData filter options. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -95,27 +94,27 @@ Mono> listNext(@PathParam(value = "nextLink", enco * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceName, - String resourceGroupName, String filter) { + private Mono> listSinglePageAsync(String resourceGroupName, + String resourceName, String filter) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), filter, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), filter, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -126,8 +125,8 @@ private Mono> listSinglePageAsync(Strin * * Gets the list of Azure Site Recovery appliances for the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param filter OData filter options. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -137,19 +136,19 @@ private Mono> listSinglePageAsync(Strin * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceName, - String resourceGroupName, String filter, Context context) { + private Mono> listSinglePageAsync(String resourceGroupName, + String resourceName, String filter, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -157,7 +156,7 @@ private Mono> listSinglePageAsync(Strin final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + .list(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), filter, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); @@ -168,8 +167,8 @@ private Mono> listSinglePageAsync(Strin * * Gets the list of Azure Site Recovery appliances for the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param filter OData filter options. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -177,9 +176,9 @@ private Mono> listSinglePageAsync(Strin * @return the list of Azure Site Recovery appliances for the vault as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceName, String resourceGroupName, + private PagedFlux listAsync(String resourceGroupName, String resourceName, String filter) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceName, resourceGroupName, filter), + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName, filter), nextLink -> listNextSinglePageAsync(nextLink)); } @@ -188,17 +187,17 @@ private PagedFlux listAsync(String resourceName, Stri * * Gets the list of Azure Site Recovery appliances for the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of Azure Site Recovery appliances for the vault as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceName, String resourceGroupName) { + private PagedFlux listAsync(String resourceGroupName, String resourceName) { final String filter = null; - return new PagedFlux<>(() -> listSinglePageAsync(resourceName, resourceGroupName, filter), + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName, filter), nextLink -> listNextSinglePageAsync(nextLink)); } @@ -207,8 +206,8 @@ private PagedFlux listAsync(String resourceName, Stri * * Gets the list of Azure Site Recovery appliances for the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param filter OData filter options. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -217,9 +216,9 @@ private PagedFlux listAsync(String resourceName, Stri * @return the list of Azure Site Recovery appliances for the vault as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceName, String resourceGroupName, String filter, + private PagedFlux listAsync(String resourceGroupName, String resourceName, String filter, Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceName, resourceGroupName, filter, context), + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName, filter, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } @@ -228,8 +227,8 @@ private PagedFlux listAsync(String resourceName, Stri * * Gets the list of Azure Site Recovery appliances for the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -237,9 +236,9 @@ private PagedFlux listAsync(String resourceName, Stri * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceName, String resourceGroupName) { + public PagedIterable list(String resourceGroupName, String resourceName) { final String filter = null; - return new PagedIterable<>(listAsync(resourceName, resourceGroupName, filter)); + return new PagedIterable<>(listAsync(resourceGroupName, resourceName, filter)); } /** @@ -247,8 +246,8 @@ public PagedIterable list(String resourceName, String * * Gets the list of Azure Site Recovery appliances for the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param filter OData filter options. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -258,9 +257,9 @@ public PagedIterable list(String resourceName, String * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceName, String resourceGroupName, String filter, + public PagedIterable list(String resourceGroupName, String resourceName, String filter, Context context) { - return new PagedIterable<>(listAsync(resourceName, resourceGroupName, filter, context)); + return new PagedIterable<>(listAsync(resourceGroupName, resourceName, filter, context)); } /** diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationAppliancesImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationAppliancesImpl.java index c14df35f3e60..12e8802b4074 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationAppliancesImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationAppliancesImpl.java @@ -25,15 +25,15 @@ public ReplicationAppliancesImpl(ReplicationAppliancesClient innerClient, this.serviceManager = serviceManager; } - public PagedIterable list(String resourceName, String resourceGroupName) { - PagedIterable inner = this.serviceClient().list(resourceName, resourceGroupName); + public PagedIterable list(String resourceGroupName, String resourceName) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, resourceName); return ResourceManagerUtils.mapPage(inner, inner1 -> new ReplicationApplianceImpl(inner1, this.manager())); } - public PagedIterable list(String resourceName, String resourceGroupName, String filter, + public PagedIterable list(String resourceGroupName, String resourceName, String filter, Context context) { PagedIterable inner - = this.serviceClient().list(resourceName, resourceGroupName, filter, context); + = this.serviceClient().list(resourceGroupName, resourceName, filter, context); return ResourceManagerUtils.mapPage(inner, inner1 -> new ReplicationApplianceImpl(inner1, this.manager())); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationEventsClientImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationEventsClientImpl.java index 4551ea41a1a4..bb1a45b6f416 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationEventsClientImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationEventsClientImpl.java @@ -67,20 +67,18 @@ public interface ReplicationEventsService { @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> list(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("$filter") String filter, - @HeaderParam("Accept") String accept, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @QueryParam("$filter") String filter, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationEvents/{eventName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("eventName") String eventName, - @HeaderParam("Accept") String accept, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("eventName") String eventName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @@ -95,8 +93,8 @@ Mono> listNext(@PathParam(value = "nextLink", encoded * * Gets the list of Azure Site Recovery events for the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param filter OData filter options. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -105,27 +103,27 @@ Mono> listNext(@PathParam(value = "nextLink", encoded * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceName, String resourceGroupName, + private Mono> listSinglePageAsync(String resourceGroupName, String resourceName, String filter) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), filter, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), filter, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -136,8 +134,8 @@ private Mono> listSinglePageAsync(String resourceName, * * Gets the list of Azure Site Recovery events for the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param filter OData filter options. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -147,19 +145,19 @@ private Mono> listSinglePageAsync(String resourceName, * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceName, String resourceGroupName, + private Mono> listSinglePageAsync(String resourceGroupName, String resourceName, String filter, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -167,7 +165,7 @@ private Mono> listSinglePageAsync(String resourceName, final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + .list(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), filter, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); @@ -178,8 +176,8 @@ private Mono> listSinglePageAsync(String resourceName, * * Gets the list of Azure Site Recovery events for the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param filter OData filter options. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -187,8 +185,8 @@ private Mono> listSinglePageAsync(String resourceName, * @return the list of Azure Site Recovery events for the vault as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceName, String resourceGroupName, String filter) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceName, resourceGroupName, filter), + private PagedFlux listAsync(String resourceGroupName, String resourceName, String filter) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName, filter), nextLink -> listNextSinglePageAsync(nextLink)); } @@ -197,17 +195,17 @@ private PagedFlux listAsync(String resourceName, String resourceGrou * * Gets the list of Azure Site Recovery events for the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of Azure Site Recovery events for the vault as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceName, String resourceGroupName) { + private PagedFlux listAsync(String resourceGroupName, String resourceName) { final String filter = null; - return new PagedFlux<>(() -> listSinglePageAsync(resourceName, resourceGroupName, filter), + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName, filter), nextLink -> listNextSinglePageAsync(nextLink)); } @@ -216,8 +214,8 @@ private PagedFlux listAsync(String resourceName, String resourceGrou * * Gets the list of Azure Site Recovery events for the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param filter OData filter options. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -226,9 +224,9 @@ private PagedFlux listAsync(String resourceName, String resourceGrou * @return the list of Azure Site Recovery events for the vault as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceName, String resourceGroupName, String filter, + private PagedFlux listAsync(String resourceGroupName, String resourceName, String filter, Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceName, resourceGroupName, filter, context), + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName, filter, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } @@ -237,17 +235,17 @@ private PagedFlux listAsync(String resourceName, String resourceGrou * * Gets the list of Azure Site Recovery events for the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of Azure Site Recovery events for the vault as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceName, String resourceGroupName) { + public PagedIterable list(String resourceGroupName, String resourceName) { final String filter = null; - return new PagedIterable<>(listAsync(resourceName, resourceGroupName, filter)); + return new PagedIterable<>(listAsync(resourceGroupName, resourceName, filter)); } /** @@ -255,8 +253,8 @@ public PagedIterable list(String resourceName, String resourceGroupN * * Gets the list of Azure Site Recovery events for the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param filter OData filter options. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -265,9 +263,9 @@ public PagedIterable list(String resourceName, String resourceGroupN * @return the list of Azure Site Recovery events for the vault as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceName, String resourceGroupName, String filter, + public PagedIterable list(String resourceGroupName, String resourceName, String filter, Context context) { - return new PagedIterable<>(listAsync(resourceName, resourceGroupName, filter, context)); + return new PagedIterable<>(listAsync(resourceGroupName, resourceName, filter, context)); } /** @@ -275,8 +273,8 @@ public PagedIterable list(String resourceName, String resourceGroupN * * The operation to get the details of an Azure Site recovery event. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param eventName The name of the Azure Site Recovery event. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -284,19 +282,19 @@ public PagedIterable list(String resourceName, String resourceGroupN * @return implements the Event class along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceName, String resourceGroupName, + private Mono> getWithResponseAsync(String resourceGroupName, String resourceName, String eventName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -306,8 +304,8 @@ private Mono> getWithResponseAsync(String resourceName, Str } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), eventName, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), eventName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -316,8 +314,8 @@ private Mono> getWithResponseAsync(String resourceName, Str * * The operation to get the details of an Azure Site recovery event. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param eventName The name of the Azure Site Recovery event. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -326,19 +324,19 @@ private Mono> getWithResponseAsync(String resourceName, Str * @return implements the Event class along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceName, String resourceGroupName, + private Mono> getWithResponseAsync(String resourceGroupName, String resourceName, String eventName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -348,7 +346,7 @@ private Mono> getWithResponseAsync(String resourceName, Str } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), eventName, accept, context); } @@ -357,8 +355,8 @@ private Mono> getWithResponseAsync(String resourceName, Str * * The operation to get the details of an Azure Site recovery event. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param eventName The name of the Azure Site Recovery event. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -366,8 +364,8 @@ private Mono> getWithResponseAsync(String resourceName, Str * @return implements the Event class on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceName, String resourceGroupName, String eventName) { - return getWithResponseAsync(resourceName, resourceGroupName, eventName) + private Mono getAsync(String resourceGroupName, String resourceName, String eventName) { + return getWithResponseAsync(resourceGroupName, resourceName, eventName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } @@ -376,8 +374,8 @@ private Mono getAsync(String resourceName, String resourceGroupName, * * The operation to get the details of an Azure Site recovery event. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param eventName The name of the Azure Site Recovery event. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -386,9 +384,9 @@ private Mono getAsync(String resourceName, String resourceGroupName, * @return implements the Event class along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceName, String resourceGroupName, String eventName, + public Response getWithResponse(String resourceGroupName, String resourceName, String eventName, Context context) { - return getWithResponseAsync(resourceName, resourceGroupName, eventName, context).block(); + return getWithResponseAsync(resourceGroupName, resourceName, eventName, context).block(); } /** @@ -396,8 +394,8 @@ public Response getWithResponse(String resourceName, String resource * * The operation to get the details of an Azure Site recovery event. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param eventName The name of the Azure Site Recovery event. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -405,8 +403,8 @@ public Response getWithResponse(String resourceName, String resource * @return implements the Event class. */ @ServiceMethod(returns = ReturnType.SINGLE) - public EventInner get(String resourceName, String resourceGroupName, String eventName) { - return getWithResponse(resourceName, resourceGroupName, eventName, Context.NONE).getValue(); + public EventInner get(String resourceGroupName, String resourceName, String eventName) { + return getWithResponse(resourceGroupName, resourceName, eventName, Context.NONE).getValue(); } /** diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationEventsImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationEventsImpl.java index 654032f6470b..c9b613f47b9a 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationEventsImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationEventsImpl.java @@ -27,20 +27,20 @@ public ReplicationEventsImpl(ReplicationEventsClient innerClient, this.serviceManager = serviceManager; } - public PagedIterable list(String resourceName, String resourceGroupName) { - PagedIterable inner = this.serviceClient().list(resourceName, resourceGroupName); + public PagedIterable list(String resourceGroupName, String resourceName) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, resourceName); return ResourceManagerUtils.mapPage(inner, inner1 -> new EventImpl(inner1, this.manager())); } - public PagedIterable list(String resourceName, String resourceGroupName, String filter, Context context) { - PagedIterable inner = this.serviceClient().list(resourceName, resourceGroupName, filter, context); + public PagedIterable list(String resourceGroupName, String resourceName, String filter, Context context) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, resourceName, filter, context); return ResourceManagerUtils.mapPage(inner, inner1 -> new EventImpl(inner1, this.manager())); } - public Response getWithResponse(String resourceName, String resourceGroupName, String eventName, + public Response getWithResponse(String resourceGroupName, String resourceName, String eventName, Context context) { Response inner - = this.serviceClient().getWithResponse(resourceName, resourceGroupName, eventName, context); + = this.serviceClient().getWithResponse(resourceGroupName, resourceName, eventName, context); if (inner != null) { return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new EventImpl(inner.getValue(), this.manager())); @@ -49,8 +49,8 @@ public Response getWithResponse(String resourceName, String resourceGroup } } - public Event get(String resourceName, String resourceGroupName, String eventName) { - EventInner inner = this.serviceClient().get(resourceName, resourceGroupName, eventName); + public Event get(String resourceGroupName, String resourceName, String eventName) { + EventInner inner = this.serviceClient().get(resourceGroupName, resourceName, eventName); if (inner != null) { return new EventImpl(inner, this.manager()); } else { diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationFabricsClientImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationFabricsClientImpl.java index 2e6ea2cfbba6..33858636e9bb 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationFabricsClientImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationFabricsClientImpl.java @@ -79,69 +79,65 @@ public interface ReplicationFabricsService { @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> list(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, - @QueryParam("$filter") String filter, @HeaderParam("Accept") String accept, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @QueryParam("$filter") String filter, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> create(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, - @BodyParam("application/json") FabricCreationInput input, @HeaderParam("Accept") String accept, - Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @BodyParam("application/json") FabricCreationInput input, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}") @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> purge(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, - Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/checkConsistency") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> checkConsistency(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, - @HeaderParam("Accept") String accept, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/migratetoaad") @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> migrateToAad(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, - Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/reassociateGateway") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> reassociateGateway(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @BodyParam("application/json") FailoverProcessServerRequest failoverProcessServerRequest, @HeaderParam("Accept") String accept, Context context); @@ -150,19 +146,18 @@ Mono>> reassociateGateway(@HostParam("$host") String e @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> delete(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, - Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/renewCertificate") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> renewCertificate(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @BodyParam("application/json") RenewCertificateInput renewCertificate, @HeaderParam("Accept") String accept, Context context); @@ -188,8 +183,8 @@ Mono> listNext(@PathParam(value = "nextLink", encoded * * Gets a list of the Azure Site Recovery fabrics in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -197,26 +192,26 @@ Mono> listNext(@PathParam(value = "nextLink", encoded * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceName, String resourceGroupName) { + private Mono> listSinglePageAsync(String resourceGroupName, String resourceName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -227,8 +222,8 @@ private Mono> listSinglePageAsync(String resourceName * * Gets a list of the Azure Site Recovery fabrics in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -237,19 +232,19 @@ private Mono> listSinglePageAsync(String resourceName * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceName, String resourceGroupName, + private Mono> listSinglePageAsync(String resourceGroupName, String resourceName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -257,7 +252,7 @@ private Mono> listSinglePageAsync(String resourceName final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + .list(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); @@ -268,16 +263,16 @@ private Mono> listSinglePageAsync(String resourceName * * Gets a list of the Azure Site Recovery fabrics in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of the Azure Site Recovery fabrics in the vault as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceName, String resourceGroupName) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceName, resourceGroupName), + private PagedFlux listAsync(String resourceGroupName, String resourceName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName), nextLink -> listNextSinglePageAsync(nextLink)); } @@ -286,8 +281,8 @@ private PagedFlux listAsync(String resourceName, String resourceGro * * Gets a list of the Azure Site Recovery fabrics in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -295,8 +290,8 @@ private PagedFlux listAsync(String resourceName, String resourceGro * @return a list of the Azure Site Recovery fabrics in the vault as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceName, String resourceGroupName, Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceName, resourceGroupName, context), + private PagedFlux listAsync(String resourceGroupName, String resourceName, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } @@ -305,16 +300,16 @@ private PagedFlux listAsync(String resourceName, String resourceGro * * Gets a list of the Azure Site Recovery fabrics in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of the Azure Site Recovery fabrics in the vault as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceName, String resourceGroupName) { - return new PagedIterable<>(listAsync(resourceName, resourceGroupName)); + public PagedIterable list(String resourceGroupName, String resourceName) { + return new PagedIterable<>(listAsync(resourceGroupName, resourceName)); } /** @@ -322,8 +317,8 @@ public PagedIterable list(String resourceName, String resourceGroup * * Gets a list of the Azure Site Recovery fabrics in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -331,8 +326,8 @@ public PagedIterable list(String resourceName, String resourceGroup * @return a list of the Azure Site Recovery fabrics in the vault as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceName, String resourceGroupName, Context context) { - return new PagedIterable<>(listAsync(resourceName, resourceGroupName, context)); + public PagedIterable list(String resourceGroupName, String resourceName, Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, resourceName, context)); } /** @@ -340,8 +335,8 @@ public PagedIterable list(String resourceName, String resourceGroup * * Gets the details of an Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param filter OData filter options. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -351,19 +346,19 @@ public PagedIterable list(String resourceName, String resourceGroup * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceName, String resourceGroupName, + private Mono> getWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String filter) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -373,8 +368,8 @@ private Mono> getWithResponseAsync(String resourceName, St } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, filter, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, filter, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -383,8 +378,8 @@ private Mono> getWithResponseAsync(String resourceName, St * * Gets the details of an Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param filter OData filter options. * @param context The context to associate with this operation. @@ -395,19 +390,19 @@ private Mono> getWithResponseAsync(String resourceName, St * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceName, String resourceGroupName, + private Mono> getWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String filter, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -417,7 +412,7 @@ private Mono> getWithResponseAsync(String resourceName, St } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, filter, accept, context); } @@ -426,8 +421,8 @@ private Mono> getWithResponseAsync(String resourceName, St * * Gets the details of an Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -435,9 +430,9 @@ private Mono> getWithResponseAsync(String resourceName, St * @return the details of an Azure Site Recovery fabric on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceName, String resourceGroupName, String fabricName) { + private Mono getAsync(String resourceGroupName, String resourceName, String fabricName) { final String filter = null; - return getWithResponseAsync(resourceName, resourceGroupName, fabricName, filter) + return getWithResponseAsync(resourceGroupName, resourceName, fabricName, filter) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } @@ -446,8 +441,8 @@ private Mono getAsync(String resourceName, String resourceGroupName * * Gets the details of an Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param filter OData filter options. * @param context The context to associate with this operation. @@ -457,9 +452,9 @@ private Mono getAsync(String resourceName, String resourceGroupName * @return the details of an Azure Site Recovery fabric along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceName, String resourceGroupName, String fabricName, + public Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String filter, Context context) { - return getWithResponseAsync(resourceName, resourceGroupName, fabricName, filter, context).block(); + return getWithResponseAsync(resourceGroupName, resourceName, fabricName, filter, context).block(); } /** @@ -467,8 +462,8 @@ public Response getWithResponse(String resourceName, String resourc * * Gets the details of an Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -476,9 +471,9 @@ public Response getWithResponse(String resourceName, String resourc * @return the details of an Azure Site Recovery fabric. */ @ServiceMethod(returns = ReturnType.SINGLE) - public FabricInner get(String resourceName, String resourceGroupName, String fabricName) { + public FabricInner get(String resourceGroupName, String resourceName, String fabricName) { final String filter = null; - return getWithResponse(resourceName, resourceGroupName, fabricName, filter, Context.NONE).getValue(); + return getWithResponse(resourceGroupName, resourceName, fabricName, filter, Context.NONE).getValue(); } /** @@ -486,8 +481,8 @@ public FabricInner get(String resourceName, String resourceGroupName, String fab * * The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V site). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Name of the ASR fabric. * @param input Fabric creation input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -496,19 +491,19 @@ public FabricInner get(String resourceName, String resourceGroupName, String fab * @return fabric definition along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> createWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, FabricCreationInput input) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -523,8 +518,8 @@ private Mono>> createWithResponseAsync(String resource } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, input, accept, context)) + .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, input, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -533,8 +528,8 @@ private Mono>> createWithResponseAsync(String resource * * The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V site). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Name of the ASR fabric. * @param input Fabric creation input. * @param context The context to associate with this operation. @@ -544,19 +539,19 @@ private Mono>> createWithResponseAsync(String resource * @return fabric definition along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> createWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, FabricCreationInput input, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -571,7 +566,7 @@ private Mono>> createWithResponseAsync(String resource } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.create(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.create(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, input, accept, context); } @@ -580,8 +575,8 @@ private Mono>> createWithResponseAsync(String resource * * The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V site). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Name of the ASR fabric. * @param input Fabric creation input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -590,10 +585,10 @@ private Mono>> createWithResponseAsync(String resource * @return the {@link PollerFlux} for polling of fabric definition. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, FabricInner> beginCreateAsync(String resourceName, - String resourceGroupName, String fabricName, FabricCreationInput input) { + private PollerFlux, FabricInner> beginCreateAsync(String resourceGroupName, + String resourceName, String fabricName, FabricCreationInput input) { Mono>> mono - = createWithResponseAsync(resourceName, resourceGroupName, fabricName, input); + = createWithResponseAsync(resourceGroupName, resourceName, fabricName, input); return this.client.getLroResult(mono, this.client.getHttpPipeline(), FabricInner.class, FabricInner.class, this.client.getContext()); } @@ -603,8 +598,8 @@ private PollerFlux, FabricInner> beginCreateAsync(String * * The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V site). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Name of the ASR fabric. * @param input Fabric creation input. * @param context The context to associate with this operation. @@ -614,11 +609,11 @@ private PollerFlux, FabricInner> beginCreateAsync(String * @return the {@link PollerFlux} for polling of fabric definition. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, FabricInner> beginCreateAsync(String resourceName, - String resourceGroupName, String fabricName, FabricCreationInput input, Context context) { + private PollerFlux, FabricInner> beginCreateAsync(String resourceGroupName, + String resourceName, String fabricName, FabricCreationInput input, Context context) { context = this.client.mergeContext(context); Mono>> mono - = createWithResponseAsync(resourceName, resourceGroupName, fabricName, input, context); + = createWithResponseAsync(resourceGroupName, resourceName, fabricName, input, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), FabricInner.class, FabricInner.class, context); } @@ -628,8 +623,8 @@ private PollerFlux, FabricInner> beginCreateAsync(String * * The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V site). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Name of the ASR fabric. * @param input Fabric creation input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -638,9 +633,9 @@ private PollerFlux, FabricInner> beginCreateAsync(String * @return the {@link SyncPoller} for polling of fabric definition. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, FabricInner> beginCreate(String resourceName, String resourceGroupName, + public SyncPoller, FabricInner> beginCreate(String resourceGroupName, String resourceName, String fabricName, FabricCreationInput input) { - return this.beginCreateAsync(resourceName, resourceGroupName, fabricName, input).getSyncPoller(); + return this.beginCreateAsync(resourceGroupName, resourceName, fabricName, input).getSyncPoller(); } /** @@ -648,8 +643,8 @@ public SyncPoller, FabricInner> beginCreate(String resou * * The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V site). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Name of the ASR fabric. * @param input Fabric creation input. * @param context The context to associate with this operation. @@ -659,9 +654,9 @@ public SyncPoller, FabricInner> beginCreate(String resou * @return the {@link SyncPoller} for polling of fabric definition. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, FabricInner> beginCreate(String resourceName, String resourceGroupName, + public SyncPoller, FabricInner> beginCreate(String resourceGroupName, String resourceName, String fabricName, FabricCreationInput input, Context context) { - return this.beginCreateAsync(resourceName, resourceGroupName, fabricName, input, context).getSyncPoller(); + return this.beginCreateAsync(resourceGroupName, resourceName, fabricName, input, context).getSyncPoller(); } /** @@ -669,8 +664,8 @@ public SyncPoller, FabricInner> beginCreate(String resou * * The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V site). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Name of the ASR fabric. * @param input Fabric creation input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -679,9 +674,9 @@ public SyncPoller, FabricInner> beginCreate(String resou * @return fabric definition on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono createAsync(String resourceGroupName, String resourceName, String fabricName, FabricCreationInput input) { - return beginCreateAsync(resourceName, resourceGroupName, fabricName, input).last() + return beginCreateAsync(resourceGroupName, resourceName, fabricName, input).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -690,8 +685,8 @@ private Mono createAsync(String resourceName, String resourceGroupN * * The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V site). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Name of the ASR fabric. * @param input Fabric creation input. * @param context The context to associate with this operation. @@ -701,9 +696,9 @@ private Mono createAsync(String resourceName, String resourceGroupN * @return fabric definition on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono createAsync(String resourceGroupName, String resourceName, String fabricName, FabricCreationInput input, Context context) { - return beginCreateAsync(resourceName, resourceGroupName, fabricName, input, context).last() + return beginCreateAsync(resourceGroupName, resourceName, fabricName, input, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -712,8 +707,8 @@ private Mono createAsync(String resourceName, String resourceGroupN * * The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V site). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Name of the ASR fabric. * @param input Fabric creation input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -722,9 +717,9 @@ private Mono createAsync(String resourceName, String resourceGroupN * @return fabric definition. */ @ServiceMethod(returns = ReturnType.SINGLE) - public FabricInner create(String resourceName, String resourceGroupName, String fabricName, + public FabricInner create(String resourceGroupName, String resourceName, String fabricName, FabricCreationInput input) { - return createAsync(resourceName, resourceGroupName, fabricName, input).block(); + return createAsync(resourceGroupName, resourceName, fabricName, input).block(); } /** @@ -732,8 +727,8 @@ public FabricInner create(String resourceName, String resourceGroupName, String * * The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V site). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Name of the ASR fabric. * @param input Fabric creation input. * @param context The context to associate with this operation. @@ -743,9 +738,9 @@ public FabricInner create(String resourceName, String resourceGroupName, String * @return fabric definition. */ @ServiceMethod(returns = ReturnType.SINGLE) - public FabricInner create(String resourceName, String resourceGroupName, String fabricName, + public FabricInner create(String resourceGroupName, String resourceName, String fabricName, FabricCreationInput input, Context context) { - return createAsync(resourceName, resourceGroupName, fabricName, input, context).block(); + return createAsync(resourceGroupName, resourceName, fabricName, input, context).block(); } /** @@ -753,8 +748,8 @@ public FabricInner create(String resourceName, String resourceGroupName, String * * The operation to purge(force delete) an Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to purge. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -762,19 +757,19 @@ public FabricInner create(String resourceName, String resourceGroupName, String * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> purgeWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> purgeWithResponseAsync(String resourceGroupName, String resourceName, String fabricName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -783,8 +778,8 @@ private Mono>> purgeWithResponseAsync(String resourceN return Mono.error(new IllegalArgumentException("Parameter fabricName is required and cannot be null.")); } return FluxUtil - .withContext(context -> service.purge(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, context)) + .withContext(context -> service.purge(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -793,8 +788,8 @@ private Mono>> purgeWithResponseAsync(String resourceN * * The operation to purge(force delete) an Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to purge. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -803,19 +798,19 @@ private Mono>> purgeWithResponseAsync(String resourceN * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> purgeWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> purgeWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -824,7 +819,7 @@ private Mono>> purgeWithResponseAsync(String resourceN return Mono.error(new IllegalArgumentException("Parameter fabricName is required and cannot be null.")); } context = this.client.mergeContext(context); - return service.purge(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.purge(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, context); } @@ -833,8 +828,8 @@ private Mono>> purgeWithResponseAsync(String resourceN * * The operation to purge(force delete) an Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to purge. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -842,9 +837,9 @@ private Mono>> purgeWithResponseAsync(String resourceN * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginPurgeAsync(String resourceName, String resourceGroupName, + private PollerFlux, Void> beginPurgeAsync(String resourceGroupName, String resourceName, String fabricName) { - Mono>> mono = purgeWithResponseAsync(resourceName, resourceGroupName, fabricName); + Mono>> mono = purgeWithResponseAsync(resourceGroupName, resourceName, fabricName); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } @@ -854,8 +849,8 @@ private PollerFlux, Void> beginPurgeAsync(String resourceName, * * The operation to purge(force delete) an Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to purge. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -864,11 +859,11 @@ private PollerFlux, Void> beginPurgeAsync(String resourceName, * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginPurgeAsync(String resourceName, String resourceGroupName, + private PollerFlux, Void> beginPurgeAsync(String resourceGroupName, String resourceName, String fabricName, Context context) { context = this.client.mergeContext(context); Mono>> mono - = purgeWithResponseAsync(resourceName, resourceGroupName, fabricName, context); + = purgeWithResponseAsync(resourceGroupName, resourceName, fabricName, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); } @@ -878,8 +873,8 @@ private PollerFlux, Void> beginPurgeAsync(String resourceName, * * The operation to purge(force delete) an Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to purge. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -887,9 +882,9 @@ private PollerFlux, Void> beginPurgeAsync(String resourceName, * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginPurge(String resourceName, String resourceGroupName, + public SyncPoller, Void> beginPurge(String resourceGroupName, String resourceName, String fabricName) { - return this.beginPurgeAsync(resourceName, resourceGroupName, fabricName).getSyncPoller(); + return this.beginPurgeAsync(resourceGroupName, resourceName, fabricName).getSyncPoller(); } /** @@ -897,8 +892,8 @@ public SyncPoller, Void> beginPurge(String resourceName, String * * The operation to purge(force delete) an Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to purge. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -907,9 +902,9 @@ public SyncPoller, Void> beginPurge(String resourceName, String * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginPurge(String resourceName, String resourceGroupName, + public SyncPoller, Void> beginPurge(String resourceGroupName, String resourceName, String fabricName, Context context) { - return this.beginPurgeAsync(resourceName, resourceGroupName, fabricName, context).getSyncPoller(); + return this.beginPurgeAsync(resourceGroupName, resourceName, fabricName, context).getSyncPoller(); } /** @@ -917,8 +912,8 @@ public SyncPoller, Void> beginPurge(String resourceName, String * * The operation to purge(force delete) an Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to purge. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -926,8 +921,8 @@ public SyncPoller, Void> beginPurge(String resourceName, String * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono purgeAsync(String resourceName, String resourceGroupName, String fabricName) { - return beginPurgeAsync(resourceName, resourceGroupName, fabricName).last() + private Mono purgeAsync(String resourceGroupName, String resourceName, String fabricName) { + return beginPurgeAsync(resourceGroupName, resourceName, fabricName).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -936,8 +931,8 @@ private Mono purgeAsync(String resourceName, String resourceGroupName, Str * * The operation to purge(force delete) an Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to purge. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -946,8 +941,8 @@ private Mono purgeAsync(String resourceName, String resourceGroupName, Str * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono purgeAsync(String resourceName, String resourceGroupName, String fabricName, Context context) { - return beginPurgeAsync(resourceName, resourceGroupName, fabricName, context).last() + private Mono purgeAsync(String resourceGroupName, String resourceName, String fabricName, Context context) { + return beginPurgeAsync(resourceGroupName, resourceName, fabricName, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -956,16 +951,16 @@ private Mono purgeAsync(String resourceName, String resourceGroupName, Str * * The operation to purge(force delete) an Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to purge. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void purge(String resourceName, String resourceGroupName, String fabricName) { - purgeAsync(resourceName, resourceGroupName, fabricName).block(); + public void purge(String resourceGroupName, String resourceName, String fabricName) { + purgeAsync(resourceGroupName, resourceName, fabricName).block(); } /** @@ -973,8 +968,8 @@ public void purge(String resourceName, String resourceGroupName, String fabricNa * * The operation to purge(force delete) an Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to purge. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -982,8 +977,8 @@ public void purge(String resourceName, String resourceGroupName, String fabricNa * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void purge(String resourceName, String resourceGroupName, String fabricName, Context context) { - purgeAsync(resourceName, resourceGroupName, fabricName, context).block(); + public void purge(String resourceGroupName, String resourceName, String fabricName, Context context) { + purgeAsync(resourceGroupName, resourceName, fabricName, context).block(); } /** @@ -991,8 +986,8 @@ public void purge(String resourceName, String resourceGroupName, String fabricNa * * The operation to perform a consistency check on the fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1000,19 +995,19 @@ public void purge(String resourceName, String resourceGroupName, String fabricNa * @return fabric definition along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> checkConsistencyWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName) { + private Mono>> checkConsistencyWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1023,7 +1018,7 @@ private Mono>> checkConsistencyWithResponseAsync(Strin final String accept = "application/json"; return FluxUtil .withContext(context -> service.checkConsistency(this.client.getEndpoint(), this.client.getApiVersion(), - resourceName, resourceGroupName, this.client.getSubscriptionId(), fabricName, accept, context)) + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1032,8 +1027,8 @@ private Mono>> checkConsistencyWithResponseAsync(Strin * * The operation to perform a consistency check on the fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1042,19 +1037,19 @@ private Mono>> checkConsistencyWithResponseAsync(Strin * @return fabric definition along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> checkConsistencyWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, Context context) { + private Mono>> checkConsistencyWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1064,8 +1059,8 @@ private Mono>> checkConsistencyWithResponseAsync(Strin } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.checkConsistency(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, accept, context); + return service.checkConsistency(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), fabricName, accept, context); } /** @@ -1073,8 +1068,8 @@ private Mono>> checkConsistencyWithResponseAsync(Strin * * The operation to perform a consistency check on the fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1082,10 +1077,10 @@ private Mono>> checkConsistencyWithResponseAsync(Strin * @return the {@link PollerFlux} for polling of fabric definition. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, FabricInner> beginCheckConsistencyAsync(String resourceName, - String resourceGroupName, String fabricName) { + private PollerFlux, FabricInner> beginCheckConsistencyAsync(String resourceGroupName, + String resourceName, String fabricName) { Mono>> mono - = checkConsistencyWithResponseAsync(resourceName, resourceGroupName, fabricName); + = checkConsistencyWithResponseAsync(resourceGroupName, resourceName, fabricName); return this.client.getLroResult(mono, this.client.getHttpPipeline(), FabricInner.class, FabricInner.class, this.client.getContext()); } @@ -1095,8 +1090,8 @@ private PollerFlux, FabricInner> beginCheckConsistencyAs * * The operation to perform a consistency check on the fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1105,11 +1100,11 @@ private PollerFlux, FabricInner> beginCheckConsistencyAs * @return the {@link PollerFlux} for polling of fabric definition. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, FabricInner> beginCheckConsistencyAsync(String resourceName, - String resourceGroupName, String fabricName, Context context) { + private PollerFlux, FabricInner> beginCheckConsistencyAsync(String resourceGroupName, + String resourceName, String fabricName, Context context) { context = this.client.mergeContext(context); Mono>> mono - = checkConsistencyWithResponseAsync(resourceName, resourceGroupName, fabricName, context); + = checkConsistencyWithResponseAsync(resourceGroupName, resourceName, fabricName, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), FabricInner.class, FabricInner.class, context); } @@ -1119,8 +1114,8 @@ private PollerFlux, FabricInner> beginCheckConsistencyAs * * The operation to perform a consistency check on the fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1128,9 +1123,9 @@ private PollerFlux, FabricInner> beginCheckConsistencyAs * @return the {@link SyncPoller} for polling of fabric definition. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, FabricInner> beginCheckConsistency(String resourceName, - String resourceGroupName, String fabricName) { - return this.beginCheckConsistencyAsync(resourceName, resourceGroupName, fabricName).getSyncPoller(); + public SyncPoller, FabricInner> beginCheckConsistency(String resourceGroupName, + String resourceName, String fabricName) { + return this.beginCheckConsistencyAsync(resourceGroupName, resourceName, fabricName).getSyncPoller(); } /** @@ -1138,8 +1133,8 @@ public SyncPoller, FabricInner> beginCheckConsistency(St * * The operation to perform a consistency check on the fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1148,9 +1143,9 @@ public SyncPoller, FabricInner> beginCheckConsistency(St * @return the {@link SyncPoller} for polling of fabric definition. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, FabricInner> beginCheckConsistency(String resourceName, - String resourceGroupName, String fabricName, Context context) { - return this.beginCheckConsistencyAsync(resourceName, resourceGroupName, fabricName, context).getSyncPoller(); + public SyncPoller, FabricInner> beginCheckConsistency(String resourceGroupName, + String resourceName, String fabricName, Context context) { + return this.beginCheckConsistencyAsync(resourceGroupName, resourceName, fabricName, context).getSyncPoller(); } /** @@ -1158,8 +1153,8 @@ public SyncPoller, FabricInner> beginCheckConsistency(St * * The operation to perform a consistency check on the fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1167,8 +1162,8 @@ public SyncPoller, FabricInner> beginCheckConsistency(St * @return fabric definition on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono checkConsistencyAsync(String resourceName, String resourceGroupName, String fabricName) { - return beginCheckConsistencyAsync(resourceName, resourceGroupName, fabricName).last() + private Mono checkConsistencyAsync(String resourceGroupName, String resourceName, String fabricName) { + return beginCheckConsistencyAsync(resourceGroupName, resourceName, fabricName).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1177,8 +1172,8 @@ private Mono checkConsistencyAsync(String resourceName, String reso * * The operation to perform a consistency check on the fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1187,9 +1182,9 @@ private Mono checkConsistencyAsync(String resourceName, String reso * @return fabric definition on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono checkConsistencyAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono checkConsistencyAsync(String resourceGroupName, String resourceName, String fabricName, Context context) { - return beginCheckConsistencyAsync(resourceName, resourceGroupName, fabricName, context).last() + return beginCheckConsistencyAsync(resourceGroupName, resourceName, fabricName, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1198,8 +1193,8 @@ private Mono checkConsistencyAsync(String resourceName, String reso * * The operation to perform a consistency check on the fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1207,8 +1202,8 @@ private Mono checkConsistencyAsync(String resourceName, String reso * @return fabric definition. */ @ServiceMethod(returns = ReturnType.SINGLE) - public FabricInner checkConsistency(String resourceName, String resourceGroupName, String fabricName) { - return checkConsistencyAsync(resourceName, resourceGroupName, fabricName).block(); + public FabricInner checkConsistency(String resourceGroupName, String resourceName, String fabricName) { + return checkConsistencyAsync(resourceGroupName, resourceName, fabricName).block(); } /** @@ -1216,8 +1211,8 @@ public FabricInner checkConsistency(String resourceName, String resourceGroupNam * * The operation to perform a consistency check on the fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1226,9 +1221,9 @@ public FabricInner checkConsistency(String resourceName, String resourceGroupNam * @return fabric definition. */ @ServiceMethod(returns = ReturnType.SINGLE) - public FabricInner checkConsistency(String resourceName, String resourceGroupName, String fabricName, + public FabricInner checkConsistency(String resourceGroupName, String resourceName, String fabricName, Context context) { - return checkConsistencyAsync(resourceName, resourceGroupName, fabricName, context).block(); + return checkConsistencyAsync(resourceGroupName, resourceName, fabricName, context).block(); } /** @@ -1236,8 +1231,8 @@ public FabricInner checkConsistency(String resourceName, String resourceGroupNam * * The operation to migrate an Azure Site Recovery fabric to AAD. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to migrate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1245,19 +1240,19 @@ public FabricInner checkConsistency(String resourceName, String resourceGroupNam * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> migrateToAadWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName) { + private Mono>> migrateToAadWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1267,7 +1262,7 @@ private Mono>> migrateToAadWithResponseAsync(String re } return FluxUtil .withContext(context -> service.migrateToAad(this.client.getEndpoint(), this.client.getApiVersion(), - resourceName, resourceGroupName, this.client.getSubscriptionId(), fabricName, context)) + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1276,8 +1271,8 @@ private Mono>> migrateToAadWithResponseAsync(String re * * The operation to migrate an Azure Site Recovery fabric to AAD. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to migrate. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1286,19 +1281,19 @@ private Mono>> migrateToAadWithResponseAsync(String re * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> migrateToAadWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, Context context) { + private Mono>> migrateToAadWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1307,8 +1302,8 @@ private Mono>> migrateToAadWithResponseAsync(String re return Mono.error(new IllegalArgumentException("Parameter fabricName is required and cannot be null.")); } context = this.client.mergeContext(context); - return service.migrateToAad(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, context); + return service.migrateToAad(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), fabricName, context); } /** @@ -1316,8 +1311,8 @@ private Mono>> migrateToAadWithResponseAsync(String re * * The operation to migrate an Azure Site Recovery fabric to AAD. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to migrate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1325,10 +1320,10 @@ private Mono>> migrateToAadWithResponseAsync(String re * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginMigrateToAadAsync(String resourceName, String resourceGroupName, + private PollerFlux, Void> beginMigrateToAadAsync(String resourceGroupName, String resourceName, String fabricName) { Mono>> mono - = migrateToAadWithResponseAsync(resourceName, resourceGroupName, fabricName); + = migrateToAadWithResponseAsync(resourceGroupName, resourceName, fabricName); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } @@ -1338,8 +1333,8 @@ private PollerFlux, Void> beginMigrateToAadAsync(String resourc * * The operation to migrate an Azure Site Recovery fabric to AAD. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to migrate. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1348,11 +1343,11 @@ private PollerFlux, Void> beginMigrateToAadAsync(String resourc * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginMigrateToAadAsync(String resourceName, String resourceGroupName, + private PollerFlux, Void> beginMigrateToAadAsync(String resourceGroupName, String resourceName, String fabricName, Context context) { context = this.client.mergeContext(context); Mono>> mono - = migrateToAadWithResponseAsync(resourceName, resourceGroupName, fabricName, context); + = migrateToAadWithResponseAsync(resourceGroupName, resourceName, fabricName, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); } @@ -1362,8 +1357,8 @@ private PollerFlux, Void> beginMigrateToAadAsync(String resourc * * The operation to migrate an Azure Site Recovery fabric to AAD. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to migrate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1371,9 +1366,9 @@ private PollerFlux, Void> beginMigrateToAadAsync(String resourc * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginMigrateToAad(String resourceName, String resourceGroupName, + public SyncPoller, Void> beginMigrateToAad(String resourceGroupName, String resourceName, String fabricName) { - return this.beginMigrateToAadAsync(resourceName, resourceGroupName, fabricName).getSyncPoller(); + return this.beginMigrateToAadAsync(resourceGroupName, resourceName, fabricName).getSyncPoller(); } /** @@ -1381,8 +1376,8 @@ public SyncPoller, Void> beginMigrateToAad(String resourceName, * * The operation to migrate an Azure Site Recovery fabric to AAD. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to migrate. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1391,9 +1386,9 @@ public SyncPoller, Void> beginMigrateToAad(String resourceName, * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginMigrateToAad(String resourceName, String resourceGroupName, + public SyncPoller, Void> beginMigrateToAad(String resourceGroupName, String resourceName, String fabricName, Context context) { - return this.beginMigrateToAadAsync(resourceName, resourceGroupName, fabricName, context).getSyncPoller(); + return this.beginMigrateToAadAsync(resourceGroupName, resourceName, fabricName, context).getSyncPoller(); } /** @@ -1401,8 +1396,8 @@ public SyncPoller, Void> beginMigrateToAad(String resourceName, * * The operation to migrate an Azure Site Recovery fabric to AAD. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to migrate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1410,8 +1405,8 @@ public SyncPoller, Void> beginMigrateToAad(String resourceName, * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono migrateToAadAsync(String resourceName, String resourceGroupName, String fabricName) { - return beginMigrateToAadAsync(resourceName, resourceGroupName, fabricName).last() + private Mono migrateToAadAsync(String resourceGroupName, String resourceName, String fabricName) { + return beginMigrateToAadAsync(resourceGroupName, resourceName, fabricName).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1420,8 +1415,8 @@ private Mono migrateToAadAsync(String resourceName, String resourceGroupNa * * The operation to migrate an Azure Site Recovery fabric to AAD. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to migrate. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1430,9 +1425,9 @@ private Mono migrateToAadAsync(String resourceName, String resourceGroupNa * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono migrateToAadAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono migrateToAadAsync(String resourceGroupName, String resourceName, String fabricName, Context context) { - return beginMigrateToAadAsync(resourceName, resourceGroupName, fabricName, context).last() + return beginMigrateToAadAsync(resourceGroupName, resourceName, fabricName, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1441,16 +1436,16 @@ private Mono migrateToAadAsync(String resourceName, String resourceGroupNa * * The operation to migrate an Azure Site Recovery fabric to AAD. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to migrate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void migrateToAad(String resourceName, String resourceGroupName, String fabricName) { - migrateToAadAsync(resourceName, resourceGroupName, fabricName).block(); + public void migrateToAad(String resourceGroupName, String resourceName, String fabricName) { + migrateToAadAsync(resourceGroupName, resourceName, fabricName).block(); } /** @@ -1458,8 +1453,8 @@ public void migrateToAad(String resourceName, String resourceGroupName, String f * * The operation to migrate an Azure Site Recovery fabric to AAD. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to migrate. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1467,8 +1462,8 @@ public void migrateToAad(String resourceName, String resourceGroupName, String f * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void migrateToAad(String resourceName, String resourceGroupName, String fabricName, Context context) { - migrateToAadAsync(resourceName, resourceGroupName, fabricName, context).block(); + public void migrateToAad(String resourceGroupName, String resourceName, String fabricName, Context context) { + migrateToAadAsync(resourceGroupName, resourceName, fabricName, context).block(); } /** @@ -1476,8 +1471,8 @@ public void migrateToAad(String resourceName, String resourceGroupName, String f * * The operation to move replications from a process server to another process server. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric containing the process server. * @param failoverProcessServerRequest The input to the failover process server operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1486,19 +1481,19 @@ public void migrateToAad(String resourceName, String resourceGroupName, String f * @return fabric definition along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> reassociateGatewayWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, FailoverProcessServerRequest failoverProcessServerRequest) { + private Mono>> reassociateGatewayWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, FailoverProcessServerRequest failoverProcessServerRequest) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1515,7 +1510,7 @@ private Mono>> reassociateGatewayWithResponseAsync(Str final String accept = "application/json"; return FluxUtil .withContext(context -> service.reassociateGateway(this.client.getEndpoint(), this.client.getApiVersion(), - resourceName, resourceGroupName, this.client.getSubscriptionId(), fabricName, + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, failoverProcessServerRequest, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1525,8 +1520,8 @@ private Mono>> reassociateGatewayWithResponseAsync(Str * * The operation to move replications from a process server to another process server. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric containing the process server. * @param failoverProcessServerRequest The input to the failover process server operation. * @param context The context to associate with this operation. @@ -1536,20 +1531,20 @@ private Mono>> reassociateGatewayWithResponseAsync(Str * @return fabric definition along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> reassociateGatewayWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, FailoverProcessServerRequest failoverProcessServerRequest, + private Mono>> reassociateGatewayWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, FailoverProcessServerRequest failoverProcessServerRequest, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1565,9 +1560,8 @@ private Mono>> reassociateGatewayWithResponseAsync(Str } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.reassociateGateway(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, failoverProcessServerRequest, accept, - context); + return service.reassociateGateway(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), fabricName, failoverProcessServerRequest, accept, context); } /** @@ -1575,8 +1569,8 @@ private Mono>> reassociateGatewayWithResponseAsync(Str * * The operation to move replications from a process server to another process server. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric containing the process server. * @param failoverProcessServerRequest The input to the failover process server operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1585,9 +1579,9 @@ private Mono>> reassociateGatewayWithResponseAsync(Str * @return the {@link PollerFlux} for polling of fabric definition. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, FabricInner> beginReassociateGatewayAsync(String resourceName, - String resourceGroupName, String fabricName, FailoverProcessServerRequest failoverProcessServerRequest) { - Mono>> mono = reassociateGatewayWithResponseAsync(resourceName, resourceGroupName, + private PollerFlux, FabricInner> beginReassociateGatewayAsync(String resourceGroupName, + String resourceName, String fabricName, FailoverProcessServerRequest failoverProcessServerRequest) { + Mono>> mono = reassociateGatewayWithResponseAsync(resourceGroupName, resourceName, fabricName, failoverProcessServerRequest); return this.client.getLroResult(mono, this.client.getHttpPipeline(), FabricInner.class, FabricInner.class, this.client.getContext()); @@ -1598,8 +1592,8 @@ private PollerFlux, FabricInner> beginReassociateGateway * * The operation to move replications from a process server to another process server. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric containing the process server. * @param failoverProcessServerRequest The input to the failover process server operation. * @param context The context to associate with this operation. @@ -1609,11 +1603,11 @@ private PollerFlux, FabricInner> beginReassociateGateway * @return the {@link PollerFlux} for polling of fabric definition. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, FabricInner> beginReassociateGatewayAsync(String resourceName, - String resourceGroupName, String fabricName, FailoverProcessServerRequest failoverProcessServerRequest, + private PollerFlux, FabricInner> beginReassociateGatewayAsync(String resourceGroupName, + String resourceName, String fabricName, FailoverProcessServerRequest failoverProcessServerRequest, Context context) { context = this.client.mergeContext(context); - Mono>> mono = reassociateGatewayWithResponseAsync(resourceName, resourceGroupName, + Mono>> mono = reassociateGatewayWithResponseAsync(resourceGroupName, resourceName, fabricName, failoverProcessServerRequest, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), FabricInner.class, FabricInner.class, context); @@ -1624,8 +1618,8 @@ private PollerFlux, FabricInner> beginReassociateGateway * * The operation to move replications from a process server to another process server. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric containing the process server. * @param failoverProcessServerRequest The input to the failover process server operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1634,10 +1628,10 @@ private PollerFlux, FabricInner> beginReassociateGateway * @return the {@link SyncPoller} for polling of fabric definition. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, FabricInner> beginReassociateGateway(String resourceName, - String resourceGroupName, String fabricName, FailoverProcessServerRequest failoverProcessServerRequest) { + public SyncPoller, FabricInner> beginReassociateGateway(String resourceGroupName, + String resourceName, String fabricName, FailoverProcessServerRequest failoverProcessServerRequest) { return this - .beginReassociateGatewayAsync(resourceName, resourceGroupName, fabricName, failoverProcessServerRequest) + .beginReassociateGatewayAsync(resourceGroupName, resourceName, fabricName, failoverProcessServerRequest) .getSyncPoller(); } @@ -1646,8 +1640,8 @@ public SyncPoller, FabricInner> beginReassociateGateway( * * The operation to move replications from a process server to another process server. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric containing the process server. * @param failoverProcessServerRequest The input to the failover process server operation. * @param context The context to associate with this operation. @@ -1657,11 +1651,11 @@ public SyncPoller, FabricInner> beginReassociateGateway( * @return the {@link SyncPoller} for polling of fabric definition. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, FabricInner> beginReassociateGateway(String resourceName, - String resourceGroupName, String fabricName, FailoverProcessServerRequest failoverProcessServerRequest, + public SyncPoller, FabricInner> beginReassociateGateway(String resourceGroupName, + String resourceName, String fabricName, FailoverProcessServerRequest failoverProcessServerRequest, Context context) { return this - .beginReassociateGatewayAsync(resourceName, resourceGroupName, fabricName, failoverProcessServerRequest, + .beginReassociateGatewayAsync(resourceGroupName, resourceName, fabricName, failoverProcessServerRequest, context) .getSyncPoller(); } @@ -1671,8 +1665,8 @@ public SyncPoller, FabricInner> beginReassociateGateway( * * The operation to move replications from a process server to another process server. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric containing the process server. * @param failoverProcessServerRequest The input to the failover process server operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1681,9 +1675,9 @@ public SyncPoller, FabricInner> beginReassociateGateway( * @return fabric definition on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono reassociateGatewayAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono reassociateGatewayAsync(String resourceGroupName, String resourceName, String fabricName, FailoverProcessServerRequest failoverProcessServerRequest) { - return beginReassociateGatewayAsync(resourceName, resourceGroupName, fabricName, failoverProcessServerRequest) + return beginReassociateGatewayAsync(resourceGroupName, resourceName, fabricName, failoverProcessServerRequest) .last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1693,8 +1687,8 @@ private Mono reassociateGatewayAsync(String resourceName, String re * * The operation to move replications from a process server to another process server. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric containing the process server. * @param failoverProcessServerRequest The input to the failover process server operation. * @param context The context to associate with this operation. @@ -1704,9 +1698,9 @@ private Mono reassociateGatewayAsync(String resourceName, String re * @return fabric definition on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono reassociateGatewayAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono reassociateGatewayAsync(String resourceGroupName, String resourceName, String fabricName, FailoverProcessServerRequest failoverProcessServerRequest, Context context) { - return beginReassociateGatewayAsync(resourceName, resourceGroupName, fabricName, failoverProcessServerRequest, + return beginReassociateGatewayAsync(resourceGroupName, resourceName, fabricName, failoverProcessServerRequest, context).last().flatMap(this.client::getLroFinalResultOrError); } @@ -1715,8 +1709,8 @@ private Mono reassociateGatewayAsync(String resourceName, String re * * The operation to move replications from a process server to another process server. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric containing the process server. * @param failoverProcessServerRequest The input to the failover process server operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1725,9 +1719,9 @@ private Mono reassociateGatewayAsync(String resourceName, String re * @return fabric definition. */ @ServiceMethod(returns = ReturnType.SINGLE) - public FabricInner reassociateGateway(String resourceName, String resourceGroupName, String fabricName, + public FabricInner reassociateGateway(String resourceGroupName, String resourceName, String fabricName, FailoverProcessServerRequest failoverProcessServerRequest) { - return reassociateGatewayAsync(resourceName, resourceGroupName, fabricName, failoverProcessServerRequest) + return reassociateGatewayAsync(resourceGroupName, resourceName, fabricName, failoverProcessServerRequest) .block(); } @@ -1736,8 +1730,8 @@ public FabricInner reassociateGateway(String resourceName, String resourceGroupN * * The operation to move replications from a process server to another process server. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric containing the process server. * @param failoverProcessServerRequest The input to the failover process server operation. * @param context The context to associate with this operation. @@ -1747,9 +1741,9 @@ public FabricInner reassociateGateway(String resourceName, String resourceGroupN * @return fabric definition. */ @ServiceMethod(returns = ReturnType.SINGLE) - public FabricInner reassociateGateway(String resourceName, String resourceGroupName, String fabricName, + public FabricInner reassociateGateway(String resourceGroupName, String resourceName, String fabricName, FailoverProcessServerRequest failoverProcessServerRequest, Context context) { - return reassociateGatewayAsync(resourceName, resourceGroupName, fabricName, failoverProcessServerRequest, + return reassociateGatewayAsync(resourceGroupName, resourceName, fabricName, failoverProcessServerRequest, context).block(); } @@ -1758,8 +1752,8 @@ public FabricInner reassociateGateway(String resourceName, String resourceGroupN * * The operation to delete or remove an Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to delete. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1767,19 +1761,19 @@ public FabricInner reassociateGateway(String resourceName, String resourceGroupN * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, String fabricName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1788,8 +1782,8 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException("Parameter fabricName is required and cannot be null.")); } return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1798,8 +1792,8 @@ private Mono>> deleteWithResponseAsync(String resource * * The operation to delete or remove an Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to delete. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1808,19 +1802,19 @@ private Mono>> deleteWithResponseAsync(String resource * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1829,7 +1823,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException("Parameter fabricName is required and cannot be null.")); } context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, context); } @@ -1838,8 +1832,8 @@ private Mono>> deleteWithResponseAsync(String resource * * The operation to delete or remove an Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to delete. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1847,9 +1841,9 @@ private Mono>> deleteWithResponseAsync(String resource * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceName, String resourceGroupName, + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, String fabricName) { - Mono>> mono = deleteWithResponseAsync(resourceName, resourceGroupName, fabricName); + Mono>> mono = deleteWithResponseAsync(resourceGroupName, resourceName, fabricName); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } @@ -1859,8 +1853,8 @@ private PollerFlux, Void> beginDeleteAsync(String resourceName, * * The operation to delete or remove an Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to delete. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1869,11 +1863,11 @@ private PollerFlux, Void> beginDeleteAsync(String resourceName, * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceName, String resourceGroupName, + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, String fabricName, Context context) { context = this.client.mergeContext(context); Mono>> mono - = deleteWithResponseAsync(resourceName, resourceGroupName, fabricName, context); + = deleteWithResponseAsync(resourceGroupName, resourceName, fabricName, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); } @@ -1883,8 +1877,8 @@ private PollerFlux, Void> beginDeleteAsync(String resourceName, * * The operation to delete or remove an Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to delete. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1892,9 +1886,9 @@ private PollerFlux, Void> beginDeleteAsync(String resourceName, * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceName, String resourceGroupName, + public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String fabricName) { - return this.beginDeleteAsync(resourceName, resourceGroupName, fabricName).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, resourceName, fabricName).getSyncPoller(); } /** @@ -1902,8 +1896,8 @@ public SyncPoller, Void> beginDelete(String resourceName, Strin * * The operation to delete or remove an Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to delete. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1912,9 +1906,9 @@ public SyncPoller, Void> beginDelete(String resourceName, Strin * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceName, String resourceGroupName, + public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String fabricName, Context context) { - return this.beginDeleteAsync(resourceName, resourceGroupName, fabricName, context).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, resourceName, fabricName, context).getSyncPoller(); } /** @@ -1922,8 +1916,8 @@ public SyncPoller, Void> beginDelete(String resourceName, Strin * * The operation to delete or remove an Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to delete. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1931,8 +1925,8 @@ public SyncPoller, Void> beginDelete(String resourceName, Strin * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceName, String resourceGroupName, String fabricName) { - return beginDeleteAsync(resourceName, resourceGroupName, fabricName).last() + private Mono deleteAsync(String resourceGroupName, String resourceName, String fabricName) { + return beginDeleteAsync(resourceGroupName, resourceName, fabricName).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1941,8 +1935,8 @@ private Mono deleteAsync(String resourceName, String resourceGroupName, St * * The operation to delete or remove an Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to delete. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1951,8 +1945,8 @@ private Mono deleteAsync(String resourceName, String resourceGroupName, St * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceName, String resourceGroupName, String fabricName, Context context) { - return beginDeleteAsync(resourceName, resourceGroupName, fabricName, context).last() + private Mono deleteAsync(String resourceGroupName, String resourceName, String fabricName, Context context) { + return beginDeleteAsync(resourceGroupName, resourceName, fabricName, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1961,16 +1955,16 @@ private Mono deleteAsync(String resourceName, String resourceGroupName, St * * The operation to delete or remove an Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to delete. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceName, String resourceGroupName, String fabricName) { - deleteAsync(resourceName, resourceGroupName, fabricName).block(); + public void delete(String resourceGroupName, String resourceName, String fabricName) { + deleteAsync(resourceGroupName, resourceName, fabricName).block(); } /** @@ -1978,8 +1972,8 @@ public void delete(String resourceName, String resourceGroupName, String fabricN * * The operation to delete or remove an Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to delete. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1987,8 +1981,8 @@ public void delete(String resourceName, String resourceGroupName, String fabricN * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceName, String resourceGroupName, String fabricName, Context context) { - deleteAsync(resourceName, resourceGroupName, fabricName, context).block(); + public void delete(String resourceGroupName, String resourceName, String fabricName, Context context) { + deleteAsync(resourceGroupName, resourceName, fabricName, context).block(); } /** @@ -1996,8 +1990,8 @@ public void delete(String resourceName, String resourceGroupName, String fabricN * * Renews the connection certificate for the ASR replication fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName fabric name to renew certs for. * @param renewCertificate Renew certificate input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2006,19 +2000,19 @@ public void delete(String resourceName, String resourceGroupName, String fabricN * @return fabric definition along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> renewCertificateWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, RenewCertificateInput renewCertificate) { + private Mono>> renewCertificateWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, RenewCertificateInput renewCertificate) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -2035,7 +2029,7 @@ private Mono>> renewCertificateWithResponseAsync(Strin final String accept = "application/json"; return FluxUtil .withContext(context -> service.renewCertificate(this.client.getEndpoint(), this.client.getApiVersion(), - resourceName, resourceGroupName, this.client.getSubscriptionId(), fabricName, renewCertificate, accept, + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, renewCertificate, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -2045,8 +2039,8 @@ private Mono>> renewCertificateWithResponseAsync(Strin * * Renews the connection certificate for the ASR replication fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName fabric name to renew certs for. * @param renewCertificate Renew certificate input. * @param context The context to associate with this operation. @@ -2056,19 +2050,19 @@ private Mono>> renewCertificateWithResponseAsync(Strin * @return fabric definition along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> renewCertificateWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, RenewCertificateInput renewCertificate, Context context) { + private Mono>> renewCertificateWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, RenewCertificateInput renewCertificate, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -2084,8 +2078,8 @@ private Mono>> renewCertificateWithResponseAsync(Strin } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.renewCertificate(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, renewCertificate, accept, context); + return service.renewCertificate(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), fabricName, renewCertificate, accept, context); } /** @@ -2093,8 +2087,8 @@ private Mono>> renewCertificateWithResponseAsync(Strin * * Renews the connection certificate for the ASR replication fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName fabric name to renew certs for. * @param renewCertificate Renew certificate input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2103,10 +2097,10 @@ private Mono>> renewCertificateWithResponseAsync(Strin * @return the {@link PollerFlux} for polling of fabric definition. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, FabricInner> beginRenewCertificateAsync(String resourceName, - String resourceGroupName, String fabricName, RenewCertificateInput renewCertificate) { + private PollerFlux, FabricInner> beginRenewCertificateAsync(String resourceGroupName, + String resourceName, String fabricName, RenewCertificateInput renewCertificate) { Mono>> mono - = renewCertificateWithResponseAsync(resourceName, resourceGroupName, fabricName, renewCertificate); + = renewCertificateWithResponseAsync(resourceGroupName, resourceName, fabricName, renewCertificate); return this.client.getLroResult(mono, this.client.getHttpPipeline(), FabricInner.class, FabricInner.class, this.client.getContext()); } @@ -2116,8 +2110,8 @@ private PollerFlux, FabricInner> beginRenewCertificateAs * * Renews the connection certificate for the ASR replication fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName fabric name to renew certs for. * @param renewCertificate Renew certificate input. * @param context The context to associate with this operation. @@ -2127,11 +2121,11 @@ private PollerFlux, FabricInner> beginRenewCertificateAs * @return the {@link PollerFlux} for polling of fabric definition. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, FabricInner> beginRenewCertificateAsync(String resourceName, - String resourceGroupName, String fabricName, RenewCertificateInput renewCertificate, Context context) { + private PollerFlux, FabricInner> beginRenewCertificateAsync(String resourceGroupName, + String resourceName, String fabricName, RenewCertificateInput renewCertificate, Context context) { context = this.client.mergeContext(context); Mono>> mono - = renewCertificateWithResponseAsync(resourceName, resourceGroupName, fabricName, renewCertificate, context); + = renewCertificateWithResponseAsync(resourceGroupName, resourceName, fabricName, renewCertificate, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), FabricInner.class, FabricInner.class, context); } @@ -2141,8 +2135,8 @@ private PollerFlux, FabricInner> beginRenewCertificateAs * * Renews the connection certificate for the ASR replication fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName fabric name to renew certs for. * @param renewCertificate Renew certificate input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2151,9 +2145,9 @@ private PollerFlux, FabricInner> beginRenewCertificateAs * @return the {@link SyncPoller} for polling of fabric definition. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, FabricInner> beginRenewCertificate(String resourceName, - String resourceGroupName, String fabricName, RenewCertificateInput renewCertificate) { - return this.beginRenewCertificateAsync(resourceName, resourceGroupName, fabricName, renewCertificate) + public SyncPoller, FabricInner> beginRenewCertificate(String resourceGroupName, + String resourceName, String fabricName, RenewCertificateInput renewCertificate) { + return this.beginRenewCertificateAsync(resourceGroupName, resourceName, fabricName, renewCertificate) .getSyncPoller(); } @@ -2162,8 +2156,8 @@ public SyncPoller, FabricInner> beginRenewCertificate(St * * Renews the connection certificate for the ASR replication fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName fabric name to renew certs for. * @param renewCertificate Renew certificate input. * @param context The context to associate with this operation. @@ -2173,9 +2167,9 @@ public SyncPoller, FabricInner> beginRenewCertificate(St * @return the {@link SyncPoller} for polling of fabric definition. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, FabricInner> beginRenewCertificate(String resourceName, - String resourceGroupName, String fabricName, RenewCertificateInput renewCertificate, Context context) { - return this.beginRenewCertificateAsync(resourceName, resourceGroupName, fabricName, renewCertificate, context) + public SyncPoller, FabricInner> beginRenewCertificate(String resourceGroupName, + String resourceName, String fabricName, RenewCertificateInput renewCertificate, Context context) { + return this.beginRenewCertificateAsync(resourceGroupName, resourceName, fabricName, renewCertificate, context) .getSyncPoller(); } @@ -2184,8 +2178,8 @@ public SyncPoller, FabricInner> beginRenewCertificate(St * * Renews the connection certificate for the ASR replication fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName fabric name to renew certs for. * @param renewCertificate Renew certificate input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2194,9 +2188,9 @@ public SyncPoller, FabricInner> beginRenewCertificate(St * @return fabric definition on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono renewCertificateAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono renewCertificateAsync(String resourceGroupName, String resourceName, String fabricName, RenewCertificateInput renewCertificate) { - return beginRenewCertificateAsync(resourceName, resourceGroupName, fabricName, renewCertificate).last() + return beginRenewCertificateAsync(resourceGroupName, resourceName, fabricName, renewCertificate).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -2205,8 +2199,8 @@ private Mono renewCertificateAsync(String resourceName, String reso * * Renews the connection certificate for the ASR replication fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName fabric name to renew certs for. * @param renewCertificate Renew certificate input. * @param context The context to associate with this operation. @@ -2216,9 +2210,9 @@ private Mono renewCertificateAsync(String resourceName, String reso * @return fabric definition on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono renewCertificateAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono renewCertificateAsync(String resourceGroupName, String resourceName, String fabricName, RenewCertificateInput renewCertificate, Context context) { - return beginRenewCertificateAsync(resourceName, resourceGroupName, fabricName, renewCertificate, context).last() + return beginRenewCertificateAsync(resourceGroupName, resourceName, fabricName, renewCertificate, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -2227,8 +2221,8 @@ private Mono renewCertificateAsync(String resourceName, String reso * * Renews the connection certificate for the ASR replication fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName fabric name to renew certs for. * @param renewCertificate Renew certificate input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2237,9 +2231,9 @@ private Mono renewCertificateAsync(String resourceName, String reso * @return fabric definition. */ @ServiceMethod(returns = ReturnType.SINGLE) - public FabricInner renewCertificate(String resourceName, String resourceGroupName, String fabricName, + public FabricInner renewCertificate(String resourceGroupName, String resourceName, String fabricName, RenewCertificateInput renewCertificate) { - return renewCertificateAsync(resourceName, resourceGroupName, fabricName, renewCertificate).block(); + return renewCertificateAsync(resourceGroupName, resourceName, fabricName, renewCertificate).block(); } /** @@ -2247,8 +2241,8 @@ public FabricInner renewCertificate(String resourceName, String resourceGroupNam * * Renews the connection certificate for the ASR replication fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName fabric name to renew certs for. * @param renewCertificate Renew certificate input. * @param context The context to associate with this operation. @@ -2258,9 +2252,9 @@ public FabricInner renewCertificate(String resourceName, String resourceGroupNam * @return fabric definition. */ @ServiceMethod(returns = ReturnType.SINGLE) - public FabricInner renewCertificate(String resourceName, String resourceGroupName, String fabricName, + public FabricInner renewCertificate(String resourceGroupName, String resourceName, String fabricName, RenewCertificateInput renewCertificate, Context context) { - return renewCertificateAsync(resourceName, resourceGroupName, fabricName, renewCertificate, context).block(); + return renewCertificateAsync(resourceGroupName, resourceName, fabricName, renewCertificate, context).block(); } /** diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationFabricsImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationFabricsImpl.java index 4da9cb19a867..e8cca6895cd5 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationFabricsImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationFabricsImpl.java @@ -29,20 +29,20 @@ public ReplicationFabricsImpl(ReplicationFabricsClient innerClient, this.serviceManager = serviceManager; } - public PagedIterable list(String resourceName, String resourceGroupName) { - PagedIterable inner = this.serviceClient().list(resourceName, resourceGroupName); + public PagedIterable list(String resourceGroupName, String resourceName) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, resourceName); return ResourceManagerUtils.mapPage(inner, inner1 -> new FabricImpl(inner1, this.manager())); } - public PagedIterable list(String resourceName, String resourceGroupName, Context context) { - PagedIterable inner = this.serviceClient().list(resourceName, resourceGroupName, context); + public PagedIterable list(String resourceGroupName, String resourceName, Context context) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, resourceName, context); return ResourceManagerUtils.mapPage(inner, inner1 -> new FabricImpl(inner1, this.manager())); } - public Response getWithResponse(String resourceName, String resourceGroupName, String fabricName, + public Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String filter, Context context) { Response inner - = this.serviceClient().getWithResponse(resourceName, resourceGroupName, fabricName, filter, context); + = this.serviceClient().getWithResponse(resourceGroupName, resourceName, fabricName, filter, context); if (inner != null) { return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new FabricImpl(inner.getValue(), this.manager())); @@ -51,8 +51,8 @@ public Response getWithResponse(String resourceName, String resourceGrou } } - public Fabric get(String resourceName, String resourceGroupName, String fabricName) { - FabricInner inner = this.serviceClient().get(resourceName, resourceGroupName, fabricName); + public Fabric get(String resourceGroupName, String resourceName, String fabricName) { + FabricInner inner = this.serviceClient().get(resourceGroupName, resourceName, fabricName); if (inner != null) { return new FabricImpl(inner, this.manager()); } else { @@ -60,16 +60,16 @@ public Fabric get(String resourceName, String resourceGroupName, String fabricNa } } - public void purge(String resourceName, String resourceGroupName, String fabricName) { - this.serviceClient().purge(resourceName, resourceGroupName, fabricName); + public void purge(String resourceGroupName, String resourceName, String fabricName) { + this.serviceClient().purge(resourceGroupName, resourceName, fabricName); } - public void purge(String resourceName, String resourceGroupName, String fabricName, Context context) { - this.serviceClient().purge(resourceName, resourceGroupName, fabricName, context); + public void purge(String resourceGroupName, String resourceName, String fabricName, Context context) { + this.serviceClient().purge(resourceGroupName, resourceName, fabricName, context); } - public Fabric checkConsistency(String resourceName, String resourceGroupName, String fabricName) { - FabricInner inner = this.serviceClient().checkConsistency(resourceName, resourceGroupName, fabricName); + public Fabric checkConsistency(String resourceGroupName, String resourceName, String fabricName) { + FabricInner inner = this.serviceClient().checkConsistency(resourceGroupName, resourceName, fabricName); if (inner != null) { return new FabricImpl(inner, this.manager()); } else { @@ -77,8 +77,8 @@ public Fabric checkConsistency(String resourceName, String resourceGroupName, St } } - public Fabric checkConsistency(String resourceName, String resourceGroupName, String fabricName, Context context) { - FabricInner inner = this.serviceClient().checkConsistency(resourceName, resourceGroupName, fabricName, context); + public Fabric checkConsistency(String resourceGroupName, String resourceName, String fabricName, Context context) { + FabricInner inner = this.serviceClient().checkConsistency(resourceGroupName, resourceName, fabricName, context); if (inner != null) { return new FabricImpl(inner, this.manager()); } else { @@ -86,18 +86,18 @@ public Fabric checkConsistency(String resourceName, String resourceGroupName, St } } - public void migrateToAad(String resourceName, String resourceGroupName, String fabricName) { - this.serviceClient().migrateToAad(resourceName, resourceGroupName, fabricName); + public void migrateToAad(String resourceGroupName, String resourceName, String fabricName) { + this.serviceClient().migrateToAad(resourceGroupName, resourceName, fabricName); } - public void migrateToAad(String resourceName, String resourceGroupName, String fabricName, Context context) { - this.serviceClient().migrateToAad(resourceName, resourceGroupName, fabricName, context); + public void migrateToAad(String resourceGroupName, String resourceName, String fabricName, Context context) { + this.serviceClient().migrateToAad(resourceGroupName, resourceName, fabricName, context); } - public Fabric reassociateGateway(String resourceName, String resourceGroupName, String fabricName, + public Fabric reassociateGateway(String resourceGroupName, String resourceName, String fabricName, FailoverProcessServerRequest failoverProcessServerRequest) { FabricInner inner = this.serviceClient() - .reassociateGateway(resourceName, resourceGroupName, fabricName, failoverProcessServerRequest); + .reassociateGateway(resourceGroupName, resourceName, fabricName, failoverProcessServerRequest); if (inner != null) { return new FabricImpl(inner, this.manager()); } else { @@ -105,10 +105,10 @@ public Fabric reassociateGateway(String resourceName, String resourceGroupName, } } - public Fabric reassociateGateway(String resourceName, String resourceGroupName, String fabricName, + public Fabric reassociateGateway(String resourceGroupName, String resourceName, String fabricName, FailoverProcessServerRequest failoverProcessServerRequest, Context context) { FabricInner inner = this.serviceClient() - .reassociateGateway(resourceName, resourceGroupName, fabricName, failoverProcessServerRequest, context); + .reassociateGateway(resourceGroupName, resourceName, fabricName, failoverProcessServerRequest, context); if (inner != null) { return new FabricImpl(inner, this.manager()); } else { @@ -116,18 +116,18 @@ public Fabric reassociateGateway(String resourceName, String resourceGroupName, } } - public void delete(String resourceName, String resourceGroupName, String fabricName) { - this.serviceClient().delete(resourceName, resourceGroupName, fabricName); + public void delete(String resourceGroupName, String resourceName, String fabricName) { + this.serviceClient().delete(resourceGroupName, resourceName, fabricName); } - public void delete(String resourceName, String resourceGroupName, String fabricName, Context context) { - this.serviceClient().delete(resourceName, resourceGroupName, fabricName, context); + public void delete(String resourceGroupName, String resourceName, String fabricName, Context context) { + this.serviceClient().delete(resourceGroupName, resourceName, fabricName, context); } - public Fabric renewCertificate(String resourceName, String resourceGroupName, String fabricName, + public Fabric renewCertificate(String resourceGroupName, String resourceName, String fabricName, RenewCertificateInput renewCertificate) { FabricInner inner - = this.serviceClient().renewCertificate(resourceName, resourceGroupName, fabricName, renewCertificate); + = this.serviceClient().renewCertificate(resourceGroupName, resourceName, fabricName, renewCertificate); if (inner != null) { return new FabricImpl(inner, this.manager()); } else { @@ -135,10 +135,10 @@ public Fabric renewCertificate(String resourceName, String resourceGroupName, St } } - public Fabric renewCertificate(String resourceName, String resourceGroupName, String fabricName, + public Fabric renewCertificate(String resourceGroupName, String resourceName, String fabricName, RenewCertificateInput renewCertificate, Context context) { FabricInner inner = this.serviceClient() - .renewCertificate(resourceName, resourceGroupName, fabricName, renewCertificate, context); + .renewCertificate(resourceGroupName, resourceName, fabricName, renewCertificate, context); if (inner != null) { return new FabricImpl(inner, this.manager()); } else { @@ -155,42 +155,42 @@ public void removeInfra(String resourceGroupName, String resourceName, String fa } public Fabric getById(String id) { - String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); - if (resourceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); - } String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); + if (resourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); + } String fabricName = ResourceManagerUtils.getValueFromIdByName(id, "replicationFabrics"); if (fabricName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'replicationFabrics'.", id))); } String localFilter = null; - return this.getWithResponse(resourceName, resourceGroupName, fabricName, localFilter, Context.NONE).getValue(); + return this.getWithResponse(resourceGroupName, resourceName, fabricName, localFilter, Context.NONE).getValue(); } public Response getByIdWithResponse(String id, String filter, Context context) { - String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); - if (resourceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); - } String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); + if (resourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); + } String fabricName = ResourceManagerUtils.getValueFromIdByName(id, "replicationFabrics"); if (fabricName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'replicationFabrics'.", id))); } - return this.getWithResponse(resourceName, resourceGroupName, fabricName, filter, context); + return this.getWithResponse(resourceGroupName, resourceName, fabricName, filter, context); } private ReplicationFabricsClient serviceClient() { diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationJobsClientImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationJobsClientImpl.java index 3924370806ab..bb0448f8cf15 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationJobsClientImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationJobsClientImpl.java @@ -76,17 +76,16 @@ public interface ReplicationJobsService { @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> list(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("$filter") String filter, - @HeaderParam("Accept") String accept, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @QueryParam("$filter") String filter, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationJobs/{jobName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("resourceName") String resourceName, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, @PathParam("jobName") String jobName, @HeaderParam("Accept") String accept, Context context); @@ -95,40 +94,36 @@ Mono> get(@HostParam("$host") String endpoint, @QueryParam("a @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> cancel(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("jobName") String jobName, - @HeaderParam("Accept") String accept, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("jobName") String jobName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationJobs/{jobName}/restart") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> restart(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("jobName") String jobName, - @HeaderParam("Accept") String accept, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("jobName") String jobName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationJobs/{jobName}/resume") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> resume(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("jobName") String jobName, - @BodyParam("application/json") ResumeJobParams resumeJobParams, @HeaderParam("Accept") String accept, - Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("jobName") String jobName, @BodyParam("application/json") ResumeJobParams resumeJobParams, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationJobs/export") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> export(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, @BodyParam("application/json") JobQueryParameter jobQueryParameter, @HeaderParam("Accept") String accept, Context context); @@ -145,8 +140,8 @@ Mono> listNext(@PathParam(value = "nextLink", encoded = * * Gets the list of Azure Site Recovery Jobs for the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param filter OData filter options. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -155,27 +150,27 @@ Mono> listNext(@PathParam(value = "nextLink", encoded = * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceName, String resourceGroupName, + private Mono> listSinglePageAsync(String resourceGroupName, String resourceName, String filter) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), filter, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), filter, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -186,8 +181,8 @@ private Mono> listSinglePageAsync(String resourceName, S * * Gets the list of Azure Site Recovery Jobs for the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param filter OData filter options. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -197,19 +192,19 @@ private Mono> listSinglePageAsync(String resourceName, S * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceName, String resourceGroupName, + private Mono> listSinglePageAsync(String resourceGroupName, String resourceName, String filter, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -217,7 +212,7 @@ private Mono> listSinglePageAsync(String resourceName, S final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + .list(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), filter, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); @@ -228,8 +223,8 @@ private Mono> listSinglePageAsync(String resourceName, S * * Gets the list of Azure Site Recovery Jobs for the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param filter OData filter options. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -237,8 +232,8 @@ private Mono> listSinglePageAsync(String resourceName, S * @return the list of Azure Site Recovery Jobs for the vault as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceName, String resourceGroupName, String filter) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceName, resourceGroupName, filter), + private PagedFlux listAsync(String resourceGroupName, String resourceName, String filter) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName, filter), nextLink -> listNextSinglePageAsync(nextLink)); } @@ -247,17 +242,17 @@ private PagedFlux listAsync(String resourceName, String resourceGroupN * * Gets the list of Azure Site Recovery Jobs for the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of Azure Site Recovery Jobs for the vault as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceName, String resourceGroupName) { + private PagedFlux listAsync(String resourceGroupName, String resourceName) { final String filter = null; - return new PagedFlux<>(() -> listSinglePageAsync(resourceName, resourceGroupName, filter), + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName, filter), nextLink -> listNextSinglePageAsync(nextLink)); } @@ -266,8 +261,8 @@ private PagedFlux listAsync(String resourceName, String resourceGroupN * * Gets the list of Azure Site Recovery Jobs for the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param filter OData filter options. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -276,9 +271,9 @@ private PagedFlux listAsync(String resourceName, String resourceGroupN * @return the list of Azure Site Recovery Jobs for the vault as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceName, String resourceGroupName, String filter, + private PagedFlux listAsync(String resourceGroupName, String resourceName, String filter, Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceName, resourceGroupName, filter, context), + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName, filter, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } @@ -287,17 +282,17 @@ private PagedFlux listAsync(String resourceName, String resourceGroupN * * Gets the list of Azure Site Recovery Jobs for the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of Azure Site Recovery Jobs for the vault as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceName, String resourceGroupName) { + public PagedIterable list(String resourceGroupName, String resourceName) { final String filter = null; - return new PagedIterable<>(listAsync(resourceName, resourceGroupName, filter)); + return new PagedIterable<>(listAsync(resourceGroupName, resourceName, filter)); } /** @@ -305,8 +300,8 @@ public PagedIterable list(String resourceName, String resourceGroupNam * * Gets the list of Azure Site Recovery Jobs for the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param filter OData filter options. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -315,8 +310,8 @@ public PagedIterable list(String resourceName, String resourceGroupNam * @return the list of Azure Site Recovery Jobs for the vault as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceName, String resourceGroupName, String filter, Context context) { - return new PagedIterable<>(listAsync(resourceName, resourceGroupName, filter, context)); + public PagedIterable list(String resourceGroupName, String resourceName, String filter, Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, resourceName, filter, context)); } /** @@ -324,8 +319,8 @@ public PagedIterable list(String resourceName, String resourceGroupNam * * Get the details of an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -334,19 +329,19 @@ public PagedIterable list(String resourceName, String resourceGroupNam * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceName, String resourceGroupName, + private Mono> getWithResponseAsync(String resourceGroupName, String resourceName, String jobName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -356,8 +351,8 @@ private Mono> getWithResponseAsync(String resourceName, Strin } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), jobName, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), jobName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -366,8 +361,8 @@ private Mono> getWithResponseAsync(String resourceName, Strin * * Get the details of an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -377,19 +372,19 @@ private Mono> getWithResponseAsync(String resourceName, Strin * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceName, String resourceGroupName, String jobName, + private Mono> getWithResponseAsync(String resourceGroupName, String resourceName, String jobName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -399,7 +394,7 @@ private Mono> getWithResponseAsync(String resourceName, Strin } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), jobName, accept, context); } @@ -408,8 +403,8 @@ private Mono> getWithResponseAsync(String resourceName, Strin * * Get the details of an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -417,8 +412,8 @@ private Mono> getWithResponseAsync(String resourceName, Strin * @return the details of an Azure Site Recovery job on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceName, String resourceGroupName, String jobName) { - return getWithResponseAsync(resourceName, resourceGroupName, jobName) + private Mono getAsync(String resourceGroupName, String resourceName, String jobName) { + return getWithResponseAsync(resourceGroupName, resourceName, jobName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } @@ -427,8 +422,8 @@ private Mono getAsync(String resourceName, String resourceGroupName, S * * Get the details of an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -437,9 +432,9 @@ private Mono getAsync(String resourceName, String resourceGroupName, S * @return the details of an Azure Site Recovery job along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceName, String resourceGroupName, String jobName, + public Response getWithResponse(String resourceGroupName, String resourceName, String jobName, Context context) { - return getWithResponseAsync(resourceName, resourceGroupName, jobName, context).block(); + return getWithResponseAsync(resourceGroupName, resourceName, jobName, context).block(); } /** @@ -447,8 +442,8 @@ public Response getWithResponse(String resourceName, String resourceGr * * Get the details of an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -456,8 +451,8 @@ public Response getWithResponse(String resourceName, String resourceGr * @return the details of an Azure Site Recovery job. */ @ServiceMethod(returns = ReturnType.SINGLE) - public JobInner get(String resourceName, String resourceGroupName, String jobName) { - return getWithResponse(resourceName, resourceGroupName, jobName, Context.NONE).getValue(); + public JobInner get(String resourceGroupName, String resourceName, String jobName) { + return getWithResponse(resourceGroupName, resourceName, jobName, Context.NONE).getValue(); } /** @@ -465,8 +460,8 @@ public JobInner get(String resourceName, String resourceGroupName, String jobNam * * The operation to cancel an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -474,19 +469,19 @@ public JobInner get(String resourceName, String resourceGroupName, String jobNam * @return job details along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> cancelWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> cancelWithResponseAsync(String resourceGroupName, String resourceName, String jobName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -496,8 +491,8 @@ private Mono>> cancelWithResponseAsync(String resource } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.cancel(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), jobName, accept, context)) + .withContext(context -> service.cancel(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), jobName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -506,8 +501,8 @@ private Mono>> cancelWithResponseAsync(String resource * * The operation to cancel an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -516,19 +511,19 @@ private Mono>> cancelWithResponseAsync(String resource * @return job details along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> cancelWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> cancelWithResponseAsync(String resourceGroupName, String resourceName, String jobName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -538,7 +533,7 @@ private Mono>> cancelWithResponseAsync(String resource } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.cancel(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.cancel(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), jobName, accept, context); } @@ -547,8 +542,8 @@ private Mono>> cancelWithResponseAsync(String resource * * The operation to cancel an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -556,9 +551,9 @@ private Mono>> cancelWithResponseAsync(String resource * @return the {@link PollerFlux} for polling of job details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, JobInner> beginCancelAsync(String resourceName, String resourceGroupName, + private PollerFlux, JobInner> beginCancelAsync(String resourceGroupName, String resourceName, String jobName) { - Mono>> mono = cancelWithResponseAsync(resourceName, resourceGroupName, jobName); + Mono>> mono = cancelWithResponseAsync(resourceGroupName, resourceName, jobName); return this.client.getLroResult(mono, this.client.getHttpPipeline(), JobInner.class, JobInner.class, this.client.getContext()); } @@ -568,8 +563,8 @@ private PollerFlux, JobInner> beginCancelAsync(String resou * * The operation to cancel an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -578,11 +573,11 @@ private PollerFlux, JobInner> beginCancelAsync(String resou * @return the {@link PollerFlux} for polling of job details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, JobInner> beginCancelAsync(String resourceName, String resourceGroupName, + private PollerFlux, JobInner> beginCancelAsync(String resourceGroupName, String resourceName, String jobName, Context context) { context = this.client.mergeContext(context); Mono>> mono - = cancelWithResponseAsync(resourceName, resourceGroupName, jobName, context); + = cancelWithResponseAsync(resourceGroupName, resourceName, jobName, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), JobInner.class, JobInner.class, context); } @@ -592,8 +587,8 @@ private PollerFlux, JobInner> beginCancelAsync(String resou * * The operation to cancel an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -601,9 +596,9 @@ private PollerFlux, JobInner> beginCancelAsync(String resou * @return the {@link SyncPoller} for polling of job details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, JobInner> beginCancel(String resourceName, String resourceGroupName, + public SyncPoller, JobInner> beginCancel(String resourceGroupName, String resourceName, String jobName) { - return this.beginCancelAsync(resourceName, resourceGroupName, jobName).getSyncPoller(); + return this.beginCancelAsync(resourceGroupName, resourceName, jobName).getSyncPoller(); } /** @@ -611,8 +606,8 @@ public SyncPoller, JobInner> beginCancel(String resourceNam * * The operation to cancel an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -621,9 +616,9 @@ public SyncPoller, JobInner> beginCancel(String resourceNam * @return the {@link SyncPoller} for polling of job details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, JobInner> beginCancel(String resourceName, String resourceGroupName, + public SyncPoller, JobInner> beginCancel(String resourceGroupName, String resourceName, String jobName, Context context) { - return this.beginCancelAsync(resourceName, resourceGroupName, jobName, context).getSyncPoller(); + return this.beginCancelAsync(resourceGroupName, resourceName, jobName, context).getSyncPoller(); } /** @@ -631,8 +626,8 @@ public SyncPoller, JobInner> beginCancel(String resourceNam * * The operation to cancel an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -640,8 +635,8 @@ public SyncPoller, JobInner> beginCancel(String resourceNam * @return job details on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono cancelAsync(String resourceName, String resourceGroupName, String jobName) { - return beginCancelAsync(resourceName, resourceGroupName, jobName).last() + private Mono cancelAsync(String resourceGroupName, String resourceName, String jobName) { + return beginCancelAsync(resourceGroupName, resourceName, jobName).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -650,8 +645,8 @@ private Mono cancelAsync(String resourceName, String resourceGroupName * * The operation to cancel an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -660,8 +655,8 @@ private Mono cancelAsync(String resourceName, String resourceGroupName * @return job details on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono cancelAsync(String resourceName, String resourceGroupName, String jobName, Context context) { - return beginCancelAsync(resourceName, resourceGroupName, jobName, context).last() + private Mono cancelAsync(String resourceGroupName, String resourceName, String jobName, Context context) { + return beginCancelAsync(resourceGroupName, resourceName, jobName, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -670,8 +665,8 @@ private Mono cancelAsync(String resourceName, String resourceGroupName * * The operation to cancel an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -679,8 +674,8 @@ private Mono cancelAsync(String resourceName, String resourceGroupName * @return job details. */ @ServiceMethod(returns = ReturnType.SINGLE) - public JobInner cancel(String resourceName, String resourceGroupName, String jobName) { - return cancelAsync(resourceName, resourceGroupName, jobName).block(); + public JobInner cancel(String resourceGroupName, String resourceName, String jobName) { + return cancelAsync(resourceGroupName, resourceName, jobName).block(); } /** @@ -688,8 +683,8 @@ public JobInner cancel(String resourceName, String resourceGroupName, String job * * The operation to cancel an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -698,8 +693,8 @@ public JobInner cancel(String resourceName, String resourceGroupName, String job * @return job details. */ @ServiceMethod(returns = ReturnType.SINGLE) - public JobInner cancel(String resourceName, String resourceGroupName, String jobName, Context context) { - return cancelAsync(resourceName, resourceGroupName, jobName, context).block(); + public JobInner cancel(String resourceGroupName, String resourceName, String jobName, Context context) { + return cancelAsync(resourceGroupName, resourceName, jobName, context).block(); } /** @@ -707,8 +702,8 @@ public JobInner cancel(String resourceName, String resourceGroupName, String job * * The operation to restart an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -716,19 +711,19 @@ public JobInner cancel(String resourceName, String resourceGroupName, String job * @return job details along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> restartWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> restartWithResponseAsync(String resourceGroupName, String resourceName, String jobName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -739,7 +734,7 @@ private Mono>> restartWithResponseAsync(String resourc final String accept = "application/json"; return FluxUtil .withContext(context -> service.restart(this.client.getEndpoint(), this.client.getApiVersion(), - resourceName, resourceGroupName, this.client.getSubscriptionId(), jobName, accept, context)) + resourceGroupName, resourceName, this.client.getSubscriptionId(), jobName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -748,8 +743,8 @@ private Mono>> restartWithResponseAsync(String resourc * * The operation to restart an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -758,19 +753,19 @@ private Mono>> restartWithResponseAsync(String resourc * @return job details along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> restartWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> restartWithResponseAsync(String resourceGroupName, String resourceName, String jobName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -780,7 +775,7 @@ private Mono>> restartWithResponseAsync(String resourc } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.restart(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.restart(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), jobName, accept, context); } @@ -789,8 +784,8 @@ private Mono>> restartWithResponseAsync(String resourc * * The operation to restart an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -798,9 +793,9 @@ private Mono>> restartWithResponseAsync(String resourc * @return the {@link PollerFlux} for polling of job details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, JobInner> beginRestartAsync(String resourceName, String resourceGroupName, + private PollerFlux, JobInner> beginRestartAsync(String resourceGroupName, String resourceName, String jobName) { - Mono>> mono = restartWithResponseAsync(resourceName, resourceGroupName, jobName); + Mono>> mono = restartWithResponseAsync(resourceGroupName, resourceName, jobName); return this.client.getLroResult(mono, this.client.getHttpPipeline(), JobInner.class, JobInner.class, this.client.getContext()); } @@ -810,8 +805,8 @@ private PollerFlux, JobInner> beginRestartAsync(String reso * * The operation to restart an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -820,11 +815,11 @@ private PollerFlux, JobInner> beginRestartAsync(String reso * @return the {@link PollerFlux} for polling of job details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, JobInner> beginRestartAsync(String resourceName, String resourceGroupName, + private PollerFlux, JobInner> beginRestartAsync(String resourceGroupName, String resourceName, String jobName, Context context) { context = this.client.mergeContext(context); Mono>> mono - = restartWithResponseAsync(resourceName, resourceGroupName, jobName, context); + = restartWithResponseAsync(resourceGroupName, resourceName, jobName, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), JobInner.class, JobInner.class, context); } @@ -834,8 +829,8 @@ private PollerFlux, JobInner> beginRestartAsync(String reso * * The operation to restart an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -843,9 +838,9 @@ private PollerFlux, JobInner> beginRestartAsync(String reso * @return the {@link SyncPoller} for polling of job details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, JobInner> beginRestart(String resourceName, String resourceGroupName, + public SyncPoller, JobInner> beginRestart(String resourceGroupName, String resourceName, String jobName) { - return this.beginRestartAsync(resourceName, resourceGroupName, jobName).getSyncPoller(); + return this.beginRestartAsync(resourceGroupName, resourceName, jobName).getSyncPoller(); } /** @@ -853,8 +848,8 @@ public SyncPoller, JobInner> beginRestart(String resourceNa * * The operation to restart an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -863,9 +858,9 @@ public SyncPoller, JobInner> beginRestart(String resourceNa * @return the {@link SyncPoller} for polling of job details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, JobInner> beginRestart(String resourceName, String resourceGroupName, + public SyncPoller, JobInner> beginRestart(String resourceGroupName, String resourceName, String jobName, Context context) { - return this.beginRestartAsync(resourceName, resourceGroupName, jobName, context).getSyncPoller(); + return this.beginRestartAsync(resourceGroupName, resourceName, jobName, context).getSyncPoller(); } /** @@ -873,8 +868,8 @@ public SyncPoller, JobInner> beginRestart(String resourceNa * * The operation to restart an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -882,8 +877,8 @@ public SyncPoller, JobInner> beginRestart(String resourceNa * @return job details on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono restartAsync(String resourceName, String resourceGroupName, String jobName) { - return beginRestartAsync(resourceName, resourceGroupName, jobName).last() + private Mono restartAsync(String resourceGroupName, String resourceName, String jobName) { + return beginRestartAsync(resourceGroupName, resourceName, jobName).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -892,8 +887,8 @@ private Mono restartAsync(String resourceName, String resourceGroupNam * * The operation to restart an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -902,9 +897,9 @@ private Mono restartAsync(String resourceName, String resourceGroupNam * @return job details on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono restartAsync(String resourceName, String resourceGroupName, String jobName, + private Mono restartAsync(String resourceGroupName, String resourceName, String jobName, Context context) { - return beginRestartAsync(resourceName, resourceGroupName, jobName, context).last() + return beginRestartAsync(resourceGroupName, resourceName, jobName, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -913,8 +908,8 @@ private Mono restartAsync(String resourceName, String resourceGroupNam * * The operation to restart an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -922,8 +917,8 @@ private Mono restartAsync(String resourceName, String resourceGroupNam * @return job details. */ @ServiceMethod(returns = ReturnType.SINGLE) - public JobInner restart(String resourceName, String resourceGroupName, String jobName) { - return restartAsync(resourceName, resourceGroupName, jobName).block(); + public JobInner restart(String resourceGroupName, String resourceName, String jobName) { + return restartAsync(resourceGroupName, resourceName, jobName).block(); } /** @@ -931,8 +926,8 @@ public JobInner restart(String resourceName, String resourceGroupName, String jo * * The operation to restart an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -941,8 +936,8 @@ public JobInner restart(String resourceName, String resourceGroupName, String jo * @return job details. */ @ServiceMethod(returns = ReturnType.SINGLE) - public JobInner restart(String resourceName, String resourceGroupName, String jobName, Context context) { - return restartAsync(resourceName, resourceGroupName, jobName, context).block(); + public JobInner restart(String resourceGroupName, String resourceName, String jobName, Context context) { + return restartAsync(resourceGroupName, resourceName, jobName, context).block(); } /** @@ -950,8 +945,8 @@ public JobInner restart(String resourceName, String resourceGroupName, String jo * * The operation to resume an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param resumeJobParams Resume rob comments. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -960,19 +955,19 @@ public JobInner restart(String resourceName, String resourceGroupName, String jo * @return job details along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> resumeWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> resumeWithResponseAsync(String resourceGroupName, String resourceName, String jobName, ResumeJobParams resumeJobParams) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -988,8 +983,9 @@ private Mono>> resumeWithResponseAsync(String resource } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.resume(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), jobName, resumeJobParams, accept, context)) + .withContext( + context -> service.resume(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), jobName, resumeJobParams, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -998,8 +994,8 @@ private Mono>> resumeWithResponseAsync(String resource * * The operation to resume an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param resumeJobParams Resume rob comments. * @param context The context to associate with this operation. @@ -1009,19 +1005,19 @@ private Mono>> resumeWithResponseAsync(String resource * @return job details along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> resumeWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> resumeWithResponseAsync(String resourceGroupName, String resourceName, String jobName, ResumeJobParams resumeJobParams, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1037,7 +1033,7 @@ private Mono>> resumeWithResponseAsync(String resource } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.resume(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.resume(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), jobName, resumeJobParams, accept, context); } @@ -1046,8 +1042,8 @@ private Mono>> resumeWithResponseAsync(String resource * * The operation to resume an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param resumeJobParams Resume rob comments. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1056,10 +1052,10 @@ private Mono>> resumeWithResponseAsync(String resource * @return the {@link PollerFlux} for polling of job details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, JobInner> beginResumeAsync(String resourceName, String resourceGroupName, + private PollerFlux, JobInner> beginResumeAsync(String resourceGroupName, String resourceName, String jobName, ResumeJobParams resumeJobParams) { Mono>> mono - = resumeWithResponseAsync(resourceName, resourceGroupName, jobName, resumeJobParams); + = resumeWithResponseAsync(resourceGroupName, resourceName, jobName, resumeJobParams); return this.client.getLroResult(mono, this.client.getHttpPipeline(), JobInner.class, JobInner.class, this.client.getContext()); } @@ -1069,8 +1065,8 @@ private PollerFlux, JobInner> beginResumeAsync(String resou * * The operation to resume an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param resumeJobParams Resume rob comments. * @param context The context to associate with this operation. @@ -1080,11 +1076,11 @@ private PollerFlux, JobInner> beginResumeAsync(String resou * @return the {@link PollerFlux} for polling of job details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, JobInner> beginResumeAsync(String resourceName, String resourceGroupName, + private PollerFlux, JobInner> beginResumeAsync(String resourceGroupName, String resourceName, String jobName, ResumeJobParams resumeJobParams, Context context) { context = this.client.mergeContext(context); Mono>> mono - = resumeWithResponseAsync(resourceName, resourceGroupName, jobName, resumeJobParams, context); + = resumeWithResponseAsync(resourceGroupName, resourceName, jobName, resumeJobParams, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), JobInner.class, JobInner.class, context); } @@ -1094,8 +1090,8 @@ private PollerFlux, JobInner> beginResumeAsync(String resou * * The operation to resume an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param resumeJobParams Resume rob comments. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1104,9 +1100,9 @@ private PollerFlux, JobInner> beginResumeAsync(String resou * @return the {@link SyncPoller} for polling of job details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, JobInner> beginResume(String resourceName, String resourceGroupName, + public SyncPoller, JobInner> beginResume(String resourceGroupName, String resourceName, String jobName, ResumeJobParams resumeJobParams) { - return this.beginResumeAsync(resourceName, resourceGroupName, jobName, resumeJobParams).getSyncPoller(); + return this.beginResumeAsync(resourceGroupName, resourceName, jobName, resumeJobParams).getSyncPoller(); } /** @@ -1114,8 +1110,8 @@ public SyncPoller, JobInner> beginResume(String resourceNam * * The operation to resume an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param resumeJobParams Resume rob comments. * @param context The context to associate with this operation. @@ -1125,9 +1121,9 @@ public SyncPoller, JobInner> beginResume(String resourceNam * @return the {@link SyncPoller} for polling of job details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, JobInner> beginResume(String resourceName, String resourceGroupName, + public SyncPoller, JobInner> beginResume(String resourceGroupName, String resourceName, String jobName, ResumeJobParams resumeJobParams, Context context) { - return this.beginResumeAsync(resourceName, resourceGroupName, jobName, resumeJobParams, context) + return this.beginResumeAsync(resourceGroupName, resourceName, jobName, resumeJobParams, context) .getSyncPoller(); } @@ -1136,8 +1132,8 @@ public SyncPoller, JobInner> beginResume(String resourceNam * * The operation to resume an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param resumeJobParams Resume rob comments. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1146,9 +1142,9 @@ public SyncPoller, JobInner> beginResume(String resourceNam * @return job details on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono resumeAsync(String resourceName, String resourceGroupName, String jobName, + private Mono resumeAsync(String resourceGroupName, String resourceName, String jobName, ResumeJobParams resumeJobParams) { - return beginResumeAsync(resourceName, resourceGroupName, jobName, resumeJobParams).last() + return beginResumeAsync(resourceGroupName, resourceName, jobName, resumeJobParams).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1157,8 +1153,8 @@ private Mono resumeAsync(String resourceName, String resourceGroupName * * The operation to resume an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param resumeJobParams Resume rob comments. * @param context The context to associate with this operation. @@ -1168,9 +1164,9 @@ private Mono resumeAsync(String resourceName, String resourceGroupName * @return job details on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono resumeAsync(String resourceName, String resourceGroupName, String jobName, + private Mono resumeAsync(String resourceGroupName, String resourceName, String jobName, ResumeJobParams resumeJobParams, Context context) { - return beginResumeAsync(resourceName, resourceGroupName, jobName, resumeJobParams, context).last() + return beginResumeAsync(resourceGroupName, resourceName, jobName, resumeJobParams, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1179,8 +1175,8 @@ private Mono resumeAsync(String resourceName, String resourceGroupName * * The operation to resume an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param resumeJobParams Resume rob comments. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1189,9 +1185,9 @@ private Mono resumeAsync(String resourceName, String resourceGroupName * @return job details. */ @ServiceMethod(returns = ReturnType.SINGLE) - public JobInner resume(String resourceName, String resourceGroupName, String jobName, + public JobInner resume(String resourceGroupName, String resourceName, String jobName, ResumeJobParams resumeJobParams) { - return resumeAsync(resourceName, resourceGroupName, jobName, resumeJobParams).block(); + return resumeAsync(resourceGroupName, resourceName, jobName, resumeJobParams).block(); } /** @@ -1199,8 +1195,8 @@ public JobInner resume(String resourceName, String resourceGroupName, String job * * The operation to resume an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param resumeJobParams Resume rob comments. * @param context The context to associate with this operation. @@ -1210,9 +1206,9 @@ public JobInner resume(String resourceName, String resourceGroupName, String job * @return job details. */ @ServiceMethod(returns = ReturnType.SINGLE) - public JobInner resume(String resourceName, String resourceGroupName, String jobName, + public JobInner resume(String resourceGroupName, String resourceName, String jobName, ResumeJobParams resumeJobParams, Context context) { - return resumeAsync(resourceName, resourceGroupName, jobName, resumeJobParams, context).block(); + return resumeAsync(resourceGroupName, resourceName, jobName, resumeJobParams, context).block(); } /** @@ -1220,8 +1216,8 @@ public JobInner resume(String resourceName, String resourceGroupName, String job * * The operation to export the details of the Azure Site Recovery jobs of the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobQueryParameter job query filter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1229,19 +1225,19 @@ public JobInner resume(String resourceName, String resourceGroupName, String job * @return job details along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> exportWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> exportWithResponseAsync(String resourceGroupName, String resourceName, JobQueryParameter jobQueryParameter) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1254,8 +1250,8 @@ private Mono>> exportWithResponseAsync(String resource } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.export(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), jobQueryParameter, accept, context)) + .withContext(context -> service.export(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), jobQueryParameter, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1264,8 +1260,8 @@ private Mono>> exportWithResponseAsync(String resource * * The operation to export the details of the Azure Site Recovery jobs of the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobQueryParameter job query filter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1274,19 +1270,19 @@ private Mono>> exportWithResponseAsync(String resource * @return job details along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> exportWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> exportWithResponseAsync(String resourceGroupName, String resourceName, JobQueryParameter jobQueryParameter, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1299,7 +1295,7 @@ private Mono>> exportWithResponseAsync(String resource } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.export(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.export(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), jobQueryParameter, accept, context); } @@ -1308,8 +1304,8 @@ private Mono>> exportWithResponseAsync(String resource * * The operation to export the details of the Azure Site Recovery jobs of the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobQueryParameter job query filter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1317,10 +1313,10 @@ private Mono>> exportWithResponseAsync(String resource * @return the {@link PollerFlux} for polling of job details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, JobInner> beginExportAsync(String resourceName, String resourceGroupName, + private PollerFlux, JobInner> beginExportAsync(String resourceGroupName, String resourceName, JobQueryParameter jobQueryParameter) { Mono>> mono - = exportWithResponseAsync(resourceName, resourceGroupName, jobQueryParameter); + = exportWithResponseAsync(resourceGroupName, resourceName, jobQueryParameter); return this.client.getLroResult(mono, this.client.getHttpPipeline(), JobInner.class, JobInner.class, this.client.getContext()); } @@ -1330,8 +1326,8 @@ private PollerFlux, JobInner> beginExportAsync(String resou * * The operation to export the details of the Azure Site Recovery jobs of the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobQueryParameter job query filter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1340,11 +1336,11 @@ private PollerFlux, JobInner> beginExportAsync(String resou * @return the {@link PollerFlux} for polling of job details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, JobInner> beginExportAsync(String resourceName, String resourceGroupName, + private PollerFlux, JobInner> beginExportAsync(String resourceGroupName, String resourceName, JobQueryParameter jobQueryParameter, Context context) { context = this.client.mergeContext(context); Mono>> mono - = exportWithResponseAsync(resourceName, resourceGroupName, jobQueryParameter, context); + = exportWithResponseAsync(resourceGroupName, resourceName, jobQueryParameter, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), JobInner.class, JobInner.class, context); } @@ -1354,8 +1350,8 @@ private PollerFlux, JobInner> beginExportAsync(String resou * * The operation to export the details of the Azure Site Recovery jobs of the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobQueryParameter job query filter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1363,9 +1359,9 @@ private PollerFlux, JobInner> beginExportAsync(String resou * @return the {@link SyncPoller} for polling of job details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, JobInner> beginExport(String resourceName, String resourceGroupName, + public SyncPoller, JobInner> beginExport(String resourceGroupName, String resourceName, JobQueryParameter jobQueryParameter) { - return this.beginExportAsync(resourceName, resourceGroupName, jobQueryParameter).getSyncPoller(); + return this.beginExportAsync(resourceGroupName, resourceName, jobQueryParameter).getSyncPoller(); } /** @@ -1373,8 +1369,8 @@ public SyncPoller, JobInner> beginExport(String resourceNam * * The operation to export the details of the Azure Site Recovery jobs of the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobQueryParameter job query filter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1383,9 +1379,9 @@ public SyncPoller, JobInner> beginExport(String resourceNam * @return the {@link SyncPoller} for polling of job details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, JobInner> beginExport(String resourceName, String resourceGroupName, + public SyncPoller, JobInner> beginExport(String resourceGroupName, String resourceName, JobQueryParameter jobQueryParameter, Context context) { - return this.beginExportAsync(resourceName, resourceGroupName, jobQueryParameter, context).getSyncPoller(); + return this.beginExportAsync(resourceGroupName, resourceName, jobQueryParameter, context).getSyncPoller(); } /** @@ -1393,8 +1389,8 @@ public SyncPoller, JobInner> beginExport(String resourceNam * * The operation to export the details of the Azure Site Recovery jobs of the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobQueryParameter job query filter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1402,9 +1398,9 @@ public SyncPoller, JobInner> beginExport(String resourceNam * @return job details on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono exportAsync(String resourceName, String resourceGroupName, + private Mono exportAsync(String resourceGroupName, String resourceName, JobQueryParameter jobQueryParameter) { - return beginExportAsync(resourceName, resourceGroupName, jobQueryParameter).last() + return beginExportAsync(resourceGroupName, resourceName, jobQueryParameter).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1413,8 +1409,8 @@ private Mono exportAsync(String resourceName, String resourceGroupName * * The operation to export the details of the Azure Site Recovery jobs of the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobQueryParameter job query filter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1423,9 +1419,9 @@ private Mono exportAsync(String resourceName, String resourceGroupName * @return job details on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono exportAsync(String resourceName, String resourceGroupName, + private Mono exportAsync(String resourceGroupName, String resourceName, JobQueryParameter jobQueryParameter, Context context) { - return beginExportAsync(resourceName, resourceGroupName, jobQueryParameter, context).last() + return beginExportAsync(resourceGroupName, resourceName, jobQueryParameter, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1434,8 +1430,8 @@ private Mono exportAsync(String resourceName, String resourceGroupName * * The operation to export the details of the Azure Site Recovery jobs of the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobQueryParameter job query filter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1443,8 +1439,8 @@ private Mono exportAsync(String resourceName, String resourceGroupName * @return job details. */ @ServiceMethod(returns = ReturnType.SINGLE) - public JobInner export(String resourceName, String resourceGroupName, JobQueryParameter jobQueryParameter) { - return exportAsync(resourceName, resourceGroupName, jobQueryParameter).block(); + public JobInner export(String resourceGroupName, String resourceName, JobQueryParameter jobQueryParameter) { + return exportAsync(resourceGroupName, resourceName, jobQueryParameter).block(); } /** @@ -1452,8 +1448,8 @@ public JobInner export(String resourceName, String resourceGroupName, JobQueryPa * * The operation to export the details of the Azure Site Recovery jobs of the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobQueryParameter job query filter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1462,9 +1458,9 @@ public JobInner export(String resourceName, String resourceGroupName, JobQueryPa * @return job details. */ @ServiceMethod(returns = ReturnType.SINGLE) - public JobInner export(String resourceName, String resourceGroupName, JobQueryParameter jobQueryParameter, + public JobInner export(String resourceGroupName, String resourceName, JobQueryParameter jobQueryParameter, Context context) { - return exportAsync(resourceName, resourceGroupName, jobQueryParameter, context).block(); + return exportAsync(resourceGroupName, resourceName, jobQueryParameter, context).block(); } /** diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationJobsImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationJobsImpl.java index eee6a728328c..c7ecdd238b74 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationJobsImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationJobsImpl.java @@ -29,20 +29,20 @@ public ReplicationJobsImpl(ReplicationJobsClient innerClient, this.serviceManager = serviceManager; } - public PagedIterable list(String resourceName, String resourceGroupName) { - PagedIterable inner = this.serviceClient().list(resourceName, resourceGroupName); + public PagedIterable list(String resourceGroupName, String resourceName) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, resourceName); return ResourceManagerUtils.mapPage(inner, inner1 -> new JobImpl(inner1, this.manager())); } - public PagedIterable list(String resourceName, String resourceGroupName, String filter, Context context) { - PagedIterable inner = this.serviceClient().list(resourceName, resourceGroupName, filter, context); + public PagedIterable list(String resourceGroupName, String resourceName, String filter, Context context) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, resourceName, filter, context); return ResourceManagerUtils.mapPage(inner, inner1 -> new JobImpl(inner1, this.manager())); } - public Response getWithResponse(String resourceName, String resourceGroupName, String jobName, + public Response getWithResponse(String resourceGroupName, String resourceName, String jobName, Context context) { Response inner - = this.serviceClient().getWithResponse(resourceName, resourceGroupName, jobName, context); + = this.serviceClient().getWithResponse(resourceGroupName, resourceName, jobName, context); if (inner != null) { return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new JobImpl(inner.getValue(), this.manager())); @@ -51,8 +51,8 @@ public Response getWithResponse(String resourceName, String resourceGroupNa } } - public Job get(String resourceName, String resourceGroupName, String jobName) { - JobInner inner = this.serviceClient().get(resourceName, resourceGroupName, jobName); + public Job get(String resourceGroupName, String resourceName, String jobName) { + JobInner inner = this.serviceClient().get(resourceGroupName, resourceName, jobName); if (inner != null) { return new JobImpl(inner, this.manager()); } else { @@ -60,8 +60,8 @@ public Job get(String resourceName, String resourceGroupName, String jobName) { } } - public Job cancel(String resourceName, String resourceGroupName, String jobName) { - JobInner inner = this.serviceClient().cancel(resourceName, resourceGroupName, jobName); + public Job cancel(String resourceGroupName, String resourceName, String jobName) { + JobInner inner = this.serviceClient().cancel(resourceGroupName, resourceName, jobName); if (inner != null) { return new JobImpl(inner, this.manager()); } else { @@ -69,8 +69,8 @@ public Job cancel(String resourceName, String resourceGroupName, String jobName) } } - public Job cancel(String resourceName, String resourceGroupName, String jobName, Context context) { - JobInner inner = this.serviceClient().cancel(resourceName, resourceGroupName, jobName, context); + public Job cancel(String resourceGroupName, String resourceName, String jobName, Context context) { + JobInner inner = this.serviceClient().cancel(resourceGroupName, resourceName, jobName, context); if (inner != null) { return new JobImpl(inner, this.manager()); } else { @@ -78,8 +78,8 @@ public Job cancel(String resourceName, String resourceGroupName, String jobName, } } - public Job restart(String resourceName, String resourceGroupName, String jobName) { - JobInner inner = this.serviceClient().restart(resourceName, resourceGroupName, jobName); + public Job restart(String resourceGroupName, String resourceName, String jobName) { + JobInner inner = this.serviceClient().restart(resourceGroupName, resourceName, jobName); if (inner != null) { return new JobImpl(inner, this.manager()); } else { @@ -87,8 +87,8 @@ public Job restart(String resourceName, String resourceGroupName, String jobName } } - public Job restart(String resourceName, String resourceGroupName, String jobName, Context context) { - JobInner inner = this.serviceClient().restart(resourceName, resourceGroupName, jobName, context); + public Job restart(String resourceGroupName, String resourceName, String jobName, Context context) { + JobInner inner = this.serviceClient().restart(resourceGroupName, resourceName, jobName, context); if (inner != null) { return new JobImpl(inner, this.manager()); } else { @@ -96,8 +96,8 @@ public Job restart(String resourceName, String resourceGroupName, String jobName } } - public Job resume(String resourceName, String resourceGroupName, String jobName, ResumeJobParams resumeJobParams) { - JobInner inner = this.serviceClient().resume(resourceName, resourceGroupName, jobName, resumeJobParams); + public Job resume(String resourceGroupName, String resourceName, String jobName, ResumeJobParams resumeJobParams) { + JobInner inner = this.serviceClient().resume(resourceGroupName, resourceName, jobName, resumeJobParams); if (inner != null) { return new JobImpl(inner, this.manager()); } else { @@ -105,10 +105,10 @@ public Job resume(String resourceName, String resourceGroupName, String jobName, } } - public Job resume(String resourceName, String resourceGroupName, String jobName, ResumeJobParams resumeJobParams, + public Job resume(String resourceGroupName, String resourceName, String jobName, ResumeJobParams resumeJobParams, Context context) { JobInner inner - = this.serviceClient().resume(resourceName, resourceGroupName, jobName, resumeJobParams, context); + = this.serviceClient().resume(resourceGroupName, resourceName, jobName, resumeJobParams, context); if (inner != null) { return new JobImpl(inner, this.manager()); } else { @@ -116,8 +116,8 @@ public Job resume(String resourceName, String resourceGroupName, String jobName, } } - public Job export(String resourceName, String resourceGroupName, JobQueryParameter jobQueryParameter) { - JobInner inner = this.serviceClient().export(resourceName, resourceGroupName, jobQueryParameter); + public Job export(String resourceGroupName, String resourceName, JobQueryParameter jobQueryParameter) { + JobInner inner = this.serviceClient().export(resourceGroupName, resourceName, jobQueryParameter); if (inner != null) { return new JobImpl(inner, this.manager()); } else { @@ -125,9 +125,9 @@ public Job export(String resourceName, String resourceGroupName, JobQueryParamet } } - public Job export(String resourceName, String resourceGroupName, JobQueryParameter jobQueryParameter, + public Job export(String resourceGroupName, String resourceName, JobQueryParameter jobQueryParameter, Context context) { - JobInner inner = this.serviceClient().export(resourceName, resourceGroupName, jobQueryParameter, context); + JobInner inner = this.serviceClient().export(resourceGroupName, resourceName, jobQueryParameter, context); if (inner != null) { return new JobImpl(inner, this.manager()); } else { diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationLogicalNetworksClientImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationLogicalNetworksClientImpl.java index e20b1e71d9a4..0a0e6c5323db 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationLogicalNetworksClientImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationLogicalNetworksClientImpl.java @@ -67,21 +67,19 @@ public interface ReplicationLogicalNetworksService { @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByReplicationFabrics(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, - @HeaderParam("Accept") String accept, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationLogicalNetworks/{logicalNetworkName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, - @PathParam("logicalNetworkName") String logicalNetworkName, @HeaderParam("Accept") String accept, - Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("logicalNetworkName") String logicalNetworkName, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @@ -97,8 +95,8 @@ Mono> listByReplicationFabricsNext( * * Lists all the logical networks of the Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Server Id. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -106,19 +104,19 @@ Mono> listByReplicationFabricsNext( * @return list of logical networks along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByReplicationFabricsSinglePageAsync(String resourceName, - String resourceGroupName, String fabricName) { + private Mono> listByReplicationFabricsSinglePageAsync(String resourceGroupName, + String resourceName, String fabricName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -130,7 +128,7 @@ private Mono> listByReplicationFabricsSingleP return FluxUtil .withContext( context -> service.listByReplicationFabrics(this.client.getEndpoint(), this.client.getApiVersion(), - resourceName, resourceGroupName, this.client.getSubscriptionId(), fabricName, accept, context)) + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -141,8 +139,8 @@ private Mono> listByReplicationFabricsSingleP * * Lists all the logical networks of the Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Server Id. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -151,19 +149,19 @@ private Mono> listByReplicationFabricsSingleP * @return list of logical networks along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByReplicationFabricsSinglePageAsync(String resourceName, - String resourceGroupName, String fabricName, Context context) { + private Mono> listByReplicationFabricsSinglePageAsync(String resourceGroupName, + String resourceName, String fabricName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -174,8 +172,8 @@ private Mono> listByReplicationFabricsSingleP final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByReplicationFabrics(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, accept, context) + .listByReplicationFabrics(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), fabricName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -185,8 +183,8 @@ private Mono> listByReplicationFabricsSingleP * * Lists all the logical networks of the Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Server Id. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -194,10 +192,10 @@ private Mono> listByReplicationFabricsSingleP * @return list of logical networks as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByReplicationFabricsAsync(String resourceName, String resourceGroupName, + private PagedFlux listByReplicationFabricsAsync(String resourceGroupName, String resourceName, String fabricName) { return new PagedFlux<>( - () -> listByReplicationFabricsSinglePageAsync(resourceName, resourceGroupName, fabricName), + () -> listByReplicationFabricsSinglePageAsync(resourceGroupName, resourceName, fabricName), nextLink -> listByReplicationFabricsNextSinglePageAsync(nextLink)); } @@ -206,8 +204,8 @@ private PagedFlux listByReplicationFabricsAsync(String reso * * Lists all the logical networks of the Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Server Id. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -216,10 +214,10 @@ private PagedFlux listByReplicationFabricsAsync(String reso * @return list of logical networks as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByReplicationFabricsAsync(String resourceName, String resourceGroupName, + private PagedFlux listByReplicationFabricsAsync(String resourceGroupName, String resourceName, String fabricName, Context context) { return new PagedFlux<>( - () -> listByReplicationFabricsSinglePageAsync(resourceName, resourceGroupName, fabricName, context), + () -> listByReplicationFabricsSinglePageAsync(resourceGroupName, resourceName, fabricName, context), nextLink -> listByReplicationFabricsNextSinglePageAsync(nextLink, context)); } @@ -228,8 +226,8 @@ private PagedFlux listByReplicationFabricsAsync(String reso * * Lists all the logical networks of the Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Server Id. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -237,9 +235,9 @@ private PagedFlux listByReplicationFabricsAsync(String reso * @return list of logical networks as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByReplicationFabrics(String resourceName, String resourceGroupName, + public PagedIterable listByReplicationFabrics(String resourceGroupName, String resourceName, String fabricName) { - return new PagedIterable<>(listByReplicationFabricsAsync(resourceName, resourceGroupName, fabricName)); + return new PagedIterable<>(listByReplicationFabricsAsync(resourceGroupName, resourceName, fabricName)); } /** @@ -247,8 +245,8 @@ public PagedIterable listByReplicationFabrics(String resour * * Lists all the logical networks of the Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Server Id. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -257,9 +255,9 @@ public PagedIterable listByReplicationFabrics(String resour * @return list of logical networks as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByReplicationFabrics(String resourceName, String resourceGroupName, + public PagedIterable listByReplicationFabrics(String resourceGroupName, String resourceName, String fabricName, Context context) { - return new PagedIterable<>(listByReplicationFabricsAsync(resourceName, resourceGroupName, fabricName, context)); + return new PagedIterable<>(listByReplicationFabricsAsync(resourceGroupName, resourceName, fabricName, context)); } /** @@ -267,8 +265,8 @@ public PagedIterable listByReplicationFabrics(String resour * * Gets the details of a logical network. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Server Id. * @param logicalNetworkName Logical network name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -277,19 +275,19 @@ public PagedIterable listByReplicationFabrics(String resour * @return the details of a logical network along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceName, String resourceGroupName, + private Mono> getWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String logicalNetworkName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -303,8 +301,9 @@ private Mono> getWithResponseAsync(String resource } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, logicalNetworkName, accept, context)) + .withContext( + context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), fabricName, logicalNetworkName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -313,8 +312,8 @@ private Mono> getWithResponseAsync(String resource * * Gets the details of a logical network. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Server Id. * @param logicalNetworkName Logical network name. * @param context The context to associate with this operation. @@ -324,19 +323,19 @@ private Mono> getWithResponseAsync(String resource * @return the details of a logical network along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceName, String resourceGroupName, + private Mono> getWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String logicalNetworkName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -350,7 +349,7 @@ private Mono> getWithResponseAsync(String resource } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, logicalNetworkName, accept, context); } @@ -359,8 +358,8 @@ private Mono> getWithResponseAsync(String resource * * Gets the details of a logical network. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Server Id. * @param logicalNetworkName Logical network name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -369,9 +368,9 @@ private Mono> getWithResponseAsync(String resource * @return the details of a logical network on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono getAsync(String resourceGroupName, String resourceName, String fabricName, String logicalNetworkName) { - return getWithResponseAsync(resourceName, resourceGroupName, fabricName, logicalNetworkName) + return getWithResponseAsync(resourceGroupName, resourceName, fabricName, logicalNetworkName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } @@ -380,8 +379,8 @@ private Mono getAsync(String resourceName, String resourceG * * Gets the details of a logical network. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Server Id. * @param logicalNetworkName Logical network name. * @param context The context to associate with this operation. @@ -391,9 +390,9 @@ private Mono getAsync(String resourceName, String resourceG * @return the details of a logical network along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceName, String resourceGroupName, + public Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String logicalNetworkName, Context context) { - return getWithResponseAsync(resourceName, resourceGroupName, fabricName, logicalNetworkName, context).block(); + return getWithResponseAsync(resourceGroupName, resourceName, fabricName, logicalNetworkName, context).block(); } /** @@ -401,8 +400,8 @@ public Response getWithResponse(String resourceName, String * * Gets the details of a logical network. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Server Id. * @param logicalNetworkName Logical network name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -411,9 +410,9 @@ public Response getWithResponse(String resourceName, String * @return the details of a logical network. */ @ServiceMethod(returns = ReturnType.SINGLE) - public LogicalNetworkInner get(String resourceName, String resourceGroupName, String fabricName, + public LogicalNetworkInner get(String resourceGroupName, String resourceName, String fabricName, String logicalNetworkName) { - return getWithResponse(resourceName, resourceGroupName, fabricName, logicalNetworkName, Context.NONE) + return getWithResponse(resourceGroupName, resourceName, fabricName, logicalNetworkName, Context.NONE) .getValue(); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationLogicalNetworksImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationLogicalNetworksImpl.java index a9fd04594126..ec1330363e4e 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationLogicalNetworksImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationLogicalNetworksImpl.java @@ -27,24 +27,24 @@ public ReplicationLogicalNetworksImpl(ReplicationLogicalNetworksClient innerClie this.serviceManager = serviceManager; } - public PagedIterable listByReplicationFabrics(String resourceName, String resourceGroupName, + public PagedIterable listByReplicationFabrics(String resourceGroupName, String resourceName, String fabricName) { PagedIterable inner - = this.serviceClient().listByReplicationFabrics(resourceName, resourceGroupName, fabricName); + = this.serviceClient().listByReplicationFabrics(resourceGroupName, resourceName, fabricName); return ResourceManagerUtils.mapPage(inner, inner1 -> new LogicalNetworkImpl(inner1, this.manager())); } - public PagedIterable listByReplicationFabrics(String resourceName, String resourceGroupName, + public PagedIterable listByReplicationFabrics(String resourceGroupName, String resourceName, String fabricName, Context context) { PagedIterable inner - = this.serviceClient().listByReplicationFabrics(resourceName, resourceGroupName, fabricName, context); + = this.serviceClient().listByReplicationFabrics(resourceGroupName, resourceName, fabricName, context); return ResourceManagerUtils.mapPage(inner, inner1 -> new LogicalNetworkImpl(inner1, this.manager())); } - public Response getWithResponse(String resourceName, String resourceGroupName, String fabricName, + public Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String logicalNetworkName, Context context) { Response inner = this.serviceClient() - .getWithResponse(resourceName, resourceGroupName, fabricName, logicalNetworkName, context); + .getWithResponse(resourceGroupName, resourceName, fabricName, logicalNetworkName, context); if (inner != null) { return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new LogicalNetworkImpl(inner.getValue(), this.manager())); @@ -53,10 +53,10 @@ public Response getWithResponse(String resourceName, String reso } } - public LogicalNetwork get(String resourceName, String resourceGroupName, String fabricName, + public LogicalNetwork get(String resourceGroupName, String resourceName, String fabricName, String logicalNetworkName) { LogicalNetworkInner inner - = this.serviceClient().get(resourceName, resourceGroupName, fabricName, logicalNetworkName); + = this.serviceClient().get(resourceGroupName, resourceName, fabricName, logicalNetworkName); if (inner != null) { return new LogicalNetworkImpl(inner, this.manager()); } else { diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationMigrationItemsClientImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationMigrationItemsClientImpl.java index 3c57bc5fe5ca..2c8c06911a99 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationMigrationItemsClientImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationMigrationItemsClientImpl.java @@ -86,7 +86,7 @@ public interface ReplicationMigrationItemsService { @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByReplicationProtectionContainers( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("resourceName") String resourceName, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @QueryParam("skipToken") String skipToken, @QueryParam("takeToken") String takeToken, @@ -97,9 +97,9 @@ Mono> listByReplicationProtectionContainers( @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @PathParam("migrationItemName") String migrationItemName, @HeaderParam("Accept") String accept, Context context); @@ -109,9 +109,9 @@ Mono> get(@HostParam("$host") String endpoint, @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> create(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @PathParam("migrationItemName") String migrationItemName, @BodyParam("application/json") EnableMigrationInput input, @HeaderParam("Accept") String accept, @@ -122,9 +122,9 @@ Mono>> create(@HostParam("$host") String endpoint, @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> delete(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @PathParam("migrationItemName") String migrationItemName, @QueryParam("deleteOption") String deleteOption, Context context); @@ -134,9 +134,9 @@ Mono>> delete(@HostParam("$host") String endpoint, @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> update(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @PathParam("migrationItemName") String migrationItemName, @BodyParam("application/json") UpdateMigrationItemInput input, @HeaderParam("Accept") String accept, @@ -147,9 +147,9 @@ Mono>> update(@HostParam("$host") String endpoint, @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> migrate(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @PathParam("migrationItemName") String migrationItemName, @BodyParam("application/json") MigrateInput migrateInput, @HeaderParam("Accept") String accept, @@ -160,9 +160,9 @@ Mono>> migrate(@HostParam("$host") String endpoint, @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> pauseReplication(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @PathParam("migrationItemName") String migrationItemName, @BodyParam("application/json") PauseReplicationInput pauseReplicationInput, @@ -173,9 +173,9 @@ Mono>> pauseReplication(@HostParam("$host") String end @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> resumeReplication(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @PathParam("migrationItemName") String migrationItemName, @BodyParam("application/json") ResumeReplicationInput resumeReplicationInput, @@ -186,9 +186,9 @@ Mono>> resumeReplication(@HostParam("$host") String en @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> resync(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @PathParam("migrationItemName") String migrationItemName, @BodyParam("application/json") ResyncInput input, @HeaderParam("Accept") String accept, Context context); @@ -198,9 +198,9 @@ Mono>> resync(@HostParam("$host") String endpoint, @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> testMigrate(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @PathParam("migrationItemName") String migrationItemName, @BodyParam("application/json") TestMigrateInput testMigrateInput, @HeaderParam("Accept") String accept, @@ -211,9 +211,9 @@ Mono>> testMigrate(@HostParam("$host") String endpoint @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> testMigrateCleanup(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @PathParam("migrationItemName") String migrationItemName, @BodyParam("application/json") TestMigrateCleanupInput testMigrateCleanupInput, @@ -224,11 +224,10 @@ Mono>> testMigrateCleanup(@HostParam("$host") String e @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> list(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("skipToken") String skipToken, - @QueryParam("takeToken") String takeToken, @QueryParam("$filter") String filter, - @HeaderParam("Accept") String accept, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @QueryParam("skipToken") String skipToken, @QueryParam("takeToken") String takeToken, + @QueryParam("$filter") String filter, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @@ -251,8 +250,8 @@ Mono> listNext(@PathParam(value = "nextLink", * * Gets the list of ASR migration items in the protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param skipToken The pagination token. @@ -266,19 +265,19 @@ Mono> listNext(@PathParam(value = "nextLink", */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByReplicationProtectionContainersSinglePageAsync( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String skipToken, String takeToken, String filter) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -293,7 +292,7 @@ private Mono> listByReplicationProtectionConta final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByReplicationProtectionContainers(this.client.getEndpoint(), - this.client.getApiVersion(), resourceName, resourceGroupName, this.client.getSubscriptionId(), + this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, skipToken, takeToken, filter, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) @@ -305,8 +304,8 @@ private Mono> listByReplicationProtectionConta * * Gets the list of ASR migration items in the protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param skipToken The pagination token. @@ -321,19 +320,19 @@ private Mono> listByReplicationProtectionConta */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByReplicationProtectionContainersSinglePageAsync( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String skipToken, String takeToken, String filter, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -348,9 +347,9 @@ private Mono> listByReplicationProtectionConta final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByReplicationProtectionContainers(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, skipToken, - takeToken, filter, accept, context) + .listByReplicationProtectionContainers(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + skipToken, takeToken, filter, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -360,8 +359,8 @@ private Mono> listByReplicationProtectionConta * * Gets the list of ASR migration items in the protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param skipToken The pagination token. @@ -373,11 +372,11 @@ private Mono> listByReplicationProtectionConta * @return the list of ASR migration items in the protection container as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByReplicationProtectionContainersAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String skipToken, String takeToken, + private PagedFlux listByReplicationProtectionContainersAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String skipToken, String takeToken, String filter) { return new PagedFlux<>( - () -> listByReplicationProtectionContainersSinglePageAsync(resourceName, resourceGroupName, fabricName, + () -> listByReplicationProtectionContainersSinglePageAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, skipToken, takeToken, filter), nextLink -> listByReplicationProtectionContainersNextSinglePageAsync(nextLink)); } @@ -387,8 +386,8 @@ private PagedFlux listByReplicationProtectionContainersAsync * * Gets the list of ASR migration items in the protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -397,13 +396,13 @@ private PagedFlux listByReplicationProtectionContainersAsync * @return the list of ASR migration items in the protection container as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByReplicationProtectionContainersAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName) { + private PagedFlux listByReplicationProtectionContainersAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName) { final String skipToken = null; final String takeToken = null; final String filter = null; return new PagedFlux<>( - () -> listByReplicationProtectionContainersSinglePageAsync(resourceName, resourceGroupName, fabricName, + () -> listByReplicationProtectionContainersSinglePageAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, skipToken, takeToken, filter), nextLink -> listByReplicationProtectionContainersNextSinglePageAsync(nextLink)); } @@ -413,8 +412,8 @@ private PagedFlux listByReplicationProtectionContainersAsync * * Gets the list of ASR migration items in the protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param skipToken The pagination token. @@ -427,11 +426,11 @@ private PagedFlux listByReplicationProtectionContainersAsync * @return the list of ASR migration items in the protection container as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByReplicationProtectionContainersAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String skipToken, String takeToken, + private PagedFlux listByReplicationProtectionContainersAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String skipToken, String takeToken, String filter, Context context) { return new PagedFlux<>( - () -> listByReplicationProtectionContainersSinglePageAsync(resourceName, resourceGroupName, fabricName, + () -> listByReplicationProtectionContainersSinglePageAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, skipToken, takeToken, filter, context), nextLink -> listByReplicationProtectionContainersNextSinglePageAsync(nextLink, context)); } @@ -441,8 +440,8 @@ private PagedFlux listByReplicationProtectionContainersAsync * * Gets the list of ASR migration items in the protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -452,12 +451,12 @@ private PagedFlux listByReplicationProtectionContainersAsync * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByReplicationProtectionContainers(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName) { + public PagedIterable listByReplicationProtectionContainers(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName) { final String skipToken = null; final String takeToken = null; final String filter = null; - return new PagedIterable<>(listByReplicationProtectionContainersAsync(resourceName, resourceGroupName, + return new PagedIterable<>(listByReplicationProtectionContainersAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, skipToken, takeToken, filter)); } @@ -466,8 +465,8 @@ public PagedIterable listByReplicationProtectionContainers(S * * Gets the list of ASR migration items in the protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param skipToken The pagination token. @@ -481,18 +480,18 @@ public PagedIterable listByReplicationProtectionContainers(S * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByReplicationProtectionContainers(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String skipToken, String takeToken, + public PagedIterable listByReplicationProtectionContainers(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String skipToken, String takeToken, String filter, Context context) { - return new PagedIterable<>(listByReplicationProtectionContainersAsync(resourceName, resourceGroupName, + return new PagedIterable<>(listByReplicationProtectionContainersAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, skipToken, takeToken, filter, context)); } /** * Gets the details of a migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric unique name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -502,19 +501,19 @@ public PagedIterable listByReplicationProtectionContainers(S * @return the details of a migration item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceName, String resourceGroupName, + private Mono> getWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -532,8 +531,8 @@ private Mono> getWithResponseAsync(String resourceN } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, migrationItemName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -541,8 +540,8 @@ private Mono> getWithResponseAsync(String resourceN /** * Gets the details of a migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric unique name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -553,19 +552,19 @@ private Mono> getWithResponseAsync(String resourceN * @return the details of a migration item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceName, String resourceGroupName, + private Mono> getWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -583,15 +582,15 @@ private Mono> getWithResponseAsync(String resourceN } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, migrationItemName, accept, context); } /** * Gets the details of a migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric unique name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -601,17 +600,17 @@ private Mono> getWithResponseAsync(String resourceN * @return the details of a migration item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono getAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName) { - return getWithResponseAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return getWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Gets the details of a migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric unique name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -622,17 +621,17 @@ private Mono getAsync(String resourceName, String resourceGr * @return the details of a migration item along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceName, String resourceGroupName, + public Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, Context context) { - return getWithResponseAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return getWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, context).block(); } /** * Gets the details of a migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric unique name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -642,9 +641,9 @@ public Response getWithResponse(String resourceName, String * @return the details of a migration item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public MigrationItemInner get(String resourceName, String resourceGroupName, String fabricName, + public MigrationItemInner get(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName) { - return getWithResponse(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + return getWithResponse(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, Context.NONE).getValue(); } @@ -653,8 +652,8 @@ public MigrationItemInner get(String resourceName, String resourceGroupName, Str * * The operation to create an ASR migration item (enable migration). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -665,19 +664,19 @@ public MigrationItemInner get(String resourceName, String resourceGroupName, Str * @return migration item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> createWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, EnableMigrationInput input) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -700,8 +699,8 @@ private Mono>> createWithResponseAsync(String resource } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, migrationItemName, input, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -711,8 +710,8 @@ private Mono>> createWithResponseAsync(String resource * * The operation to create an ASR migration item (enable migration). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -724,20 +723,20 @@ private Mono>> createWithResponseAsync(String resource * @return migration item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> createWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, EnableMigrationInput input, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -760,7 +759,7 @@ private Mono>> createWithResponseAsync(String resource } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.create(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.create(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, migrationItemName, input, accept, context); } @@ -770,8 +769,8 @@ private Mono>> createWithResponseAsync(String resource * * The operation to create an ASR migration item (enable migration). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -782,10 +781,10 @@ private Mono>> createWithResponseAsync(String resource * @return the {@link PollerFlux} for polling of migration item. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, MigrationItemInner> beginCreateAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, + private PollerFlux, MigrationItemInner> beginCreateAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName, EnableMigrationInput input) { - Mono>> mono = createWithResponseAsync(resourceName, resourceGroupName, fabricName, + Mono>> mono = createWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, input); return this.client.getLroResult(mono, this.client.getHttpPipeline(), MigrationItemInner.class, MigrationItemInner.class, this.client.getContext()); @@ -796,8 +795,8 @@ private PollerFlux, MigrationItemInner> beginCrea * * The operation to create an ASR migration item (enable migration). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -809,11 +808,11 @@ private PollerFlux, MigrationItemInner> beginCrea * @return the {@link PollerFlux} for polling of migration item. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, MigrationItemInner> beginCreateAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, + private PollerFlux, MigrationItemInner> beginCreateAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName, EnableMigrationInput input, Context context) { context = this.client.mergeContext(context); - Mono>> mono = createWithResponseAsync(resourceName, resourceGroupName, fabricName, + Mono>> mono = createWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, input, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), MigrationItemInner.class, MigrationItemInner.class, context); @@ -824,8 +823,8 @@ private PollerFlux, MigrationItemInner> beginCrea * * The operation to create an ASR migration item (enable migration). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -836,11 +835,11 @@ private PollerFlux, MigrationItemInner> beginCrea * @return the {@link SyncPoller} for polling of migration item. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, MigrationItemInner> beginCreate(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, + public SyncPoller, MigrationItemInner> beginCreate(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName, EnableMigrationInput input) { return this - .beginCreateAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + .beginCreateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, input) .getSyncPoller(); } @@ -850,8 +849,8 @@ public SyncPoller, MigrationItemInner> beginCreat * * The operation to create an ASR migration item (enable migration). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -863,11 +862,11 @@ public SyncPoller, MigrationItemInner> beginCreat * @return the {@link SyncPoller} for polling of migration item. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, MigrationItemInner> beginCreate(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, + public SyncPoller, MigrationItemInner> beginCreate(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName, EnableMigrationInput input, Context context) { return this - .beginCreateAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + .beginCreateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, input, context) .getSyncPoller(); } @@ -877,8 +876,8 @@ public SyncPoller, MigrationItemInner> beginCreat * * The operation to create an ASR migration item (enable migration). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -889,9 +888,9 @@ public SyncPoller, MigrationItemInner> beginCreat * @return migration item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono createAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, EnableMigrationInput input) { - return beginCreateAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + return beginCreateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, input).last().flatMap(this.client::getLroFinalResultOrError); } @@ -900,8 +899,8 @@ private Mono createAsync(String resourceName, String resourc * * The operation to create an ASR migration item (enable migration). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -913,9 +912,9 @@ private Mono createAsync(String resourceName, String resourc * @return migration item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono createAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, EnableMigrationInput input, Context context) { - return beginCreateAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + return beginCreateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, input, context).last().flatMap(this.client::getLroFinalResultOrError); } @@ -924,8 +923,8 @@ private Mono createAsync(String resourceName, String resourc * * The operation to create an ASR migration item (enable migration). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -936,9 +935,9 @@ private Mono createAsync(String resourceName, String resourc * @return migration item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public MigrationItemInner create(String resourceName, String resourceGroupName, String fabricName, + public MigrationItemInner create(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, EnableMigrationInput input) { - return createAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + return createAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, input).block(); } @@ -947,8 +946,8 @@ public MigrationItemInner create(String resourceName, String resourceGroupName, * * The operation to create an ASR migration item (enable migration). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -960,9 +959,9 @@ public MigrationItemInner create(String resourceName, String resourceGroupName, * @return migration item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public MigrationItemInner create(String resourceName, String resourceGroupName, String fabricName, + public MigrationItemInner create(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, EnableMigrationInput input, Context context) { - return createAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + return createAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, input, context).block(); } @@ -971,8 +970,8 @@ public MigrationItemInner create(String resourceName, String resourceGroupName, * * The operation to delete an ASR migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -983,19 +982,19 @@ public MigrationItemInner create(String resourceName, String resourceGroupName, * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, String deleteOption) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1012,8 +1011,8 @@ private Mono>> deleteWithResponseAsync(String resource .error(new IllegalArgumentException("Parameter migrationItemName is required and cannot be null.")); } return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, migrationItemName, deleteOption, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1023,8 +1022,8 @@ private Mono>> deleteWithResponseAsync(String resource * * The operation to delete an ASR migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -1036,20 +1035,20 @@ private Mono>> deleteWithResponseAsync(String resource * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, String deleteOption, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1066,7 +1065,7 @@ private Mono>> deleteWithResponseAsync(String resource .error(new IllegalArgumentException("Parameter migrationItemName is required and cannot be null.")); } context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, migrationItemName, deleteOption, context); } @@ -1076,8 +1075,8 @@ private Mono>> deleteWithResponseAsync(String resource * * The operation to delete an ASR migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -1088,9 +1087,9 @@ private Mono>> deleteWithResponseAsync(String resource * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceName, String resourceGroupName, + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, String deleteOption) { - Mono>> mono = deleteWithResponseAsync(resourceName, resourceGroupName, fabricName, + Mono>> mono = deleteWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, deleteOption); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); @@ -1101,8 +1100,8 @@ private PollerFlux, Void> beginDeleteAsync(String resourceName, * * The operation to delete an ASR migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -1112,10 +1111,10 @@ private PollerFlux, Void> beginDeleteAsync(String resourceName, * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceName, String resourceGroupName, + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName) { final String deleteOption = null; - Mono>> mono = deleteWithResponseAsync(resourceName, resourceGroupName, fabricName, + Mono>> mono = deleteWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, deleteOption); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); @@ -1126,8 +1125,8 @@ private PollerFlux, Void> beginDeleteAsync(String resourceName, * * The operation to delete an ASR migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -1139,11 +1138,11 @@ private PollerFlux, Void> beginDeleteAsync(String resourceName, * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceName, String resourceGroupName, + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, String deleteOption, Context context) { context = this.client.mergeContext(context); - Mono>> mono = deleteWithResponseAsync(resourceName, resourceGroupName, fabricName, + Mono>> mono = deleteWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, deleteOption, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); @@ -1154,8 +1153,8 @@ private PollerFlux, Void> beginDeleteAsync(String resourceName, * * The operation to delete an ASR migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -1165,11 +1164,11 @@ private PollerFlux, Void> beginDeleteAsync(String resourceName, * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceName, String resourceGroupName, + public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName) { final String deleteOption = null; return this - .beginDeleteAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + .beginDeleteAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, deleteOption) .getSyncPoller(); } @@ -1179,8 +1178,8 @@ public SyncPoller, Void> beginDelete(String resourceName, Strin * * The operation to delete an ASR migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -1192,11 +1191,11 @@ public SyncPoller, Void> beginDelete(String resourceName, Strin * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceName, String resourceGroupName, + public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, String deleteOption, Context context) { return this - .beginDeleteAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + .beginDeleteAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, deleteOption, context) .getSyncPoller(); } @@ -1206,8 +1205,8 @@ public SyncPoller, Void> beginDelete(String resourceName, Strin * * The operation to delete an ASR migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -1218,9 +1217,9 @@ public SyncPoller, Void> beginDelete(String resourceName, Strin * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono deleteAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, String deleteOption) { - return beginDeleteAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + return beginDeleteAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, deleteOption).last().flatMap(this.client::getLroFinalResultOrError); } @@ -1229,8 +1228,8 @@ private Mono deleteAsync(String resourceName, String resourceGroupName, St * * The operation to delete an ASR migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -1240,10 +1239,10 @@ private Mono deleteAsync(String resourceName, String resourceGroupName, St * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono deleteAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName) { final String deleteOption = null; - return beginDeleteAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + return beginDeleteAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, deleteOption).last().flatMap(this.client::getLroFinalResultOrError); } @@ -1252,8 +1251,8 @@ private Mono deleteAsync(String resourceName, String resourceGroupName, St * * The operation to delete an ASR migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -1265,9 +1264,9 @@ private Mono deleteAsync(String resourceName, String resourceGroupName, St * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono deleteAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, String deleteOption, Context context) { - return beginDeleteAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + return beginDeleteAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, deleteOption, context).last().flatMap(this.client::getLroFinalResultOrError); } @@ -1276,8 +1275,8 @@ private Mono deleteAsync(String resourceName, String resourceGroupName, St * * The operation to delete an ASR migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -1286,10 +1285,10 @@ private Mono deleteAsync(String resourceName, String resourceGroupName, St * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + public void delete(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName) { final String deleteOption = null; - deleteAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + deleteAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, deleteOption).block(); } @@ -1298,8 +1297,8 @@ public void delete(String resourceName, String resourceGroupName, String fabricN * * The operation to delete an ASR migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -1310,9 +1309,9 @@ public void delete(String resourceName, String resourceGroupName, String fabricN * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + public void delete(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, String deleteOption, Context context) { - deleteAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + deleteAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, deleteOption, context).block(); } @@ -1321,8 +1320,8 @@ public void delete(String resourceName, String resourceGroupName, String fabricN * * The operation to update the recovery settings of an ASR migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -1333,19 +1332,19 @@ public void delete(String resourceName, String resourceGroupName, String fabricN * @return migration item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> updateWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, UpdateMigrationItemInput input) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1368,8 +1367,8 @@ private Mono>> updateWithResponseAsync(String resource } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, migrationItemName, input, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1379,8 +1378,8 @@ private Mono>> updateWithResponseAsync(String resource * * The operation to update the recovery settings of an ASR migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -1392,20 +1391,20 @@ private Mono>> updateWithResponseAsync(String resource * @return migration item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> updateWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, UpdateMigrationItemInput input, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1428,7 +1427,7 @@ private Mono>> updateWithResponseAsync(String resource } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.update(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.update(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, migrationItemName, input, accept, context); } @@ -1438,8 +1437,8 @@ private Mono>> updateWithResponseAsync(String resource * * The operation to update the recovery settings of an ASR migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -1450,10 +1449,10 @@ private Mono>> updateWithResponseAsync(String resource * @return the {@link PollerFlux} for polling of migration item. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, MigrationItemInner> beginUpdateAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, + private PollerFlux, MigrationItemInner> beginUpdateAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName, UpdateMigrationItemInput input) { - Mono>> mono = updateWithResponseAsync(resourceName, resourceGroupName, fabricName, + Mono>> mono = updateWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, input); return this.client.getLroResult(mono, this.client.getHttpPipeline(), MigrationItemInner.class, MigrationItemInner.class, this.client.getContext()); @@ -1464,8 +1463,8 @@ private PollerFlux, MigrationItemInner> beginUpda * * The operation to update the recovery settings of an ASR migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -1477,11 +1476,11 @@ private PollerFlux, MigrationItemInner> beginUpda * @return the {@link PollerFlux} for polling of migration item. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, MigrationItemInner> beginUpdateAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, + private PollerFlux, MigrationItemInner> beginUpdateAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName, UpdateMigrationItemInput input, Context context) { context = this.client.mergeContext(context); - Mono>> mono = updateWithResponseAsync(resourceName, resourceGroupName, fabricName, + Mono>> mono = updateWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, input, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), MigrationItemInner.class, MigrationItemInner.class, context); @@ -1492,8 +1491,8 @@ private PollerFlux, MigrationItemInner> beginUpda * * The operation to update the recovery settings of an ASR migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -1504,11 +1503,11 @@ private PollerFlux, MigrationItemInner> beginUpda * @return the {@link SyncPoller} for polling of migration item. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, MigrationItemInner> beginUpdate(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, + public SyncPoller, MigrationItemInner> beginUpdate(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName, UpdateMigrationItemInput input) { return this - .beginUpdateAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + .beginUpdateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, input) .getSyncPoller(); } @@ -1518,8 +1517,8 @@ public SyncPoller, MigrationItemInner> beginUpdat * * The operation to update the recovery settings of an ASR migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -1531,11 +1530,11 @@ public SyncPoller, MigrationItemInner> beginUpdat * @return the {@link SyncPoller} for polling of migration item. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, MigrationItemInner> beginUpdate(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, + public SyncPoller, MigrationItemInner> beginUpdate(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName, UpdateMigrationItemInput input, Context context) { return this - .beginUpdateAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + .beginUpdateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, input, context) .getSyncPoller(); } @@ -1545,8 +1544,8 @@ public SyncPoller, MigrationItemInner> beginUpdat * * The operation to update the recovery settings of an ASR migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -1557,9 +1556,9 @@ public SyncPoller, MigrationItemInner> beginUpdat * @return migration item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono updateAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, UpdateMigrationItemInput input) { - return beginUpdateAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + return beginUpdateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, input).last().flatMap(this.client::getLroFinalResultOrError); } @@ -1568,8 +1567,8 @@ private Mono updateAsync(String resourceName, String resourc * * The operation to update the recovery settings of an ASR migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -1581,9 +1580,9 @@ private Mono updateAsync(String resourceName, String resourc * @return migration item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono updateAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, UpdateMigrationItemInput input, Context context) { - return beginUpdateAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + return beginUpdateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, input, context).last().flatMap(this.client::getLroFinalResultOrError); } @@ -1592,8 +1591,8 @@ private Mono updateAsync(String resourceName, String resourc * * The operation to update the recovery settings of an ASR migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -1604,9 +1603,9 @@ private Mono updateAsync(String resourceName, String resourc * @return migration item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public MigrationItemInner update(String resourceName, String resourceGroupName, String fabricName, + public MigrationItemInner update(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, UpdateMigrationItemInput input) { - return updateAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + return updateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, input).block(); } @@ -1615,8 +1614,8 @@ public MigrationItemInner update(String resourceName, String resourceGroupName, * * The operation to update the recovery settings of an ASR migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -1628,9 +1627,9 @@ public MigrationItemInner update(String resourceName, String resourceGroupName, * @return migration item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public MigrationItemInner update(String resourceName, String resourceGroupName, String fabricName, + public MigrationItemInner update(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, UpdateMigrationItemInput input, Context context) { - return updateAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + return updateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, input, context).block(); } @@ -1639,8 +1638,8 @@ public MigrationItemInner update(String resourceName, String resourceGroupName, * * The operation to initiate migration of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -1651,19 +1650,19 @@ public MigrationItemInner update(String resourceName, String resourceGroupName, * @return migration item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> migrateWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> migrateWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, MigrateInput migrateInput) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1687,7 +1686,7 @@ private Mono>> migrateWithResponseAsync(String resourc final String accept = "application/json"; return FluxUtil .withContext(context -> service.migrate(this.client.getEndpoint(), this.client.getApiVersion(), - resourceName, resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, migrationItemName, migrateInput, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1697,8 +1696,8 @@ private Mono>> migrateWithResponseAsync(String resourc * * The operation to initiate migration of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -1710,20 +1709,20 @@ private Mono>> migrateWithResponseAsync(String resourc * @return migration item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> migrateWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> migrateWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, MigrateInput migrateInput, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1746,7 +1745,7 @@ private Mono>> migrateWithResponseAsync(String resourc } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.migrate(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.migrate(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, migrationItemName, migrateInput, accept, context); } @@ -1756,8 +1755,8 @@ private Mono>> migrateWithResponseAsync(String resourc * * The operation to initiate migration of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -1768,10 +1767,10 @@ private Mono>> migrateWithResponseAsync(String resourc * @return the {@link PollerFlux} for polling of migration item. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, MigrationItemInner> beginMigrateAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, + private PollerFlux, MigrationItemInner> beginMigrateAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName, MigrateInput migrateInput) { - Mono>> mono = migrateWithResponseAsync(resourceName, resourceGroupName, fabricName, + Mono>> mono = migrateWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, migrateInput); return this.client.getLroResult(mono, this.client.getHttpPipeline(), MigrationItemInner.class, MigrationItemInner.class, this.client.getContext()); @@ -1782,8 +1781,8 @@ private PollerFlux, MigrationItemInner> beginMigr * * The operation to initiate migration of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -1795,11 +1794,11 @@ private PollerFlux, MigrationItemInner> beginMigr * @return the {@link PollerFlux} for polling of migration item. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, MigrationItemInner> beginMigrateAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, + private PollerFlux, MigrationItemInner> beginMigrateAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName, MigrateInput migrateInput, Context context) { context = this.client.mergeContext(context); - Mono>> mono = migrateWithResponseAsync(resourceName, resourceGroupName, fabricName, + Mono>> mono = migrateWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, migrateInput, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), MigrationItemInner.class, MigrationItemInner.class, context); @@ -1810,8 +1809,8 @@ private PollerFlux, MigrationItemInner> beginMigr * * The operation to initiate migration of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -1822,11 +1821,11 @@ private PollerFlux, MigrationItemInner> beginMigr * @return the {@link SyncPoller} for polling of migration item. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, MigrationItemInner> beginMigrate(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, + public SyncPoller, MigrationItemInner> beginMigrate(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName, MigrateInput migrateInput) { return this - .beginMigrateAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + .beginMigrateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, migrateInput) .getSyncPoller(); } @@ -1836,8 +1835,8 @@ public SyncPoller, MigrationItemInner> beginMigra * * The operation to initiate migration of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -1849,11 +1848,11 @@ public SyncPoller, MigrationItemInner> beginMigra * @return the {@link SyncPoller} for polling of migration item. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, MigrationItemInner> beginMigrate(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, + public SyncPoller, MigrationItemInner> beginMigrate(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName, MigrateInput migrateInput, Context context) { return this - .beginMigrateAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + .beginMigrateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, migrateInput, context) .getSyncPoller(); } @@ -1863,8 +1862,8 @@ public SyncPoller, MigrationItemInner> beginMigra * * The operation to initiate migration of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -1875,9 +1874,9 @@ public SyncPoller, MigrationItemInner> beginMigra * @return migration item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono migrateAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono migrateAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, MigrateInput migrateInput) { - return beginMigrateAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginMigrateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, migrateInput).last().flatMap(this.client::getLroFinalResultOrError); } @@ -1886,8 +1885,8 @@ private Mono migrateAsync(String resourceName, String resour * * The operation to initiate migration of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -1899,9 +1898,9 @@ private Mono migrateAsync(String resourceName, String resour * @return migration item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono migrateAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono migrateAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, MigrateInput migrateInput, Context context) { - return beginMigrateAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginMigrateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, migrateInput, context).last().flatMap(this.client::getLroFinalResultOrError); } @@ -1910,8 +1909,8 @@ private Mono migrateAsync(String resourceName, String resour * * The operation to initiate migration of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -1922,9 +1921,9 @@ private Mono migrateAsync(String resourceName, String resour * @return migration item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public MigrationItemInner migrate(String resourceName, String resourceGroupName, String fabricName, + public MigrationItemInner migrate(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, MigrateInput migrateInput) { - return migrateAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + return migrateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, migrateInput).block(); } @@ -1933,8 +1932,8 @@ public MigrationItemInner migrate(String resourceName, String resourceGroupName, * * The operation to initiate migration of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -1946,9 +1945,9 @@ public MigrationItemInner migrate(String resourceName, String resourceGroupName, * @return migration item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public MigrationItemInner migrate(String resourceName, String resourceGroupName, String fabricName, + public MigrationItemInner migrate(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, MigrateInput migrateInput, Context context) { - return migrateAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + return migrateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, migrateInput, context).block(); } @@ -1957,8 +1956,8 @@ public MigrationItemInner migrate(String resourceName, String resourceGroupName, * * The operation to initiate pause replication of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -1969,20 +1968,20 @@ public MigrationItemInner migrate(String resourceName, String resourceGroupName, * @return migration item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> pauseReplicationWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, + private Mono>> pauseReplicationWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName, PauseReplicationInput pauseReplicationInput) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -2007,7 +2006,7 @@ private Mono>> pauseReplicationWithResponseAsync(Strin final String accept = "application/json"; return FluxUtil .withContext(context -> service.pauseReplication(this.client.getEndpoint(), this.client.getApiVersion(), - resourceName, resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, migrationItemName, pauseReplicationInput, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -2017,8 +2016,8 @@ private Mono>> pauseReplicationWithResponseAsync(Strin * * The operation to initiate pause replication of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -2030,20 +2029,20 @@ private Mono>> pauseReplicationWithResponseAsync(Strin * @return migration item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> pauseReplicationWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, + private Mono>> pauseReplicationWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName, PauseReplicationInput pauseReplicationInput, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -2067,8 +2066,8 @@ private Mono>> pauseReplicationWithResponseAsync(Strin } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.pauseReplication(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, migrationItemName, + return service.pauseReplication(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, migrationItemName, pauseReplicationInput, accept, context); } @@ -2077,8 +2076,8 @@ private Mono>> pauseReplicationWithResponseAsync(Strin * * The operation to initiate pause replication of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -2090,9 +2089,9 @@ private Mono>> pauseReplicationWithResponseAsync(Strin */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, MigrationItemInner> beginPauseReplicationAsync( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, PauseReplicationInput pauseReplicationInput) { - Mono>> mono = pauseReplicationWithResponseAsync(resourceName, resourceGroupName, + Mono>> mono = pauseReplicationWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, pauseReplicationInput); return this.client.getLroResult(mono, this.client.getHttpPipeline(), MigrationItemInner.class, MigrationItemInner.class, this.client.getContext()); @@ -2103,8 +2102,8 @@ private PollerFlux, MigrationItemInner> beginPaus * * The operation to initiate pause replication of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -2117,10 +2116,10 @@ private PollerFlux, MigrationItemInner> beginPaus */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, MigrationItemInner> beginPauseReplicationAsync( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, PauseReplicationInput pauseReplicationInput, Context context) { context = this.client.mergeContext(context); - Mono>> mono = pauseReplicationWithResponseAsync(resourceName, resourceGroupName, + Mono>> mono = pauseReplicationWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, pauseReplicationInput, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), MigrationItemInner.class, MigrationItemInner.class, context); @@ -2131,8 +2130,8 @@ private PollerFlux, MigrationItemInner> beginPaus * * The operation to initiate pause replication of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -2143,11 +2142,11 @@ private PollerFlux, MigrationItemInner> beginPaus * @return the {@link SyncPoller} for polling of migration item. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, MigrationItemInner> beginPauseReplication(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, - PauseReplicationInput pauseReplicationInput) { + public SyncPoller, MigrationItemInner> beginPauseReplication( + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, + String migrationItemName, PauseReplicationInput pauseReplicationInput) { return this - .beginPauseReplicationAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginPauseReplicationAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, pauseReplicationInput) .getSyncPoller(); } @@ -2157,8 +2156,8 @@ public SyncPoller, MigrationItemInner> beginPause * * The operation to initiate pause replication of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -2170,11 +2169,11 @@ public SyncPoller, MigrationItemInner> beginPause * @return the {@link SyncPoller} for polling of migration item. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, MigrationItemInner> beginPauseReplication(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, - PauseReplicationInput pauseReplicationInput, Context context) { + public SyncPoller, MigrationItemInner> beginPauseReplication( + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, + String migrationItemName, PauseReplicationInput pauseReplicationInput, Context context) { return this - .beginPauseReplicationAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginPauseReplicationAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, pauseReplicationInput, context) .getSyncPoller(); } @@ -2184,8 +2183,8 @@ public SyncPoller, MigrationItemInner> beginPause * * The operation to initiate pause replication of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -2196,10 +2195,10 @@ public SyncPoller, MigrationItemInner> beginPause * @return migration item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono pauseReplicationAsync(String resourceName, String resourceGroupName, + private Mono pauseReplicationAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, PauseReplicationInput pauseReplicationInput) { - return beginPauseReplicationAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginPauseReplicationAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, pauseReplicationInput).last().flatMap(this.client::getLroFinalResultOrError); } @@ -2208,8 +2207,8 @@ private Mono pauseReplicationAsync(String resourceName, Stri * * The operation to initiate pause replication of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -2221,10 +2220,10 @@ private Mono pauseReplicationAsync(String resourceName, Stri * @return migration item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono pauseReplicationAsync(String resourceName, String resourceGroupName, + private Mono pauseReplicationAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, PauseReplicationInput pauseReplicationInput, Context context) { - return beginPauseReplicationAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginPauseReplicationAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, pauseReplicationInput, context).last().flatMap(this.client::getLroFinalResultOrError); } @@ -2233,8 +2232,8 @@ private Mono pauseReplicationAsync(String resourceName, Stri * * The operation to initiate pause replication of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -2245,9 +2244,9 @@ private Mono pauseReplicationAsync(String resourceName, Stri * @return migration item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public MigrationItemInner pauseReplication(String resourceName, String resourceGroupName, String fabricName, + public MigrationItemInner pauseReplication(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, PauseReplicationInput pauseReplicationInput) { - return pauseReplicationAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return pauseReplicationAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, pauseReplicationInput).block(); } @@ -2256,8 +2255,8 @@ public MigrationItemInner pauseReplication(String resourceName, String resourceG * * The operation to initiate pause replication of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -2269,10 +2268,10 @@ public MigrationItemInner pauseReplication(String resourceName, String resourceG * @return migration item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public MigrationItemInner pauseReplication(String resourceName, String resourceGroupName, String fabricName, + public MigrationItemInner pauseReplication(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, PauseReplicationInput pauseReplicationInput, Context context) { - return pauseReplicationAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return pauseReplicationAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, pauseReplicationInput, context).block(); } @@ -2281,8 +2280,8 @@ public MigrationItemInner pauseReplication(String resourceName, String resourceG * * The operation to initiate resume replication of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -2293,20 +2292,20 @@ public MigrationItemInner pauseReplication(String resourceName, String resourceG * @return migration item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> resumeReplicationWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, + private Mono>> resumeReplicationWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName, ResumeReplicationInput resumeReplicationInput) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -2331,7 +2330,7 @@ private Mono>> resumeReplicationWithResponseAsync(Stri final String accept = "application/json"; return FluxUtil .withContext(context -> service.resumeReplication(this.client.getEndpoint(), this.client.getApiVersion(), - resourceName, resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, migrationItemName, resumeReplicationInput, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -2341,8 +2340,8 @@ private Mono>> resumeReplicationWithResponseAsync(Stri * * The operation to initiate resume replication of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -2354,20 +2353,20 @@ private Mono>> resumeReplicationWithResponseAsync(Stri * @return migration item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> resumeReplicationWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, + private Mono>> resumeReplicationWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName, ResumeReplicationInput resumeReplicationInput, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -2391,8 +2390,8 @@ private Mono>> resumeReplicationWithResponseAsync(Stri } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.resumeReplication(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, migrationItemName, + return service.resumeReplication(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, migrationItemName, resumeReplicationInput, accept, context); } @@ -2401,8 +2400,8 @@ private Mono>> resumeReplicationWithResponseAsync(Stri * * The operation to initiate resume replication of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -2414,9 +2413,9 @@ private Mono>> resumeReplicationWithResponseAsync(Stri */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, MigrationItemInner> beginResumeReplicationAsync( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, ResumeReplicationInput resumeReplicationInput) { - Mono>> mono = resumeReplicationWithResponseAsync(resourceName, resourceGroupName, + Mono>> mono = resumeReplicationWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, resumeReplicationInput); return this.client.getLroResult(mono, this.client.getHttpPipeline(), MigrationItemInner.class, MigrationItemInner.class, this.client.getContext()); @@ -2427,8 +2426,8 @@ private PollerFlux, MigrationItemInner> beginResu * * The operation to initiate resume replication of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -2441,10 +2440,10 @@ private PollerFlux, MigrationItemInner> beginResu */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, MigrationItemInner> beginResumeReplicationAsync( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, ResumeReplicationInput resumeReplicationInput, Context context) { context = this.client.mergeContext(context); - Mono>> mono = resumeReplicationWithResponseAsync(resourceName, resourceGroupName, + Mono>> mono = resumeReplicationWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, resumeReplicationInput, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), MigrationItemInner.class, MigrationItemInner.class, context); @@ -2455,8 +2454,8 @@ private PollerFlux, MigrationItemInner> beginResu * * The operation to initiate resume replication of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -2467,11 +2466,11 @@ private PollerFlux, MigrationItemInner> beginResu * @return the {@link SyncPoller} for polling of migration item. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, MigrationItemInner> beginResumeReplication(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, - ResumeReplicationInput resumeReplicationInput) { + public SyncPoller, MigrationItemInner> beginResumeReplication( + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, + String migrationItemName, ResumeReplicationInput resumeReplicationInput) { return this - .beginResumeReplicationAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginResumeReplicationAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, resumeReplicationInput) .getSyncPoller(); } @@ -2481,8 +2480,8 @@ public SyncPoller, MigrationItemInner> beginResum * * The operation to initiate resume replication of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -2494,11 +2493,11 @@ public SyncPoller, MigrationItemInner> beginResum * @return the {@link SyncPoller} for polling of migration item. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, MigrationItemInner> beginResumeReplication(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, - ResumeReplicationInput resumeReplicationInput, Context context) { + public SyncPoller, MigrationItemInner> beginResumeReplication( + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, + String migrationItemName, ResumeReplicationInput resumeReplicationInput, Context context) { return this - .beginResumeReplicationAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginResumeReplicationAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, resumeReplicationInput, context) .getSyncPoller(); } @@ -2508,8 +2507,8 @@ public SyncPoller, MigrationItemInner> beginResum * * The operation to initiate resume replication of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -2520,10 +2519,10 @@ public SyncPoller, MigrationItemInner> beginResum * @return migration item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono resumeReplicationAsync(String resourceName, String resourceGroupName, + private Mono resumeReplicationAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, ResumeReplicationInput resumeReplicationInput) { - return beginResumeReplicationAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginResumeReplicationAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, resumeReplicationInput).last().flatMap(this.client::getLroFinalResultOrError); } @@ -2532,8 +2531,8 @@ private Mono resumeReplicationAsync(String resourceName, Str * * The operation to initiate resume replication of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -2545,10 +2544,10 @@ private Mono resumeReplicationAsync(String resourceName, Str * @return migration item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono resumeReplicationAsync(String resourceName, String resourceGroupName, + private Mono resumeReplicationAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, ResumeReplicationInput resumeReplicationInput, Context context) { - return beginResumeReplicationAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginResumeReplicationAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, resumeReplicationInput, context).last().flatMap(this.client::getLroFinalResultOrError); } @@ -2557,8 +2556,8 @@ private Mono resumeReplicationAsync(String resourceName, Str * * The operation to initiate resume replication of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -2569,9 +2568,9 @@ private Mono resumeReplicationAsync(String resourceName, Str * @return migration item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public MigrationItemInner resumeReplication(String resourceName, String resourceGroupName, String fabricName, + public MigrationItemInner resumeReplication(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, ResumeReplicationInput resumeReplicationInput) { - return resumeReplicationAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return resumeReplicationAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, resumeReplicationInput).block(); } @@ -2580,8 +2579,8 @@ public MigrationItemInner resumeReplication(String resourceName, String resource * * The operation to initiate resume replication of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -2593,10 +2592,10 @@ public MigrationItemInner resumeReplication(String resourceName, String resource * @return migration item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public MigrationItemInner resumeReplication(String resourceName, String resourceGroupName, String fabricName, + public MigrationItemInner resumeReplication(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, ResumeReplicationInput resumeReplicationInput, Context context) { - return resumeReplicationAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return resumeReplicationAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, resumeReplicationInput, context).block(); } @@ -2605,8 +2604,8 @@ public MigrationItemInner resumeReplication(String resourceName, String resource * * The operation to resynchronize replication of an ASR migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -2617,19 +2616,19 @@ public MigrationItemInner resumeReplication(String resourceName, String resource * @return migration item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> resyncWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> resyncWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, ResyncInput input) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -2652,8 +2651,8 @@ private Mono>> resyncWithResponseAsync(String resource } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.resync(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + .withContext(context -> service.resync(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, migrationItemName, input, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -2663,8 +2662,8 @@ private Mono>> resyncWithResponseAsync(String resource * * The operation to resynchronize replication of an ASR migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -2676,20 +2675,20 @@ private Mono>> resyncWithResponseAsync(String resource * @return migration item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> resyncWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> resyncWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, ResyncInput input, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -2712,7 +2711,7 @@ private Mono>> resyncWithResponseAsync(String resource } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.resync(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.resync(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, migrationItemName, input, accept, context); } @@ -2722,8 +2721,8 @@ private Mono>> resyncWithResponseAsync(String resource * * The operation to resynchronize replication of an ASR migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -2734,10 +2733,10 @@ private Mono>> resyncWithResponseAsync(String resource * @return the {@link PollerFlux} for polling of migration item. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, MigrationItemInner> beginResyncAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, + private PollerFlux, MigrationItemInner> beginResyncAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName, ResyncInput input) { - Mono>> mono = resyncWithResponseAsync(resourceName, resourceGroupName, fabricName, + Mono>> mono = resyncWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, input); return this.client.getLroResult(mono, this.client.getHttpPipeline(), MigrationItemInner.class, MigrationItemInner.class, this.client.getContext()); @@ -2748,8 +2747,8 @@ private PollerFlux, MigrationItemInner> beginResy * * The operation to resynchronize replication of an ASR migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -2761,11 +2760,11 @@ private PollerFlux, MigrationItemInner> beginResy * @return the {@link PollerFlux} for polling of migration item. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, MigrationItemInner> beginResyncAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, + private PollerFlux, MigrationItemInner> beginResyncAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName, ResyncInput input, Context context) { context = this.client.mergeContext(context); - Mono>> mono = resyncWithResponseAsync(resourceName, resourceGroupName, fabricName, + Mono>> mono = resyncWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, input, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), MigrationItemInner.class, MigrationItemInner.class, context); @@ -2776,8 +2775,8 @@ private PollerFlux, MigrationItemInner> beginResy * * The operation to resynchronize replication of an ASR migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -2788,11 +2787,11 @@ private PollerFlux, MigrationItemInner> beginResy * @return the {@link SyncPoller} for polling of migration item. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, MigrationItemInner> beginResync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, + public SyncPoller, MigrationItemInner> beginResync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName, ResyncInput input) { return this - .beginResyncAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + .beginResyncAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, input) .getSyncPoller(); } @@ -2802,8 +2801,8 @@ public SyncPoller, MigrationItemInner> beginResyn * * The operation to resynchronize replication of an ASR migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -2815,11 +2814,11 @@ public SyncPoller, MigrationItemInner> beginResyn * @return the {@link SyncPoller} for polling of migration item. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, MigrationItemInner> beginResync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, + public SyncPoller, MigrationItemInner> beginResync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName, ResyncInput input, Context context) { return this - .beginResyncAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + .beginResyncAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, input, context) .getSyncPoller(); } @@ -2829,8 +2828,8 @@ public SyncPoller, MigrationItemInner> beginResyn * * The operation to resynchronize replication of an ASR migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -2841,9 +2840,9 @@ public SyncPoller, MigrationItemInner> beginResyn * @return migration item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono resyncAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono resyncAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, ResyncInput input) { - return beginResyncAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + return beginResyncAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, input).last().flatMap(this.client::getLroFinalResultOrError); } @@ -2852,8 +2851,8 @@ private Mono resyncAsync(String resourceName, String resourc * * The operation to resynchronize replication of an ASR migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -2865,9 +2864,9 @@ private Mono resyncAsync(String resourceName, String resourc * @return migration item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono resyncAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono resyncAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, ResyncInput input, Context context) { - return beginResyncAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + return beginResyncAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, input, context).last().flatMap(this.client::getLroFinalResultOrError); } @@ -2876,8 +2875,8 @@ private Mono resyncAsync(String resourceName, String resourc * * The operation to resynchronize replication of an ASR migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -2888,9 +2887,9 @@ private Mono resyncAsync(String resourceName, String resourc * @return migration item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public MigrationItemInner resync(String resourceName, String resourceGroupName, String fabricName, + public MigrationItemInner resync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, ResyncInput input) { - return resyncAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + return resyncAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, input).block(); } @@ -2899,8 +2898,8 @@ public MigrationItemInner resync(String resourceName, String resourceGroupName, * * The operation to resynchronize replication of an ASR migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -2912,9 +2911,9 @@ public MigrationItemInner resync(String resourceName, String resourceGroupName, * @return migration item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public MigrationItemInner resync(String resourceName, String resourceGroupName, String fabricName, + public MigrationItemInner resync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, ResyncInput input, Context context) { - return resyncAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + return resyncAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, input, context).block(); } @@ -2923,8 +2922,8 @@ public MigrationItemInner resync(String resourceName, String resourceGroupName, * * The operation to initiate test migration of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -2935,20 +2934,20 @@ public MigrationItemInner resync(String resourceName, String resourceGroupName, * @return migration item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> testMigrateWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> testMigrateWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, TestMigrateInput testMigrateInput) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -2973,7 +2972,7 @@ private Mono>> testMigrateWithResponseAsync(String res final String accept = "application/json"; return FluxUtil .withContext(context -> service.testMigrate(this.client.getEndpoint(), this.client.getApiVersion(), - resourceName, resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, migrationItemName, testMigrateInput, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -2983,8 +2982,8 @@ private Mono>> testMigrateWithResponseAsync(String res * * The operation to initiate test migration of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -2996,20 +2995,20 @@ private Mono>> testMigrateWithResponseAsync(String res * @return migration item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> testMigrateWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> testMigrateWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, TestMigrateInput testMigrateInput, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -3033,8 +3032,8 @@ private Mono>> testMigrateWithResponseAsync(String res } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.testMigrate(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, migrationItemName, + return service.testMigrate(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, migrationItemName, testMigrateInput, accept, context); } @@ -3043,8 +3042,8 @@ private Mono>> testMigrateWithResponseAsync(String res * * The operation to initiate test migration of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -3055,10 +3054,10 @@ private Mono>> testMigrateWithResponseAsync(String res * @return the {@link PollerFlux} for polling of migration item. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, MigrationItemInner> beginTestMigrateAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, - TestMigrateInput testMigrateInput) { - Mono>> mono = testMigrateWithResponseAsync(resourceName, resourceGroupName, + private PollerFlux, MigrationItemInner> beginTestMigrateAsync( + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, + String migrationItemName, TestMigrateInput testMigrateInput) { + Mono>> mono = testMigrateWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, testMigrateInput); return this.client.getLroResult(mono, this.client.getHttpPipeline(), MigrationItemInner.class, MigrationItemInner.class, this.client.getContext()); @@ -3069,8 +3068,8 @@ private PollerFlux, MigrationItemInner> beginTest * * The operation to initiate test migration of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -3082,11 +3081,11 @@ private PollerFlux, MigrationItemInner> beginTest * @return the {@link PollerFlux} for polling of migration item. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, MigrationItemInner> beginTestMigrateAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, - TestMigrateInput testMigrateInput, Context context) { + private PollerFlux, MigrationItemInner> beginTestMigrateAsync( + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, + String migrationItemName, TestMigrateInput testMigrateInput, Context context) { context = this.client.mergeContext(context); - Mono>> mono = testMigrateWithResponseAsync(resourceName, resourceGroupName, + Mono>> mono = testMigrateWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, testMigrateInput, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), MigrationItemInner.class, MigrationItemInner.class, context); @@ -3097,8 +3096,8 @@ private PollerFlux, MigrationItemInner> beginTest * * The operation to initiate test migration of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -3109,11 +3108,11 @@ private PollerFlux, MigrationItemInner> beginTest * @return the {@link SyncPoller} for polling of migration item. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, MigrationItemInner> beginTestMigrate(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, + public SyncPoller, MigrationItemInner> beginTestMigrate(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName, TestMigrateInput testMigrateInput) { return this - .beginTestMigrateAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginTestMigrateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, testMigrateInput) .getSyncPoller(); } @@ -3123,8 +3122,8 @@ public SyncPoller, MigrationItemInner> beginTestM * * The operation to initiate test migration of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -3136,11 +3135,11 @@ public SyncPoller, MigrationItemInner> beginTestM * @return the {@link SyncPoller} for polling of migration item. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, MigrationItemInner> beginTestMigrate(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, + public SyncPoller, MigrationItemInner> beginTestMigrate(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName, TestMigrateInput testMigrateInput, Context context) { return this - .beginTestMigrateAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginTestMigrateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, testMigrateInput, context) .getSyncPoller(); } @@ -3150,8 +3149,8 @@ public SyncPoller, MigrationItemInner> beginTestM * * The operation to initiate test migration of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -3162,9 +3161,9 @@ public SyncPoller, MigrationItemInner> beginTestM * @return migration item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono testMigrateAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono testMigrateAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, TestMigrateInput testMigrateInput) { - return beginTestMigrateAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginTestMigrateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, testMigrateInput).last().flatMap(this.client::getLroFinalResultOrError); } @@ -3173,8 +3172,8 @@ private Mono testMigrateAsync(String resourceName, String re * * The operation to initiate test migration of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -3186,9 +3185,9 @@ private Mono testMigrateAsync(String resourceName, String re * @return migration item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono testMigrateAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono testMigrateAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, TestMigrateInput testMigrateInput, Context context) { - return beginTestMigrateAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginTestMigrateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, testMigrateInput, context).last().flatMap(this.client::getLroFinalResultOrError); } @@ -3197,8 +3196,8 @@ private Mono testMigrateAsync(String resourceName, String re * * The operation to initiate test migration of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -3209,9 +3208,9 @@ private Mono testMigrateAsync(String resourceName, String re * @return migration item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public MigrationItemInner testMigrate(String resourceName, String resourceGroupName, String fabricName, + public MigrationItemInner testMigrate(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, TestMigrateInput testMigrateInput) { - return testMigrateAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + return testMigrateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, testMigrateInput).block(); } @@ -3220,8 +3219,8 @@ public MigrationItemInner testMigrate(String resourceName, String resourceGroupN * * The operation to initiate test migration of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -3233,9 +3232,9 @@ public MigrationItemInner testMigrate(String resourceName, String resourceGroupN * @return migration item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public MigrationItemInner testMigrate(String resourceName, String resourceGroupName, String fabricName, + public MigrationItemInner testMigrate(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, TestMigrateInput testMigrateInput, Context context) { - return testMigrateAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + return testMigrateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, testMigrateInput, context).block(); } @@ -3244,8 +3243,8 @@ public MigrationItemInner testMigrate(String resourceName, String resourceGroupN * * The operation to initiate test migrate cleanup. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -3256,20 +3255,20 @@ public MigrationItemInner testMigrate(String resourceName, String resourceGroupN * @return migration item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> testMigrateCleanupWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, + private Mono>> testMigrateCleanupWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName, TestMigrateCleanupInput testMigrateCleanupInput) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -3294,7 +3293,7 @@ private Mono>> testMigrateCleanupWithResponseAsync(Str final String accept = "application/json"; return FluxUtil .withContext(context -> service.testMigrateCleanup(this.client.getEndpoint(), this.client.getApiVersion(), - resourceName, resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, migrationItemName, testMigrateCleanupInput, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -3304,8 +3303,8 @@ private Mono>> testMigrateCleanupWithResponseAsync(Str * * The operation to initiate test migrate cleanup. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -3317,20 +3316,20 @@ private Mono>> testMigrateCleanupWithResponseAsync(Str * @return migration item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> testMigrateCleanupWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, + private Mono>> testMigrateCleanupWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String migrationItemName, TestMigrateCleanupInput testMigrateCleanupInput, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -3354,8 +3353,8 @@ private Mono>> testMigrateCleanupWithResponseAsync(Str } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.testMigrateCleanup(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, migrationItemName, + return service.testMigrateCleanup(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, migrationItemName, testMigrateCleanupInput, accept, context); } @@ -3364,8 +3363,8 @@ private Mono>> testMigrateCleanupWithResponseAsync(Str * * The operation to initiate test migrate cleanup. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -3377,9 +3376,9 @@ private Mono>> testMigrateCleanupWithResponseAsync(Str */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, MigrationItemInner> beginTestMigrateCleanupAsync( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, TestMigrateCleanupInput testMigrateCleanupInput) { - Mono>> mono = testMigrateCleanupWithResponseAsync(resourceName, resourceGroupName, + Mono>> mono = testMigrateCleanupWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, testMigrateCleanupInput); return this.client.getLroResult(mono, this.client.getHttpPipeline(), MigrationItemInner.class, MigrationItemInner.class, this.client.getContext()); @@ -3390,8 +3389,8 @@ private PollerFlux, MigrationItemInner> beginTest * * The operation to initiate test migrate cleanup. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -3404,10 +3403,10 @@ private PollerFlux, MigrationItemInner> beginTest */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, MigrationItemInner> beginTestMigrateCleanupAsync( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, TestMigrateCleanupInput testMigrateCleanupInput, Context context) { context = this.client.mergeContext(context); - Mono>> mono = testMigrateCleanupWithResponseAsync(resourceName, resourceGroupName, + Mono>> mono = testMigrateCleanupWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, testMigrateCleanupInput, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), MigrationItemInner.class, MigrationItemInner.class, context); @@ -3418,8 +3417,8 @@ private PollerFlux, MigrationItemInner> beginTest * * The operation to initiate test migrate cleanup. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -3430,11 +3429,11 @@ private PollerFlux, MigrationItemInner> beginTest * @return the {@link SyncPoller} for polling of migration item. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, MigrationItemInner> beginTestMigrateCleanup(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, - TestMigrateCleanupInput testMigrateCleanupInput) { + public SyncPoller, MigrationItemInner> beginTestMigrateCleanup( + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, + String migrationItemName, TestMigrateCleanupInput testMigrateCleanupInput) { return this - .beginTestMigrateCleanupAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginTestMigrateCleanupAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, testMigrateCleanupInput) .getSyncPoller(); } @@ -3444,8 +3443,8 @@ public SyncPoller, MigrationItemInner> beginTestM * * The operation to initiate test migrate cleanup. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -3457,11 +3456,11 @@ public SyncPoller, MigrationItemInner> beginTestM * @return the {@link SyncPoller} for polling of migration item. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, MigrationItemInner> beginTestMigrateCleanup(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String migrationItemName, - TestMigrateCleanupInput testMigrateCleanupInput, Context context) { + public SyncPoller, MigrationItemInner> beginTestMigrateCleanup( + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, + String migrationItemName, TestMigrateCleanupInput testMigrateCleanupInput, Context context) { return this - .beginTestMigrateCleanupAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginTestMigrateCleanupAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, testMigrateCleanupInput, context) .getSyncPoller(); } @@ -3471,8 +3470,8 @@ public SyncPoller, MigrationItemInner> beginTestM * * The operation to initiate test migrate cleanup. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -3483,10 +3482,10 @@ public SyncPoller, MigrationItemInner> beginTestM * @return migration item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono testMigrateCleanupAsync(String resourceName, String resourceGroupName, + private Mono testMigrateCleanupAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, TestMigrateCleanupInput testMigrateCleanupInput) { - return beginTestMigrateCleanupAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginTestMigrateCleanupAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, testMigrateCleanupInput).last().flatMap(this.client::getLroFinalResultOrError); } @@ -3495,8 +3494,8 @@ private Mono testMigrateCleanupAsync(String resourceName, St * * The operation to initiate test migrate cleanup. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -3508,10 +3507,10 @@ private Mono testMigrateCleanupAsync(String resourceName, St * @return migration item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono testMigrateCleanupAsync(String resourceName, String resourceGroupName, + private Mono testMigrateCleanupAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, TestMigrateCleanupInput testMigrateCleanupInput, Context context) { - return beginTestMigrateCleanupAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginTestMigrateCleanupAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, testMigrateCleanupInput, context).last().flatMap(this.client::getLroFinalResultOrError); } @@ -3520,8 +3519,8 @@ private Mono testMigrateCleanupAsync(String resourceName, St * * The operation to initiate test migrate cleanup. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -3532,9 +3531,9 @@ private Mono testMigrateCleanupAsync(String resourceName, St * @return migration item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public MigrationItemInner testMigrateCleanup(String resourceName, String resourceGroupName, String fabricName, + public MigrationItemInner testMigrateCleanup(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, TestMigrateCleanupInput testMigrateCleanupInput) { - return testMigrateCleanupAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return testMigrateCleanupAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, testMigrateCleanupInput).block(); } @@ -3543,8 +3542,8 @@ public MigrationItemInner testMigrateCleanup(String resourceName, String resourc * * The operation to initiate test migrate cleanup. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -3556,18 +3555,18 @@ public MigrationItemInner testMigrateCleanup(String resourceName, String resourc * @return migration item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public MigrationItemInner testMigrateCleanup(String resourceName, String resourceGroupName, String fabricName, + public MigrationItemInner testMigrateCleanup(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, TestMigrateCleanupInput testMigrateCleanupInput, Context context) { - return testMigrateCleanupAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return testMigrateCleanupAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, testMigrateCleanupInput, context).block(); } /** * Gets the list of migration items in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param skipToken The pagination token. * @param takeToken The page size. * @param filter OData filter options. @@ -3578,27 +3577,28 @@ public MigrationItemInner testMigrateCleanup(String resourceName, String resourc * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceName, String resourceGroupName, + private Mono> listSinglePageAsync(String resourceGroupName, String resourceName, String skipToken, String takeToken, String filter) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), skipToken, takeToken, filter, accept, context)) + .withContext( + context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), skipToken, takeToken, filter, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -3607,8 +3607,8 @@ private Mono> listSinglePageAsync(String resou /** * Gets the list of migration items in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param skipToken The pagination token. * @param takeToken The page size. * @param filter OData filter options. @@ -3620,19 +3620,19 @@ private Mono> listSinglePageAsync(String resou * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceName, String resourceGroupName, + private Mono> listSinglePageAsync(String resourceGroupName, String resourceName, String skipToken, String takeToken, String filter, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -3640,7 +3640,7 @@ private Mono> listSinglePageAsync(String resou final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + .list(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), skipToken, takeToken, filter, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); @@ -3649,8 +3649,8 @@ private Mono> listSinglePageAsync(String resou /** * Gets the list of migration items in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param skipToken The pagination token. * @param takeToken The page size. * @param filter OData filter options. @@ -3660,36 +3660,36 @@ private Mono> listSinglePageAsync(String resou * @return the list of migration items in the vault as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceName, String resourceGroupName, String skipToken, + private PagedFlux listAsync(String resourceGroupName, String resourceName, String skipToken, String takeToken, String filter) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceName, resourceGroupName, skipToken, takeToken, filter), + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName, skipToken, takeToken, filter), nextLink -> listNextSinglePageAsync(nextLink)); } /** * Gets the list of migration items in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of migration items in the vault as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceName, String resourceGroupName) { + private PagedFlux listAsync(String resourceGroupName, String resourceName) { final String skipToken = null; final String takeToken = null; final String filter = null; - return new PagedFlux<>(() -> listSinglePageAsync(resourceName, resourceGroupName, skipToken, takeToken, filter), + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName, skipToken, takeToken, filter), nextLink -> listNextSinglePageAsync(nextLink)); } /** * Gets the list of migration items in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param skipToken The pagination token. * @param takeToken The page size. * @param filter OData filter options. @@ -3700,36 +3700,36 @@ private PagedFlux listAsync(String resourceName, String reso * @return the list of migration items in the vault as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceName, String resourceGroupName, String skipToken, + private PagedFlux listAsync(String resourceGroupName, String resourceName, String skipToken, String takeToken, String filter, Context context) { return new PagedFlux<>( - () -> listSinglePageAsync(resourceName, resourceGroupName, skipToken, takeToken, filter, context), + () -> listSinglePageAsync(resourceGroupName, resourceName, skipToken, takeToken, filter, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } /** * Gets the list of migration items in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of migration items in the vault as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceName, String resourceGroupName) { + public PagedIterable list(String resourceGroupName, String resourceName) { final String skipToken = null; final String takeToken = null; final String filter = null; - return new PagedIterable<>(listAsync(resourceName, resourceGroupName, skipToken, takeToken, filter)); + return new PagedIterable<>(listAsync(resourceGroupName, resourceName, skipToken, takeToken, filter)); } /** * Gets the list of migration items in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param skipToken The pagination token. * @param takeToken The page size. * @param filter OData filter options. @@ -3740,9 +3740,9 @@ public PagedIterable list(String resourceName, String resour * @return the list of migration items in the vault as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceName, String resourceGroupName, String skipToken, + public PagedIterable list(String resourceGroupName, String resourceName, String skipToken, String takeToken, String filter, Context context) { - return new PagedIterable<>(listAsync(resourceName, resourceGroupName, skipToken, takeToken, filter, context)); + return new PagedIterable<>(listAsync(resourceGroupName, resourceName, skipToken, takeToken, filter, context)); } /** diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationMigrationItemsImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationMigrationItemsImpl.java index 995a9e7ff49a..47e4a1a1b2c1 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationMigrationItemsImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationMigrationItemsImpl.java @@ -33,27 +33,27 @@ public ReplicationMigrationItemsImpl(ReplicationMigrationItemsClient innerClient this.serviceManager = serviceManager; } - public PagedIterable listByReplicationProtectionContainers(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName) { + public PagedIterable listByReplicationProtectionContainers(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName) { PagedIterable inner = this.serviceClient() - .listByReplicationProtectionContainers(resourceName, resourceGroupName, fabricName, + .listByReplicationProtectionContainers(resourceGroupName, resourceName, fabricName, protectionContainerName); return ResourceManagerUtils.mapPage(inner, inner1 -> new MigrationItemImpl(inner1, this.manager())); } - public PagedIterable listByReplicationProtectionContainers(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String skipToken, String takeToken, + public PagedIterable listByReplicationProtectionContainers(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String skipToken, String takeToken, String filter, Context context) { PagedIterable inner = this.serviceClient() - .listByReplicationProtectionContainers(resourceName, resourceGroupName, fabricName, protectionContainerName, + .listByReplicationProtectionContainers(resourceGroupName, resourceName, fabricName, protectionContainerName, skipToken, takeToken, filter, context); return ResourceManagerUtils.mapPage(inner, inner1 -> new MigrationItemImpl(inner1, this.manager())); } - public Response getWithResponse(String resourceName, String resourceGroupName, String fabricName, + public Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, Context context) { Response inner = this.serviceClient() - .getWithResponse(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + .getWithResponse(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, context); if (inner != null) { return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), @@ -63,10 +63,10 @@ public Response getWithResponse(String resourceName, String resou } } - public MigrationItem get(String resourceName, String resourceGroupName, String fabricName, + public MigrationItem get(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName) { MigrationItemInner inner = this.serviceClient() - .get(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName); + .get(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName); if (inner != null) { return new MigrationItemImpl(inner, this.manager()); } else { @@ -74,23 +74,23 @@ public MigrationItem get(String resourceName, String resourceGroupName, String f } } - public void delete(String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + public void delete(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName) { this.serviceClient() - .delete(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName); + .delete(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName); } - public void delete(String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + public void delete(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, String deleteOption, Context context) { this.serviceClient() - .delete(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + .delete(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, deleteOption, context); } - public MigrationItem migrate(String resourceName, String resourceGroupName, String fabricName, + public MigrationItem migrate(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, MigrateInput migrateInput) { MigrationItemInner inner = this.serviceClient() - .migrate(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + .migrate(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, migrateInput); if (inner != null) { return new MigrationItemImpl(inner, this.manager()); @@ -99,10 +99,10 @@ public MigrationItem migrate(String resourceName, String resourceGroupName, Stri } } - public MigrationItem migrate(String resourceName, String resourceGroupName, String fabricName, + public MigrationItem migrate(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, MigrateInput migrateInput, Context context) { MigrationItemInner inner = this.serviceClient() - .migrate(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + .migrate(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, migrateInput, context); if (inner != null) { return new MigrationItemImpl(inner, this.manager()); @@ -111,10 +111,10 @@ public MigrationItem migrate(String resourceName, String resourceGroupName, Stri } } - public MigrationItem pauseReplication(String resourceName, String resourceGroupName, String fabricName, + public MigrationItem pauseReplication(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, PauseReplicationInput pauseReplicationInput) { MigrationItemInner inner = this.serviceClient() - .pauseReplication(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + .pauseReplication(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, pauseReplicationInput); if (inner != null) { return new MigrationItemImpl(inner, this.manager()); @@ -123,11 +123,11 @@ public MigrationItem pauseReplication(String resourceName, String resourceGroupN } } - public MigrationItem pauseReplication(String resourceName, String resourceGroupName, String fabricName, + public MigrationItem pauseReplication(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, PauseReplicationInput pauseReplicationInput, Context context) { MigrationItemInner inner = this.serviceClient() - .pauseReplication(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + .pauseReplication(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, pauseReplicationInput, context); if (inner != null) { return new MigrationItemImpl(inner, this.manager()); @@ -136,10 +136,10 @@ public MigrationItem pauseReplication(String resourceName, String resourceGroupN } } - public MigrationItem resumeReplication(String resourceName, String resourceGroupName, String fabricName, + public MigrationItem resumeReplication(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, ResumeReplicationInput resumeReplicationInput) { MigrationItemInner inner = this.serviceClient() - .resumeReplication(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + .resumeReplication(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, resumeReplicationInput); if (inner != null) { return new MigrationItemImpl(inner, this.manager()); @@ -148,11 +148,11 @@ public MigrationItem resumeReplication(String resourceName, String resourceGroup } } - public MigrationItem resumeReplication(String resourceName, String resourceGroupName, String fabricName, + public MigrationItem resumeReplication(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, ResumeReplicationInput resumeReplicationInput, Context context) { MigrationItemInner inner = this.serviceClient() - .resumeReplication(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + .resumeReplication(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, resumeReplicationInput, context); if (inner != null) { return new MigrationItemImpl(inner, this.manager()); @@ -161,10 +161,10 @@ public MigrationItem resumeReplication(String resourceName, String resourceGroup } } - public MigrationItem resync(String resourceName, String resourceGroupName, String fabricName, + public MigrationItem resync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, ResyncInput input) { MigrationItemInner inner = this.serviceClient() - .resync(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, input); + .resync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, input); if (inner != null) { return new MigrationItemImpl(inner, this.manager()); } else { @@ -172,10 +172,10 @@ public MigrationItem resync(String resourceName, String resourceGroupName, Strin } } - public MigrationItem resync(String resourceName, String resourceGroupName, String fabricName, + public MigrationItem resync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, ResyncInput input, Context context) { MigrationItemInner inner = this.serviceClient() - .resync(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, input, + .resync(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, input, context); if (inner != null) { return new MigrationItemImpl(inner, this.manager()); @@ -184,10 +184,10 @@ public MigrationItem resync(String resourceName, String resourceGroupName, Strin } } - public MigrationItem testMigrate(String resourceName, String resourceGroupName, String fabricName, + public MigrationItem testMigrate(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, TestMigrateInput testMigrateInput) { MigrationItemInner inner = this.serviceClient() - .testMigrate(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + .testMigrate(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, testMigrateInput); if (inner != null) { return new MigrationItemImpl(inner, this.manager()); @@ -196,10 +196,10 @@ public MigrationItem testMigrate(String resourceName, String resourceGroupName, } } - public MigrationItem testMigrate(String resourceName, String resourceGroupName, String fabricName, + public MigrationItem testMigrate(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, TestMigrateInput testMigrateInput, Context context) { MigrationItemInner inner = this.serviceClient() - .testMigrate(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + .testMigrate(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, testMigrateInput, context); if (inner != null) { return new MigrationItemImpl(inner, this.manager()); @@ -208,10 +208,10 @@ public MigrationItem testMigrate(String resourceName, String resourceGroupName, } } - public MigrationItem testMigrateCleanup(String resourceName, String resourceGroupName, String fabricName, + public MigrationItem testMigrateCleanup(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, TestMigrateCleanupInput testMigrateCleanupInput) { MigrationItemInner inner = this.serviceClient() - .testMigrateCleanup(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + .testMigrateCleanup(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, testMigrateCleanupInput); if (inner != null) { return new MigrationItemImpl(inner, this.manager()); @@ -220,11 +220,11 @@ public MigrationItem testMigrateCleanup(String resourceName, String resourceGrou } } - public MigrationItem testMigrateCleanup(String resourceName, String resourceGroupName, String fabricName, + public MigrationItem testMigrateCleanup(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, TestMigrateCleanupInput testMigrateCleanupInput, Context context) { MigrationItemInner inner = this.serviceClient() - .testMigrateCleanup(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + .testMigrateCleanup(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, testMigrateCleanupInput, context); if (inner != null) { return new MigrationItemImpl(inner, this.manager()); @@ -233,29 +233,29 @@ public MigrationItem testMigrateCleanup(String resourceName, String resourceGrou } } - public PagedIterable list(String resourceName, String resourceGroupName) { - PagedIterable inner = this.serviceClient().list(resourceName, resourceGroupName); + public PagedIterable list(String resourceGroupName, String resourceName) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, resourceName); return ResourceManagerUtils.mapPage(inner, inner1 -> new MigrationItemImpl(inner1, this.manager())); } - public PagedIterable list(String resourceName, String resourceGroupName, String skipToken, + public PagedIterable list(String resourceGroupName, String resourceName, String skipToken, String takeToken, String filter, Context context) { PagedIterable inner - = this.serviceClient().list(resourceName, resourceGroupName, skipToken, takeToken, filter, context); + = this.serviceClient().list(resourceGroupName, resourceName, skipToken, takeToken, filter, context); return ResourceManagerUtils.mapPage(inner, inner1 -> new MigrationItemImpl(inner1, this.manager())); } public MigrationItem getById(String id) { - String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); - if (resourceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); - } String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); + if (resourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); + } String fabricName = ResourceManagerUtils.getValueFromIdByName(id, "replicationFabrics"); if (fabricName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( @@ -273,22 +273,22 @@ public MigrationItem getById(String id) { .format("The resource ID '%s' is not valid. Missing path segment 'replicationMigrationItems'.", id))); } return this - .getWithResponse(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + .getWithResponse(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, Context.NONE) .getValue(); } public Response getByIdWithResponse(String id, Context context) { - String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); - if (resourceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); - } String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); + if (resourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); + } String fabricName = ResourceManagerUtils.getValueFromIdByName(id, "replicationFabrics"); if (fabricName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( @@ -305,21 +305,21 @@ public Response getByIdWithResponse(String id, Context context) { throw LOGGER.logExceptionAsError(new IllegalArgumentException(String .format("The resource ID '%s' is not valid. Missing path segment 'replicationMigrationItems'.", id))); } - return this.getWithResponse(resourceName, resourceGroupName, fabricName, protectionContainerName, + return this.getWithResponse(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, context); } public void deleteById(String id) { - String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); - if (resourceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); - } String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); + if (resourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); + } String fabricName = ResourceManagerUtils.getValueFromIdByName(id, "replicationFabrics"); if (fabricName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( @@ -337,21 +337,21 @@ public void deleteById(String id) { .format("The resource ID '%s' is not valid. Missing path segment 'replicationMigrationItems'.", id))); } String localDeleteOption = null; - this.delete(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + this.delete(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, localDeleteOption, Context.NONE); } public void deleteByIdWithResponse(String id, String deleteOption, Context context) { - String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); - if (resourceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); - } String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); + if (resourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); + } String fabricName = ResourceManagerUtils.getValueFromIdByName(id, "replicationFabrics"); if (fabricName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( @@ -368,7 +368,7 @@ public void deleteByIdWithResponse(String id, String deleteOption, Context conte throw LOGGER.logExceptionAsError(new IllegalArgumentException(String .format("The resource ID '%s' is not valid. Missing path segment 'replicationMigrationItems'.", id))); } - this.delete(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, + this.delete(resourceGroupName, resourceName, fabricName, protectionContainerName, migrationItemName, deleteOption, context); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationNetworkMappingsClientImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationNetworkMappingsClientImpl.java index 2c35f8f9903f..4234582ae28a 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationNetworkMappingsClientImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationNetworkMappingsClientImpl.java @@ -78,31 +78,31 @@ public interface ReplicationNetworkMappingsService { @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByReplicationNetworks(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, - @PathParam("networkName") String networkName, @HeaderParam("Accept") String accept, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("networkName") String networkName, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationNetworks/{networkName}/replicationNetworkMappings/{networkMappingName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, - @PathParam("networkName") String networkName, @PathParam("networkMappingName") String networkMappingName, - @HeaderParam("Accept") String accept, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("networkName") String networkName, + @PathParam("networkMappingName") String networkMappingName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationNetworks/{networkName}/replicationNetworkMappings/{networkMappingName}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> create(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, - @PathParam("networkName") String networkName, @PathParam("networkMappingName") String networkMappingName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("networkName") String networkName, + @PathParam("networkMappingName") String networkMappingName, @BodyParam("application/json") CreateNetworkMappingInput input, @HeaderParam("Accept") String accept, Context context); @@ -111,21 +111,20 @@ Mono>> create(@HostParam("$host") String endpoint, @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> delete(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, - @PathParam("networkName") String networkName, @PathParam("networkMappingName") String networkMappingName, - Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("networkName") String networkName, + @PathParam("networkMappingName") String networkMappingName, Context context); @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationNetworks/{networkName}/replicationNetworkMappings/{networkMappingName}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> update(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, - @PathParam("networkName") String networkName, @PathParam("networkMappingName") String networkMappingName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("networkName") String networkName, + @PathParam("networkMappingName") String networkMappingName, @BodyParam("application/json") UpdateNetworkMappingInput input, @HeaderParam("Accept") String accept, Context context); @@ -134,9 +133,9 @@ Mono>> update(@HostParam("$host") String endpoint, @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> list(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @@ -160,8 +159,8 @@ Mono> listNext( * * Lists all ASR network mappings for the specified network. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -170,19 +169,19 @@ Mono> listNext( * @return list of network mappings along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByReplicationNetworksSinglePageAsync(String resourceName, - String resourceGroupName, String fabricName, String networkName) { + private Mono> listByReplicationNetworksSinglePageAsync(String resourceGroupName, + String resourceName, String fabricName, String networkName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -196,7 +195,7 @@ private Mono> listByReplicationNetworksSingle final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByReplicationNetworks(this.client.getEndpoint(), - this.client.getApiVersion(), resourceName, resourceGroupName, this.client.getSubscriptionId(), + this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, networkName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) @@ -208,8 +207,8 @@ private Mono> listByReplicationNetworksSingle * * Lists all ASR network mappings for the specified network. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param context The context to associate with this operation. @@ -219,19 +218,19 @@ private Mono> listByReplicationNetworksSingle * @return list of network mappings along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByReplicationNetworksSinglePageAsync(String resourceName, - String resourceGroupName, String fabricName, String networkName, Context context) { + private Mono> listByReplicationNetworksSinglePageAsync(String resourceGroupName, + String resourceName, String fabricName, String networkName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -245,8 +244,8 @@ private Mono> listByReplicationNetworksSingle final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByReplicationNetworks(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, networkName, accept, context) + .listByReplicationNetworks(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), fabricName, networkName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -256,8 +255,8 @@ private Mono> listByReplicationNetworksSingle * * Lists all ASR network mappings for the specified network. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -266,10 +265,10 @@ private Mono> listByReplicationNetworksSingle * @return list of network mappings as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByReplicationNetworksAsync(String resourceName, String resourceGroupName, + private PagedFlux listByReplicationNetworksAsync(String resourceGroupName, String resourceName, String fabricName, String networkName) { return new PagedFlux<>( - () -> listByReplicationNetworksSinglePageAsync(resourceName, resourceGroupName, fabricName, networkName), + () -> listByReplicationNetworksSinglePageAsync(resourceGroupName, resourceName, fabricName, networkName), nextLink -> listByReplicationNetworksNextSinglePageAsync(nextLink)); } @@ -278,8 +277,8 @@ private PagedFlux listByReplicationNetworksAsync(String res * * Lists all ASR network mappings for the specified network. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param context The context to associate with this operation. @@ -289,9 +288,9 @@ private PagedFlux listByReplicationNetworksAsync(String res * @return list of network mappings as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByReplicationNetworksAsync(String resourceName, String resourceGroupName, + private PagedFlux listByReplicationNetworksAsync(String resourceGroupName, String resourceName, String fabricName, String networkName, Context context) { - return new PagedFlux<>(() -> listByReplicationNetworksSinglePageAsync(resourceName, resourceGroupName, + return new PagedFlux<>(() -> listByReplicationNetworksSinglePageAsync(resourceGroupName, resourceName, fabricName, networkName, context), nextLink -> listByReplicationNetworksNextSinglePageAsync(nextLink, context)); } @@ -301,8 +300,8 @@ private PagedFlux listByReplicationNetworksAsync(String res * * Lists all ASR network mappings for the specified network. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -311,10 +310,10 @@ private PagedFlux listByReplicationNetworksAsync(String res * @return list of network mappings as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByReplicationNetworks(String resourceName, String resourceGroupName, + public PagedIterable listByReplicationNetworks(String resourceGroupName, String resourceName, String fabricName, String networkName) { return new PagedIterable<>( - listByReplicationNetworksAsync(resourceName, resourceGroupName, fabricName, networkName)); + listByReplicationNetworksAsync(resourceGroupName, resourceName, fabricName, networkName)); } /** @@ -322,8 +321,8 @@ public PagedIterable listByReplicationNetworks(String resou * * Lists all ASR network mappings for the specified network. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param context The context to associate with this operation. @@ -333,10 +332,10 @@ public PagedIterable listByReplicationNetworks(String resou * @return list of network mappings as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByReplicationNetworks(String resourceName, String resourceGroupName, + public PagedIterable listByReplicationNetworks(String resourceGroupName, String resourceName, String fabricName, String networkName, Context context) { return new PagedIterable<>( - listByReplicationNetworksAsync(resourceName, resourceGroupName, fabricName, networkName, context)); + listByReplicationNetworksAsync(resourceGroupName, resourceName, fabricName, networkName, context)); } /** @@ -344,8 +343,8 @@ public PagedIterable listByReplicationNetworks(String resou * * Gets the details of an ASR network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName Network mapping name. @@ -356,19 +355,19 @@ public PagedIterable listByReplicationNetworks(String resou * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceName, String resourceGroupName, + private Mono> getWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String networkName, String networkMappingName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -385,9 +384,9 @@ private Mono> getWithResponseAsync(String resource } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, networkName, networkMappingName, accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, networkName, + networkMappingName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -396,8 +395,8 @@ private Mono> getWithResponseAsync(String resource * * Gets the details of an ASR network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName Network mapping name. @@ -409,19 +408,19 @@ private Mono> getWithResponseAsync(String resource * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceName, String resourceGroupName, + private Mono> getWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String networkName, String networkMappingName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -438,7 +437,7 @@ private Mono> getWithResponseAsync(String resource } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, networkName, networkMappingName, accept, context); } @@ -447,8 +446,8 @@ private Mono> getWithResponseAsync(String resource * * Gets the details of an ASR network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName Network mapping name. @@ -458,9 +457,9 @@ private Mono> getWithResponseAsync(String resource * @return the details of an ASR network mapping on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono getAsync(String resourceGroupName, String resourceName, String fabricName, String networkName, String networkMappingName) { - return getWithResponseAsync(resourceName, resourceGroupName, fabricName, networkName, networkMappingName) + return getWithResponseAsync(resourceGroupName, resourceName, fabricName, networkName, networkMappingName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } @@ -469,8 +468,8 @@ private Mono getAsync(String resourceName, String resourceG * * Gets the details of an ASR network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName Network mapping name. @@ -481,9 +480,9 @@ private Mono getAsync(String resourceName, String resourceG * @return the details of an ASR network mapping along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceName, String resourceGroupName, + public Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String networkName, String networkMappingName, Context context) { - return getWithResponseAsync(resourceName, resourceGroupName, fabricName, networkName, networkMappingName, + return getWithResponseAsync(resourceGroupName, resourceName, fabricName, networkName, networkMappingName, context).block(); } @@ -492,8 +491,8 @@ public Response getWithResponse(String resourceName, String * * Gets the details of an ASR network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName Network mapping name. @@ -503,9 +502,9 @@ public Response getWithResponse(String resourceName, String * @return the details of an ASR network mapping. */ @ServiceMethod(returns = ReturnType.SINGLE) - public NetworkMappingInner get(String resourceName, String resourceGroupName, String fabricName, String networkName, + public NetworkMappingInner get(String resourceGroupName, String resourceName, String fabricName, String networkName, String networkMappingName) { - return getWithResponse(resourceName, resourceGroupName, fabricName, networkName, networkMappingName, + return getWithResponse(resourceGroupName, resourceName, fabricName, networkName, networkMappingName, Context.NONE).getValue(); } @@ -514,8 +513,8 @@ public NetworkMappingInner get(String resourceName, String resourceGroupName, St * * The operation to create an ASR network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName Network mapping name. @@ -526,19 +525,19 @@ public NetworkMappingInner get(String resourceName, String resourceGroupName, St * @return network Mapping model along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> createWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String networkName, String networkMappingName, CreateNetworkMappingInput input) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -560,9 +559,9 @@ private Mono>> createWithResponseAsync(String resource } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, networkName, networkMappingName, input, - accept, context)) + .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, networkName, + networkMappingName, input, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -571,8 +570,8 @@ private Mono>> createWithResponseAsync(String resource * * The operation to create an ASR network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName Network mapping name. @@ -584,20 +583,20 @@ private Mono>> createWithResponseAsync(String resource * @return network Mapping model along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> createWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String networkName, String networkMappingName, CreateNetworkMappingInput input, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -619,7 +618,7 @@ private Mono>> createWithResponseAsync(String resource } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.create(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.create(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, networkName, networkMappingName, input, accept, context); } @@ -628,8 +627,8 @@ private Mono>> createWithResponseAsync(String resource * * The operation to create an ASR network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName Network mapping name. @@ -640,10 +639,10 @@ private Mono>> createWithResponseAsync(String resource * @return the {@link PollerFlux} for polling of network Mapping model. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, NetworkMappingInner> beginCreateAsync(String resourceName, - String resourceGroupName, String fabricName, String networkName, String networkMappingName, + private PollerFlux, NetworkMappingInner> beginCreateAsync(String resourceGroupName, + String resourceName, String fabricName, String networkName, String networkMappingName, CreateNetworkMappingInput input) { - Mono>> mono = createWithResponseAsync(resourceName, resourceGroupName, fabricName, + Mono>> mono = createWithResponseAsync(resourceGroupName, resourceName, fabricName, networkName, networkMappingName, input); return this.client.getLroResult(mono, this.client.getHttpPipeline(), NetworkMappingInner.class, NetworkMappingInner.class, this.client.getContext()); @@ -654,8 +653,8 @@ private PollerFlux, NetworkMappingInner> beginCr * * The operation to create an ASR network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName Network mapping name. @@ -667,11 +666,11 @@ private PollerFlux, NetworkMappingInner> beginCr * @return the {@link PollerFlux} for polling of network Mapping model. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, NetworkMappingInner> beginCreateAsync(String resourceName, - String resourceGroupName, String fabricName, String networkName, String networkMappingName, + private PollerFlux, NetworkMappingInner> beginCreateAsync(String resourceGroupName, + String resourceName, String fabricName, String networkName, String networkMappingName, CreateNetworkMappingInput input, Context context) { context = this.client.mergeContext(context); - Mono>> mono = createWithResponseAsync(resourceName, resourceGroupName, fabricName, + Mono>> mono = createWithResponseAsync(resourceGroupName, resourceName, fabricName, networkName, networkMappingName, input, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), NetworkMappingInner.class, NetworkMappingInner.class, context); @@ -682,8 +681,8 @@ private PollerFlux, NetworkMappingInner> beginCr * * The operation to create an ASR network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName Network mapping name. @@ -694,11 +693,11 @@ private PollerFlux, NetworkMappingInner> beginCr * @return the {@link SyncPoller} for polling of network Mapping model. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, NetworkMappingInner> beginCreate(String resourceName, - String resourceGroupName, String fabricName, String networkName, String networkMappingName, + public SyncPoller, NetworkMappingInner> beginCreate(String resourceGroupName, + String resourceName, String fabricName, String networkName, String networkMappingName, CreateNetworkMappingInput input) { return this - .beginCreateAsync(resourceName, resourceGroupName, fabricName, networkName, networkMappingName, input) + .beginCreateAsync(resourceGroupName, resourceName, fabricName, networkName, networkMappingName, input) .getSyncPoller(); } @@ -707,8 +706,8 @@ public SyncPoller, NetworkMappingInner> beginCre * * The operation to create an ASR network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName Network mapping name. @@ -720,11 +719,11 @@ public SyncPoller, NetworkMappingInner> beginCre * @return the {@link SyncPoller} for polling of network Mapping model. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, NetworkMappingInner> beginCreate(String resourceName, - String resourceGroupName, String fabricName, String networkName, String networkMappingName, + public SyncPoller, NetworkMappingInner> beginCreate(String resourceGroupName, + String resourceName, String fabricName, String networkName, String networkMappingName, CreateNetworkMappingInput input, Context context) { return this - .beginCreateAsync(resourceName, resourceGroupName, fabricName, networkName, networkMappingName, input, + .beginCreateAsync(resourceGroupName, resourceName, fabricName, networkName, networkMappingName, input, context) .getSyncPoller(); } @@ -734,8 +733,8 @@ public SyncPoller, NetworkMappingInner> beginCre * * The operation to create an ASR network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName Network mapping name. @@ -746,9 +745,9 @@ public SyncPoller, NetworkMappingInner> beginCre * @return network Mapping model on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono createAsync(String resourceGroupName, String resourceName, String fabricName, String networkName, String networkMappingName, CreateNetworkMappingInput input) { - return beginCreateAsync(resourceName, resourceGroupName, fabricName, networkName, networkMappingName, input) + return beginCreateAsync(resourceGroupName, resourceName, fabricName, networkName, networkMappingName, input) .last() .flatMap(this.client::getLroFinalResultOrError); } @@ -758,8 +757,8 @@ private Mono createAsync(String resourceName, String resour * * The operation to create an ASR network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName Network mapping name. @@ -771,9 +770,9 @@ private Mono createAsync(String resourceName, String resour * @return network Mapping model on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono createAsync(String resourceGroupName, String resourceName, String fabricName, String networkName, String networkMappingName, CreateNetworkMappingInput input, Context context) { - return beginCreateAsync(resourceName, resourceGroupName, fabricName, networkName, networkMappingName, input, + return beginCreateAsync(resourceGroupName, resourceName, fabricName, networkName, networkMappingName, input, context).last().flatMap(this.client::getLroFinalResultOrError); } @@ -782,8 +781,8 @@ private Mono createAsync(String resourceName, String resour * * The operation to create an ASR network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName Network mapping name. @@ -794,9 +793,9 @@ private Mono createAsync(String resourceName, String resour * @return network Mapping model. */ @ServiceMethod(returns = ReturnType.SINGLE) - public NetworkMappingInner create(String resourceName, String resourceGroupName, String fabricName, + public NetworkMappingInner create(String resourceGroupName, String resourceName, String fabricName, String networkName, String networkMappingName, CreateNetworkMappingInput input) { - return createAsync(resourceName, resourceGroupName, fabricName, networkName, networkMappingName, input).block(); + return createAsync(resourceGroupName, resourceName, fabricName, networkName, networkMappingName, input).block(); } /** @@ -804,8 +803,8 @@ public NetworkMappingInner create(String resourceName, String resourceGroupName, * * The operation to create an ASR network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName Network mapping name. @@ -817,9 +816,9 @@ public NetworkMappingInner create(String resourceName, String resourceGroupName, * @return network Mapping model. */ @ServiceMethod(returns = ReturnType.SINGLE) - public NetworkMappingInner create(String resourceName, String resourceGroupName, String fabricName, + public NetworkMappingInner create(String resourceGroupName, String resourceName, String fabricName, String networkName, String networkMappingName, CreateNetworkMappingInput input, Context context) { - return createAsync(resourceName, resourceGroupName, fabricName, networkName, networkMappingName, input, context) + return createAsync(resourceGroupName, resourceName, fabricName, networkName, networkMappingName, input, context) .block(); } @@ -828,8 +827,8 @@ public NetworkMappingInner create(String resourceName, String resourceGroupName, * * The operation to delete a network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName ARM Resource Name for network mapping. @@ -839,19 +838,19 @@ public NetworkMappingInner create(String resourceName, String resourceGroupName, * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String networkName, String networkMappingName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -867,9 +866,9 @@ private Mono>> deleteWithResponseAsync(String resource .error(new IllegalArgumentException("Parameter networkMappingName is required and cannot be null.")); } return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, networkName, networkMappingName, - context)) + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, networkName, + networkMappingName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -878,8 +877,8 @@ private Mono>> deleteWithResponseAsync(String resource * * The operation to delete a network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName ARM Resource Name for network mapping. @@ -890,19 +889,19 @@ private Mono>> deleteWithResponseAsync(String resource * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String networkName, String networkMappingName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -918,7 +917,7 @@ private Mono>> deleteWithResponseAsync(String resource .error(new IllegalArgumentException("Parameter networkMappingName is required and cannot be null.")); } context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, networkName, networkMappingName, context); } @@ -927,8 +926,8 @@ private Mono>> deleteWithResponseAsync(String resource * * The operation to delete a network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName ARM Resource Name for network mapping. @@ -938,10 +937,10 @@ private Mono>> deleteWithResponseAsync(String resource * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceName, String resourceGroupName, + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, String fabricName, String networkName, String networkMappingName) { Mono>> mono - = deleteWithResponseAsync(resourceName, resourceGroupName, fabricName, networkName, networkMappingName); + = deleteWithResponseAsync(resourceGroupName, resourceName, fabricName, networkName, networkMappingName); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } @@ -951,8 +950,8 @@ private PollerFlux, Void> beginDeleteAsync(String resourceName, * * The operation to delete a network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName ARM Resource Name for network mapping. @@ -963,10 +962,10 @@ private PollerFlux, Void> beginDeleteAsync(String resourceName, * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceName, String resourceGroupName, + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, String fabricName, String networkName, String networkMappingName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = deleteWithResponseAsync(resourceName, resourceGroupName, fabricName, + Mono>> mono = deleteWithResponseAsync(resourceGroupName, resourceName, fabricName, networkName, networkMappingName, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); @@ -977,8 +976,8 @@ private PollerFlux, Void> beginDeleteAsync(String resourceName, * * The operation to delete a network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName ARM Resource Name for network mapping. @@ -988,9 +987,9 @@ private PollerFlux, Void> beginDeleteAsync(String resourceName, * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceName, String resourceGroupName, + public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String fabricName, String networkName, String networkMappingName) { - return this.beginDeleteAsync(resourceName, resourceGroupName, fabricName, networkName, networkMappingName) + return this.beginDeleteAsync(resourceGroupName, resourceName, fabricName, networkName, networkMappingName) .getSyncPoller(); } @@ -999,8 +998,8 @@ public SyncPoller, Void> beginDelete(String resourceName, Strin * * The operation to delete a network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName ARM Resource Name for network mapping. @@ -1011,10 +1010,10 @@ public SyncPoller, Void> beginDelete(String resourceName, Strin * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceName, String resourceGroupName, + public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String fabricName, String networkName, String networkMappingName, Context context) { return this - .beginDeleteAsync(resourceName, resourceGroupName, fabricName, networkName, networkMappingName, context) + .beginDeleteAsync(resourceGroupName, resourceName, fabricName, networkName, networkMappingName, context) .getSyncPoller(); } @@ -1023,8 +1022,8 @@ public SyncPoller, Void> beginDelete(String resourceName, Strin * * The operation to delete a network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName ARM Resource Name for network mapping. @@ -1034,9 +1033,9 @@ public SyncPoller, Void> beginDelete(String resourceName, Strin * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceName, String resourceGroupName, String fabricName, String networkName, + private Mono deleteAsync(String resourceGroupName, String resourceName, String fabricName, String networkName, String networkMappingName) { - return beginDeleteAsync(resourceName, resourceGroupName, fabricName, networkName, networkMappingName).last() + return beginDeleteAsync(resourceGroupName, resourceName, fabricName, networkName, networkMappingName).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1045,8 +1044,8 @@ private Mono deleteAsync(String resourceName, String resourceGroupName, St * * The operation to delete a network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName ARM Resource Name for network mapping. @@ -1057,9 +1056,9 @@ private Mono deleteAsync(String resourceName, String resourceGroupName, St * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceName, String resourceGroupName, String fabricName, String networkName, + private Mono deleteAsync(String resourceGroupName, String resourceName, String fabricName, String networkName, String networkMappingName, Context context) { - return beginDeleteAsync(resourceName, resourceGroupName, fabricName, networkName, networkMappingName, context) + return beginDeleteAsync(resourceGroupName, resourceName, fabricName, networkName, networkMappingName, context) .last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1069,8 +1068,8 @@ private Mono deleteAsync(String resourceName, String resourceGroupName, St * * The operation to delete a network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName ARM Resource Name for network mapping. @@ -1079,9 +1078,9 @@ private Mono deleteAsync(String resourceName, String resourceGroupName, St * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceName, String resourceGroupName, String fabricName, String networkName, + public void delete(String resourceGroupName, String resourceName, String fabricName, String networkName, String networkMappingName) { - deleteAsync(resourceName, resourceGroupName, fabricName, networkName, networkMappingName).block(); + deleteAsync(resourceGroupName, resourceName, fabricName, networkName, networkMappingName).block(); } /** @@ -1089,8 +1088,8 @@ public void delete(String resourceName, String resourceGroupName, String fabricN * * The operation to delete a network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName ARM Resource Name for network mapping. @@ -1100,9 +1099,9 @@ public void delete(String resourceName, String resourceGroupName, String fabricN * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceName, String resourceGroupName, String fabricName, String networkName, + public void delete(String resourceGroupName, String resourceName, String fabricName, String networkName, String networkMappingName, Context context) { - deleteAsync(resourceName, resourceGroupName, fabricName, networkName, networkMappingName, context).block(); + deleteAsync(resourceGroupName, resourceName, fabricName, networkName, networkMappingName, context).block(); } /** @@ -1110,8 +1109,8 @@ public void delete(String resourceName, String resourceGroupName, String fabricN * * The operation to update an ASR network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName Network mapping name. @@ -1122,19 +1121,19 @@ public void delete(String resourceName, String resourceGroupName, String fabricN * @return network Mapping model along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> updateWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String networkName, String networkMappingName, UpdateNetworkMappingInput input) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1156,9 +1155,9 @@ private Mono>> updateWithResponseAsync(String resource } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, networkName, networkMappingName, input, - accept, context)) + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, networkName, + networkMappingName, input, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1167,8 +1166,8 @@ private Mono>> updateWithResponseAsync(String resource * * The operation to update an ASR network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName Network mapping name. @@ -1180,20 +1179,20 @@ private Mono>> updateWithResponseAsync(String resource * @return network Mapping model along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> updateWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String networkName, String networkMappingName, UpdateNetworkMappingInput input, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1215,7 +1214,7 @@ private Mono>> updateWithResponseAsync(String resource } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.update(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.update(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, networkName, networkMappingName, input, accept, context); } @@ -1224,8 +1223,8 @@ private Mono>> updateWithResponseAsync(String resource * * The operation to update an ASR network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName Network mapping name. @@ -1236,10 +1235,10 @@ private Mono>> updateWithResponseAsync(String resource * @return the {@link PollerFlux} for polling of network Mapping model. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, NetworkMappingInner> beginUpdateAsync(String resourceName, - String resourceGroupName, String fabricName, String networkName, String networkMappingName, + private PollerFlux, NetworkMappingInner> beginUpdateAsync(String resourceGroupName, + String resourceName, String fabricName, String networkName, String networkMappingName, UpdateNetworkMappingInput input) { - Mono>> mono = updateWithResponseAsync(resourceName, resourceGroupName, fabricName, + Mono>> mono = updateWithResponseAsync(resourceGroupName, resourceName, fabricName, networkName, networkMappingName, input); return this.client.getLroResult(mono, this.client.getHttpPipeline(), NetworkMappingInner.class, NetworkMappingInner.class, this.client.getContext()); @@ -1250,8 +1249,8 @@ private PollerFlux, NetworkMappingInner> beginUp * * The operation to update an ASR network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName Network mapping name. @@ -1263,11 +1262,11 @@ private PollerFlux, NetworkMappingInner> beginUp * @return the {@link PollerFlux} for polling of network Mapping model. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, NetworkMappingInner> beginUpdateAsync(String resourceName, - String resourceGroupName, String fabricName, String networkName, String networkMappingName, + private PollerFlux, NetworkMappingInner> beginUpdateAsync(String resourceGroupName, + String resourceName, String fabricName, String networkName, String networkMappingName, UpdateNetworkMappingInput input, Context context) { context = this.client.mergeContext(context); - Mono>> mono = updateWithResponseAsync(resourceName, resourceGroupName, fabricName, + Mono>> mono = updateWithResponseAsync(resourceGroupName, resourceName, fabricName, networkName, networkMappingName, input, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), NetworkMappingInner.class, NetworkMappingInner.class, context); @@ -1278,8 +1277,8 @@ private PollerFlux, NetworkMappingInner> beginUp * * The operation to update an ASR network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName Network mapping name. @@ -1290,11 +1289,11 @@ private PollerFlux, NetworkMappingInner> beginUp * @return the {@link SyncPoller} for polling of network Mapping model. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, NetworkMappingInner> beginUpdate(String resourceName, - String resourceGroupName, String fabricName, String networkName, String networkMappingName, + public SyncPoller, NetworkMappingInner> beginUpdate(String resourceGroupName, + String resourceName, String fabricName, String networkName, String networkMappingName, UpdateNetworkMappingInput input) { return this - .beginUpdateAsync(resourceName, resourceGroupName, fabricName, networkName, networkMappingName, input) + .beginUpdateAsync(resourceGroupName, resourceName, fabricName, networkName, networkMappingName, input) .getSyncPoller(); } @@ -1303,8 +1302,8 @@ public SyncPoller, NetworkMappingInner> beginUpd * * The operation to update an ASR network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName Network mapping name. @@ -1316,11 +1315,11 @@ public SyncPoller, NetworkMappingInner> beginUpd * @return the {@link SyncPoller} for polling of network Mapping model. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, NetworkMappingInner> beginUpdate(String resourceName, - String resourceGroupName, String fabricName, String networkName, String networkMappingName, + public SyncPoller, NetworkMappingInner> beginUpdate(String resourceGroupName, + String resourceName, String fabricName, String networkName, String networkMappingName, UpdateNetworkMappingInput input, Context context) { return this - .beginUpdateAsync(resourceName, resourceGroupName, fabricName, networkName, networkMappingName, input, + .beginUpdateAsync(resourceGroupName, resourceName, fabricName, networkName, networkMappingName, input, context) .getSyncPoller(); } @@ -1330,8 +1329,8 @@ public SyncPoller, NetworkMappingInner> beginUpd * * The operation to update an ASR network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName Network mapping name. @@ -1342,9 +1341,9 @@ public SyncPoller, NetworkMappingInner> beginUpd * @return network Mapping model on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono updateAsync(String resourceGroupName, String resourceName, String fabricName, String networkName, String networkMappingName, UpdateNetworkMappingInput input) { - return beginUpdateAsync(resourceName, resourceGroupName, fabricName, networkName, networkMappingName, input) + return beginUpdateAsync(resourceGroupName, resourceName, fabricName, networkName, networkMappingName, input) .last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1354,8 +1353,8 @@ private Mono updateAsync(String resourceName, String resour * * The operation to update an ASR network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName Network mapping name. @@ -1367,9 +1366,9 @@ private Mono updateAsync(String resourceName, String resour * @return network Mapping model on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono updateAsync(String resourceGroupName, String resourceName, String fabricName, String networkName, String networkMappingName, UpdateNetworkMappingInput input, Context context) { - return beginUpdateAsync(resourceName, resourceGroupName, fabricName, networkName, networkMappingName, input, + return beginUpdateAsync(resourceGroupName, resourceName, fabricName, networkName, networkMappingName, input, context).last().flatMap(this.client::getLroFinalResultOrError); } @@ -1378,8 +1377,8 @@ private Mono updateAsync(String resourceName, String resour * * The operation to update an ASR network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName Network mapping name. @@ -1390,9 +1389,9 @@ private Mono updateAsync(String resourceName, String resour * @return network Mapping model. */ @ServiceMethod(returns = ReturnType.SINGLE) - public NetworkMappingInner update(String resourceName, String resourceGroupName, String fabricName, + public NetworkMappingInner update(String resourceGroupName, String resourceName, String fabricName, String networkName, String networkMappingName, UpdateNetworkMappingInput input) { - return updateAsync(resourceName, resourceGroupName, fabricName, networkName, networkMappingName, input).block(); + return updateAsync(resourceGroupName, resourceName, fabricName, networkName, networkMappingName, input).block(); } /** @@ -1400,8 +1399,8 @@ public NetworkMappingInner update(String resourceName, String resourceGroupName, * * The operation to update an ASR network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName Network mapping name. @@ -1413,9 +1412,9 @@ public NetworkMappingInner update(String resourceName, String resourceGroupName, * @return network Mapping model. */ @ServiceMethod(returns = ReturnType.SINGLE) - public NetworkMappingInner update(String resourceName, String resourceGroupName, String fabricName, + public NetworkMappingInner update(String resourceGroupName, String resourceName, String fabricName, String networkName, String networkMappingName, UpdateNetworkMappingInput input, Context context) { - return updateAsync(resourceName, resourceGroupName, fabricName, networkName, networkMappingName, input, context) + return updateAsync(resourceGroupName, resourceName, fabricName, networkName, networkMappingName, input, context) .block(); } @@ -1424,35 +1423,35 @@ public NetworkMappingInner update(String resourceName, String resourceGroupName, * * Lists all ASR network mappings in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return list of network mappings along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceName, - String resourceGroupName) { + private Mono> listSinglePageAsync(String resourceGroupName, + String resourceName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1463,8 +1462,8 @@ private Mono> listSinglePageAsync(String reso * * Lists all ASR network mappings in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1472,19 +1471,19 @@ private Mono> listSinglePageAsync(String reso * @return list of network mappings along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceName, String resourceGroupName, + private Mono> listSinglePageAsync(String resourceGroupName, String resourceName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1492,7 +1491,7 @@ private Mono> listSinglePageAsync(String reso final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + .list(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); @@ -1503,16 +1502,16 @@ private Mono> listSinglePageAsync(String reso * * Lists all ASR network mappings in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return list of network mappings as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceName, String resourceGroupName) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceName, resourceGroupName), + private PagedFlux listAsync(String resourceGroupName, String resourceName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName), nextLink -> listNextSinglePageAsync(nextLink)); } @@ -1521,8 +1520,8 @@ private PagedFlux listAsync(String resourceName, String res * * Lists all ASR network mappings in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1530,8 +1529,8 @@ private PagedFlux listAsync(String resourceName, String res * @return list of network mappings as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceName, String resourceGroupName, Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceName, resourceGroupName, context), + private PagedFlux listAsync(String resourceGroupName, String resourceName, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } @@ -1540,16 +1539,16 @@ private PagedFlux listAsync(String resourceName, String res * * Lists all ASR network mappings in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return list of network mappings as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceName, String resourceGroupName) { - return new PagedIterable<>(listAsync(resourceName, resourceGroupName)); + public PagedIterable list(String resourceGroupName, String resourceName) { + return new PagedIterable<>(listAsync(resourceGroupName, resourceName)); } /** @@ -1557,8 +1556,8 @@ public PagedIterable list(String resourceName, String resou * * Lists all ASR network mappings in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1566,8 +1565,8 @@ public PagedIterable list(String resourceName, String resou * @return list of network mappings as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceName, String resourceGroupName, Context context) { - return new PagedIterable<>(listAsync(resourceName, resourceGroupName, context)); + public PagedIterable list(String resourceGroupName, String resourceName, Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, resourceName, context)); } /** diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationNetworkMappingsImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationNetworkMappingsImpl.java index 8c61597f3bbe..59d25bf75971 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationNetworkMappingsImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationNetworkMappingsImpl.java @@ -27,24 +27,24 @@ public ReplicationNetworkMappingsImpl(ReplicationNetworkMappingsClient innerClie this.serviceManager = serviceManager; } - public PagedIterable listByReplicationNetworks(String resourceName, String resourceGroupName, + public PagedIterable listByReplicationNetworks(String resourceGroupName, String resourceName, String fabricName, String networkName) { PagedIterable inner - = this.serviceClient().listByReplicationNetworks(resourceName, resourceGroupName, fabricName, networkName); + = this.serviceClient().listByReplicationNetworks(resourceGroupName, resourceName, fabricName, networkName); return ResourceManagerUtils.mapPage(inner, inner1 -> new NetworkMappingImpl(inner1, this.manager())); } - public PagedIterable listByReplicationNetworks(String resourceName, String resourceGroupName, + public PagedIterable listByReplicationNetworks(String resourceGroupName, String resourceName, String fabricName, String networkName, Context context) { PagedIterable inner = this.serviceClient() - .listByReplicationNetworks(resourceName, resourceGroupName, fabricName, networkName, context); + .listByReplicationNetworks(resourceGroupName, resourceName, fabricName, networkName, context); return ResourceManagerUtils.mapPage(inner, inner1 -> new NetworkMappingImpl(inner1, this.manager())); } - public Response getWithResponse(String resourceName, String resourceGroupName, String fabricName, + public Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String networkName, String networkMappingName, Context context) { Response inner = this.serviceClient() - .getWithResponse(resourceName, resourceGroupName, fabricName, networkName, networkMappingName, context); + .getWithResponse(resourceGroupName, resourceName, fabricName, networkName, networkMappingName, context); if (inner != null) { return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new NetworkMappingImpl(inner.getValue(), this.manager())); @@ -53,10 +53,10 @@ public Response getWithResponse(String resourceName, String reso } } - public NetworkMapping get(String resourceName, String resourceGroupName, String fabricName, String networkName, + public NetworkMapping get(String resourceGroupName, String resourceName, String fabricName, String networkName, String networkMappingName) { NetworkMappingInner inner - = this.serviceClient().get(resourceName, resourceGroupName, fabricName, networkName, networkMappingName); + = this.serviceClient().get(resourceGroupName, resourceName, fabricName, networkName, networkMappingName); if (inner != null) { return new NetworkMappingImpl(inner, this.manager()); } else { @@ -64,38 +64,38 @@ public NetworkMapping get(String resourceName, String resourceGroupName, String } } - public void delete(String resourceName, String resourceGroupName, String fabricName, String networkName, + public void delete(String resourceGroupName, String resourceName, String fabricName, String networkName, String networkMappingName) { - this.serviceClient().delete(resourceName, resourceGroupName, fabricName, networkName, networkMappingName); + this.serviceClient().delete(resourceGroupName, resourceName, fabricName, networkName, networkMappingName); } - public void delete(String resourceName, String resourceGroupName, String fabricName, String networkName, + public void delete(String resourceGroupName, String resourceName, String fabricName, String networkName, String networkMappingName, Context context) { this.serviceClient() - .delete(resourceName, resourceGroupName, fabricName, networkName, networkMappingName, context); + .delete(resourceGroupName, resourceName, fabricName, networkName, networkMappingName, context); } - public PagedIterable list(String resourceName, String resourceGroupName) { - PagedIterable inner = this.serviceClient().list(resourceName, resourceGroupName); + public PagedIterable list(String resourceGroupName, String resourceName) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, resourceName); return ResourceManagerUtils.mapPage(inner, inner1 -> new NetworkMappingImpl(inner1, this.manager())); } - public PagedIterable list(String resourceName, String resourceGroupName, Context context) { - PagedIterable inner = this.serviceClient().list(resourceName, resourceGroupName, context); + public PagedIterable list(String resourceGroupName, String resourceName, Context context) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, resourceName, context); return ResourceManagerUtils.mapPage(inner, inner1 -> new NetworkMappingImpl(inner1, this.manager())); } public NetworkMapping getById(String id) { - String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); - if (resourceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); - } String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); + if (resourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); + } String fabricName = ResourceManagerUtils.getValueFromIdByName(id, "replicationFabrics"); if (fabricName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( @@ -112,21 +112,21 @@ public NetworkMapping getById(String id) { .format("The resource ID '%s' is not valid. Missing path segment 'replicationNetworkMappings'.", id))); } return this - .getWithResponse(resourceName, resourceGroupName, fabricName, networkName, networkMappingName, Context.NONE) + .getWithResponse(resourceGroupName, resourceName, fabricName, networkName, networkMappingName, Context.NONE) .getValue(); } public Response getByIdWithResponse(String id, Context context) { - String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); - if (resourceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); - } String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); + if (resourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); + } String fabricName = ResourceManagerUtils.getValueFromIdByName(id, "replicationFabrics"); if (fabricName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( @@ -142,21 +142,21 @@ public Response getByIdWithResponse(String id, Context context) throw LOGGER.logExceptionAsError(new IllegalArgumentException(String .format("The resource ID '%s' is not valid. Missing path segment 'replicationNetworkMappings'.", id))); } - return this.getWithResponse(resourceName, resourceGroupName, fabricName, networkName, networkMappingName, + return this.getWithResponse(resourceGroupName, resourceName, fabricName, networkName, networkMappingName, context); } public void deleteById(String id) { - String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); - if (resourceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); - } String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); + if (resourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); + } String fabricName = ResourceManagerUtils.getValueFromIdByName(id, "replicationFabrics"); if (fabricName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( @@ -172,20 +172,20 @@ public void deleteById(String id) { throw LOGGER.logExceptionAsError(new IllegalArgumentException(String .format("The resource ID '%s' is not valid. Missing path segment 'replicationNetworkMappings'.", id))); } - this.delete(resourceName, resourceGroupName, fabricName, networkName, networkMappingName, Context.NONE); + this.delete(resourceGroupName, resourceName, fabricName, networkName, networkMappingName, Context.NONE); } public void deleteByIdWithResponse(String id, Context context) { - String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); - if (resourceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); - } String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); + if (resourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); + } String fabricName = ResourceManagerUtils.getValueFromIdByName(id, "replicationFabrics"); if (fabricName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( @@ -201,7 +201,7 @@ public void deleteByIdWithResponse(String id, Context context) { throw LOGGER.logExceptionAsError(new IllegalArgumentException(String .format("The resource ID '%s' is not valid. Missing path segment 'replicationNetworkMappings'.", id))); } - this.delete(resourceName, resourceGroupName, fabricName, networkName, networkMappingName, context); + this.delete(resourceGroupName, resourceName, fabricName, networkName, networkMappingName, context); } private ReplicationNetworkMappingsClient serviceClient() { diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationNetworksClientImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationNetworksClientImpl.java index 356baf0ce67e..21f8f75380c9 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationNetworksClientImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationNetworksClientImpl.java @@ -67,29 +67,28 @@ public interface ReplicationNetworksService { @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByReplicationFabrics(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, - @HeaderParam("Accept") String accept, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationNetworks/{networkName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, - @PathParam("networkName") String networkName, @HeaderParam("Accept") String accept, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("networkName") String networkName, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationNetworks") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> list(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @@ -112,8 +111,8 @@ Mono> listNext(@PathParam(value = "nextLink", encode * * Lists the networks available for a fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -121,19 +120,19 @@ Mono> listNext(@PathParam(value = "nextLink", encode * @return list of networks along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByReplicationFabricsSinglePageAsync(String resourceName, - String resourceGroupName, String fabricName) { + private Mono> listByReplicationFabricsSinglePageAsync(String resourceGroupName, + String resourceName, String fabricName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -145,7 +144,7 @@ private Mono> listByReplicationFabricsSinglePageAsyn return FluxUtil .withContext( context -> service.listByReplicationFabrics(this.client.getEndpoint(), this.client.getApiVersion(), - resourceName, resourceGroupName, this.client.getSubscriptionId(), fabricName, accept, context)) + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -156,8 +155,8 @@ private Mono> listByReplicationFabricsSinglePageAsyn * * Lists the networks available for a fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -166,19 +165,19 @@ private Mono> listByReplicationFabricsSinglePageAsyn * @return list of networks along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByReplicationFabricsSinglePageAsync(String resourceName, - String resourceGroupName, String fabricName, Context context) { + private Mono> listByReplicationFabricsSinglePageAsync(String resourceGroupName, + String resourceName, String fabricName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -189,8 +188,8 @@ private Mono> listByReplicationFabricsSinglePageAsyn final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByReplicationFabrics(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, accept, context) + .listByReplicationFabrics(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), fabricName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -200,8 +199,8 @@ private Mono> listByReplicationFabricsSinglePageAsyn * * Lists the networks available for a fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -209,10 +208,10 @@ private Mono> listByReplicationFabricsSinglePageAsyn * @return list of networks as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByReplicationFabricsAsync(String resourceName, String resourceGroupName, + private PagedFlux listByReplicationFabricsAsync(String resourceGroupName, String resourceName, String fabricName) { return new PagedFlux<>( - () -> listByReplicationFabricsSinglePageAsync(resourceName, resourceGroupName, fabricName), + () -> listByReplicationFabricsSinglePageAsync(resourceGroupName, resourceName, fabricName), nextLink -> listByReplicationFabricsNextSinglePageAsync(nextLink)); } @@ -221,8 +220,8 @@ private PagedFlux listByReplicationFabricsAsync(String resourceNam * * Lists the networks available for a fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -231,10 +230,10 @@ private PagedFlux listByReplicationFabricsAsync(String resourceNam * @return list of networks as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByReplicationFabricsAsync(String resourceName, String resourceGroupName, + private PagedFlux listByReplicationFabricsAsync(String resourceGroupName, String resourceName, String fabricName, Context context) { return new PagedFlux<>( - () -> listByReplicationFabricsSinglePageAsync(resourceName, resourceGroupName, fabricName, context), + () -> listByReplicationFabricsSinglePageAsync(resourceGroupName, resourceName, fabricName, context), nextLink -> listByReplicationFabricsNextSinglePageAsync(nextLink, context)); } @@ -243,8 +242,8 @@ private PagedFlux listByReplicationFabricsAsync(String resourceNam * * Lists the networks available for a fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -252,9 +251,9 @@ private PagedFlux listByReplicationFabricsAsync(String resourceNam * @return list of networks as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByReplicationFabrics(String resourceName, String resourceGroupName, + public PagedIterable listByReplicationFabrics(String resourceGroupName, String resourceName, String fabricName) { - return new PagedIterable<>(listByReplicationFabricsAsync(resourceName, resourceGroupName, fabricName)); + return new PagedIterable<>(listByReplicationFabricsAsync(resourceGroupName, resourceName, fabricName)); } /** @@ -262,8 +261,8 @@ public PagedIterable listByReplicationFabrics(String resourceName, * * Lists the networks available for a fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -272,9 +271,9 @@ public PagedIterable listByReplicationFabrics(String resourceName, * @return list of networks as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByReplicationFabrics(String resourceName, String resourceGroupName, + public PagedIterable listByReplicationFabrics(String resourceGroupName, String resourceName, String fabricName, Context context) { - return new PagedIterable<>(listByReplicationFabricsAsync(resourceName, resourceGroupName, fabricName, context)); + return new PagedIterable<>(listByReplicationFabricsAsync(resourceGroupName, resourceName, fabricName, context)); } /** @@ -282,8 +281,8 @@ public PagedIterable listByReplicationFabrics(String resourceName, * * Gets the details of a network. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Server Id. * @param networkName Primary network name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -292,19 +291,19 @@ public PagedIterable listByReplicationFabrics(String resourceName, * @return the details of a network along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceName, String resourceGroupName, + private Mono> getWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String networkName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -317,8 +316,9 @@ private Mono> getWithResponseAsync(String resourceName, S } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, networkName, accept, context)) + .withContext( + context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), fabricName, networkName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -327,8 +327,8 @@ private Mono> getWithResponseAsync(String resourceName, S * * Gets the details of a network. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Server Id. * @param networkName Primary network name. * @param context The context to associate with this operation. @@ -338,19 +338,19 @@ private Mono> getWithResponseAsync(String resourceName, S * @return the details of a network along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceName, String resourceGroupName, + private Mono> getWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String networkName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -363,7 +363,7 @@ private Mono> getWithResponseAsync(String resourceName, S } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, networkName, accept, context); } @@ -372,8 +372,8 @@ private Mono> getWithResponseAsync(String resourceName, S * * Gets the details of a network. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Server Id. * @param networkName Primary network name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -382,9 +382,9 @@ private Mono> getWithResponseAsync(String resourceName, S * @return the details of a network on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono getAsync(String resourceGroupName, String resourceName, String fabricName, String networkName) { - return getWithResponseAsync(resourceName, resourceGroupName, fabricName, networkName) + return getWithResponseAsync(resourceGroupName, resourceName, fabricName, networkName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } @@ -393,8 +393,8 @@ private Mono getAsync(String resourceName, String resourceGroupNam * * Gets the details of a network. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Server Id. * @param networkName Primary network name. * @param context The context to associate with this operation. @@ -404,9 +404,9 @@ private Mono getAsync(String resourceName, String resourceGroupNam * @return the details of a network along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceName, String resourceGroupName, String fabricName, + public Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String networkName, Context context) { - return getWithResponseAsync(resourceName, resourceGroupName, fabricName, networkName, context).block(); + return getWithResponseAsync(resourceGroupName, resourceName, fabricName, networkName, context).block(); } /** @@ -414,8 +414,8 @@ public Response getWithResponse(String resourceName, String resour * * Gets the details of a network. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Server Id. * @param networkName Primary network name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -424,8 +424,8 @@ public Response getWithResponse(String resourceName, String resour * @return the details of a network. */ @ServiceMethod(returns = ReturnType.SINGLE) - public NetworkInner get(String resourceName, String resourceGroupName, String fabricName, String networkName) { - return getWithResponse(resourceName, resourceGroupName, fabricName, networkName, Context.NONE).getValue(); + public NetworkInner get(String resourceGroupName, String resourceName, String fabricName, String networkName) { + return getWithResponse(resourceGroupName, resourceName, fabricName, networkName, Context.NONE).getValue(); } /** @@ -433,34 +433,34 @@ public NetworkInner get(String resourceName, String resourceGroupName, String fa * * Lists the networks available in a vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return list of networks along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceName, String resourceGroupName) { + private Mono> listSinglePageAsync(String resourceGroupName, String resourceName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -471,8 +471,8 @@ private Mono> listSinglePageAsync(String resourceNam * * Lists the networks available in a vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -480,19 +480,19 @@ private Mono> listSinglePageAsync(String resourceNam * @return list of networks along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceName, String resourceGroupName, + private Mono> listSinglePageAsync(String resourceGroupName, String resourceName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -500,7 +500,7 @@ private Mono> listSinglePageAsync(String resourceNam final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + .list(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); @@ -511,16 +511,16 @@ private Mono> listSinglePageAsync(String resourceNam * * Lists the networks available in a vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return list of networks as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceName, String resourceGroupName) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceName, resourceGroupName), + private PagedFlux listAsync(String resourceGroupName, String resourceName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName), nextLink -> listNextSinglePageAsync(nextLink)); } @@ -529,8 +529,8 @@ private PagedFlux listAsync(String resourceName, String resourceGr * * Lists the networks available in a vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -538,8 +538,8 @@ private PagedFlux listAsync(String resourceName, String resourceGr * @return list of networks as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceName, String resourceGroupName, Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceName, resourceGroupName, context), + private PagedFlux listAsync(String resourceGroupName, String resourceName, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } @@ -548,16 +548,16 @@ private PagedFlux listAsync(String resourceName, String resourceGr * * Lists the networks available in a vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return list of networks as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceName, String resourceGroupName) { - return new PagedIterable<>(listAsync(resourceName, resourceGroupName)); + public PagedIterable list(String resourceGroupName, String resourceName) { + return new PagedIterable<>(listAsync(resourceGroupName, resourceName)); } /** @@ -565,8 +565,8 @@ public PagedIterable list(String resourceName, String resourceGrou * * Lists the networks available in a vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -574,8 +574,8 @@ public PagedIterable list(String resourceName, String resourceGrou * @return list of networks as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceName, String resourceGroupName, Context context) { - return new PagedIterable<>(listAsync(resourceName, resourceGroupName, context)); + public PagedIterable list(String resourceGroupName, String resourceName, Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, resourceName, context)); } /** diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationNetworksImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationNetworksImpl.java index 98cee18482d9..fd9b5430808c 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationNetworksImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationNetworksImpl.java @@ -27,24 +27,24 @@ public ReplicationNetworksImpl(ReplicationNetworksClient innerClient, this.serviceManager = serviceManager; } - public PagedIterable listByReplicationFabrics(String resourceName, String resourceGroupName, + public PagedIterable listByReplicationFabrics(String resourceGroupName, String resourceName, String fabricName) { PagedIterable inner - = this.serviceClient().listByReplicationFabrics(resourceName, resourceGroupName, fabricName); + = this.serviceClient().listByReplicationFabrics(resourceGroupName, resourceName, fabricName); return ResourceManagerUtils.mapPage(inner, inner1 -> new NetworkImpl(inner1, this.manager())); } - public PagedIterable listByReplicationFabrics(String resourceName, String resourceGroupName, + public PagedIterable listByReplicationFabrics(String resourceGroupName, String resourceName, String fabricName, Context context) { PagedIterable inner - = this.serviceClient().listByReplicationFabrics(resourceName, resourceGroupName, fabricName, context); + = this.serviceClient().listByReplicationFabrics(resourceGroupName, resourceName, fabricName, context); return ResourceManagerUtils.mapPage(inner, inner1 -> new NetworkImpl(inner1, this.manager())); } - public Response getWithResponse(String resourceName, String resourceGroupName, String fabricName, + public Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String networkName, Context context) { Response inner - = this.serviceClient().getWithResponse(resourceName, resourceGroupName, fabricName, networkName, context); + = this.serviceClient().getWithResponse(resourceGroupName, resourceName, fabricName, networkName, context); if (inner != null) { return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new NetworkImpl(inner.getValue(), this.manager())); @@ -53,8 +53,8 @@ public Response getWithResponse(String resourceName, String resourceGro } } - public Network get(String resourceName, String resourceGroupName, String fabricName, String networkName) { - NetworkInner inner = this.serviceClient().get(resourceName, resourceGroupName, fabricName, networkName); + public Network get(String resourceGroupName, String resourceName, String fabricName, String networkName) { + NetworkInner inner = this.serviceClient().get(resourceGroupName, resourceName, fabricName, networkName); if (inner != null) { return new NetworkImpl(inner, this.manager()); } else { @@ -62,13 +62,13 @@ public Network get(String resourceName, String resourceGroupName, String fabricN } } - public PagedIterable list(String resourceName, String resourceGroupName) { - PagedIterable inner = this.serviceClient().list(resourceName, resourceGroupName); + public PagedIterable list(String resourceGroupName, String resourceName) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, resourceName); return ResourceManagerUtils.mapPage(inner, inner1 -> new NetworkImpl(inner1, this.manager())); } - public PagedIterable list(String resourceName, String resourceGroupName, Context context) { - PagedIterable inner = this.serviceClient().list(resourceName, resourceGroupName, context); + public PagedIterable list(String resourceGroupName, String resourceName, Context context) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, resourceName, context); return ResourceManagerUtils.mapPage(inner, inner1 -> new NetworkImpl(inner1, this.manager())); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationPoliciesClientImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationPoliciesClientImpl.java index cb43beb7d7dd..148fe7883f26 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationPoliciesClientImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationPoliciesClientImpl.java @@ -78,51 +78,47 @@ public interface ReplicationPoliciesService { @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> list(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies/{policyName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("policyName") String policyName, - @HeaderParam("Accept") String accept, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("policyName") String policyName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies/{policyName}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> create(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("policyName") String policyName, - @BodyParam("application/json") CreatePolicyInput input, @HeaderParam("Accept") String accept, - Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("policyName") String policyName, @BodyParam("application/json") CreatePolicyInput input, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies/{policyName}") @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> delete(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("policyName") String policyName, - Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("policyName") String policyName, Context context); @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies/{policyName}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> update(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("policyName") String policyName, - @BodyParam("application/json") UpdatePolicyInput input, @HeaderParam("Accept") String accept, - Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("policyName") String policyName, @BodyParam("application/json") UpdatePolicyInput input, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @@ -137,8 +133,8 @@ Mono> listNext(@PathParam(value = "nextLink", encoded * * Lists the replication policies for a vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -146,26 +142,26 @@ Mono> listNext(@PathParam(value = "nextLink", encoded * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceName, String resourceGroupName) { + private Mono> listSinglePageAsync(String resourceGroupName, String resourceName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -176,8 +172,8 @@ private Mono> listSinglePageAsync(String resourceName * * Lists the replication policies for a vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -186,19 +182,19 @@ private Mono> listSinglePageAsync(String resourceName * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceName, String resourceGroupName, + private Mono> listSinglePageAsync(String resourceGroupName, String resourceName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -206,7 +202,7 @@ private Mono> listSinglePageAsync(String resourceName final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + .list(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); @@ -217,16 +213,16 @@ private Mono> listSinglePageAsync(String resourceName * * Lists the replication policies for a vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return protection Profile Collection details as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceName, String resourceGroupName) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceName, resourceGroupName), + private PagedFlux listAsync(String resourceGroupName, String resourceName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName), nextLink -> listNextSinglePageAsync(nextLink)); } @@ -235,8 +231,8 @@ private PagedFlux listAsync(String resourceName, String resourceGro * * Lists the replication policies for a vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -244,8 +240,8 @@ private PagedFlux listAsync(String resourceName, String resourceGro * @return protection Profile Collection details as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceName, String resourceGroupName, Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceName, resourceGroupName, context), + private PagedFlux listAsync(String resourceGroupName, String resourceName, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } @@ -254,16 +250,16 @@ private PagedFlux listAsync(String resourceName, String resourceGro * * Lists the replication policies for a vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return protection Profile Collection details as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceName, String resourceGroupName) { - return new PagedIterable<>(listAsync(resourceName, resourceGroupName)); + public PagedIterable list(String resourceGroupName, String resourceName) { + return new PagedIterable<>(listAsync(resourceGroupName, resourceName)); } /** @@ -271,8 +267,8 @@ public PagedIterable list(String resourceName, String resourceGroup * * Lists the replication policies for a vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -280,8 +276,8 @@ public PagedIterable list(String resourceName, String resourceGroup * @return protection Profile Collection details as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceName, String resourceGroupName, Context context) { - return new PagedIterable<>(listAsync(resourceName, resourceGroupName, context)); + public PagedIterable list(String resourceGroupName, String resourceName, Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, resourceName, context)); } /** @@ -289,8 +285,8 @@ public PagedIterable list(String resourceName, String resourceGroup * * Gets the details of a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -298,19 +294,19 @@ public PagedIterable list(String resourceName, String resourceGroup * @return the details of a replication policy along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceName, String resourceGroupName, + private Mono> getWithResponseAsync(String resourceGroupName, String resourceName, String policyName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -320,8 +316,8 @@ private Mono> getWithResponseAsync(String resourceName, St } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), policyName, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), policyName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -330,8 +326,8 @@ private Mono> getWithResponseAsync(String resourceName, St * * Gets the details of a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -340,19 +336,19 @@ private Mono> getWithResponseAsync(String resourceName, St * @return the details of a replication policy along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceName, String resourceGroupName, + private Mono> getWithResponseAsync(String resourceGroupName, String resourceName, String policyName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -362,7 +358,7 @@ private Mono> getWithResponseAsync(String resourceName, St } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), policyName, accept, context); } @@ -371,8 +367,8 @@ private Mono> getWithResponseAsync(String resourceName, St * * Gets the details of a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -380,8 +376,8 @@ private Mono> getWithResponseAsync(String resourceName, St * @return the details of a replication policy on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceName, String resourceGroupName, String policyName) { - return getWithResponseAsync(resourceName, resourceGroupName, policyName) + private Mono getAsync(String resourceGroupName, String resourceName, String policyName) { + return getWithResponseAsync(resourceGroupName, resourceName, policyName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } @@ -390,8 +386,8 @@ private Mono getAsync(String resourceName, String resourceGroupName * * Gets the details of a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -400,9 +396,9 @@ private Mono getAsync(String resourceName, String resourceGroupName * @return the details of a replication policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceName, String resourceGroupName, String policyName, + public Response getWithResponse(String resourceGroupName, String resourceName, String policyName, Context context) { - return getWithResponseAsync(resourceName, resourceGroupName, policyName, context).block(); + return getWithResponseAsync(resourceGroupName, resourceName, policyName, context).block(); } /** @@ -410,8 +406,8 @@ public Response getWithResponse(String resourceName, String resourc * * Gets the details of a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -419,8 +415,8 @@ public Response getWithResponse(String resourceName, String resourc * @return the details of a replication policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PolicyInner get(String resourceName, String resourceGroupName, String policyName) { - return getWithResponse(resourceName, resourceGroupName, policyName, Context.NONE).getValue(); + public PolicyInner get(String resourceGroupName, String resourceName, String policyName) { + return getWithResponse(resourceGroupName, resourceName, policyName, Context.NONE).getValue(); } /** @@ -428,8 +424,8 @@ public PolicyInner get(String resourceName, String resourceGroupName, String pol * * The operation to create a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @param input Create policy input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -438,19 +434,19 @@ public PolicyInner get(String resourceName, String resourceGroupName, String pol * @return protection profile details along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> createWithResponseAsync(String resourceGroupName, String resourceName, String policyName, CreatePolicyInput input) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -465,8 +461,8 @@ private Mono>> createWithResponseAsync(String resource } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), policyName, input, accept, context)) + .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), policyName, input, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -475,8 +471,8 @@ private Mono>> createWithResponseAsync(String resource * * The operation to create a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @param input Create policy input. * @param context The context to associate with this operation. @@ -486,19 +482,19 @@ private Mono>> createWithResponseAsync(String resource * @return protection profile details along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> createWithResponseAsync(String resourceGroupName, String resourceName, String policyName, CreatePolicyInput input, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -513,7 +509,7 @@ private Mono>> createWithResponseAsync(String resource } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.create(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.create(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), policyName, input, accept, context); } @@ -522,8 +518,8 @@ private Mono>> createWithResponseAsync(String resource * * The operation to create a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @param input Create policy input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -532,10 +528,10 @@ private Mono>> createWithResponseAsync(String resource * @return the {@link PollerFlux} for polling of protection profile details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, PolicyInner> beginCreateAsync(String resourceName, - String resourceGroupName, String policyName, CreatePolicyInput input) { + private PollerFlux, PolicyInner> beginCreateAsync(String resourceGroupName, + String resourceName, String policyName, CreatePolicyInput input) { Mono>> mono - = createWithResponseAsync(resourceName, resourceGroupName, policyName, input); + = createWithResponseAsync(resourceGroupName, resourceName, policyName, input); return this.client.getLroResult(mono, this.client.getHttpPipeline(), PolicyInner.class, PolicyInner.class, this.client.getContext()); } @@ -545,8 +541,8 @@ private PollerFlux, PolicyInner> beginCreateAsync(String * * The operation to create a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @param input Create policy input. * @param context The context to associate with this operation. @@ -556,11 +552,11 @@ private PollerFlux, PolicyInner> beginCreateAsync(String * @return the {@link PollerFlux} for polling of protection profile details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, PolicyInner> beginCreateAsync(String resourceName, - String resourceGroupName, String policyName, CreatePolicyInput input, Context context) { + private PollerFlux, PolicyInner> beginCreateAsync(String resourceGroupName, + String resourceName, String policyName, CreatePolicyInput input, Context context) { context = this.client.mergeContext(context); Mono>> mono - = createWithResponseAsync(resourceName, resourceGroupName, policyName, input, context); + = createWithResponseAsync(resourceGroupName, resourceName, policyName, input, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), PolicyInner.class, PolicyInner.class, context); } @@ -570,8 +566,8 @@ private PollerFlux, PolicyInner> beginCreateAsync(String * * The operation to create a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @param input Create policy input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -580,9 +576,9 @@ private PollerFlux, PolicyInner> beginCreateAsync(String * @return the {@link SyncPoller} for polling of protection profile details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, PolicyInner> beginCreate(String resourceName, String resourceGroupName, + public SyncPoller, PolicyInner> beginCreate(String resourceGroupName, String resourceName, String policyName, CreatePolicyInput input) { - return this.beginCreateAsync(resourceName, resourceGroupName, policyName, input).getSyncPoller(); + return this.beginCreateAsync(resourceGroupName, resourceName, policyName, input).getSyncPoller(); } /** @@ -590,8 +586,8 @@ public SyncPoller, PolicyInner> beginCreate(String resou * * The operation to create a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @param input Create policy input. * @param context The context to associate with this operation. @@ -601,9 +597,9 @@ public SyncPoller, PolicyInner> beginCreate(String resou * @return the {@link SyncPoller} for polling of protection profile details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, PolicyInner> beginCreate(String resourceName, String resourceGroupName, + public SyncPoller, PolicyInner> beginCreate(String resourceGroupName, String resourceName, String policyName, CreatePolicyInput input, Context context) { - return this.beginCreateAsync(resourceName, resourceGroupName, policyName, input, context).getSyncPoller(); + return this.beginCreateAsync(resourceGroupName, resourceName, policyName, input, context).getSyncPoller(); } /** @@ -611,8 +607,8 @@ public SyncPoller, PolicyInner> beginCreate(String resou * * The operation to create a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @param input Create policy input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -621,9 +617,9 @@ public SyncPoller, PolicyInner> beginCreate(String resou * @return protection profile details on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync(String resourceName, String resourceGroupName, String policyName, + private Mono createAsync(String resourceGroupName, String resourceName, String policyName, CreatePolicyInput input) { - return beginCreateAsync(resourceName, resourceGroupName, policyName, input).last() + return beginCreateAsync(resourceGroupName, resourceName, policyName, input).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -632,8 +628,8 @@ private Mono createAsync(String resourceName, String resourceGroupN * * The operation to create a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @param input Create policy input. * @param context The context to associate with this operation. @@ -643,9 +639,9 @@ private Mono createAsync(String resourceName, String resourceGroupN * @return protection profile details on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync(String resourceName, String resourceGroupName, String policyName, + private Mono createAsync(String resourceGroupName, String resourceName, String policyName, CreatePolicyInput input, Context context) { - return beginCreateAsync(resourceName, resourceGroupName, policyName, input, context).last() + return beginCreateAsync(resourceGroupName, resourceName, policyName, input, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -654,8 +650,8 @@ private Mono createAsync(String resourceName, String resourceGroupN * * The operation to create a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @param input Create policy input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -664,9 +660,9 @@ private Mono createAsync(String resourceName, String resourceGroupN * @return protection profile details. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PolicyInner create(String resourceName, String resourceGroupName, String policyName, + public PolicyInner create(String resourceGroupName, String resourceName, String policyName, CreatePolicyInput input) { - return createAsync(resourceName, resourceGroupName, policyName, input).block(); + return createAsync(resourceGroupName, resourceName, policyName, input).block(); } /** @@ -674,8 +670,8 @@ public PolicyInner create(String resourceName, String resourceGroupName, String * * The operation to create a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @param input Create policy input. * @param context The context to associate with this operation. @@ -685,9 +681,9 @@ public PolicyInner create(String resourceName, String resourceGroupName, String * @return protection profile details. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PolicyInner create(String resourceName, String resourceGroupName, String policyName, CreatePolicyInput input, + public PolicyInner create(String resourceGroupName, String resourceName, String policyName, CreatePolicyInput input, Context context) { - return createAsync(resourceName, resourceGroupName, policyName, input, context).block(); + return createAsync(resourceGroupName, resourceName, policyName, input, context).block(); } /** @@ -695,8 +691,8 @@ public PolicyInner create(String resourceName, String resourceGroupName, String * * The operation to delete a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -704,19 +700,19 @@ public PolicyInner create(String resourceName, String resourceGroupName, String * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, String policyName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -725,8 +721,8 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException("Parameter policyName is required and cannot be null.")); } return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), policyName, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), policyName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -735,8 +731,8 @@ private Mono>> deleteWithResponseAsync(String resource * * The operation to delete a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -745,19 +741,19 @@ private Mono>> deleteWithResponseAsync(String resource * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, String policyName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -766,7 +762,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException("Parameter policyName is required and cannot be null.")); } context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), policyName, context); } @@ -775,8 +771,8 @@ private Mono>> deleteWithResponseAsync(String resource * * The operation to delete a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -784,9 +780,9 @@ private Mono>> deleteWithResponseAsync(String resource * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceName, String resourceGroupName, + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, String policyName) { - Mono>> mono = deleteWithResponseAsync(resourceName, resourceGroupName, policyName); + Mono>> mono = deleteWithResponseAsync(resourceGroupName, resourceName, policyName); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } @@ -796,8 +792,8 @@ private PollerFlux, Void> beginDeleteAsync(String resourceName, * * The operation to delete a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -806,11 +802,11 @@ private PollerFlux, Void> beginDeleteAsync(String resourceName, * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceName, String resourceGroupName, + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, String policyName, Context context) { context = this.client.mergeContext(context); Mono>> mono - = deleteWithResponseAsync(resourceName, resourceGroupName, policyName, context); + = deleteWithResponseAsync(resourceGroupName, resourceName, policyName, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); } @@ -820,8 +816,8 @@ private PollerFlux, Void> beginDeleteAsync(String resourceName, * * The operation to delete a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -829,9 +825,9 @@ private PollerFlux, Void> beginDeleteAsync(String resourceName, * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceName, String resourceGroupName, + public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String policyName) { - return this.beginDeleteAsync(resourceName, resourceGroupName, policyName).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, resourceName, policyName).getSyncPoller(); } /** @@ -839,8 +835,8 @@ public SyncPoller, Void> beginDelete(String resourceName, Strin * * The operation to delete a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -849,9 +845,9 @@ public SyncPoller, Void> beginDelete(String resourceName, Strin * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceName, String resourceGroupName, + public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String policyName, Context context) { - return this.beginDeleteAsync(resourceName, resourceGroupName, policyName, context).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, resourceName, policyName, context).getSyncPoller(); } /** @@ -859,8 +855,8 @@ public SyncPoller, Void> beginDelete(String resourceName, Strin * * The operation to delete a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -868,8 +864,8 @@ public SyncPoller, Void> beginDelete(String resourceName, Strin * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceName, String resourceGroupName, String policyName) { - return beginDeleteAsync(resourceName, resourceGroupName, policyName).last() + private Mono deleteAsync(String resourceGroupName, String resourceName, String policyName) { + return beginDeleteAsync(resourceGroupName, resourceName, policyName).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -878,8 +874,8 @@ private Mono deleteAsync(String resourceName, String resourceGroupName, St * * The operation to delete a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -888,8 +884,8 @@ private Mono deleteAsync(String resourceName, String resourceGroupName, St * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceName, String resourceGroupName, String policyName, Context context) { - return beginDeleteAsync(resourceName, resourceGroupName, policyName, context).last() + private Mono deleteAsync(String resourceGroupName, String resourceName, String policyName, Context context) { + return beginDeleteAsync(resourceGroupName, resourceName, policyName, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -898,16 +894,16 @@ private Mono deleteAsync(String resourceName, String resourceGroupName, St * * The operation to delete a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceName, String resourceGroupName, String policyName) { - deleteAsync(resourceName, resourceGroupName, policyName).block(); + public void delete(String resourceGroupName, String resourceName, String policyName) { + deleteAsync(resourceGroupName, resourceName, policyName).block(); } /** @@ -915,8 +911,8 @@ public void delete(String resourceName, String resourceGroupName, String policyN * * The operation to delete a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -924,8 +920,8 @@ public void delete(String resourceName, String resourceGroupName, String policyN * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceName, String resourceGroupName, String policyName, Context context) { - deleteAsync(resourceName, resourceGroupName, policyName, context).block(); + public void delete(String resourceGroupName, String resourceName, String policyName, Context context) { + deleteAsync(resourceGroupName, resourceName, policyName, context).block(); } /** @@ -933,8 +929,8 @@ public void delete(String resourceName, String resourceGroupName, String policyN * * The operation to update a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Policy Id. * @param input Update Policy Input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -943,19 +939,19 @@ public void delete(String resourceName, String resourceGroupName, String policyN * @return protection profile details along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> updateWithResponseAsync(String resourceGroupName, String resourceName, String policyName, UpdatePolicyInput input) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -970,8 +966,8 @@ private Mono>> updateWithResponseAsync(String resource } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), policyName, input, accept, context)) + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), policyName, input, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -980,8 +976,8 @@ private Mono>> updateWithResponseAsync(String resource * * The operation to update a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Policy Id. * @param input Update Policy Input. * @param context The context to associate with this operation. @@ -991,19 +987,19 @@ private Mono>> updateWithResponseAsync(String resource * @return protection profile details along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> updateWithResponseAsync(String resourceGroupName, String resourceName, String policyName, UpdatePolicyInput input, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1018,7 +1014,7 @@ private Mono>> updateWithResponseAsync(String resource } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.update(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.update(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), policyName, input, accept, context); } @@ -1027,8 +1023,8 @@ private Mono>> updateWithResponseAsync(String resource * * The operation to update a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Policy Id. * @param input Update Policy Input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1037,10 +1033,10 @@ private Mono>> updateWithResponseAsync(String resource * @return the {@link PollerFlux} for polling of protection profile details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, PolicyInner> beginUpdateAsync(String resourceName, - String resourceGroupName, String policyName, UpdatePolicyInput input) { + private PollerFlux, PolicyInner> beginUpdateAsync(String resourceGroupName, + String resourceName, String policyName, UpdatePolicyInput input) { Mono>> mono - = updateWithResponseAsync(resourceName, resourceGroupName, policyName, input); + = updateWithResponseAsync(resourceGroupName, resourceName, policyName, input); return this.client.getLroResult(mono, this.client.getHttpPipeline(), PolicyInner.class, PolicyInner.class, this.client.getContext()); } @@ -1050,8 +1046,8 @@ private PollerFlux, PolicyInner> beginUpdateAsync(String * * The operation to update a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Policy Id. * @param input Update Policy Input. * @param context The context to associate with this operation. @@ -1061,11 +1057,11 @@ private PollerFlux, PolicyInner> beginUpdateAsync(String * @return the {@link PollerFlux} for polling of protection profile details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, PolicyInner> beginUpdateAsync(String resourceName, - String resourceGroupName, String policyName, UpdatePolicyInput input, Context context) { + private PollerFlux, PolicyInner> beginUpdateAsync(String resourceGroupName, + String resourceName, String policyName, UpdatePolicyInput input, Context context) { context = this.client.mergeContext(context); Mono>> mono - = updateWithResponseAsync(resourceName, resourceGroupName, policyName, input, context); + = updateWithResponseAsync(resourceGroupName, resourceName, policyName, input, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), PolicyInner.class, PolicyInner.class, context); } @@ -1075,8 +1071,8 @@ private PollerFlux, PolicyInner> beginUpdateAsync(String * * The operation to update a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Policy Id. * @param input Update Policy Input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1085,9 +1081,9 @@ private PollerFlux, PolicyInner> beginUpdateAsync(String * @return the {@link SyncPoller} for polling of protection profile details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, PolicyInner> beginUpdate(String resourceName, String resourceGroupName, + public SyncPoller, PolicyInner> beginUpdate(String resourceGroupName, String resourceName, String policyName, UpdatePolicyInput input) { - return this.beginUpdateAsync(resourceName, resourceGroupName, policyName, input).getSyncPoller(); + return this.beginUpdateAsync(resourceGroupName, resourceName, policyName, input).getSyncPoller(); } /** @@ -1095,8 +1091,8 @@ public SyncPoller, PolicyInner> beginUpdate(String resou * * The operation to update a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Policy Id. * @param input Update Policy Input. * @param context The context to associate with this operation. @@ -1106,9 +1102,9 @@ public SyncPoller, PolicyInner> beginUpdate(String resou * @return the {@link SyncPoller} for polling of protection profile details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, PolicyInner> beginUpdate(String resourceName, String resourceGroupName, + public SyncPoller, PolicyInner> beginUpdate(String resourceGroupName, String resourceName, String policyName, UpdatePolicyInput input, Context context) { - return this.beginUpdateAsync(resourceName, resourceGroupName, policyName, input, context).getSyncPoller(); + return this.beginUpdateAsync(resourceGroupName, resourceName, policyName, input, context).getSyncPoller(); } /** @@ -1116,8 +1112,8 @@ public SyncPoller, PolicyInner> beginUpdate(String resou * * The operation to update a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Policy Id. * @param input Update Policy Input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1126,9 +1122,9 @@ public SyncPoller, PolicyInner> beginUpdate(String resou * @return protection profile details on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceName, String resourceGroupName, String policyName, + private Mono updateAsync(String resourceGroupName, String resourceName, String policyName, UpdatePolicyInput input) { - return beginUpdateAsync(resourceName, resourceGroupName, policyName, input).last() + return beginUpdateAsync(resourceGroupName, resourceName, policyName, input).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1137,8 +1133,8 @@ private Mono updateAsync(String resourceName, String resourceGroupN * * The operation to update a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Policy Id. * @param input Update Policy Input. * @param context The context to associate with this operation. @@ -1148,9 +1144,9 @@ private Mono updateAsync(String resourceName, String resourceGroupN * @return protection profile details on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceName, String resourceGroupName, String policyName, + private Mono updateAsync(String resourceGroupName, String resourceName, String policyName, UpdatePolicyInput input, Context context) { - return beginUpdateAsync(resourceName, resourceGroupName, policyName, input, context).last() + return beginUpdateAsync(resourceGroupName, resourceName, policyName, input, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1159,8 +1155,8 @@ private Mono updateAsync(String resourceName, String resourceGroupN * * The operation to update a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Policy Id. * @param input Update Policy Input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1169,9 +1165,9 @@ private Mono updateAsync(String resourceName, String resourceGroupN * @return protection profile details. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PolicyInner update(String resourceName, String resourceGroupName, String policyName, + public PolicyInner update(String resourceGroupName, String resourceName, String policyName, UpdatePolicyInput input) { - return updateAsync(resourceName, resourceGroupName, policyName, input).block(); + return updateAsync(resourceGroupName, resourceName, policyName, input).block(); } /** @@ -1179,8 +1175,8 @@ public PolicyInner update(String resourceName, String resourceGroupName, String * * The operation to update a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Policy Id. * @param input Update Policy Input. * @param context The context to associate with this operation. @@ -1190,9 +1186,9 @@ public PolicyInner update(String resourceName, String resourceGroupName, String * @return protection profile details. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PolicyInner update(String resourceName, String resourceGroupName, String policyName, UpdatePolicyInput input, + public PolicyInner update(String resourceGroupName, String resourceName, String policyName, UpdatePolicyInput input, Context context) { - return updateAsync(resourceName, resourceGroupName, policyName, input, context).block(); + return updateAsync(resourceGroupName, resourceName, policyName, input, context).block(); } /** diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationPoliciesImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationPoliciesImpl.java index a962251afe58..cbeb30cea8e2 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationPoliciesImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationPoliciesImpl.java @@ -27,20 +27,20 @@ public ReplicationPoliciesImpl(ReplicationPoliciesClient innerClient, this.serviceManager = serviceManager; } - public PagedIterable list(String resourceName, String resourceGroupName) { - PagedIterable inner = this.serviceClient().list(resourceName, resourceGroupName); + public PagedIterable list(String resourceGroupName, String resourceName) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, resourceName); return ResourceManagerUtils.mapPage(inner, inner1 -> new PolicyImpl(inner1, this.manager())); } - public PagedIterable list(String resourceName, String resourceGroupName, Context context) { - PagedIterable inner = this.serviceClient().list(resourceName, resourceGroupName, context); + public PagedIterable list(String resourceGroupName, String resourceName, Context context) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, resourceName, context); return ResourceManagerUtils.mapPage(inner, inner1 -> new PolicyImpl(inner1, this.manager())); } - public Response getWithResponse(String resourceName, String resourceGroupName, String policyName, + public Response getWithResponse(String resourceGroupName, String resourceName, String policyName, Context context) { Response inner - = this.serviceClient().getWithResponse(resourceName, resourceGroupName, policyName, context); + = this.serviceClient().getWithResponse(resourceGroupName, resourceName, policyName, context); if (inner != null) { return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new PolicyImpl(inner.getValue(), this.manager())); @@ -49,8 +49,8 @@ public Response getWithResponse(String resourceName, String resourceGrou } } - public Policy get(String resourceName, String resourceGroupName, String policyName) { - PolicyInner inner = this.serviceClient().get(resourceName, resourceGroupName, policyName); + public Policy get(String resourceGroupName, String resourceName, String policyName) { + PolicyInner inner = this.serviceClient().get(resourceGroupName, resourceName, policyName); if (inner != null) { return new PolicyImpl(inner, this.manager()); } else { @@ -58,88 +58,88 @@ public Policy get(String resourceName, String resourceGroupName, String policyNa } } - public void delete(String resourceName, String resourceGroupName, String policyName) { - this.serviceClient().delete(resourceName, resourceGroupName, policyName); + public void delete(String resourceGroupName, String resourceName, String policyName) { + this.serviceClient().delete(resourceGroupName, resourceName, policyName); } - public void delete(String resourceName, String resourceGroupName, String policyName, Context context) { - this.serviceClient().delete(resourceName, resourceGroupName, policyName, context); + public void delete(String resourceGroupName, String resourceName, String policyName, Context context) { + this.serviceClient().delete(resourceGroupName, resourceName, policyName, context); } public Policy getById(String id) { - String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); - if (resourceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); - } String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); + if (resourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); + } String policyName = ResourceManagerUtils.getValueFromIdByName(id, "replicationPolicies"); if (policyName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'replicationPolicies'.", id))); } - return this.getWithResponse(resourceName, resourceGroupName, policyName, Context.NONE).getValue(); + return this.getWithResponse(resourceGroupName, resourceName, policyName, Context.NONE).getValue(); } public Response getByIdWithResponse(String id, Context context) { - String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); - if (resourceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); - } String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); + if (resourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); + } String policyName = ResourceManagerUtils.getValueFromIdByName(id, "replicationPolicies"); if (policyName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'replicationPolicies'.", id))); } - return this.getWithResponse(resourceName, resourceGroupName, policyName, context); + return this.getWithResponse(resourceGroupName, resourceName, policyName, context); } public void deleteById(String id) { - String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); - if (resourceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); - } String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); + if (resourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); + } String policyName = ResourceManagerUtils.getValueFromIdByName(id, "replicationPolicies"); if (policyName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'replicationPolicies'.", id))); } - this.delete(resourceName, resourceGroupName, policyName, Context.NONE); + this.delete(resourceGroupName, resourceName, policyName, Context.NONE); } public void deleteByIdWithResponse(String id, Context context) { - String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); - if (resourceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); - } String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); + if (resourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); + } String policyName = ResourceManagerUtils.getValueFromIdByName(id, "replicationPolicies"); if (policyName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'replicationPolicies'.", id))); } - this.delete(resourceName, resourceGroupName, policyName, context); + this.delete(resourceGroupName, resourceName, policyName, context); } private ReplicationPoliciesClient serviceClient() { diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectableItemsClientImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectableItemsClientImpl.java index 2e06e2a2da0f..8dffd57a7f29 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectableItemsClientImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectableItemsClientImpl.java @@ -68,7 +68,7 @@ public interface ReplicationProtectableItemsService { @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByReplicationProtectionContainers( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("resourceName") String resourceName, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @QueryParam("$filter") String filter, @QueryParam("$take") String take, @QueryParam("$skipToken") String skipToken, @@ -79,9 +79,9 @@ Mono> listByReplicationProtectionContainers( @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @PathParam("protectableItemName") String protectableItemName, @HeaderParam("Accept") String accept, Context context); @@ -100,8 +100,8 @@ Mono> listByReplicationProtectionContainersN * * Lists the protectable items in a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param filter OData filter options. @@ -114,19 +114,19 @@ Mono> listByReplicationProtectionContainersN */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByReplicationProtectionContainersSinglePageAsync( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, String filter, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String filter, String take, String skipToken) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -141,7 +141,7 @@ private Mono> listByReplicationProtectionCon final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByReplicationProtectionContainers(this.client.getEndpoint(), - this.client.getApiVersion(), resourceName, resourceGroupName, this.client.getSubscriptionId(), + this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, filter, take, skipToken, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) @@ -153,8 +153,8 @@ private Mono> listByReplicationProtectionCon * * Lists the protectable items in a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param filter OData filter options. @@ -168,19 +168,19 @@ private Mono> listByReplicationProtectionCon */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByReplicationProtectionContainersSinglePageAsync( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, String filter, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String filter, String take, String skipToken, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -195,9 +195,9 @@ private Mono> listByReplicationProtectionCon final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByReplicationProtectionContainers(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, filter, take, - skipToken, accept, context) + .listByReplicationProtectionContainers(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + filter, take, skipToken, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -207,8 +207,8 @@ private Mono> listByReplicationProtectionCon * * Lists the protectable items in a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param filter OData filter options. @@ -220,11 +220,11 @@ private Mono> listByReplicationProtectionCon * @return protectable item collection as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByReplicationProtectionContainersAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String filter, String take, + private PagedFlux listByReplicationProtectionContainersAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String filter, String take, String skipToken) { return new PagedFlux<>( - () -> listByReplicationProtectionContainersSinglePageAsync(resourceName, resourceGroupName, fabricName, + () -> listByReplicationProtectionContainersSinglePageAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, filter, take, skipToken), nextLink -> listByReplicationProtectionContainersNextSinglePageAsync(nextLink)); } @@ -234,8 +234,8 @@ private PagedFlux listByReplicationProtectionContainersAsy * * Lists the protectable items in a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -244,13 +244,13 @@ private PagedFlux listByReplicationProtectionContainersAsy * @return protectable item collection as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByReplicationProtectionContainersAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName) { + private PagedFlux listByReplicationProtectionContainersAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName) { final String filter = null; final String take = null; final String skipToken = null; return new PagedFlux<>( - () -> listByReplicationProtectionContainersSinglePageAsync(resourceName, resourceGroupName, fabricName, + () -> listByReplicationProtectionContainersSinglePageAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, filter, take, skipToken), nextLink -> listByReplicationProtectionContainersNextSinglePageAsync(nextLink)); } @@ -260,8 +260,8 @@ private PagedFlux listByReplicationProtectionContainersAsy * * Lists the protectable items in a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param filter OData filter options. @@ -274,11 +274,11 @@ private PagedFlux listByReplicationProtectionContainersAsy * @return protectable item collection as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByReplicationProtectionContainersAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String filter, String take, + private PagedFlux listByReplicationProtectionContainersAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String filter, String take, String skipToken, Context context) { return new PagedFlux<>( - () -> listByReplicationProtectionContainersSinglePageAsync(resourceName, resourceGroupName, fabricName, + () -> listByReplicationProtectionContainersSinglePageAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, filter, take, skipToken, context), nextLink -> listByReplicationProtectionContainersNextSinglePageAsync(nextLink, context)); } @@ -288,8 +288,8 @@ private PagedFlux listByReplicationProtectionContainersAsy * * Lists the protectable items in a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -298,12 +298,12 @@ private PagedFlux listByReplicationProtectionContainersAsy * @return protectable item collection as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByReplicationProtectionContainers(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName) { + public PagedIterable listByReplicationProtectionContainers(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName) { final String filter = null; final String take = null; final String skipToken = null; - return new PagedIterable<>(listByReplicationProtectionContainersAsync(resourceName, resourceGroupName, + return new PagedIterable<>(listByReplicationProtectionContainersAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, filter, take, skipToken)); } @@ -312,8 +312,8 @@ public PagedIterable listByReplicationProtectionContainers * * Lists the protectable items in a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param filter OData filter options. @@ -326,10 +326,10 @@ public PagedIterable listByReplicationProtectionContainers * @return protectable item collection as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByReplicationProtectionContainers(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String filter, String take, + public PagedIterable listByReplicationProtectionContainers(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String filter, String take, String skipToken, Context context) { - return new PagedIterable<>(listByReplicationProtectionContainersAsync(resourceName, resourceGroupName, + return new PagedIterable<>(listByReplicationProtectionContainersAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, filter, take, skipToken, context)); } @@ -338,8 +338,8 @@ public PagedIterable listByReplicationProtectionContainers * * The operation to get the details of a protectable item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param protectableItemName Protectable item name. @@ -349,19 +349,19 @@ public PagedIterable listByReplicationProtectionContainers * @return replication protected item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceName, String resourceGroupName, + private Mono> getWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String protectableItemName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -379,8 +379,8 @@ private Mono> getWithResponseAsync(String resourc } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, protectableItemName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -390,8 +390,8 @@ private Mono> getWithResponseAsync(String resourc * * The operation to get the details of a protectable item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param protectableItemName Protectable item name. @@ -402,19 +402,19 @@ private Mono> getWithResponseAsync(String resourc * @return replication protected item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceName, String resourceGroupName, + private Mono> getWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String protectableItemName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -432,7 +432,7 @@ private Mono> getWithResponseAsync(String resourc } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, protectableItemName, accept, context); } @@ -441,8 +441,8 @@ private Mono> getWithResponseAsync(String resourc * * The operation to get the details of a protectable item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param protectableItemName Protectable item name. @@ -452,9 +452,9 @@ private Mono> getWithResponseAsync(String resourc * @return replication protected item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono getAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String protectableItemName) { - return getWithResponseAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return getWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, protectableItemName).flatMap(res -> Mono.justOrEmpty(res.getValue())); } @@ -463,8 +463,8 @@ private Mono getAsync(String resourceName, String resource * * The operation to get the details of a protectable item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param protectableItemName Protectable item name. @@ -475,9 +475,9 @@ private Mono getAsync(String resourceName, String resource * @return replication protected item along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceName, String resourceGroupName, + public Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String protectableItemName, Context context) { - return getWithResponseAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return getWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, protectableItemName, context).block(); } @@ -486,8 +486,8 @@ public Response getWithResponse(String resourceName, Strin * * The operation to get the details of a protectable item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param protectableItemName Protectable item name. @@ -497,9 +497,9 @@ public Response getWithResponse(String resourceName, Strin * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ProtectableItemInner get(String resourceName, String resourceGroupName, String fabricName, + public ProtectableItemInner get(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String protectableItemName) { - return getWithResponse(resourceName, resourceGroupName, fabricName, protectionContainerName, + return getWithResponse(resourceGroupName, resourceName, fabricName, protectionContainerName, protectableItemName, Context.NONE).getValue(); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectableItemsImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectableItemsImpl.java index 22a53be15e2e..feaa365edf29 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectableItemsImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectableItemsImpl.java @@ -27,27 +27,27 @@ public ReplicationProtectableItemsImpl(ReplicationProtectableItemsClient innerCl this.serviceManager = serviceManager; } - public PagedIterable listByReplicationProtectionContainers(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName) { + public PagedIterable listByReplicationProtectionContainers(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName) { PagedIterable inner = this.serviceClient() - .listByReplicationProtectionContainers(resourceName, resourceGroupName, fabricName, + .listByReplicationProtectionContainers(resourceGroupName, resourceName, fabricName, protectionContainerName); return ResourceManagerUtils.mapPage(inner, inner1 -> new ProtectableItemImpl(inner1, this.manager())); } - public PagedIterable listByReplicationProtectionContainers(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String filter, String take, + public PagedIterable listByReplicationProtectionContainers(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String filter, String take, String skipToken, Context context) { PagedIterable inner = this.serviceClient() - .listByReplicationProtectionContainers(resourceName, resourceGroupName, fabricName, protectionContainerName, + .listByReplicationProtectionContainers(resourceGroupName, resourceName, fabricName, protectionContainerName, filter, take, skipToken, context); return ResourceManagerUtils.mapPage(inner, inner1 -> new ProtectableItemImpl(inner1, this.manager())); } - public Response getWithResponse(String resourceName, String resourceGroupName, String fabricName, + public Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String protectableItemName, Context context) { Response inner = this.serviceClient() - .getWithResponse(resourceName, resourceGroupName, fabricName, protectionContainerName, protectableItemName, + .getWithResponse(resourceGroupName, resourceName, fabricName, protectionContainerName, protectableItemName, context); if (inner != null) { return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), @@ -57,10 +57,10 @@ public Response getWithResponse(String resourceName, String res } } - public ProtectableItem get(String resourceName, String resourceGroupName, String fabricName, + public ProtectableItem get(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String protectableItemName) { ProtectableItemInner inner = this.serviceClient() - .get(resourceName, resourceGroupName, fabricName, protectionContainerName, protectableItemName); + .get(resourceGroupName, resourceName, fabricName, protectionContainerName, protectableItemName); if (inner != null) { return new ProtectableItemImpl(inner, this.manager()); } else { diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectedItemImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectedItemImpl.java index 3ab4c0922619..95c1b5f2fb4a 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectedItemImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectedItemImpl.java @@ -73,10 +73,10 @@ private com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManag return this.serviceManager; } - private String resourceName; - private String resourceGroupName; + private String resourceName; + private String fabricName; private String protectionContainerName; @@ -87,10 +87,10 @@ private com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManag private UpdateReplicationProtectedItemInput updateUpdateProtectionInput; - public ReplicationProtectedItemImpl withExistingReplicationProtectionContainer(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName) { - this.resourceName = resourceName; + public ReplicationProtectedItemImpl withExistingReplicationProtectionContainer(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName) { this.resourceGroupName = resourceGroupName; + this.resourceName = resourceName; this.fabricName = fabricName; this.protectionContainerName = protectionContainerName; return this; @@ -99,7 +99,7 @@ public ReplicationProtectedItemImpl withExistingReplicationProtectionContainer(S public ReplicationProtectedItem create() { this.innerObject = serviceManager.serviceClient() .getReplicationProtectedItems() - .create(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, + .create(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, createInput, Context.NONE); return this; } @@ -107,7 +107,7 @@ public ReplicationProtectedItem create() { public ReplicationProtectedItem create(Context context) { this.innerObject = serviceManager.serviceClient() .getReplicationProtectedItems() - .create(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, + .create(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, createInput, context); return this; } @@ -128,7 +128,7 @@ public ReplicationProtectedItemImpl update() { public ReplicationProtectedItem apply() { this.innerObject = serviceManager.serviceClient() .getReplicationProtectedItems() - .update(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, + .update(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, updateUpdateProtectionInput, Context.NONE); return this; } @@ -136,7 +136,7 @@ public ReplicationProtectedItem apply() { public ReplicationProtectedItem apply(Context context) { this.innerObject = serviceManager.serviceClient() .getReplicationProtectedItems() - .update(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, + .update(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, updateUpdateProtectionInput, context); return this; } @@ -145,8 +145,8 @@ public ReplicationProtectedItem apply(Context context) { com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "vaults"); this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.resourceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "vaults"); this.fabricName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "replicationFabrics"); this.protectionContainerName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "replicationProtectionContainers"); @@ -157,7 +157,7 @@ public ReplicationProtectedItem apply(Context context) { public ReplicationProtectedItem refresh() { this.innerObject = serviceManager.serviceClient() .getReplicationProtectedItems() - .getWithResponse(resourceName, resourceGroupName, fabricName, protectionContainerName, + .getWithResponse(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, Context.NONE) .getValue(); return this; @@ -166,7 +166,7 @@ public ReplicationProtectedItem refresh() { public ReplicationProtectedItem refresh(Context context) { this.innerObject = serviceManager.serviceClient() .getReplicationProtectedItems() - .getWithResponse(resourceName, resourceGroupName, fabricName, protectionContainerName, + .getWithResponse(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, context) .getValue(); return this; @@ -174,197 +174,197 @@ public ReplicationProtectedItem refresh(Context context) { public ReplicationProtectedItem addDisks(AddDisksInput addDisksInput) { return serviceManager.replicationProtectedItems() - .addDisks(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, + .addDisks(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, addDisksInput); } public ReplicationProtectedItem addDisks(AddDisksInput addDisksInput, Context context) { return serviceManager.replicationProtectedItems() - .addDisks(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, + .addDisks(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, addDisksInput, context); } public ReplicationProtectedItem applyRecoveryPoint(ApplyRecoveryPointInput applyRecoveryPointInput) { return serviceManager.replicationProtectedItems() - .applyRecoveryPoint(resourceName, resourceGroupName, fabricName, protectionContainerName, + .applyRecoveryPoint(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, applyRecoveryPointInput); } public ReplicationProtectedItem applyRecoveryPoint(ApplyRecoveryPointInput applyRecoveryPointInput, Context context) { return serviceManager.replicationProtectedItems() - .applyRecoveryPoint(resourceName, resourceGroupName, fabricName, protectionContainerName, + .applyRecoveryPoint(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, applyRecoveryPointInput, context); } public ReplicationProtectedItem failoverCancel() { return serviceManager.replicationProtectedItems() - .failoverCancel(resourceName, resourceGroupName, fabricName, protectionContainerName, + .failoverCancel(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName); } public ReplicationProtectedItem failoverCancel(Context context) { return serviceManager.replicationProtectedItems() - .failoverCancel(resourceName, resourceGroupName, fabricName, protectionContainerName, + .failoverCancel(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, context); } public ReplicationProtectedItem failoverCommit() { return serviceManager.replicationProtectedItems() - .failoverCommit(resourceName, resourceGroupName, fabricName, protectionContainerName, + .failoverCommit(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName); } public ReplicationProtectedItem failoverCommit(Context context) { return serviceManager.replicationProtectedItems() - .failoverCommit(resourceName, resourceGroupName, fabricName, protectionContainerName, + .failoverCommit(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, context); } public ReplicationProtectedItem plannedFailover(PlannedFailoverInput failoverInput) { return serviceManager.replicationProtectedItems() - .plannedFailover(resourceName, resourceGroupName, fabricName, protectionContainerName, + .plannedFailover(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput); } public ReplicationProtectedItem plannedFailover(PlannedFailoverInput failoverInput, Context context) { return serviceManager.replicationProtectedItems() - .plannedFailover(resourceName, resourceGroupName, fabricName, protectionContainerName, + .plannedFailover(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, context); } public void delete(DisableProtectionInput disableProtectionInput) { serviceManager.replicationProtectedItems() - .delete(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, + .delete(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, disableProtectionInput); } public void delete(DisableProtectionInput disableProtectionInput, Context context) { serviceManager.replicationProtectedItems() - .delete(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, + .delete(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, disableProtectionInput, context); } public ReplicationProtectedItem removeDisks(RemoveDisksInput removeDisksInput) { return serviceManager.replicationProtectedItems() - .removeDisks(resourceName, resourceGroupName, fabricName, protectionContainerName, + .removeDisks(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, removeDisksInput); } public ReplicationProtectedItem removeDisks(RemoveDisksInput removeDisksInput, Context context) { return serviceManager.replicationProtectedItems() - .removeDisks(resourceName, resourceGroupName, fabricName, protectionContainerName, + .removeDisks(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, removeDisksInput, context); } public ReplicationProtectedItem repairReplication() { return serviceManager.replicationProtectedItems() - .repairReplication(resourceName, resourceGroupName, fabricName, protectionContainerName, + .repairReplication(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName); } public ReplicationProtectedItem repairReplication(Context context) { return serviceManager.replicationProtectedItems() - .repairReplication(resourceName, resourceGroupName, fabricName, protectionContainerName, + .repairReplication(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, context); } public ReplicationProtectedItem reprotect(ReverseReplicationInput reprotectInput) { return serviceManager.replicationProtectedItems() - .reprotect(resourceName, resourceGroupName, fabricName, protectionContainerName, + .reprotect(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, reprotectInput); } public ReplicationProtectedItem reprotect(ReverseReplicationInput reprotectInput, Context context) { return serviceManager.replicationProtectedItems() - .reprotect(resourceName, resourceGroupName, fabricName, protectionContainerName, + .reprotect(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, reprotectInput, context); } public ReplicationProtectedItem resolveHealthErrors(ResolveHealthInput resolveHealthInput) { return serviceManager.replicationProtectedItems() - .resolveHealthErrors(resourceName, resourceGroupName, fabricName, protectionContainerName, + .resolveHealthErrors(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, resolveHealthInput); } public ReplicationProtectedItem resolveHealthErrors(ResolveHealthInput resolveHealthInput, Context context) { return serviceManager.replicationProtectedItems() - .resolveHealthErrors(resourceName, resourceGroupName, fabricName, protectionContainerName, + .resolveHealthErrors(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, resolveHealthInput, context); } public ReplicationProtectedItem switchProvider(SwitchProviderInput switchProviderInput) { return serviceManager.replicationProtectedItems() - .switchProvider(resourceName, resourceGroupName, fabricName, protectionContainerName, + .switchProvider(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, switchProviderInput); } public ReplicationProtectedItem switchProvider(SwitchProviderInput switchProviderInput, Context context) { return serviceManager.replicationProtectedItems() - .switchProvider(resourceName, resourceGroupName, fabricName, protectionContainerName, + .switchProvider(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, switchProviderInput, context); } public ReplicationProtectedItem testFailover(TestFailoverInput testfailoverInput) { return serviceManager.replicationProtectedItems() - .testFailover(resourceName, resourceGroupName, fabricName, protectionContainerName, + .testFailover(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, testfailoverInput); } public ReplicationProtectedItem testFailover(TestFailoverInput testfailoverInput, Context context) { return serviceManager.replicationProtectedItems() - .testFailover(resourceName, resourceGroupName, fabricName, protectionContainerName, + .testFailover(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, testfailoverInput, context); } public ReplicationProtectedItem testFailoverCleanup(TestFailoverCleanupInput cleanupInput) { return serviceManager.replicationProtectedItems() - .testFailoverCleanup(resourceName, resourceGroupName, fabricName, protectionContainerName, + .testFailoverCleanup(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, cleanupInput); } public ReplicationProtectedItem testFailoverCleanup(TestFailoverCleanupInput cleanupInput, Context context) { return serviceManager.replicationProtectedItems() - .testFailoverCleanup(resourceName, resourceGroupName, fabricName, protectionContainerName, + .testFailoverCleanup(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, cleanupInput, context); } public ReplicationProtectedItem unplannedFailover(UnplannedFailoverInput failoverInput) { return serviceManager.replicationProtectedItems() - .unplannedFailover(resourceName, resourceGroupName, fabricName, protectionContainerName, + .unplannedFailover(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput); } public ReplicationProtectedItem unplannedFailover(UnplannedFailoverInput failoverInput, Context context) { return serviceManager.replicationProtectedItems() - .unplannedFailover(resourceName, resourceGroupName, fabricName, protectionContainerName, + .unplannedFailover(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, context); } public ReplicationProtectedItem updateAppliance(UpdateApplianceForReplicationProtectedItemInput applianceUpdateInput) { return serviceManager.replicationProtectedItems() - .updateAppliance(resourceName, resourceGroupName, fabricName, protectionContainerName, + .updateAppliance(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, applianceUpdateInput); } public ReplicationProtectedItem updateAppliance(UpdateApplianceForReplicationProtectedItemInput applianceUpdateInput, Context context) { return serviceManager.replicationProtectedItems() - .updateAppliance(resourceName, resourceGroupName, fabricName, protectionContainerName, + .updateAppliance(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, applianceUpdateInput, context); } public ReplicationProtectedItem updateMobilityService(UpdateMobilityServiceRequest updateMobilityServiceRequest) { return serviceManager.replicationProtectedItems() - .updateMobilityService(resourceName, resourceGroupName, fabricName, protectionContainerName, + .updateMobilityService(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, updateMobilityServiceRequest); } public ReplicationProtectedItem updateMobilityService(UpdateMobilityServiceRequest updateMobilityServiceRequest, Context context) { return serviceManager.replicationProtectedItems() - .updateMobilityService(resourceName, resourceGroupName, fabricName, protectionContainerName, + .updateMobilityService(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, updateMobilityServiceRequest, context); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectedItemsClientImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectedItemsClientImpl.java index 1e9e08b8469a..cf7ae70d1912 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectedItemsClientImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectedItemsClientImpl.java @@ -93,7 +93,7 @@ public interface ReplicationProtectedItemsService { @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByReplicationProtectionContainers( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("resourceName") String resourceName, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @HeaderParam("Accept") String accept, Context context); @@ -103,9 +103,9 @@ Mono> listByReplicationProtectionCo @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @PathParam("replicatedProtectedItemName") String replicatedProtectedItemName, @HeaderParam("Accept") String accept, Context context); @@ -115,9 +115,9 @@ Mono> get(@HostParam("$host") String end @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> create(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @PathParam("replicatedProtectedItemName") String replicatedProtectedItemName, @BodyParam("application/json") EnableProtectionInput input, @HeaderParam("Accept") String accept, @@ -128,9 +128,9 @@ Mono>> create(@HostParam("$host") String endpoint, @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> purge(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @PathParam("replicatedProtectedItemName") String replicatedProtectedItemName, Context context); @@ -139,9 +139,9 @@ Mono>> purge(@HostParam("$host") String endpoint, @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> update(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @PathParam("replicatedProtectedItemName") String replicatedProtectedItemName, @BodyParam("application/json") UpdateReplicationProtectedItemInput updateProtectionInput, @@ -152,9 +152,9 @@ Mono>> update(@HostParam("$host") String endpoint, @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> addDisks(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @PathParam("replicatedProtectedItemName") String replicatedProtectedItemName, @BodyParam("application/json") AddDisksInput addDisksInput, @HeaderParam("Accept") String accept, @@ -165,9 +165,9 @@ Mono>> addDisks(@HostParam("$host") String endpoint, @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> applyRecoveryPoint(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @PathParam("replicatedProtectedItemName") String replicatedProtectedItemName, @BodyParam("application/json") ApplyRecoveryPointInput applyRecoveryPointInput, @@ -178,9 +178,9 @@ Mono>> applyRecoveryPoint(@HostParam("$host") String e @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> failoverCancel(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @PathParam("replicatedProtectedItemName") String replicatedProtectedItemName, @HeaderParam("Accept") String accept, Context context); @@ -190,9 +190,9 @@ Mono>> failoverCancel(@HostParam("$host") String endpo @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> failoverCommit(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @PathParam("replicatedProtectedItemName") String replicatedProtectedItemName, @HeaderParam("Accept") String accept, Context context); @@ -202,9 +202,9 @@ Mono>> failoverCommit(@HostParam("$host") String endpo @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> plannedFailover(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @PathParam("replicatedProtectedItemName") String replicatedProtectedItemName, @BodyParam("application/json") PlannedFailoverInput failoverInput, @HeaderParam("Accept") String accept, @@ -215,9 +215,9 @@ Mono>> plannedFailover(@HostParam("$host") String endp @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> delete(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @PathParam("replicatedProtectedItemName") String replicatedProtectedItemName, @BodyParam("application/json") DisableProtectionInput disableProtectionInput, Context context); @@ -227,9 +227,9 @@ Mono>> delete(@HostParam("$host") String endpoint, @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> removeDisks(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @PathParam("replicatedProtectedItemName") String replicatedProtectedItemName, @BodyParam("application/json") RemoveDisksInput removeDisksInput, @HeaderParam("Accept") String accept, @@ -240,9 +240,9 @@ Mono>> removeDisks(@HostParam("$host") String endpoint @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> repairReplication(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @PathParam("replicatedProtectedItemName") String replicatedProtectedItemName, @HeaderParam("Accept") String accept, Context context); @@ -252,9 +252,9 @@ Mono>> repairReplication(@HostParam("$host") String en @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> reprotect(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @PathParam("replicatedProtectedItemName") String replicatedProtectedItemName, @BodyParam("application/json") ReverseReplicationInput reprotectInput, @HeaderParam("Accept") String accept, @@ -265,9 +265,9 @@ Mono>> reprotect(@HostParam("$host") String endpoint, @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> resolveHealthErrors(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @PathParam("replicatedProtectedItemName") String replicatedProtectedItemName, @BodyParam("application/json") ResolveHealthInput resolveHealthInput, @HeaderParam("Accept") String accept, @@ -278,9 +278,9 @@ Mono>> resolveHealthErrors(@HostParam("$host") String @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> switchProvider(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @PathParam("replicatedProtectedItemName") String replicatedProtectedItemName, @BodyParam("application/json") SwitchProviderInput switchProviderInput, @@ -291,9 +291,9 @@ Mono>> switchProvider(@HostParam("$host") String endpo @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> testFailover(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @PathParam("replicatedProtectedItemName") String replicatedProtectedItemName, @BodyParam("application/json") TestFailoverInput testfailoverInput, @HeaderParam("Accept") String accept, @@ -304,9 +304,9 @@ Mono>> testFailover(@HostParam("$host") String endpoin @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> testFailoverCleanup(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @PathParam("replicatedProtectedItemName") String replicatedProtectedItemName, @BodyParam("application/json") TestFailoverCleanupInput cleanupInput, @HeaderParam("Accept") String accept, @@ -317,9 +317,9 @@ Mono>> testFailoverCleanup(@HostParam("$host") String @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> unplannedFailover(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @PathParam("replicatedProtectedItemName") String replicatedProtectedItemName, @BodyParam("application/json") UnplannedFailoverInput failoverInput, @HeaderParam("Accept") String accept, @@ -330,9 +330,9 @@ Mono>> unplannedFailover(@HostParam("$host") String en @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> updateAppliance(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @PathParam("replicatedProtectedItemName") String replicatedProtectedItemName, @BodyParam("application/json") UpdateApplianceForReplicationProtectedItemInput applianceUpdateInput, @@ -343,9 +343,9 @@ Mono>> updateAppliance(@HostParam("$host") String endp @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> updateMobilityService(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @PathParam("replicatedProtectedItemName") String replicatedProtectedItemName, @BodyParam("application/json") UpdateMobilityServiceRequest updateMobilityServiceRequest, @@ -356,10 +356,10 @@ Mono>> updateMobilityService(@HostParam("$host") Strin @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> list(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("skipToken") String skipToken, - @QueryParam("$filter") String filter, @HeaderParam("Accept") String accept, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @QueryParam("skipToken") String skipToken, @QueryParam("$filter") String filter, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @@ -383,8 +383,8 @@ Mono> listNext( * * Gets the list of ASR replication protected items in the protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -395,18 +395,18 @@ Mono> listNext( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByReplicationProtectionContainersSinglePageAsync( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName) { + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -421,7 +421,7 @@ private Mono> listByReplicationProt final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByReplicationProtectionContainers(this.client.getEndpoint(), - this.client.getApiVersion(), resourceName, resourceGroupName, this.client.getSubscriptionId(), + this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) @@ -433,8 +433,8 @@ private Mono> listByReplicationProt * * Gets the list of ASR replication protected items in the protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param context The context to associate with this operation. @@ -446,19 +446,19 @@ private Mono> listByReplicationProt */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByReplicationProtectionContainersSinglePageAsync( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -473,9 +473,9 @@ private Mono> listByReplicationProt final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByReplicationProtectionContainers(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, accept, - context) + .listByReplicationProtectionContainers(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -485,8 +485,8 @@ private Mono> listByReplicationProt * * Gets the list of ASR replication protected items in the protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -496,10 +496,10 @@ private Mono> listByReplicationProt * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByReplicationProtectionContainersAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName) { + private PagedFlux listByReplicationProtectionContainersAsync( + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName) { return new PagedFlux<>( - () -> listByReplicationProtectionContainersSinglePageAsync(resourceName, resourceGroupName, fabricName, + () -> listByReplicationProtectionContainersSinglePageAsync(resourceGroupName, resourceName, fabricName, protectionContainerName), nextLink -> listByReplicationProtectionContainersNextSinglePageAsync(nextLink)); } @@ -509,8 +509,8 @@ private PagedFlux listByReplicationProtectionCont * * Gets the list of ASR replication protected items in the protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param context The context to associate with this operation. @@ -521,10 +521,11 @@ private PagedFlux listByReplicationProtectionCont * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByReplicationProtectionContainersAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, Context context) { + private PagedFlux listByReplicationProtectionContainersAsync( + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, + Context context) { return new PagedFlux<>( - () -> listByReplicationProtectionContainersSinglePageAsync(resourceName, resourceGroupName, fabricName, + () -> listByReplicationProtectionContainersSinglePageAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, context), nextLink -> listByReplicationProtectionContainersNextSinglePageAsync(nextLink, context)); } @@ -534,8 +535,8 @@ private PagedFlux listByReplicationProtectionCont * * Gets the list of ASR replication protected items in the protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -545,9 +546,9 @@ private PagedFlux listByReplicationProtectionCont * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByReplicationProtectionContainers(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName) { - return new PagedIterable<>(listByReplicationProtectionContainersAsync(resourceName, resourceGroupName, + public PagedIterable listByReplicationProtectionContainers(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName) { + return new PagedIterable<>(listByReplicationProtectionContainersAsync(resourceGroupName, resourceName, fabricName, protectionContainerName)); } @@ -556,8 +557,8 @@ public PagedIterable listByReplicationProtectionC * * Gets the list of ASR replication protected items in the protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param context The context to associate with this operation. @@ -568,9 +569,9 @@ public PagedIterable listByReplicationProtectionC * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByReplicationProtectionContainers(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, Context context) { - return new PagedIterable<>(listByReplicationProtectionContainersAsync(resourceName, resourceGroupName, + public PagedIterable listByReplicationProtectionContainers(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, Context context) { + return new PagedIterable<>(listByReplicationProtectionContainersAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, context)); } @@ -579,8 +580,8 @@ public PagedIterable listByReplicationProtectionC * * Gets the details of an ASR replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric unique name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -591,20 +592,19 @@ public PagedIterable listByReplicationProtectionC * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, - String replicatedProtectedItemName) { + private Mono> getWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -622,8 +622,8 @@ private Mono> getWithResponseAsync(Strin } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, replicatedProtectedItemName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -633,8 +633,8 @@ private Mono> getWithResponseAsync(Strin * * Gets the details of an ASR replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric unique name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -646,20 +646,20 @@ private Mono> getWithResponseAsync(Strin * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, + private Mono> getWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -677,7 +677,7 @@ private Mono> getWithResponseAsync(Strin } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, replicatedProtectedItemName, accept, context); } @@ -687,8 +687,8 @@ private Mono> getWithResponseAsync(Strin * * Gets the details of an ASR replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric unique name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -698,9 +698,9 @@ private Mono> getWithResponseAsync(Strin * @return the details of an ASR replication protected item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceName, String resourceGroupName, + private Mono getAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName) { - return getWithResponseAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return getWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName).flatMap(res -> Mono.justOrEmpty(res.getValue())); } @@ -709,8 +709,8 @@ private Mono getAsync(String resourceName, String * * Gets the details of an ASR replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric unique name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -721,9 +721,9 @@ private Mono getAsync(String resourceName, String * @return the details of an ASR replication protected item along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceName, String resourceGroupName, + public Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context) { - return getWithResponseAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return getWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, context).block(); } @@ -732,8 +732,8 @@ public Response getWithResponse(String resourceNa * * Gets the details of an ASR replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric unique name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -743,9 +743,9 @@ public Response getWithResponse(String resourceNa * @return the details of an ASR replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReplicationProtectedItemInner get(String resourceName, String resourceGroupName, String fabricName, + public ReplicationProtectedItemInner get(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName) { - return getWithResponse(resourceName, resourceGroupName, fabricName, protectionContainerName, + return getWithResponse(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, Context.NONE).getValue(); } @@ -754,8 +754,8 @@ public ReplicationProtectedItemInner get(String resourceName, String resourceGro * * The operation to create an ASR replication protected item (Enable replication). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Name of the fabric. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName A name for the replication protected item. @@ -766,20 +766,20 @@ public ReplicationProtectedItemInner get(String resourceName, String resourceGro * @return replication protected item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> createWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, EnableProtectionInput input) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -802,8 +802,8 @@ private Mono>> createWithResponseAsync(String resource } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, replicatedProtectedItemName, input, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -813,8 +813,8 @@ private Mono>> createWithResponseAsync(String resource * * The operation to create an ASR replication protected item (Enable replication). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Name of the fabric. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName A name for the replication protected item. @@ -826,20 +826,20 @@ private Mono>> createWithResponseAsync(String resource * @return replication protected item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> createWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, EnableProtectionInput input, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -862,7 +862,7 @@ private Mono>> createWithResponseAsync(String resource } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.create(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.create(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, replicatedProtectedItemName, input, accept, context); } @@ -872,8 +872,8 @@ private Mono>> createWithResponseAsync(String resource * * The operation to create an ASR replication protected item (Enable replication). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Name of the fabric. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName A name for the replication protected item. @@ -885,9 +885,9 @@ private Mono>> createWithResponseAsync(String resource */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ReplicationProtectedItemInner> beginCreateAsync( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, EnableProtectionInput input) { - Mono>> mono = createWithResponseAsync(resourceName, resourceGroupName, fabricName, + Mono>> mono = createWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, input); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ReplicationProtectedItemInner.class, ReplicationProtectedItemInner.class, @@ -899,8 +899,8 @@ private PollerFlux, ReplicationProtect * * The operation to create an ASR replication protected item (Enable replication). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Name of the fabric. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName A name for the replication protected item. @@ -913,10 +913,10 @@ private PollerFlux, ReplicationProtect */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ReplicationProtectedItemInner> beginCreateAsync( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, EnableProtectionInput input, Context context) { context = this.client.mergeContext(context); - Mono>> mono = createWithResponseAsync(resourceName, resourceGroupName, fabricName, + Mono>> mono = createWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, input, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ReplicationProtectedItemInner.class, ReplicationProtectedItemInner.class, @@ -928,8 +928,8 @@ private PollerFlux, ReplicationProtect * * The operation to create an ASR replication protected item (Enable replication). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Name of the fabric. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName A name for the replication protected item. @@ -941,10 +941,10 @@ private PollerFlux, ReplicationProtect */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ReplicationProtectedItemInner> beginCreate( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, EnableProtectionInput input) { return this - .beginCreateAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginCreateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, input) .getSyncPoller(); } @@ -954,8 +954,8 @@ public SyncPoller, ReplicationProtecte * * The operation to create an ASR replication protected item (Enable replication). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Name of the fabric. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName A name for the replication protected item. @@ -968,10 +968,10 @@ public SyncPoller, ReplicationProtecte */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ReplicationProtectedItemInner> beginCreate( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, EnableProtectionInput input, Context context) { return this - .beginCreateAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginCreateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, input, context) .getSyncPoller(); } @@ -981,8 +981,8 @@ public SyncPoller, ReplicationProtecte * * The operation to create an ASR replication protected item (Enable replication). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Name of the fabric. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName A name for the replication protected item. @@ -993,10 +993,10 @@ public SyncPoller, ReplicationProtecte * @return replication protected item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync(String resourceName, String resourceGroupName, + private Mono createAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, EnableProtectionInput input) { - return beginCreateAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginCreateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, input).last().flatMap(this.client::getLroFinalResultOrError); } @@ -1005,8 +1005,8 @@ private Mono createAsync(String resourceName, Str * * The operation to create an ASR replication protected item (Enable replication). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Name of the fabric. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName A name for the replication protected item. @@ -1018,10 +1018,10 @@ private Mono createAsync(String resourceName, Str * @return replication protected item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync(String resourceName, String resourceGroupName, + private Mono createAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, EnableProtectionInput input, Context context) { - return beginCreateAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginCreateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, input, context).last().flatMap(this.client::getLroFinalResultOrError); } @@ -1030,8 +1030,8 @@ private Mono createAsync(String resourceName, Str * * The operation to create an ASR replication protected item (Enable replication). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Name of the fabric. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName A name for the replication protected item. @@ -1042,9 +1042,9 @@ private Mono createAsync(String resourceName, Str * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReplicationProtectedItemInner create(String resourceName, String resourceGroupName, String fabricName, + public ReplicationProtectedItemInner create(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, EnableProtectionInput input) { - return createAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return createAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, input).block(); } @@ -1053,8 +1053,8 @@ public ReplicationProtectedItemInner create(String resourceName, String resource * * The operation to create an ASR replication protected item (Enable replication). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Name of the fabric. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName A name for the replication protected item. @@ -1066,10 +1066,10 @@ public ReplicationProtectedItemInner create(String resourceName, String resource * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReplicationProtectedItemInner create(String resourceName, String resourceGroupName, String fabricName, + public ReplicationProtectedItemInner create(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, EnableProtectionInput input, Context context) { - return createAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return createAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, input, context).block(); } @@ -1080,8 +1080,8 @@ public ReplicationProtectedItemInner create(String resourceName, String resource * protected item. Use the remove operation on replication protected item to perform a clean disable replication for * the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1091,19 +1091,19 @@ public ReplicationProtectedItemInner create(String resourceName, String resource * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> purgeWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> purgeWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1120,8 +1120,8 @@ private Mono>> purgeWithResponseAsync(String resourceN new IllegalArgumentException("Parameter replicatedProtectedItemName is required and cannot be null.")); } return FluxUtil - .withContext(context -> service.purge(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + .withContext(context -> service.purge(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, replicatedProtectedItemName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1133,8 +1133,8 @@ private Mono>> purgeWithResponseAsync(String resourceN * protected item. Use the remove operation on replication protected item to perform a clean disable replication for * the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1145,19 +1145,19 @@ private Mono>> purgeWithResponseAsync(String resourceN * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> purgeWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> purgeWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1174,7 +1174,7 @@ private Mono>> purgeWithResponseAsync(String resourceN new IllegalArgumentException("Parameter replicatedProtectedItemName is required and cannot be null.")); } context = this.client.mergeContext(context); - return service.purge(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.purge(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, replicatedProtectedItemName, context); } @@ -1185,8 +1185,8 @@ private Mono>> purgeWithResponseAsync(String resourceN * protected item. Use the remove operation on replication protected item to perform a clean disable replication for * the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1196,9 +1196,9 @@ private Mono>> purgeWithResponseAsync(String resourceN * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginPurgeAsync(String resourceName, String resourceGroupName, + private PollerFlux, Void> beginPurgeAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName) { - Mono>> mono = purgeWithResponseAsync(resourceName, resourceGroupName, fabricName, + Mono>> mono = purgeWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); @@ -1211,8 +1211,8 @@ private PollerFlux, Void> beginPurgeAsync(String resourceName, * protected item. Use the remove operation on replication protected item to perform a clean disable replication for * the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1223,10 +1223,10 @@ private PollerFlux, Void> beginPurgeAsync(String resourceName, * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginPurgeAsync(String resourceName, String resourceGroupName, + private PollerFlux, Void> beginPurgeAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = purgeWithResponseAsync(resourceName, resourceGroupName, fabricName, + Mono>> mono = purgeWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); @@ -1239,8 +1239,8 @@ private PollerFlux, Void> beginPurgeAsync(String resourceName, * protected item. Use the remove operation on replication protected item to perform a clean disable replication for * the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1250,10 +1250,10 @@ private PollerFlux, Void> beginPurgeAsync(String resourceName, * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginPurge(String resourceName, String resourceGroupName, + public SyncPoller, Void> beginPurge(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName) { return this - .beginPurgeAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginPurgeAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName) .getSyncPoller(); } @@ -1265,8 +1265,8 @@ public SyncPoller, Void> beginPurge(String resourceName, String * protected item. Use the remove operation on replication protected item to perform a clean disable replication for * the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1277,10 +1277,10 @@ public SyncPoller, Void> beginPurge(String resourceName, String * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginPurge(String resourceName, String resourceGroupName, + public SyncPoller, Void> beginPurge(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context) { return this - .beginPurgeAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginPurgeAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, context) .getSyncPoller(); } @@ -1292,8 +1292,8 @@ public SyncPoller, Void> beginPurge(String resourceName, String * protected item. Use the remove operation on replication protected item to perform a clean disable replication for * the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1303,9 +1303,9 @@ public SyncPoller, Void> beginPurge(String resourceName, String * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono purgeAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono purgeAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName) { - return beginPurgeAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginPurgeAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName).last().flatMap(this.client::getLroFinalResultOrError); } @@ -1316,8 +1316,8 @@ private Mono purgeAsync(String resourceName, String resourceGroupName, Str * protected item. Use the remove operation on replication protected item to perform a clean disable replication for * the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1328,9 +1328,9 @@ private Mono purgeAsync(String resourceName, String resourceGroupName, Str * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono purgeAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono purgeAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context) { - return beginPurgeAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginPurgeAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, context).last().flatMap(this.client::getLroFinalResultOrError); } @@ -1341,8 +1341,8 @@ private Mono purgeAsync(String resourceName, String resourceGroupName, Str * protected item. Use the remove operation on replication protected item to perform a clean disable replication for * the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1351,9 +1351,9 @@ private Mono purgeAsync(String resourceName, String resourceGroupName, Str * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void purge(String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + public void purge(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName) { - purgeAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName) + purgeAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName) .block(); } @@ -1364,8 +1364,8 @@ public void purge(String resourceName, String resourceGroupName, String fabricNa * protected item. Use the remove operation on replication protected item to perform a clean disable replication for * the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1375,9 +1375,9 @@ public void purge(String resourceName, String resourceGroupName, String fabricNa * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void purge(String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + public void purge(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context) { - purgeAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, + purgeAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, context).block(); } @@ -1386,8 +1386,8 @@ public void purge(String resourceName, String resourceGroupName, String fabricNa * * The operation to update the recovery settings of an ASR replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1398,20 +1398,20 @@ public void purge(String resourceName, String resourceGroupName, String fabricNa * @return replication protected item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> updateWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateReplicationProtectedItemInput updateProtectionInput) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1435,8 +1435,8 @@ private Mono>> updateWithResponseAsync(String resource } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, replicatedProtectedItemName, updateProtectionInput, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1446,8 +1446,8 @@ private Mono>> updateWithResponseAsync(String resource * * The operation to update the recovery settings of an ASR replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1459,20 +1459,20 @@ private Mono>> updateWithResponseAsync(String resource * @return replication protected item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> updateWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateReplicationProtectedItemInput updateProtectionInput, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1496,7 +1496,7 @@ private Mono>> updateWithResponseAsync(String resource } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.update(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.update(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, replicatedProtectedItemName, updateProtectionInput, accept, context); } @@ -1506,8 +1506,8 @@ private Mono>> updateWithResponseAsync(String resource * * The operation to update the recovery settings of an ASR replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1519,9 +1519,9 @@ private Mono>> updateWithResponseAsync(String resource */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ReplicationProtectedItemInner> beginUpdateAsync( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateReplicationProtectedItemInput updateProtectionInput) { - Mono>> mono = updateWithResponseAsync(resourceName, resourceGroupName, fabricName, + Mono>> mono = updateWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, updateProtectionInput); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ReplicationProtectedItemInner.class, ReplicationProtectedItemInner.class, @@ -1533,8 +1533,8 @@ private PollerFlux, ReplicationProtect * * The operation to update the recovery settings of an ASR replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1547,11 +1547,11 @@ private PollerFlux, ReplicationProtect */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ReplicationProtectedItemInner> beginUpdateAsync( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateReplicationProtectedItemInput updateProtectionInput, Context context) { context = this.client.mergeContext(context); - Mono>> mono = updateWithResponseAsync(resourceName, resourceGroupName, fabricName, + Mono>> mono = updateWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, updateProtectionInput, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ReplicationProtectedItemInner.class, ReplicationProtectedItemInner.class, @@ -1563,8 +1563,8 @@ private PollerFlux, ReplicationProtect * * The operation to update the recovery settings of an ASR replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1576,10 +1576,10 @@ private PollerFlux, ReplicationProtect */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ReplicationProtectedItemInner> beginUpdate( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateReplicationProtectedItemInput updateProtectionInput) { return this - .beginUpdateAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginUpdateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, updateProtectionInput) .getSyncPoller(); } @@ -1589,8 +1589,8 @@ public SyncPoller, ReplicationProtecte * * The operation to update the recovery settings of an ASR replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1603,11 +1603,11 @@ public SyncPoller, ReplicationProtecte */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ReplicationProtectedItemInner> beginUpdate( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateReplicationProtectedItemInput updateProtectionInput, Context context) { return this - .beginUpdateAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginUpdateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, updateProtectionInput, context) .getSyncPoller(); } @@ -1617,8 +1617,8 @@ public SyncPoller, ReplicationProtecte * * The operation to update the recovery settings of an ASR replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1629,10 +1629,10 @@ public SyncPoller, ReplicationProtecte * @return replication protected item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceName, String resourceGroupName, + private Mono updateAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateReplicationProtectedItemInput updateProtectionInput) { - return beginUpdateAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginUpdateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, updateProtectionInput).last().flatMap(this.client::getLroFinalResultOrError); } @@ -1641,8 +1641,8 @@ private Mono updateAsync(String resourceName, Str * * The operation to update the recovery settings of an ASR replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1654,10 +1654,10 @@ private Mono updateAsync(String resourceName, Str * @return replication protected item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceName, String resourceGroupName, + private Mono updateAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateReplicationProtectedItemInput updateProtectionInput, Context context) { - return beginUpdateAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginUpdateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, updateProtectionInput, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1667,8 +1667,8 @@ private Mono updateAsync(String resourceName, Str * * The operation to update the recovery settings of an ASR replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1679,10 +1679,10 @@ private Mono updateAsync(String resourceName, Str * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReplicationProtectedItemInner update(String resourceName, String resourceGroupName, String fabricName, + public ReplicationProtectedItemInner update(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateReplicationProtectedItemInput updateProtectionInput) { - return updateAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return updateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, updateProtectionInput).block(); } @@ -1691,8 +1691,8 @@ public ReplicationProtectedItemInner update(String resourceName, String resource * * The operation to update the recovery settings of an ASR replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1704,10 +1704,10 @@ public ReplicationProtectedItemInner update(String resourceName, String resource * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReplicationProtectedItemInner update(String resourceName, String resourceGroupName, String fabricName, + public ReplicationProtectedItemInner update(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateReplicationProtectedItemInput updateProtectionInput, Context context) { - return updateAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return updateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, updateProtectionInput, context).block(); } @@ -1716,8 +1716,8 @@ public ReplicationProtectedItemInner update(String resourceName, String resource * * Operation to add disks(s) to the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1728,20 +1728,20 @@ public ReplicationProtectedItemInner update(String resourceName, String resource * @return replication protected item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> addDisksWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> addDisksWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, AddDisksInput addDisksInput) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1765,7 +1765,7 @@ private Mono>> addDisksWithResponseAsync(String resour final String accept = "application/json"; return FluxUtil .withContext(context -> service.addDisks(this.client.getEndpoint(), this.client.getApiVersion(), - resourceName, resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, replicatedProtectedItemName, addDisksInput, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1775,8 +1775,8 @@ private Mono>> addDisksWithResponseAsync(String resour * * Operation to add disks(s) to the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1788,20 +1788,20 @@ private Mono>> addDisksWithResponseAsync(String resour * @return replication protected item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> addDisksWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> addDisksWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, AddDisksInput addDisksInput, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1824,7 +1824,7 @@ private Mono>> addDisksWithResponseAsync(String resour } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.addDisks(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.addDisks(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, replicatedProtectedItemName, addDisksInput, accept, context); } @@ -1834,8 +1834,8 @@ private Mono>> addDisksWithResponseAsync(String resour * * Operation to add disks(s) to the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1847,9 +1847,9 @@ private Mono>> addDisksWithResponseAsync(String resour */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ReplicationProtectedItemInner> beginAddDisksAsync( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, AddDisksInput addDisksInput) { - Mono>> mono = addDisksWithResponseAsync(resourceName, resourceGroupName, fabricName, + Mono>> mono = addDisksWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, addDisksInput); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ReplicationProtectedItemInner.class, ReplicationProtectedItemInner.class, @@ -1861,8 +1861,8 @@ private PollerFlux, ReplicationProtect * * Operation to add disks(s) to the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1875,10 +1875,10 @@ private PollerFlux, ReplicationProtect */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ReplicationProtectedItemInner> beginAddDisksAsync( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, AddDisksInput addDisksInput, Context context) { context = this.client.mergeContext(context); - Mono>> mono = addDisksWithResponseAsync(resourceName, resourceGroupName, fabricName, + Mono>> mono = addDisksWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, addDisksInput, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ReplicationProtectedItemInner.class, ReplicationProtectedItemInner.class, @@ -1890,8 +1890,8 @@ private PollerFlux, ReplicationProtect * * Operation to add disks(s) to the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1903,10 +1903,10 @@ private PollerFlux, ReplicationProtect */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ReplicationProtectedItemInner> beginAddDisks( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, AddDisksInput addDisksInput) { return this - .beginAddDisksAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginAddDisksAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, addDisksInput) .getSyncPoller(); } @@ -1916,8 +1916,8 @@ public SyncPoller, ReplicationProtecte * * Operation to add disks(s) to the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1930,10 +1930,10 @@ public SyncPoller, ReplicationProtecte */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ReplicationProtectedItemInner> beginAddDisks( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, AddDisksInput addDisksInput, Context context) { return this - .beginAddDisksAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginAddDisksAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, addDisksInput, context) .getSyncPoller(); } @@ -1943,8 +1943,8 @@ public SyncPoller, ReplicationProtecte * * Operation to add disks(s) to the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1955,10 +1955,10 @@ public SyncPoller, ReplicationProtecte * @return replication protected item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono addDisksAsync(String resourceName, String resourceGroupName, + private Mono addDisksAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, AddDisksInput addDisksInput) { - return beginAddDisksAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginAddDisksAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, addDisksInput).last().flatMap(this.client::getLroFinalResultOrError); } @@ -1967,8 +1967,8 @@ private Mono addDisksAsync(String resourceName, S * * Operation to add disks(s) to the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1980,10 +1980,10 @@ private Mono addDisksAsync(String resourceName, S * @return replication protected item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono addDisksAsync(String resourceName, String resourceGroupName, + private Mono addDisksAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, AddDisksInput addDisksInput, Context context) { - return beginAddDisksAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginAddDisksAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, addDisksInput, context).last().flatMap(this.client::getLroFinalResultOrError); } @@ -1992,8 +1992,8 @@ private Mono addDisksAsync(String resourceName, S * * Operation to add disks(s) to the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -2004,9 +2004,9 @@ private Mono addDisksAsync(String resourceName, S * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReplicationProtectedItemInner addDisks(String resourceName, String resourceGroupName, String fabricName, + public ReplicationProtectedItemInner addDisks(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, AddDisksInput addDisksInput) { - return addDisksAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return addDisksAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, addDisksInput).block(); } @@ -2015,8 +2015,8 @@ public ReplicationProtectedItemInner addDisks(String resourceName, String resour * * Operation to add disks(s) to the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -2028,10 +2028,10 @@ public ReplicationProtectedItemInner addDisks(String resourceName, String resour * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReplicationProtectedItemInner addDisks(String resourceName, String resourceGroupName, String fabricName, + public ReplicationProtectedItemInner addDisks(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, AddDisksInput addDisksInput, Context context) { - return addDisksAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return addDisksAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, addDisksInput, context).block(); } @@ -2040,8 +2040,8 @@ public ReplicationProtectedItemInner addDisks(String resourceName, String resour * * The operation to change the recovery point of a failed over replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The ARM fabric name. * @param protectionContainerName The protection container name. * @param replicatedProtectedItemName The replicated protected item name. @@ -2052,20 +2052,20 @@ public ReplicationProtectedItemInner addDisks(String resourceName, String resour * @return replication protected item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> applyRecoveryPointWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, + private Mono>> applyRecoveryPointWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ApplyRecoveryPointInput applyRecoveryPointInput) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -2090,7 +2090,7 @@ private Mono>> applyRecoveryPointWithResponseAsync(Str final String accept = "application/json"; return FluxUtil .withContext(context -> service.applyRecoveryPoint(this.client.getEndpoint(), this.client.getApiVersion(), - resourceName, resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, replicatedProtectedItemName, applyRecoveryPointInput, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -2100,8 +2100,8 @@ private Mono>> applyRecoveryPointWithResponseAsync(Str * * The operation to change the recovery point of a failed over replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The ARM fabric name. * @param protectionContainerName The protection container name. * @param replicatedProtectedItemName The replicated protected item name. @@ -2113,20 +2113,20 @@ private Mono>> applyRecoveryPointWithResponseAsync(Str * @return replication protected item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> applyRecoveryPointWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, + private Mono>> applyRecoveryPointWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ApplyRecoveryPointInput applyRecoveryPointInput, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -2150,8 +2150,8 @@ private Mono>> applyRecoveryPointWithResponseAsync(Str } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.applyRecoveryPoint(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + return service.applyRecoveryPoint(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, replicatedProtectedItemName, applyRecoveryPointInput, accept, context); } @@ -2160,8 +2160,8 @@ private Mono>> applyRecoveryPointWithResponseAsync(Str * * The operation to change the recovery point of a failed over replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The ARM fabric name. * @param protectionContainerName The protection container name. * @param replicatedProtectedItemName The replicated protected item name. @@ -2173,10 +2173,10 @@ private Mono>> applyRecoveryPointWithResponseAsync(Str */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ReplicationProtectedItemInner> - beginApplyRecoveryPointAsync(String resourceName, String resourceGroupName, String fabricName, + beginApplyRecoveryPointAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ApplyRecoveryPointInput applyRecoveryPointInput) { - Mono>> mono = applyRecoveryPointWithResponseAsync(resourceName, resourceGroupName, + Mono>> mono = applyRecoveryPointWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, applyRecoveryPointInput); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ReplicationProtectedItemInner.class, ReplicationProtectedItemInner.class, @@ -2188,8 +2188,8 @@ private Mono>> applyRecoveryPointWithResponseAsync(Str * * The operation to change the recovery point of a failed over replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The ARM fabric name. * @param protectionContainerName The protection container name. * @param replicatedProtectedItemName The replicated protected item name. @@ -2202,11 +2202,11 @@ private Mono>> applyRecoveryPointWithResponseAsync(Str */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ReplicationProtectedItemInner> - beginApplyRecoveryPointAsync(String resourceName, String resourceGroupName, String fabricName, + beginApplyRecoveryPointAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ApplyRecoveryPointInput applyRecoveryPointInput, Context context) { context = this.client.mergeContext(context); - Mono>> mono = applyRecoveryPointWithResponseAsync(resourceName, resourceGroupName, + Mono>> mono = applyRecoveryPointWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, applyRecoveryPointInput, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ReplicationProtectedItemInner.class, ReplicationProtectedItemInner.class, @@ -2218,8 +2218,8 @@ private Mono>> applyRecoveryPointWithResponseAsync(Str * * The operation to change the recovery point of a failed over replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The ARM fabric name. * @param protectionContainerName The protection container name. * @param replicatedProtectedItemName The replicated protected item name. @@ -2231,10 +2231,10 @@ private Mono>> applyRecoveryPointWithResponseAsync(Str */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ReplicationProtectedItemInner> beginApplyRecoveryPoint( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ApplyRecoveryPointInput applyRecoveryPointInput) { return this - .beginApplyRecoveryPointAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginApplyRecoveryPointAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, applyRecoveryPointInput) .getSyncPoller(); } @@ -2244,8 +2244,8 @@ public SyncPoller, ReplicationProtecte * * The operation to change the recovery point of a failed over replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The ARM fabric name. * @param protectionContainerName The protection container name. * @param replicatedProtectedItemName The replicated protected item name. @@ -2258,10 +2258,10 @@ public SyncPoller, ReplicationProtecte */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ReplicationProtectedItemInner> beginApplyRecoveryPoint( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ApplyRecoveryPointInput applyRecoveryPointInput, Context context) { return this - .beginApplyRecoveryPointAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginApplyRecoveryPointAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, applyRecoveryPointInput, context) .getSyncPoller(); } @@ -2271,8 +2271,8 @@ public SyncPoller, ReplicationProtecte * * The operation to change the recovery point of a failed over replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The ARM fabric name. * @param protectionContainerName The protection container name. * @param replicatedProtectedItemName The replicated protected item name. @@ -2283,10 +2283,10 @@ public SyncPoller, ReplicationProtecte * @return replication protected item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono applyRecoveryPointAsync(String resourceName, String resourceGroupName, + private Mono applyRecoveryPointAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ApplyRecoveryPointInput applyRecoveryPointInput) { - return beginApplyRecoveryPointAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginApplyRecoveryPointAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, applyRecoveryPointInput).last().flatMap(this.client::getLroFinalResultOrError); } @@ -2295,8 +2295,8 @@ private Mono applyRecoveryPointAsync(String resou * * The operation to change the recovery point of a failed over replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The ARM fabric name. * @param protectionContainerName The protection container name. * @param replicatedProtectedItemName The replicated protected item name. @@ -2308,10 +2308,10 @@ private Mono applyRecoveryPointAsync(String resou * @return replication protected item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono applyRecoveryPointAsync(String resourceName, String resourceGroupName, + private Mono applyRecoveryPointAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ApplyRecoveryPointInput applyRecoveryPointInput, Context context) { - return beginApplyRecoveryPointAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginApplyRecoveryPointAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, applyRecoveryPointInput, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -2321,8 +2321,8 @@ private Mono applyRecoveryPointAsync(String resou * * The operation to change the recovery point of a failed over replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The ARM fabric name. * @param protectionContainerName The protection container name. * @param replicatedProtectedItemName The replicated protected item name. @@ -2333,10 +2333,10 @@ private Mono applyRecoveryPointAsync(String resou * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReplicationProtectedItemInner applyRecoveryPoint(String resourceName, String resourceGroupName, + public ReplicationProtectedItemInner applyRecoveryPoint(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ApplyRecoveryPointInput applyRecoveryPointInput) { - return applyRecoveryPointAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return applyRecoveryPointAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, applyRecoveryPointInput).block(); } @@ -2345,8 +2345,8 @@ public ReplicationProtectedItemInner applyRecoveryPoint(String resourceName, Str * * The operation to change the recovery point of a failed over replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The ARM fabric name. * @param protectionContainerName The protection container name. * @param replicatedProtectedItemName The replicated protected item name. @@ -2358,10 +2358,10 @@ public ReplicationProtectedItemInner applyRecoveryPoint(String resourceName, Str * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReplicationProtectedItemInner applyRecoveryPoint(String resourceName, String resourceGroupName, + public ReplicationProtectedItemInner applyRecoveryPoint(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ApplyRecoveryPointInput applyRecoveryPointInput, Context context) { - return applyRecoveryPointAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return applyRecoveryPointAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, applyRecoveryPointInput, context).block(); } @@ -2370,8 +2370,8 @@ public ReplicationProtectedItemInner applyRecoveryPoint(String resourceName, Str * * Operation to cancel the failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -2381,20 +2381,19 @@ public ReplicationProtectedItemInner applyRecoveryPoint(String resourceName, Str * @return replication protected item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> failoverCancelWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, - String replicatedProtectedItemName) { + private Mono>> failoverCancelWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -2413,7 +2412,7 @@ private Mono>> failoverCancelWithResponseAsync(String final String accept = "application/json"; return FluxUtil .withContext(context -> service.failoverCancel(this.client.getEndpoint(), this.client.getApiVersion(), - resourceName, resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, replicatedProtectedItemName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -2423,8 +2422,8 @@ private Mono>> failoverCancelWithResponseAsync(String * * Operation to cancel the failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -2435,20 +2434,20 @@ private Mono>> failoverCancelWithResponseAsync(String * @return replication protected item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> failoverCancelWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, + private Mono>> failoverCancelWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -2466,8 +2465,8 @@ private Mono>> failoverCancelWithResponseAsync(String } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.failoverCancel(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + return service.failoverCancel(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, replicatedProtectedItemName, accept, context); } @@ -2476,8 +2475,8 @@ private Mono>> failoverCancelWithResponseAsync(String * * Operation to cancel the failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -2488,9 +2487,9 @@ private Mono>> failoverCancelWithResponseAsync(String */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ReplicationProtectedItemInner> - beginFailoverCancelAsync(String resourceName, String resourceGroupName, String fabricName, + beginFailoverCancelAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName) { - Mono>> mono = failoverCancelWithResponseAsync(resourceName, resourceGroupName, + Mono>> mono = failoverCancelWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ReplicationProtectedItemInner.class, ReplicationProtectedItemInner.class, @@ -2502,8 +2501,8 @@ private Mono>> failoverCancelWithResponseAsync(String * * Operation to cancel the failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -2515,10 +2514,10 @@ private Mono>> failoverCancelWithResponseAsync(String */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ReplicationProtectedItemInner> - beginFailoverCancelAsync(String resourceName, String resourceGroupName, String fabricName, + beginFailoverCancelAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = failoverCancelWithResponseAsync(resourceName, resourceGroupName, + Mono>> mono = failoverCancelWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ReplicationProtectedItemInner.class, ReplicationProtectedItemInner.class, @@ -2530,8 +2529,8 @@ private Mono>> failoverCancelWithResponseAsync(String * * Operation to cancel the failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -2542,10 +2541,10 @@ private Mono>> failoverCancelWithResponseAsync(String */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ReplicationProtectedItemInner> beginFailoverCancel( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName) { return this - .beginFailoverCancelAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginFailoverCancelAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName) .getSyncPoller(); } @@ -2555,8 +2554,8 @@ public SyncPoller, ReplicationProtecte * * Operation to cancel the failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -2568,10 +2567,10 @@ public SyncPoller, ReplicationProtecte */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ReplicationProtectedItemInner> beginFailoverCancel( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context) { return this - .beginFailoverCancelAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginFailoverCancelAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, context) .getSyncPoller(); } @@ -2581,8 +2580,8 @@ public SyncPoller, ReplicationProtecte * * Operation to cancel the failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -2592,9 +2591,9 @@ public SyncPoller, ReplicationProtecte * @return replication protected item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono failoverCancelAsync(String resourceName, String resourceGroupName, + private Mono failoverCancelAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName) { - return beginFailoverCancelAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginFailoverCancelAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName).last().flatMap(this.client::getLroFinalResultOrError); } @@ -2603,8 +2602,8 @@ private Mono failoverCancelAsync(String resourceN * * Operation to cancel the failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -2615,9 +2614,9 @@ private Mono failoverCancelAsync(String resourceN * @return replication protected item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono failoverCancelAsync(String resourceName, String resourceGroupName, + private Mono failoverCancelAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context) { - return beginFailoverCancelAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginFailoverCancelAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, context).last().flatMap(this.client::getLroFinalResultOrError); } @@ -2626,8 +2625,8 @@ private Mono failoverCancelAsync(String resourceN * * Operation to cancel the failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -2637,9 +2636,9 @@ private Mono failoverCancelAsync(String resourceN * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReplicationProtectedItemInner failoverCancel(String resourceName, String resourceGroupName, + public ReplicationProtectedItemInner failoverCancel(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName) { - return failoverCancelAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return failoverCancelAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName).block(); } @@ -2648,8 +2647,8 @@ public ReplicationProtectedItemInner failoverCancel(String resourceName, String * * Operation to cancel the failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -2660,9 +2659,9 @@ public ReplicationProtectedItemInner failoverCancel(String resourceName, String * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReplicationProtectedItemInner failoverCancel(String resourceName, String resourceGroupName, + public ReplicationProtectedItemInner failoverCancel(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context) { - return failoverCancelAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return failoverCancelAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, context).block(); } @@ -2671,8 +2670,8 @@ public ReplicationProtectedItemInner failoverCancel(String resourceName, String * * Operation to commit the failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -2682,20 +2681,19 @@ public ReplicationProtectedItemInner failoverCancel(String resourceName, String * @return replication protected item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> failoverCommitWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, - String replicatedProtectedItemName) { + private Mono>> failoverCommitWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -2714,7 +2712,7 @@ private Mono>> failoverCommitWithResponseAsync(String final String accept = "application/json"; return FluxUtil .withContext(context -> service.failoverCommit(this.client.getEndpoint(), this.client.getApiVersion(), - resourceName, resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, replicatedProtectedItemName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -2724,8 +2722,8 @@ private Mono>> failoverCommitWithResponseAsync(String * * Operation to commit the failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -2736,20 +2734,20 @@ private Mono>> failoverCommitWithResponseAsync(String * @return replication protected item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> failoverCommitWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, + private Mono>> failoverCommitWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -2767,8 +2765,8 @@ private Mono>> failoverCommitWithResponseAsync(String } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.failoverCommit(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + return service.failoverCommit(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, replicatedProtectedItemName, accept, context); } @@ -2777,8 +2775,8 @@ private Mono>> failoverCommitWithResponseAsync(String * * Operation to commit the failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -2789,9 +2787,9 @@ private Mono>> failoverCommitWithResponseAsync(String */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ReplicationProtectedItemInner> - beginFailoverCommitAsync(String resourceName, String resourceGroupName, String fabricName, + beginFailoverCommitAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName) { - Mono>> mono = failoverCommitWithResponseAsync(resourceName, resourceGroupName, + Mono>> mono = failoverCommitWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ReplicationProtectedItemInner.class, ReplicationProtectedItemInner.class, @@ -2803,8 +2801,8 @@ private Mono>> failoverCommitWithResponseAsync(String * * Operation to commit the failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -2816,10 +2814,10 @@ private Mono>> failoverCommitWithResponseAsync(String */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ReplicationProtectedItemInner> - beginFailoverCommitAsync(String resourceName, String resourceGroupName, String fabricName, + beginFailoverCommitAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = failoverCommitWithResponseAsync(resourceName, resourceGroupName, + Mono>> mono = failoverCommitWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ReplicationProtectedItemInner.class, ReplicationProtectedItemInner.class, @@ -2831,8 +2829,8 @@ private Mono>> failoverCommitWithResponseAsync(String * * Operation to commit the failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -2843,10 +2841,10 @@ private Mono>> failoverCommitWithResponseAsync(String */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ReplicationProtectedItemInner> beginFailoverCommit( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName) { return this - .beginFailoverCommitAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginFailoverCommitAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName) .getSyncPoller(); } @@ -2856,8 +2854,8 @@ public SyncPoller, ReplicationProtecte * * Operation to commit the failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -2869,10 +2867,10 @@ public SyncPoller, ReplicationProtecte */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ReplicationProtectedItemInner> beginFailoverCommit( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context) { return this - .beginFailoverCommitAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginFailoverCommitAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, context) .getSyncPoller(); } @@ -2882,8 +2880,8 @@ public SyncPoller, ReplicationProtecte * * Operation to commit the failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -2893,9 +2891,9 @@ public SyncPoller, ReplicationProtecte * @return replication protected item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono failoverCommitAsync(String resourceName, String resourceGroupName, + private Mono failoverCommitAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName) { - return beginFailoverCommitAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginFailoverCommitAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName).last().flatMap(this.client::getLroFinalResultOrError); } @@ -2904,8 +2902,8 @@ private Mono failoverCommitAsync(String resourceN * * Operation to commit the failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -2916,9 +2914,9 @@ private Mono failoverCommitAsync(String resourceN * @return replication protected item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono failoverCommitAsync(String resourceName, String resourceGroupName, + private Mono failoverCommitAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context) { - return beginFailoverCommitAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginFailoverCommitAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, context).last().flatMap(this.client::getLroFinalResultOrError); } @@ -2927,8 +2925,8 @@ private Mono failoverCommitAsync(String resourceN * * Operation to commit the failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -2938,9 +2936,9 @@ private Mono failoverCommitAsync(String resourceN * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReplicationProtectedItemInner failoverCommit(String resourceName, String resourceGroupName, + public ReplicationProtectedItemInner failoverCommit(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName) { - return failoverCommitAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return failoverCommitAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName).block(); } @@ -2949,8 +2947,8 @@ public ReplicationProtectedItemInner failoverCommit(String resourceName, String * * Operation to commit the failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -2961,9 +2959,9 @@ public ReplicationProtectedItemInner failoverCommit(String resourceName, String * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReplicationProtectedItemInner failoverCommit(String resourceName, String resourceGroupName, + public ReplicationProtectedItemInner failoverCommit(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context) { - return failoverCommitAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return failoverCommitAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, context).block(); } @@ -2972,8 +2970,8 @@ public ReplicationProtectedItemInner failoverCommit(String resourceName, String * * Operation to initiate a planned failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -2984,20 +2982,20 @@ public ReplicationProtectedItemInner failoverCommit(String resourceName, String * @return replication protected item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> plannedFailoverWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, + private Mono>> plannedFailoverWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, PlannedFailoverInput failoverInput) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -3021,7 +3019,7 @@ private Mono>> plannedFailoverWithResponseAsync(String final String accept = "application/json"; return FluxUtil .withContext(context -> service.plannedFailover(this.client.getEndpoint(), this.client.getApiVersion(), - resourceName, resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -3031,8 +3029,8 @@ private Mono>> plannedFailoverWithResponseAsync(String * * Operation to initiate a planned failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -3044,20 +3042,20 @@ private Mono>> plannedFailoverWithResponseAsync(String * @return replication protected item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> plannedFailoverWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, + private Mono>> plannedFailoverWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, PlannedFailoverInput failoverInput, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -3080,8 +3078,8 @@ private Mono>> plannedFailoverWithResponseAsync(String } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.plannedFailover(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + return service.plannedFailover(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, accept, context); } @@ -3090,8 +3088,8 @@ private Mono>> plannedFailoverWithResponseAsync(String * * Operation to initiate a planned failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -3103,9 +3101,9 @@ private Mono>> plannedFailoverWithResponseAsync(String */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ReplicationProtectedItemInner> - beginPlannedFailoverAsync(String resourceName, String resourceGroupName, String fabricName, + beginPlannedFailoverAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, PlannedFailoverInput failoverInput) { - Mono>> mono = plannedFailoverWithResponseAsync(resourceName, resourceGroupName, + Mono>> mono = plannedFailoverWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ReplicationProtectedItemInner.class, ReplicationProtectedItemInner.class, @@ -3117,8 +3115,8 @@ private Mono>> plannedFailoverWithResponseAsync(String * * Operation to initiate a planned failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -3131,11 +3129,11 @@ private Mono>> plannedFailoverWithResponseAsync(String */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ReplicationProtectedItemInner> - beginPlannedFailoverAsync(String resourceName, String resourceGroupName, String fabricName, + beginPlannedFailoverAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, PlannedFailoverInput failoverInput, Context context) { context = this.client.mergeContext(context); - Mono>> mono = plannedFailoverWithResponseAsync(resourceName, resourceGroupName, + Mono>> mono = plannedFailoverWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ReplicationProtectedItemInner.class, ReplicationProtectedItemInner.class, @@ -3147,8 +3145,8 @@ private Mono>> plannedFailoverWithResponseAsync(String * * Operation to initiate a planned failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -3160,10 +3158,10 @@ private Mono>> plannedFailoverWithResponseAsync(String */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ReplicationProtectedItemInner> beginPlannedFailover( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, PlannedFailoverInput failoverInput) { return this - .beginPlannedFailoverAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginPlannedFailoverAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput) .getSyncPoller(); } @@ -3173,8 +3171,8 @@ public SyncPoller, ReplicationProtecte * * Operation to initiate a planned failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -3187,10 +3185,10 @@ public SyncPoller, ReplicationProtecte */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ReplicationProtectedItemInner> beginPlannedFailover( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, PlannedFailoverInput failoverInput, Context context) { return this - .beginPlannedFailoverAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginPlannedFailoverAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, context) .getSyncPoller(); } @@ -3200,8 +3198,8 @@ public SyncPoller, ReplicationProtecte * * Operation to initiate a planned failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -3212,10 +3210,10 @@ public SyncPoller, ReplicationProtecte * @return replication protected item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono plannedFailoverAsync(String resourceName, String resourceGroupName, + private Mono plannedFailoverAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, PlannedFailoverInput failoverInput) { - return beginPlannedFailoverAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginPlannedFailoverAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput).last().flatMap(this.client::getLroFinalResultOrError); } @@ -3224,8 +3222,8 @@ private Mono plannedFailoverAsync(String resource * * Operation to initiate a planned failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -3237,10 +3235,10 @@ private Mono plannedFailoverAsync(String resource * @return replication protected item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono plannedFailoverAsync(String resourceName, String resourceGroupName, + private Mono plannedFailoverAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, PlannedFailoverInput failoverInput, Context context) { - return beginPlannedFailoverAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginPlannedFailoverAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, context).last().flatMap(this.client::getLroFinalResultOrError); } @@ -3249,8 +3247,8 @@ private Mono plannedFailoverAsync(String resource * * Operation to initiate a planned failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -3261,10 +3259,10 @@ private Mono plannedFailoverAsync(String resource * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReplicationProtectedItemInner plannedFailover(String resourceName, String resourceGroupName, + public ReplicationProtectedItemInner plannedFailover(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, PlannedFailoverInput failoverInput) { - return plannedFailoverAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return plannedFailoverAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput).block(); } @@ -3273,8 +3271,8 @@ public ReplicationProtectedItemInner plannedFailover(String resourceName, String * * Operation to initiate a planned failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -3286,10 +3284,10 @@ public ReplicationProtectedItemInner plannedFailover(String resourceName, String * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReplicationProtectedItemInner plannedFailover(String resourceName, String resourceGroupName, + public ReplicationProtectedItemInner plannedFailover(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, PlannedFailoverInput failoverInput, Context context) { - return plannedFailoverAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return plannedFailoverAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, context).block(); } @@ -3298,8 +3296,8 @@ public ReplicationProtectedItemInner plannedFailover(String resourceName, String * * The operation to disable replication on a replication protected item. This will also remove the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -3310,20 +3308,20 @@ public ReplicationProtectedItemInner plannedFailover(String resourceName, String * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, DisableProtectionInput disableProtectionInput) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -3346,8 +3344,8 @@ private Mono>> deleteWithResponseAsync(String resource disableProtectionInput.validate(); } return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, replicatedProtectedItemName, disableProtectionInput, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -3357,8 +3355,8 @@ private Mono>> deleteWithResponseAsync(String resource * * The operation to disable replication on a replication protected item. This will also remove the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -3370,20 +3368,20 @@ private Mono>> deleteWithResponseAsync(String resource * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, DisableProtectionInput disableProtectionInput, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -3406,7 +3404,7 @@ private Mono>> deleteWithResponseAsync(String resource disableProtectionInput.validate(); } context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, replicatedProtectedItemName, disableProtectionInput, context); } @@ -3416,8 +3414,8 @@ private Mono>> deleteWithResponseAsync(String resource * * The operation to disable replication on a replication protected item. This will also remove the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -3428,10 +3426,10 @@ private Mono>> deleteWithResponseAsync(String resource * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceName, String resourceGroupName, + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, DisableProtectionInput disableProtectionInput) { - Mono>> mono = deleteWithResponseAsync(resourceName, resourceGroupName, fabricName, + Mono>> mono = deleteWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, disableProtectionInput); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); @@ -3442,8 +3440,8 @@ private PollerFlux, Void> beginDeleteAsync(String resourceName, * * The operation to disable replication on a replication protected item. This will also remove the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -3455,11 +3453,11 @@ private PollerFlux, Void> beginDeleteAsync(String resourceName, * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceName, String resourceGroupName, + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, DisableProtectionInput disableProtectionInput, Context context) { context = this.client.mergeContext(context); - Mono>> mono = deleteWithResponseAsync(resourceName, resourceGroupName, fabricName, + Mono>> mono = deleteWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, disableProtectionInput, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); @@ -3470,8 +3468,8 @@ private PollerFlux, Void> beginDeleteAsync(String resourceName, * * The operation to disable replication on a replication protected item. This will also remove the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -3482,11 +3480,11 @@ private PollerFlux, Void> beginDeleteAsync(String resourceName, * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceName, String resourceGroupName, + public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, DisableProtectionInput disableProtectionInput) { return this - .beginDeleteAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginDeleteAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, disableProtectionInput) .getSyncPoller(); } @@ -3496,8 +3494,8 @@ public SyncPoller, Void> beginDelete(String resourceName, Strin * * The operation to disable replication on a replication protected item. This will also remove the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -3509,11 +3507,11 @@ public SyncPoller, Void> beginDelete(String resourceName, Strin * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceName, String resourceGroupName, + public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, DisableProtectionInput disableProtectionInput, Context context) { return this - .beginDeleteAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginDeleteAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, disableProtectionInput, context) .getSyncPoller(); } @@ -3523,8 +3521,8 @@ public SyncPoller, Void> beginDelete(String resourceName, Strin * * The operation to disable replication on a replication protected item. This will also remove the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -3535,10 +3533,10 @@ public SyncPoller, Void> beginDelete(String resourceName, Strin * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono deleteAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, DisableProtectionInput disableProtectionInput) { - return beginDeleteAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginDeleteAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, disableProtectionInput).last().flatMap(this.client::getLroFinalResultOrError); } @@ -3547,8 +3545,8 @@ private Mono deleteAsync(String resourceName, String resourceGroupName, St * * The operation to disable replication on a replication protected item. This will also remove the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -3560,10 +3558,10 @@ private Mono deleteAsync(String resourceName, String resourceGroupName, St * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono deleteAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, DisableProtectionInput disableProtectionInput, Context context) { - return beginDeleteAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginDeleteAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, disableProtectionInput, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -3573,8 +3571,8 @@ private Mono deleteAsync(String resourceName, String resourceGroupName, St * * The operation to disable replication on a replication protected item. This will also remove the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -3584,9 +3582,9 @@ private Mono deleteAsync(String resourceName, String resourceGroupName, St * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + public void delete(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, DisableProtectionInput disableProtectionInput) { - deleteAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, + deleteAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, disableProtectionInput).block(); } @@ -3595,8 +3593,8 @@ public void delete(String resourceName, String resourceGroupName, String fabricN * * The operation to disable replication on a replication protected item. This will also remove the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -3607,9 +3605,9 @@ public void delete(String resourceName, String resourceGroupName, String fabricN * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + public void delete(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, DisableProtectionInput disableProtectionInput, Context context) { - deleteAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, + deleteAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, disableProtectionInput, context).block(); } @@ -3618,8 +3616,8 @@ public void delete(String resourceName, String resourceGroupName, String fabricN * * Operation to remove disk(s) from the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -3630,20 +3628,20 @@ public void delete(String resourceName, String resourceGroupName, String fabricN * @return replication protected item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> removeDisksWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> removeDisksWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, RemoveDisksInput removeDisksInput) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -3668,7 +3666,7 @@ private Mono>> removeDisksWithResponseAsync(String res final String accept = "application/json"; return FluxUtil .withContext(context -> service.removeDisks(this.client.getEndpoint(), this.client.getApiVersion(), - resourceName, resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, replicatedProtectedItemName, removeDisksInput, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -3678,8 +3676,8 @@ private Mono>> removeDisksWithResponseAsync(String res * * Operation to remove disk(s) from the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -3691,20 +3689,20 @@ private Mono>> removeDisksWithResponseAsync(String res * @return replication protected item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> removeDisksWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> removeDisksWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, RemoveDisksInput removeDisksInput, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -3728,8 +3726,8 @@ private Mono>> removeDisksWithResponseAsync(String res } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.removeDisks(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + return service.removeDisks(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, replicatedProtectedItemName, removeDisksInput, accept, context); } @@ -3738,8 +3736,8 @@ private Mono>> removeDisksWithResponseAsync(String res * * Operation to remove disk(s) from the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -3751,9 +3749,9 @@ private Mono>> removeDisksWithResponseAsync(String res */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ReplicationProtectedItemInner> beginRemoveDisksAsync( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, RemoveDisksInput removeDisksInput) { - Mono>> mono = removeDisksWithResponseAsync(resourceName, resourceGroupName, + Mono>> mono = removeDisksWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, removeDisksInput); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ReplicationProtectedItemInner.class, ReplicationProtectedItemInner.class, @@ -3765,8 +3763,8 @@ private PollerFlux, ReplicationProtect * * Operation to remove disk(s) from the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -3779,10 +3777,10 @@ private PollerFlux, ReplicationProtect */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ReplicationProtectedItemInner> beginRemoveDisksAsync( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, RemoveDisksInput removeDisksInput, Context context) { context = this.client.mergeContext(context); - Mono>> mono = removeDisksWithResponseAsync(resourceName, resourceGroupName, + Mono>> mono = removeDisksWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, removeDisksInput, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ReplicationProtectedItemInner.class, ReplicationProtectedItemInner.class, @@ -3794,8 +3792,8 @@ private PollerFlux, ReplicationProtect * * Operation to remove disk(s) from the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -3807,10 +3805,10 @@ private PollerFlux, ReplicationProtect */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ReplicationProtectedItemInner> beginRemoveDisks( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, RemoveDisksInput removeDisksInput) { return this - .beginRemoveDisksAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginRemoveDisksAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, removeDisksInput) .getSyncPoller(); } @@ -3820,8 +3818,8 @@ public SyncPoller, ReplicationProtecte * * Operation to remove disk(s) from the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -3834,10 +3832,10 @@ public SyncPoller, ReplicationProtecte */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ReplicationProtectedItemInner> beginRemoveDisks( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, RemoveDisksInput removeDisksInput, Context context) { return this - .beginRemoveDisksAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginRemoveDisksAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, removeDisksInput, context) .getSyncPoller(); } @@ -3847,8 +3845,8 @@ public SyncPoller, ReplicationProtecte * * Operation to remove disk(s) from the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -3859,10 +3857,10 @@ public SyncPoller, ReplicationProtecte * @return replication protected item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono removeDisksAsync(String resourceName, String resourceGroupName, + private Mono removeDisksAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, RemoveDisksInput removeDisksInput) { - return beginRemoveDisksAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginRemoveDisksAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, removeDisksInput).last().flatMap(this.client::getLroFinalResultOrError); } @@ -3871,8 +3869,8 @@ private Mono removeDisksAsync(String resourceName * * Operation to remove disk(s) from the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -3884,10 +3882,10 @@ private Mono removeDisksAsync(String resourceName * @return replication protected item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono removeDisksAsync(String resourceName, String resourceGroupName, + private Mono removeDisksAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, RemoveDisksInput removeDisksInput, Context context) { - return beginRemoveDisksAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginRemoveDisksAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, removeDisksInput, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -3897,8 +3895,8 @@ private Mono removeDisksAsync(String resourceName * * Operation to remove disk(s) from the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -3909,9 +3907,9 @@ private Mono removeDisksAsync(String resourceName * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReplicationProtectedItemInner removeDisks(String resourceName, String resourceGroupName, String fabricName, + public ReplicationProtectedItemInner removeDisks(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, RemoveDisksInput removeDisksInput) { - return removeDisksAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return removeDisksAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, removeDisksInput).block(); } @@ -3920,8 +3918,8 @@ public ReplicationProtectedItemInner removeDisks(String resourceName, String res * * Operation to remove disk(s) from the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -3933,10 +3931,10 @@ public ReplicationProtectedItemInner removeDisks(String resourceName, String res * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReplicationProtectedItemInner removeDisks(String resourceName, String resourceGroupName, String fabricName, + public ReplicationProtectedItemInner removeDisks(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, RemoveDisksInput removeDisksInput, Context context) { - return removeDisksAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return removeDisksAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, removeDisksInput, context).block(); } @@ -3946,8 +3944,8 @@ public ReplicationProtectedItemInner removeDisks(String resourceName, String res * The operation to start resynchronize/repair replication for a replication protected item requiring * resynchronization. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric. * @param protectionContainerName The name of the container. * @param replicatedProtectedItemName The name of the replication protected item. @@ -3957,20 +3955,19 @@ public ReplicationProtectedItemInner removeDisks(String resourceName, String res * @return replication protected item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> repairReplicationWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, - String replicatedProtectedItemName) { + private Mono>> repairReplicationWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -3989,7 +3986,7 @@ private Mono>> repairReplicationWithResponseAsync(Stri final String accept = "application/json"; return FluxUtil .withContext(context -> service.repairReplication(this.client.getEndpoint(), this.client.getApiVersion(), - resourceName, resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, replicatedProtectedItemName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -4000,8 +3997,8 @@ private Mono>> repairReplicationWithResponseAsync(Stri * The operation to start resynchronize/repair replication for a replication protected item requiring * resynchronization. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric. * @param protectionContainerName The name of the container. * @param replicatedProtectedItemName The name of the replication protected item. @@ -4012,20 +4009,20 @@ private Mono>> repairReplicationWithResponseAsync(Stri * @return replication protected item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> repairReplicationWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, + private Mono>> repairReplicationWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -4043,8 +4040,8 @@ private Mono>> repairReplicationWithResponseAsync(Stri } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.repairReplication(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + return service.repairReplication(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, replicatedProtectedItemName, accept, context); } @@ -4054,8 +4051,8 @@ private Mono>> repairReplicationWithResponseAsync(Stri * The operation to start resynchronize/repair replication for a replication protected item requiring * resynchronization. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric. * @param protectionContainerName The name of the container. * @param replicatedProtectedItemName The name of the replication protected item. @@ -4066,9 +4063,9 @@ private Mono>> repairReplicationWithResponseAsync(Stri */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ReplicationProtectedItemInner> - beginRepairReplicationAsync(String resourceName, String resourceGroupName, String fabricName, + beginRepairReplicationAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName) { - Mono>> mono = repairReplicationWithResponseAsync(resourceName, resourceGroupName, + Mono>> mono = repairReplicationWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ReplicationProtectedItemInner.class, ReplicationProtectedItemInner.class, @@ -4081,8 +4078,8 @@ private Mono>> repairReplicationWithResponseAsync(Stri * The operation to start resynchronize/repair replication for a replication protected item requiring * resynchronization. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric. * @param protectionContainerName The name of the container. * @param replicatedProtectedItemName The name of the replication protected item. @@ -4094,10 +4091,10 @@ private Mono>> repairReplicationWithResponseAsync(Stri */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ReplicationProtectedItemInner> - beginRepairReplicationAsync(String resourceName, String resourceGroupName, String fabricName, + beginRepairReplicationAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = repairReplicationWithResponseAsync(resourceName, resourceGroupName, + Mono>> mono = repairReplicationWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ReplicationProtectedItemInner.class, ReplicationProtectedItemInner.class, @@ -4110,8 +4107,8 @@ private Mono>> repairReplicationWithResponseAsync(Stri * The operation to start resynchronize/repair replication for a replication protected item requiring * resynchronization. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric. * @param protectionContainerName The name of the container. * @param replicatedProtectedItemName The name of the replication protected item. @@ -4122,10 +4119,10 @@ private Mono>> repairReplicationWithResponseAsync(Stri */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ReplicationProtectedItemInner> beginRepairReplication( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName) { return this - .beginRepairReplicationAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginRepairReplicationAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName) .getSyncPoller(); } @@ -4136,8 +4133,8 @@ public SyncPoller, ReplicationProtecte * The operation to start resynchronize/repair replication for a replication protected item requiring * resynchronization. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric. * @param protectionContainerName The name of the container. * @param replicatedProtectedItemName The name of the replication protected item. @@ -4149,10 +4146,10 @@ public SyncPoller, ReplicationProtecte */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ReplicationProtectedItemInner> beginRepairReplication( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context) { return this - .beginRepairReplicationAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginRepairReplicationAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, context) .getSyncPoller(); } @@ -4163,8 +4160,8 @@ public SyncPoller, ReplicationProtecte * The operation to start resynchronize/repair replication for a replication protected item requiring * resynchronization. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric. * @param protectionContainerName The name of the container. * @param replicatedProtectedItemName The name of the replication protected item. @@ -4174,9 +4171,9 @@ public SyncPoller, ReplicationProtecte * @return replication protected item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono repairReplicationAsync(String resourceName, String resourceGroupName, + private Mono repairReplicationAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName) { - return beginRepairReplicationAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginRepairReplicationAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName).last().flatMap(this.client::getLroFinalResultOrError); } @@ -4186,8 +4183,8 @@ private Mono repairReplicationAsync(String resour * The operation to start resynchronize/repair replication for a replication protected item requiring * resynchronization. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric. * @param protectionContainerName The name of the container. * @param replicatedProtectedItemName The name of the replication protected item. @@ -4198,9 +4195,9 @@ private Mono repairReplicationAsync(String resour * @return replication protected item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono repairReplicationAsync(String resourceName, String resourceGroupName, + private Mono repairReplicationAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context) { - return beginRepairReplicationAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginRepairReplicationAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, context).last().flatMap(this.client::getLroFinalResultOrError); } @@ -4210,8 +4207,8 @@ private Mono repairReplicationAsync(String resour * The operation to start resynchronize/repair replication for a replication protected item requiring * resynchronization. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric. * @param protectionContainerName The name of the container. * @param replicatedProtectedItemName The name of the replication protected item. @@ -4221,9 +4218,9 @@ private Mono repairReplicationAsync(String resour * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReplicationProtectedItemInner repairReplication(String resourceName, String resourceGroupName, + public ReplicationProtectedItemInner repairReplication(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName) { - return repairReplicationAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return repairReplicationAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName).block(); } @@ -4233,8 +4230,8 @@ public ReplicationProtectedItemInner repairReplication(String resourceName, Stri * The operation to start resynchronize/repair replication for a replication protected item requiring * resynchronization. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric. * @param protectionContainerName The name of the container. * @param replicatedProtectedItemName The name of the replication protected item. @@ -4245,9 +4242,9 @@ public ReplicationProtectedItemInner repairReplication(String resourceName, Stri * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReplicationProtectedItemInner repairReplication(String resourceName, String resourceGroupName, + public ReplicationProtectedItemInner repairReplication(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context) { - return repairReplicationAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return repairReplicationAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, context).block(); } @@ -4256,8 +4253,8 @@ public ReplicationProtectedItemInner repairReplication(String resourceName, Stri * * Operation to reprotect or reverse replicate a failed over replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -4268,20 +4265,20 @@ public ReplicationProtectedItemInner repairReplication(String resourceName, Stri * @return replication protected item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> reprotectWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> reprotectWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ReverseReplicationInput reprotectInput) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -4305,7 +4302,7 @@ private Mono>> reprotectWithResponseAsync(String resou final String accept = "application/json"; return FluxUtil .withContext(context -> service.reprotect(this.client.getEndpoint(), this.client.getApiVersion(), - resourceName, resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, replicatedProtectedItemName, reprotectInput, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -4315,8 +4312,8 @@ private Mono>> reprotectWithResponseAsync(String resou * * Operation to reprotect or reverse replicate a failed over replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -4328,20 +4325,20 @@ private Mono>> reprotectWithResponseAsync(String resou * @return replication protected item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> reprotectWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> reprotectWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ReverseReplicationInput reprotectInput, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -4364,8 +4361,8 @@ private Mono>> reprotectWithResponseAsync(String resou } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.reprotect(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + return service.reprotect(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, replicatedProtectedItemName, reprotectInput, accept, context); } @@ -4374,8 +4371,8 @@ private Mono>> reprotectWithResponseAsync(String resou * * Operation to reprotect or reverse replicate a failed over replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -4387,9 +4384,9 @@ private Mono>> reprotectWithResponseAsync(String resou */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ReplicationProtectedItemInner> beginReprotectAsync( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ReverseReplicationInput reprotectInput) { - Mono>> mono = reprotectWithResponseAsync(resourceName, resourceGroupName, fabricName, + Mono>> mono = reprotectWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, reprotectInput); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ReplicationProtectedItemInner.class, ReplicationProtectedItemInner.class, @@ -4401,8 +4398,8 @@ private PollerFlux, ReplicationProtect * * Operation to reprotect or reverse replicate a failed over replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -4415,10 +4412,10 @@ private PollerFlux, ReplicationProtect */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ReplicationProtectedItemInner> beginReprotectAsync( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ReverseReplicationInput reprotectInput, Context context) { context = this.client.mergeContext(context); - Mono>> mono = reprotectWithResponseAsync(resourceName, resourceGroupName, fabricName, + Mono>> mono = reprotectWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, reprotectInput, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ReplicationProtectedItemInner.class, ReplicationProtectedItemInner.class, @@ -4430,8 +4427,8 @@ private PollerFlux, ReplicationProtect * * Operation to reprotect or reverse replicate a failed over replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -4443,10 +4440,10 @@ private PollerFlux, ReplicationProtect */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ReplicationProtectedItemInner> beginReprotect( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ReverseReplicationInput reprotectInput) { return this - .beginReprotectAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginReprotectAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, reprotectInput) .getSyncPoller(); } @@ -4456,8 +4453,8 @@ public SyncPoller, ReplicationProtecte * * Operation to reprotect or reverse replicate a failed over replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -4470,10 +4467,10 @@ public SyncPoller, ReplicationProtecte */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ReplicationProtectedItemInner> beginReprotect( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ReverseReplicationInput reprotectInput, Context context) { return this - .beginReprotectAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginReprotectAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, reprotectInput, context) .getSyncPoller(); } @@ -4483,8 +4480,8 @@ public SyncPoller, ReplicationProtecte * * Operation to reprotect or reverse replicate a failed over replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -4495,10 +4492,10 @@ public SyncPoller, ReplicationProtecte * @return replication protected item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono reprotectAsync(String resourceName, String resourceGroupName, + private Mono reprotectAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ReverseReplicationInput reprotectInput) { - return beginReprotectAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginReprotectAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, reprotectInput).last().flatMap(this.client::getLroFinalResultOrError); } @@ -4507,8 +4504,8 @@ private Mono reprotectAsync(String resourceName, * * Operation to reprotect or reverse replicate a failed over replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -4520,10 +4517,10 @@ private Mono reprotectAsync(String resourceName, * @return replication protected item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono reprotectAsync(String resourceName, String resourceGroupName, + private Mono reprotectAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ReverseReplicationInput reprotectInput, Context context) { - return beginReprotectAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginReprotectAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, reprotectInput, context).last().flatMap(this.client::getLroFinalResultOrError); } @@ -4532,8 +4529,8 @@ private Mono reprotectAsync(String resourceName, * * Operation to reprotect or reverse replicate a failed over replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -4544,9 +4541,9 @@ private Mono reprotectAsync(String resourceName, * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReplicationProtectedItemInner reprotect(String resourceName, String resourceGroupName, String fabricName, + public ReplicationProtectedItemInner reprotect(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ReverseReplicationInput reprotectInput) { - return reprotectAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return reprotectAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, reprotectInput).block(); } @@ -4555,8 +4552,8 @@ public ReplicationProtectedItemInner reprotect(String resourceName, String resou * * Operation to reprotect or reverse replicate a failed over replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -4568,10 +4565,10 @@ public ReplicationProtectedItemInner reprotect(String resourceName, String resou * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReplicationProtectedItemInner reprotect(String resourceName, String resourceGroupName, String fabricName, + public ReplicationProtectedItemInner reprotect(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ReverseReplicationInput reprotectInput, Context context) { - return reprotectAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return reprotectAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, reprotectInput, context).block(); } @@ -4580,8 +4577,8 @@ public ReplicationProtectedItemInner reprotect(String resourceName, String resou * * Operation to resolve health issues of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -4592,20 +4589,20 @@ public ReplicationProtectedItemInner reprotect(String resourceName, String resou * @return replication protected item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> resolveHealthErrorsWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, + private Mono>> resolveHealthErrorsWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ResolveHealthInput resolveHealthInput) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -4630,7 +4627,7 @@ private Mono>> resolveHealthErrorsWithResponseAsync(St final String accept = "application/json"; return FluxUtil .withContext(context -> service.resolveHealthErrors(this.client.getEndpoint(), this.client.getApiVersion(), - resourceName, resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, replicatedProtectedItemName, resolveHealthInput, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -4640,8 +4637,8 @@ private Mono>> resolveHealthErrorsWithResponseAsync(St * * Operation to resolve health issues of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -4653,20 +4650,20 @@ private Mono>> resolveHealthErrorsWithResponseAsync(St * @return replication protected item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> resolveHealthErrorsWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, + private Mono>> resolveHealthErrorsWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ResolveHealthInput resolveHealthInput, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -4690,8 +4687,8 @@ private Mono>> resolveHealthErrorsWithResponseAsync(St } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.resolveHealthErrors(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + return service.resolveHealthErrors(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, replicatedProtectedItemName, resolveHealthInput, accept, context); } @@ -4700,8 +4697,8 @@ private Mono>> resolveHealthErrorsWithResponseAsync(St * * Operation to resolve health issues of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -4713,9 +4710,9 @@ private Mono>> resolveHealthErrorsWithResponseAsync(St */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ReplicationProtectedItemInner> - beginResolveHealthErrorsAsync(String resourceName, String resourceGroupName, String fabricName, + beginResolveHealthErrorsAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ResolveHealthInput resolveHealthInput) { - Mono>> mono = resolveHealthErrorsWithResponseAsync(resourceName, resourceGroupName, + Mono>> mono = resolveHealthErrorsWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, resolveHealthInput); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ReplicationProtectedItemInner.class, ReplicationProtectedItemInner.class, @@ -4727,8 +4724,8 @@ private Mono>> resolveHealthErrorsWithResponseAsync(St * * Operation to resolve health issues of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -4741,11 +4738,11 @@ private Mono>> resolveHealthErrorsWithResponseAsync(St */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ReplicationProtectedItemInner> - beginResolveHealthErrorsAsync(String resourceName, String resourceGroupName, String fabricName, + beginResolveHealthErrorsAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ResolveHealthInput resolveHealthInput, Context context) { context = this.client.mergeContext(context); - Mono>> mono = resolveHealthErrorsWithResponseAsync(resourceName, resourceGroupName, + Mono>> mono = resolveHealthErrorsWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, resolveHealthInput, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ReplicationProtectedItemInner.class, ReplicationProtectedItemInner.class, @@ -4757,8 +4754,8 @@ private Mono>> resolveHealthErrorsWithResponseAsync(St * * Operation to resolve health issues of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -4770,10 +4767,10 @@ private Mono>> resolveHealthErrorsWithResponseAsync(St */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ReplicationProtectedItemInner> - beginResolveHealthErrors(String resourceName, String resourceGroupName, String fabricName, + beginResolveHealthErrors(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ResolveHealthInput resolveHealthInput) { return this - .beginResolveHealthErrorsAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginResolveHealthErrorsAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, resolveHealthInput) .getSyncPoller(); } @@ -4783,8 +4780,8 @@ private Mono>> resolveHealthErrorsWithResponseAsync(St * * Operation to resolve health issues of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -4797,11 +4794,11 @@ private Mono>> resolveHealthErrorsWithResponseAsync(St */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ReplicationProtectedItemInner> - beginResolveHealthErrors(String resourceName, String resourceGroupName, String fabricName, + beginResolveHealthErrors(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ResolveHealthInput resolveHealthInput, Context context) { return this - .beginResolveHealthErrorsAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginResolveHealthErrorsAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, resolveHealthInput, context) .getSyncPoller(); } @@ -4811,8 +4808,8 @@ private Mono>> resolveHealthErrorsWithResponseAsync(St * * Operation to resolve health issues of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -4823,10 +4820,10 @@ private Mono>> resolveHealthErrorsWithResponseAsync(St * @return replication protected item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono resolveHealthErrorsAsync(String resourceName, String resourceGroupName, + private Mono resolveHealthErrorsAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ResolveHealthInput resolveHealthInput) { - return beginResolveHealthErrorsAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginResolveHealthErrorsAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, resolveHealthInput).last().flatMap(this.client::getLroFinalResultOrError); } @@ -4835,8 +4832,8 @@ private Mono resolveHealthErrorsAsync(String reso * * Operation to resolve health issues of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -4848,10 +4845,10 @@ private Mono resolveHealthErrorsAsync(String reso * @return replication protected item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono resolveHealthErrorsAsync(String resourceName, String resourceGroupName, + private Mono resolveHealthErrorsAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ResolveHealthInput resolveHealthInput, Context context) { - return beginResolveHealthErrorsAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginResolveHealthErrorsAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, resolveHealthInput, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -4861,8 +4858,8 @@ private Mono resolveHealthErrorsAsync(String reso * * Operation to resolve health issues of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -4873,10 +4870,10 @@ private Mono resolveHealthErrorsAsync(String reso * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReplicationProtectedItemInner resolveHealthErrors(String resourceName, String resourceGroupName, + public ReplicationProtectedItemInner resolveHealthErrors(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ResolveHealthInput resolveHealthInput) { - return resolveHealthErrorsAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return resolveHealthErrorsAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, resolveHealthInput).block(); } @@ -4885,8 +4882,8 @@ public ReplicationProtectedItemInner resolveHealthErrors(String resourceName, St * * Operation to resolve health issues of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -4898,10 +4895,10 @@ public ReplicationProtectedItemInner resolveHealthErrors(String resourceName, St * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReplicationProtectedItemInner resolveHealthErrors(String resourceName, String resourceGroupName, + public ReplicationProtectedItemInner resolveHealthErrors(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ResolveHealthInput resolveHealthInput, Context context) { - return resolveHealthErrorsAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return resolveHealthErrorsAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, resolveHealthInput, context).block(); } @@ -4910,8 +4907,8 @@ public ReplicationProtectedItemInner resolveHealthErrors(String resourceName, St * * Operation to initiate a switch provider of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -4922,20 +4919,20 @@ public ReplicationProtectedItemInner resolveHealthErrors(String resourceName, St * @return replication protected item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> switchProviderWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, + private Mono>> switchProviderWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, SwitchProviderInput switchProviderInput) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -4960,7 +4957,7 @@ private Mono>> switchProviderWithResponseAsync(String final String accept = "application/json"; return FluxUtil .withContext(context -> service.switchProvider(this.client.getEndpoint(), this.client.getApiVersion(), - resourceName, resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, replicatedProtectedItemName, switchProviderInput, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -4970,8 +4967,8 @@ private Mono>> switchProviderWithResponseAsync(String * * Operation to initiate a switch provider of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -4983,20 +4980,20 @@ private Mono>> switchProviderWithResponseAsync(String * @return replication protected item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> switchProviderWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, + private Mono>> switchProviderWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, SwitchProviderInput switchProviderInput, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -5020,8 +5017,8 @@ private Mono>> switchProviderWithResponseAsync(String } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.switchProvider(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + return service.switchProvider(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, replicatedProtectedItemName, switchProviderInput, accept, context); } @@ -5030,8 +5027,8 @@ private Mono>> switchProviderWithResponseAsync(String * * Operation to initiate a switch provider of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -5043,10 +5040,10 @@ private Mono>> switchProviderWithResponseAsync(String */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ReplicationProtectedItemInner> - beginSwitchProviderAsync(String resourceName, String resourceGroupName, String fabricName, + beginSwitchProviderAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, SwitchProviderInput switchProviderInput) { - Mono>> mono = switchProviderWithResponseAsync(resourceName, resourceGroupName, + Mono>> mono = switchProviderWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, switchProviderInput); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ReplicationProtectedItemInner.class, ReplicationProtectedItemInner.class, @@ -5058,8 +5055,8 @@ private Mono>> switchProviderWithResponseAsync(String * * Operation to initiate a switch provider of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -5072,11 +5069,11 @@ private Mono>> switchProviderWithResponseAsync(String */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ReplicationProtectedItemInner> - beginSwitchProviderAsync(String resourceName, String resourceGroupName, String fabricName, + beginSwitchProviderAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, SwitchProviderInput switchProviderInput, Context context) { context = this.client.mergeContext(context); - Mono>> mono = switchProviderWithResponseAsync(resourceName, resourceGroupName, + Mono>> mono = switchProviderWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, switchProviderInput, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ReplicationProtectedItemInner.class, ReplicationProtectedItemInner.class, @@ -5088,8 +5085,8 @@ private Mono>> switchProviderWithResponseAsync(String * * Operation to initiate a switch provider of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -5101,10 +5098,10 @@ private Mono>> switchProviderWithResponseAsync(String */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ReplicationProtectedItemInner> beginSwitchProvider( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, SwitchProviderInput switchProviderInput) { return this - .beginSwitchProviderAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginSwitchProviderAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, switchProviderInput) .getSyncPoller(); } @@ -5114,8 +5111,8 @@ public SyncPoller, ReplicationProtecte * * Operation to initiate a switch provider of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -5128,10 +5125,10 @@ public SyncPoller, ReplicationProtecte */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ReplicationProtectedItemInner> beginSwitchProvider( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, SwitchProviderInput switchProviderInput, Context context) { return this - .beginSwitchProviderAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginSwitchProviderAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, switchProviderInput, context) .getSyncPoller(); } @@ -5141,8 +5138,8 @@ public SyncPoller, ReplicationProtecte * * Operation to initiate a switch provider of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -5153,10 +5150,10 @@ public SyncPoller, ReplicationProtecte * @return replication protected item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono switchProviderAsync(String resourceName, String resourceGroupName, + private Mono switchProviderAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, SwitchProviderInput switchProviderInput) { - return beginSwitchProviderAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginSwitchProviderAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, switchProviderInput).last().flatMap(this.client::getLroFinalResultOrError); } @@ -5165,8 +5162,8 @@ private Mono switchProviderAsync(String resourceN * * Operation to initiate a switch provider of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -5178,10 +5175,10 @@ private Mono switchProviderAsync(String resourceN * @return replication protected item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono switchProviderAsync(String resourceName, String resourceGroupName, + private Mono switchProviderAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, SwitchProviderInput switchProviderInput, Context context) { - return beginSwitchProviderAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginSwitchProviderAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, switchProviderInput, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -5191,8 +5188,8 @@ private Mono switchProviderAsync(String resourceN * * Operation to initiate a switch provider of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -5203,10 +5200,10 @@ private Mono switchProviderAsync(String resourceN * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReplicationProtectedItemInner switchProvider(String resourceName, String resourceGroupName, + public ReplicationProtectedItemInner switchProvider(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, SwitchProviderInput switchProviderInput) { - return switchProviderAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return switchProviderAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, switchProviderInput).block(); } @@ -5215,8 +5212,8 @@ public ReplicationProtectedItemInner switchProvider(String resourceName, String * * Operation to initiate a switch provider of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -5228,10 +5225,10 @@ public ReplicationProtectedItemInner switchProvider(String resourceName, String * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReplicationProtectedItemInner switchProvider(String resourceName, String resourceGroupName, + public ReplicationProtectedItemInner switchProvider(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, SwitchProviderInput switchProviderInput, Context context) { - return switchProviderAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return switchProviderAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, switchProviderInput, context).block(); } @@ -5240,8 +5237,8 @@ public ReplicationProtectedItemInner switchProvider(String resourceName, String * * Operation to perform a test failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -5252,20 +5249,20 @@ public ReplicationProtectedItemInner switchProvider(String resourceName, String * @return replication protected item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> testFailoverWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, + private Mono>> testFailoverWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, TestFailoverInput testfailoverInput) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -5290,7 +5287,7 @@ private Mono>> testFailoverWithResponseAsync(String re final String accept = "application/json"; return FluxUtil .withContext(context -> service.testFailover(this.client.getEndpoint(), this.client.getApiVersion(), - resourceName, resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, replicatedProtectedItemName, testfailoverInput, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -5300,8 +5297,8 @@ private Mono>> testFailoverWithResponseAsync(String re * * Operation to perform a test failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -5313,20 +5310,20 @@ private Mono>> testFailoverWithResponseAsync(String re * @return replication protected item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> testFailoverWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, + private Mono>> testFailoverWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, TestFailoverInput testfailoverInput, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -5350,8 +5347,8 @@ private Mono>> testFailoverWithResponseAsync(String re } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.testFailover(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + return service.testFailover(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, replicatedProtectedItemName, testfailoverInput, accept, context); } @@ -5360,8 +5357,8 @@ private Mono>> testFailoverWithResponseAsync(String re * * Operation to perform a test failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -5373,9 +5370,9 @@ private Mono>> testFailoverWithResponseAsync(String re */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ReplicationProtectedItemInner> beginTestFailoverAsync( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, TestFailoverInput testfailoverInput) { - Mono>> mono = testFailoverWithResponseAsync(resourceName, resourceGroupName, + Mono>> mono = testFailoverWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, testfailoverInput); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ReplicationProtectedItemInner.class, ReplicationProtectedItemInner.class, @@ -5387,8 +5384,8 @@ private PollerFlux, ReplicationProtect * * Operation to perform a test failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -5401,10 +5398,10 @@ private PollerFlux, ReplicationProtect */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ReplicationProtectedItemInner> beginTestFailoverAsync( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, TestFailoverInput testfailoverInput, Context context) { context = this.client.mergeContext(context); - Mono>> mono = testFailoverWithResponseAsync(resourceName, resourceGroupName, + Mono>> mono = testFailoverWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, testfailoverInput, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ReplicationProtectedItemInner.class, ReplicationProtectedItemInner.class, @@ -5416,8 +5413,8 @@ private PollerFlux, ReplicationProtect * * Operation to perform a test failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -5429,10 +5426,10 @@ private PollerFlux, ReplicationProtect */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ReplicationProtectedItemInner> beginTestFailover( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, TestFailoverInput testfailoverInput) { return this - .beginTestFailoverAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginTestFailoverAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, testfailoverInput) .getSyncPoller(); } @@ -5442,8 +5439,8 @@ public SyncPoller, ReplicationProtecte * * Operation to perform a test failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -5456,10 +5453,10 @@ public SyncPoller, ReplicationProtecte */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ReplicationProtectedItemInner> beginTestFailover( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, TestFailoverInput testfailoverInput, Context context) { return this - .beginTestFailoverAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginTestFailoverAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, testfailoverInput, context) .getSyncPoller(); } @@ -5469,8 +5466,8 @@ public SyncPoller, ReplicationProtecte * * Operation to perform a test failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -5481,10 +5478,10 @@ public SyncPoller, ReplicationProtecte * @return replication protected item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono testFailoverAsync(String resourceName, String resourceGroupName, + private Mono testFailoverAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, TestFailoverInput testfailoverInput) { - return beginTestFailoverAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginTestFailoverAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, testfailoverInput).last().flatMap(this.client::getLroFinalResultOrError); } @@ -5493,8 +5490,8 @@ private Mono testFailoverAsync(String resourceNam * * Operation to perform a test failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -5506,10 +5503,10 @@ private Mono testFailoverAsync(String resourceNam * @return replication protected item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono testFailoverAsync(String resourceName, String resourceGroupName, + private Mono testFailoverAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, TestFailoverInput testfailoverInput, Context context) { - return beginTestFailoverAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginTestFailoverAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, testfailoverInput, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -5519,8 +5516,8 @@ private Mono testFailoverAsync(String resourceNam * * Operation to perform a test failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -5531,9 +5528,9 @@ private Mono testFailoverAsync(String resourceNam * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReplicationProtectedItemInner testFailover(String resourceName, String resourceGroupName, String fabricName, + public ReplicationProtectedItemInner testFailover(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, TestFailoverInput testfailoverInput) { - return testFailoverAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return testFailoverAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, testfailoverInput).block(); } @@ -5542,8 +5539,8 @@ public ReplicationProtectedItemInner testFailover(String resourceName, String re * * Operation to perform a test failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -5555,10 +5552,10 @@ public ReplicationProtectedItemInner testFailover(String resourceName, String re * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReplicationProtectedItemInner testFailover(String resourceName, String resourceGroupName, String fabricName, + public ReplicationProtectedItemInner testFailover(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, TestFailoverInput testfailoverInput, Context context) { - return testFailoverAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return testFailoverAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, testfailoverInput, context).block(); } @@ -5567,8 +5564,8 @@ public ReplicationProtectedItemInner testFailover(String resourceName, String re * * Operation to clean up the test failover of a replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -5579,20 +5576,20 @@ public ReplicationProtectedItemInner testFailover(String resourceName, String re * @return replication protected item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> testFailoverCleanupWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, + private Mono>> testFailoverCleanupWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, TestFailoverCleanupInput cleanupInput) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -5616,7 +5613,7 @@ private Mono>> testFailoverCleanupWithResponseAsync(St final String accept = "application/json"; return FluxUtil .withContext(context -> service.testFailoverCleanup(this.client.getEndpoint(), this.client.getApiVersion(), - resourceName, resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, replicatedProtectedItemName, cleanupInput, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -5626,8 +5623,8 @@ private Mono>> testFailoverCleanupWithResponseAsync(St * * Operation to clean up the test failover of a replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -5639,20 +5636,20 @@ private Mono>> testFailoverCleanupWithResponseAsync(St * @return replication protected item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> testFailoverCleanupWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, + private Mono>> testFailoverCleanupWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, TestFailoverCleanupInput cleanupInput, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -5675,8 +5672,8 @@ private Mono>> testFailoverCleanupWithResponseAsync(St } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.testFailoverCleanup(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + return service.testFailoverCleanup(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, replicatedProtectedItemName, cleanupInput, accept, context); } @@ -5685,8 +5682,8 @@ private Mono>> testFailoverCleanupWithResponseAsync(St * * Operation to clean up the test failover of a replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -5698,9 +5695,9 @@ private Mono>> testFailoverCleanupWithResponseAsync(St */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ReplicationProtectedItemInner> - beginTestFailoverCleanupAsync(String resourceName, String resourceGroupName, String fabricName, + beginTestFailoverCleanupAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, TestFailoverCleanupInput cleanupInput) { - Mono>> mono = testFailoverCleanupWithResponseAsync(resourceName, resourceGroupName, + Mono>> mono = testFailoverCleanupWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, cleanupInput); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ReplicationProtectedItemInner.class, ReplicationProtectedItemInner.class, @@ -5712,8 +5709,8 @@ private Mono>> testFailoverCleanupWithResponseAsync(St * * Operation to clean up the test failover of a replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -5726,11 +5723,11 @@ private Mono>> testFailoverCleanupWithResponseAsync(St */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ReplicationProtectedItemInner> - beginTestFailoverCleanupAsync(String resourceName, String resourceGroupName, String fabricName, + beginTestFailoverCleanupAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, TestFailoverCleanupInput cleanupInput, Context context) { context = this.client.mergeContext(context); - Mono>> mono = testFailoverCleanupWithResponseAsync(resourceName, resourceGroupName, + Mono>> mono = testFailoverCleanupWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, cleanupInput, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ReplicationProtectedItemInner.class, ReplicationProtectedItemInner.class, @@ -5742,8 +5739,8 @@ private Mono>> testFailoverCleanupWithResponseAsync(St * * Operation to clean up the test failover of a replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -5755,10 +5752,10 @@ private Mono>> testFailoverCleanupWithResponseAsync(St */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ReplicationProtectedItemInner> - beginTestFailoverCleanup(String resourceName, String resourceGroupName, String fabricName, + beginTestFailoverCleanup(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, TestFailoverCleanupInput cleanupInput) { return this - .beginTestFailoverCleanupAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginTestFailoverCleanupAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, cleanupInput) .getSyncPoller(); } @@ -5768,8 +5765,8 @@ private Mono>> testFailoverCleanupWithResponseAsync(St * * Operation to clean up the test failover of a replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -5782,11 +5779,11 @@ private Mono>> testFailoverCleanupWithResponseAsync(St */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ReplicationProtectedItemInner> - beginTestFailoverCleanup(String resourceName, String resourceGroupName, String fabricName, + beginTestFailoverCleanup(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, TestFailoverCleanupInput cleanupInput, Context context) { return this - .beginTestFailoverCleanupAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginTestFailoverCleanupAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, cleanupInput, context) .getSyncPoller(); } @@ -5796,8 +5793,8 @@ private Mono>> testFailoverCleanupWithResponseAsync(St * * Operation to clean up the test failover of a replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -5808,10 +5805,10 @@ private Mono>> testFailoverCleanupWithResponseAsync(St * @return replication protected item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono testFailoverCleanupAsync(String resourceName, String resourceGroupName, + private Mono testFailoverCleanupAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, TestFailoverCleanupInput cleanupInput) { - return beginTestFailoverCleanupAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginTestFailoverCleanupAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, cleanupInput).last().flatMap(this.client::getLroFinalResultOrError); } @@ -5820,8 +5817,8 @@ private Mono testFailoverCleanupAsync(String reso * * Operation to clean up the test failover of a replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -5833,10 +5830,10 @@ private Mono testFailoverCleanupAsync(String reso * @return replication protected item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono testFailoverCleanupAsync(String resourceName, String resourceGroupName, + private Mono testFailoverCleanupAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, TestFailoverCleanupInput cleanupInput, Context context) { - return beginTestFailoverCleanupAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginTestFailoverCleanupAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, cleanupInput, context).last().flatMap(this.client::getLroFinalResultOrError); } @@ -5845,8 +5842,8 @@ private Mono testFailoverCleanupAsync(String reso * * Operation to clean up the test failover of a replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -5857,10 +5854,10 @@ private Mono testFailoverCleanupAsync(String reso * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReplicationProtectedItemInner testFailoverCleanup(String resourceName, String resourceGroupName, + public ReplicationProtectedItemInner testFailoverCleanup(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, TestFailoverCleanupInput cleanupInput) { - return testFailoverCleanupAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return testFailoverCleanupAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, cleanupInput).block(); } @@ -5869,8 +5866,8 @@ public ReplicationProtectedItemInner testFailoverCleanup(String resourceName, St * * Operation to clean up the test failover of a replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -5882,10 +5879,10 @@ public ReplicationProtectedItemInner testFailoverCleanup(String resourceName, St * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReplicationProtectedItemInner testFailoverCleanup(String resourceName, String resourceGroupName, + public ReplicationProtectedItemInner testFailoverCleanup(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, TestFailoverCleanupInput cleanupInput, Context context) { - return testFailoverCleanupAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return testFailoverCleanupAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, cleanupInput, context).block(); } @@ -5894,8 +5891,8 @@ public ReplicationProtectedItemInner testFailoverCleanup(String resourceName, St * * Operation to initiate a failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -5906,20 +5903,20 @@ public ReplicationProtectedItemInner testFailoverCleanup(String resourceName, St * @return replication protected item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> unplannedFailoverWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, + private Mono>> unplannedFailoverWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UnplannedFailoverInput failoverInput) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -5943,7 +5940,7 @@ private Mono>> unplannedFailoverWithResponseAsync(Stri final String accept = "application/json"; return FluxUtil .withContext(context -> service.unplannedFailover(this.client.getEndpoint(), this.client.getApiVersion(), - resourceName, resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -5953,8 +5950,8 @@ private Mono>> unplannedFailoverWithResponseAsync(Stri * * Operation to initiate a failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -5966,20 +5963,20 @@ private Mono>> unplannedFailoverWithResponseAsync(Stri * @return replication protected item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> unplannedFailoverWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, + private Mono>> unplannedFailoverWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UnplannedFailoverInput failoverInput, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -6002,8 +5999,8 @@ private Mono>> unplannedFailoverWithResponseAsync(Stri } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.unplannedFailover(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + return service.unplannedFailover(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, accept, context); } @@ -6012,8 +6009,8 @@ private Mono>> unplannedFailoverWithResponseAsync(Stri * * Operation to initiate a failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -6025,9 +6022,9 @@ private Mono>> unplannedFailoverWithResponseAsync(Stri */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ReplicationProtectedItemInner> - beginUnplannedFailoverAsync(String resourceName, String resourceGroupName, String fabricName, + beginUnplannedFailoverAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UnplannedFailoverInput failoverInput) { - Mono>> mono = unplannedFailoverWithResponseAsync(resourceName, resourceGroupName, + Mono>> mono = unplannedFailoverWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ReplicationProtectedItemInner.class, ReplicationProtectedItemInner.class, @@ -6039,8 +6036,8 @@ private Mono>> unplannedFailoverWithResponseAsync(Stri * * Operation to initiate a failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -6053,11 +6050,11 @@ private Mono>> unplannedFailoverWithResponseAsync(Stri */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ReplicationProtectedItemInner> - beginUnplannedFailoverAsync(String resourceName, String resourceGroupName, String fabricName, + beginUnplannedFailoverAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UnplannedFailoverInput failoverInput, Context context) { context = this.client.mergeContext(context); - Mono>> mono = unplannedFailoverWithResponseAsync(resourceName, resourceGroupName, + Mono>> mono = unplannedFailoverWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ReplicationProtectedItemInner.class, ReplicationProtectedItemInner.class, @@ -6069,8 +6066,8 @@ private Mono>> unplannedFailoverWithResponseAsync(Stri * * Operation to initiate a failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -6082,10 +6079,10 @@ private Mono>> unplannedFailoverWithResponseAsync(Stri */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ReplicationProtectedItemInner> beginUnplannedFailover( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UnplannedFailoverInput failoverInput) { return this - .beginUnplannedFailoverAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginUnplannedFailoverAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput) .getSyncPoller(); } @@ -6095,8 +6092,8 @@ public SyncPoller, ReplicationProtecte * * Operation to initiate a failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -6109,10 +6106,10 @@ public SyncPoller, ReplicationProtecte */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ReplicationProtectedItemInner> beginUnplannedFailover( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UnplannedFailoverInput failoverInput, Context context) { return this - .beginUnplannedFailoverAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginUnplannedFailoverAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, context) .getSyncPoller(); } @@ -6122,8 +6119,8 @@ public SyncPoller, ReplicationProtecte * * Operation to initiate a failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -6134,10 +6131,10 @@ public SyncPoller, ReplicationProtecte * @return replication protected item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono unplannedFailoverAsync(String resourceName, String resourceGroupName, + private Mono unplannedFailoverAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UnplannedFailoverInput failoverInput) { - return beginUnplannedFailoverAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginUnplannedFailoverAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput).last().flatMap(this.client::getLroFinalResultOrError); } @@ -6146,8 +6143,8 @@ private Mono unplannedFailoverAsync(String resour * * Operation to initiate a failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -6159,10 +6156,10 @@ private Mono unplannedFailoverAsync(String resour * @return replication protected item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono unplannedFailoverAsync(String resourceName, String resourceGroupName, + private Mono unplannedFailoverAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UnplannedFailoverInput failoverInput, Context context) { - return beginUnplannedFailoverAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginUnplannedFailoverAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, context).last().flatMap(this.client::getLroFinalResultOrError); } @@ -6171,8 +6168,8 @@ private Mono unplannedFailoverAsync(String resour * * Operation to initiate a failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -6183,10 +6180,10 @@ private Mono unplannedFailoverAsync(String resour * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReplicationProtectedItemInner unplannedFailover(String resourceName, String resourceGroupName, + public ReplicationProtectedItemInner unplannedFailover(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UnplannedFailoverInput failoverInput) { - return unplannedFailoverAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return unplannedFailoverAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput).block(); } @@ -6195,8 +6192,8 @@ public ReplicationProtectedItemInner unplannedFailover(String resourceName, Stri * * Operation to initiate a failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -6208,10 +6205,10 @@ public ReplicationProtectedItemInner unplannedFailover(String resourceName, Stri * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReplicationProtectedItemInner unplannedFailover(String resourceName, String resourceGroupName, + public ReplicationProtectedItemInner unplannedFailover(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UnplannedFailoverInput failoverInput, Context context) { - return unplannedFailoverAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return unplannedFailoverAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, context).block(); } @@ -6220,8 +6217,8 @@ public ReplicationProtectedItemInner unplannedFailover(String resourceName, Stri * * The operation to update appliance of an ASR replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -6232,20 +6229,20 @@ public ReplicationProtectedItemInner unplannedFailover(String resourceName, Stri * @return replication protected item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateApplianceWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, + private Mono>> updateApplianceWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateApplianceForReplicationProtectedItemInput applianceUpdateInput) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -6270,7 +6267,7 @@ private Mono>> updateApplianceWithResponseAsync(String final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateAppliance(this.client.getEndpoint(), this.client.getApiVersion(), - resourceName, resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, replicatedProtectedItemName, applianceUpdateInput, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -6280,8 +6277,8 @@ private Mono>> updateApplianceWithResponseAsync(String * * The operation to update appliance of an ASR replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -6293,20 +6290,20 @@ private Mono>> updateApplianceWithResponseAsync(String * @return replication protected item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateApplianceWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, + private Mono>> updateApplianceWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateApplianceForReplicationProtectedItemInput applianceUpdateInput, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -6330,8 +6327,8 @@ private Mono>> updateApplianceWithResponseAsync(String } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.updateAppliance(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + return service.updateAppliance(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, replicatedProtectedItemName, applianceUpdateInput, accept, context); } @@ -6340,8 +6337,8 @@ private Mono>> updateApplianceWithResponseAsync(String * * The operation to update appliance of an ASR replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -6353,10 +6350,10 @@ private Mono>> updateApplianceWithResponseAsync(String */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ReplicationProtectedItemInner> - beginUpdateApplianceAsync(String resourceName, String resourceGroupName, String fabricName, + beginUpdateApplianceAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateApplianceForReplicationProtectedItemInput applianceUpdateInput) { - Mono>> mono = updateApplianceWithResponseAsync(resourceName, resourceGroupName, + Mono>> mono = updateApplianceWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, applianceUpdateInput); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ReplicationProtectedItemInner.class, ReplicationProtectedItemInner.class, @@ -6368,8 +6365,8 @@ private Mono>> updateApplianceWithResponseAsync(String * * The operation to update appliance of an ASR replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -6382,11 +6379,11 @@ private Mono>> updateApplianceWithResponseAsync(String */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ReplicationProtectedItemInner> - beginUpdateApplianceAsync(String resourceName, String resourceGroupName, String fabricName, + beginUpdateApplianceAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateApplianceForReplicationProtectedItemInput applianceUpdateInput, Context context) { context = this.client.mergeContext(context); - Mono>> mono = updateApplianceWithResponseAsync(resourceName, resourceGroupName, + Mono>> mono = updateApplianceWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, applianceUpdateInput, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ReplicationProtectedItemInner.class, ReplicationProtectedItemInner.class, @@ -6398,8 +6395,8 @@ private Mono>> updateApplianceWithResponseAsync(String * * The operation to update appliance of an ASR replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -6411,10 +6408,10 @@ private Mono>> updateApplianceWithResponseAsync(String */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ReplicationProtectedItemInner> beginUpdateAppliance( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateApplianceForReplicationProtectedItemInput applianceUpdateInput) { return this - .beginUpdateApplianceAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginUpdateApplianceAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, applianceUpdateInput) .getSyncPoller(); } @@ -6424,8 +6421,8 @@ public SyncPoller, ReplicationProtecte * * The operation to update appliance of an ASR replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -6438,11 +6435,11 @@ public SyncPoller, ReplicationProtecte */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ReplicationProtectedItemInner> beginUpdateAppliance( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateApplianceForReplicationProtectedItemInput applianceUpdateInput, Context context) { return this - .beginUpdateApplianceAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginUpdateApplianceAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, applianceUpdateInput, context) .getSyncPoller(); } @@ -6452,8 +6449,8 @@ public SyncPoller, ReplicationProtecte * * The operation to update appliance of an ASR replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -6464,10 +6461,10 @@ public SyncPoller, ReplicationProtecte * @return replication protected item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateApplianceAsync(String resourceName, String resourceGroupName, + private Mono updateApplianceAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateApplianceForReplicationProtectedItemInput applianceUpdateInput) { - return beginUpdateApplianceAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginUpdateApplianceAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, applianceUpdateInput).last().flatMap(this.client::getLroFinalResultOrError); } @@ -6476,8 +6473,8 @@ private Mono updateApplianceAsync(String resource * * The operation to update appliance of an ASR replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -6489,10 +6486,10 @@ private Mono updateApplianceAsync(String resource * @return replication protected item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateApplianceAsync(String resourceName, String resourceGroupName, + private Mono updateApplianceAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateApplianceForReplicationProtectedItemInput applianceUpdateInput, Context context) { - return beginUpdateApplianceAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginUpdateApplianceAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, applianceUpdateInput, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -6502,8 +6499,8 @@ private Mono updateApplianceAsync(String resource * * The operation to update appliance of an ASR replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -6514,10 +6511,10 @@ private Mono updateApplianceAsync(String resource * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReplicationProtectedItemInner updateAppliance(String resourceName, String resourceGroupName, + public ReplicationProtectedItemInner updateAppliance(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateApplianceForReplicationProtectedItemInput applianceUpdateInput) { - return updateApplianceAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return updateApplianceAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, applianceUpdateInput).block(); } @@ -6526,8 +6523,8 @@ public ReplicationProtectedItemInner updateAppliance(String resourceName, String * * The operation to update appliance of an ASR replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -6539,10 +6536,10 @@ public ReplicationProtectedItemInner updateAppliance(String resourceName, String * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReplicationProtectedItemInner updateAppliance(String resourceName, String resourceGroupName, + public ReplicationProtectedItemInner updateAppliance(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateApplianceForReplicationProtectedItemInput applianceUpdateInput, Context context) { - return updateApplianceAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return updateApplianceAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, applianceUpdateInput, context).block(); } @@ -6552,8 +6549,8 @@ public ReplicationProtectedItemInner updateAppliance(String resourceName, String * The operation to update(push update) the installed mobility service software on a replication protected item to * the latest available version. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric containing the protected item. * @param protectionContainerName The name of the container containing the protected item. * @param replicatedProtectedItemName The name of the protected item on which the agent is to be updated. @@ -6564,20 +6561,20 @@ public ReplicationProtectedItemInner updateAppliance(String resourceName, String * @return replication protected item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateMobilityServiceWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, + private Mono>> updateMobilityServiceWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateMobilityServiceRequest updateMobilityServiceRequest) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -6601,7 +6598,7 @@ private Mono>> updateMobilityServiceWithResponseAsync( } final String accept = "application/json"; return FluxUtil.withContext(context -> service.updateMobilityService(this.client.getEndpoint(), - this.client.getApiVersion(), resourceName, resourceGroupName, this.client.getSubscriptionId(), fabricName, + this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, replicatedProtectedItemName, updateMobilityServiceRequest, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -6612,8 +6609,8 @@ private Mono>> updateMobilityServiceWithResponseAsync( * The operation to update(push update) the installed mobility service software on a replication protected item to * the latest available version. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric containing the protected item. * @param protectionContainerName The name of the container containing the protected item. * @param replicatedProtectedItemName The name of the protected item on which the agent is to be updated. @@ -6625,20 +6622,20 @@ private Mono>> updateMobilityServiceWithResponseAsync( * @return replication protected item along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateMobilityServiceWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, + private Mono>> updateMobilityServiceWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateMobilityServiceRequest updateMobilityServiceRequest, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -6662,8 +6659,8 @@ private Mono>> updateMobilityServiceWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.updateMobilityService(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + return service.updateMobilityService(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, replicatedProtectedItemName, updateMobilityServiceRequest, accept, context); } @@ -6673,8 +6670,8 @@ private Mono>> updateMobilityServiceWithResponseAsync( * The operation to update(push update) the installed mobility service software on a replication protected item to * the latest available version. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric containing the protected item. * @param protectionContainerName The name of the container containing the protected item. * @param replicatedProtectedItemName The name of the protected item on which the agent is to be updated. @@ -6686,10 +6683,10 @@ private Mono>> updateMobilityServiceWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ReplicationProtectedItemInner> - beginUpdateMobilityServiceAsync(String resourceName, String resourceGroupName, String fabricName, + beginUpdateMobilityServiceAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateMobilityServiceRequest updateMobilityServiceRequest) { - Mono>> mono = updateMobilityServiceWithResponseAsync(resourceName, resourceGroupName, + Mono>> mono = updateMobilityServiceWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, updateMobilityServiceRequest); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ReplicationProtectedItemInner.class, ReplicationProtectedItemInner.class, @@ -6702,8 +6699,8 @@ private Mono>> updateMobilityServiceWithResponseAsync( * The operation to update(push update) the installed mobility service software on a replication protected item to * the latest available version. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric containing the protected item. * @param protectionContainerName The name of the container containing the protected item. * @param replicatedProtectedItemName The name of the protected item on which the agent is to be updated. @@ -6716,11 +6713,11 @@ private Mono>> updateMobilityServiceWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ReplicationProtectedItemInner> - beginUpdateMobilityServiceAsync(String resourceName, String resourceGroupName, String fabricName, + beginUpdateMobilityServiceAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateMobilityServiceRequest updateMobilityServiceRequest, Context context) { context = this.client.mergeContext(context); - Mono>> mono = updateMobilityServiceWithResponseAsync(resourceName, resourceGroupName, + Mono>> mono = updateMobilityServiceWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, updateMobilityServiceRequest, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ReplicationProtectedItemInner.class, ReplicationProtectedItemInner.class, @@ -6733,8 +6730,8 @@ private Mono>> updateMobilityServiceWithResponseAsync( * The operation to update(push update) the installed mobility service software on a replication protected item to * the latest available version. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric containing the protected item. * @param protectionContainerName The name of the container containing the protected item. * @param replicatedProtectedItemName The name of the protected item on which the agent is to be updated. @@ -6746,11 +6743,11 @@ private Mono>> updateMobilityServiceWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ReplicationProtectedItemInner> - beginUpdateMobilityService(String resourceName, String resourceGroupName, String fabricName, + beginUpdateMobilityService(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateMobilityServiceRequest updateMobilityServiceRequest) { return this - .beginUpdateMobilityServiceAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginUpdateMobilityServiceAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, updateMobilityServiceRequest) .getSyncPoller(); } @@ -6761,8 +6758,8 @@ private Mono>> updateMobilityServiceWithResponseAsync( * The operation to update(push update) the installed mobility service software on a replication protected item to * the latest available version. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric containing the protected item. * @param protectionContainerName The name of the container containing the protected item. * @param replicatedProtectedItemName The name of the protected item on which the agent is to be updated. @@ -6775,11 +6772,11 @@ private Mono>> updateMobilityServiceWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ReplicationProtectedItemInner> - beginUpdateMobilityService(String resourceName, String resourceGroupName, String fabricName, + beginUpdateMobilityService(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateMobilityServiceRequest updateMobilityServiceRequest, Context context) { return this - .beginUpdateMobilityServiceAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginUpdateMobilityServiceAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, updateMobilityServiceRequest, context) .getSyncPoller(); } @@ -6790,8 +6787,8 @@ private Mono>> updateMobilityServiceWithResponseAsync( * The operation to update(push update) the installed mobility service software on a replication protected item to * the latest available version. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric containing the protected item. * @param protectionContainerName The name of the container containing the protected item. * @param replicatedProtectedItemName The name of the protected item on which the agent is to be updated. @@ -6802,10 +6799,10 @@ private Mono>> updateMobilityServiceWithResponseAsync( * @return replication protected item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateMobilityServiceAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, + private Mono updateMobilityServiceAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateMobilityServiceRequest updateMobilityServiceRequest) { - return beginUpdateMobilityServiceAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginUpdateMobilityServiceAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, updateMobilityServiceRequest).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -6816,8 +6813,8 @@ private Mono updateMobilityServiceAsync(String re * The operation to update(push update) the installed mobility service software on a replication protected item to * the latest available version. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric containing the protected item. * @param protectionContainerName The name of the container containing the protected item. * @param replicatedProtectedItemName The name of the protected item on which the agent is to be updated. @@ -6829,10 +6826,10 @@ private Mono updateMobilityServiceAsync(String re * @return replication protected item on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateMobilityServiceAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, + private Mono updateMobilityServiceAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateMobilityServiceRequest updateMobilityServiceRequest, Context context) { - return beginUpdateMobilityServiceAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginUpdateMobilityServiceAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, updateMobilityServiceRequest, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -6843,8 +6840,8 @@ private Mono updateMobilityServiceAsync(String re * The operation to update(push update) the installed mobility service software on a replication protected item to * the latest available version. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric containing the protected item. * @param protectionContainerName The name of the container containing the protected item. * @param replicatedProtectedItemName The name of the protected item on which the agent is to be updated. @@ -6855,10 +6852,10 @@ private Mono updateMobilityServiceAsync(String re * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReplicationProtectedItemInner updateMobilityService(String resourceName, String resourceGroupName, + public ReplicationProtectedItemInner updateMobilityService(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateMobilityServiceRequest updateMobilityServiceRequest) { - return updateMobilityServiceAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return updateMobilityServiceAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, updateMobilityServiceRequest).block(); } @@ -6868,8 +6865,8 @@ public ReplicationProtectedItemInner updateMobilityService(String resourceName, * The operation to update(push update) the installed mobility service software on a replication protected item to * the latest available version. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric containing the protected item. * @param protectionContainerName The name of the container containing the protected item. * @param replicatedProtectedItemName The name of the protected item on which the agent is to be updated. @@ -6881,10 +6878,10 @@ public ReplicationProtectedItemInner updateMobilityService(String resourceName, * @return replication protected item. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReplicationProtectedItemInner updateMobilityService(String resourceName, String resourceGroupName, + public ReplicationProtectedItemInner updateMobilityService(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateMobilityServiceRequest updateMobilityServiceRequest, Context context) { - return updateMobilityServiceAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return updateMobilityServiceAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, updateMobilityServiceRequest, context).block(); } @@ -6893,8 +6890,8 @@ public ReplicationProtectedItemInner updateMobilityService(String resourceName, * * Gets the list of ASR replication protected items in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param skipToken The pagination token. Possible values: "FabricId" or "FabricId_CloudId" or null. * @param filter OData filter options. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -6904,27 +6901,27 @@ public ReplicationProtectedItemInner updateMobilityService(String resourceName, * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceName, - String resourceGroupName, String skipToken, String filter) { + private Mono> listSinglePageAsync(String resourceGroupName, + String resourceName, String skipToken, String filter) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), skipToken, filter, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), skipToken, filter, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -6935,8 +6932,8 @@ private Mono> listSinglePageAsync(S * * Gets the list of ASR replication protected items in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param skipToken The pagination token. Possible values: "FabricId" or "FabricId_CloudId" or null. * @param filter OData filter options. * @param context The context to associate with this operation. @@ -6947,19 +6944,19 @@ private Mono> listSinglePageAsync(S * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceName, - String resourceGroupName, String skipToken, String filter, Context context) { + private Mono> listSinglePageAsync(String resourceGroupName, + String resourceName, String skipToken, String filter, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -6967,7 +6964,7 @@ private Mono> listSinglePageAsync(S final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + .list(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), skipToken, filter, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); @@ -6978,8 +6975,8 @@ private Mono> listSinglePageAsync(S * * Gets the list of ASR replication protected items in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param skipToken The pagination token. Possible values: "FabricId" or "FabricId_CloudId" or null. * @param filter OData filter options. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -6988,9 +6985,9 @@ private Mono> listSinglePageAsync(S * @return the list of ASR replication protected items in the vault as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceName, String resourceGroupName, + private PagedFlux listAsync(String resourceGroupName, String resourceName, String skipToken, String filter) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceName, resourceGroupName, skipToken, filter), + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName, skipToken, filter), nextLink -> listNextSinglePageAsync(nextLink)); } @@ -6999,18 +6996,18 @@ private PagedFlux listAsync(String resourceName, * * Gets the list of ASR replication protected items in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of ASR replication protected items in the vault as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceName, String resourceGroupName) { + private PagedFlux listAsync(String resourceGroupName, String resourceName) { final String skipToken = null; final String filter = null; - return new PagedFlux<>(() -> listSinglePageAsync(resourceName, resourceGroupName, skipToken, filter), + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName, skipToken, filter), nextLink -> listNextSinglePageAsync(nextLink)); } @@ -7019,8 +7016,8 @@ private PagedFlux listAsync(String resourceName, * * Gets the list of ASR replication protected items in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param skipToken The pagination token. Possible values: "FabricId" or "FabricId_CloudId" or null. * @param filter OData filter options. * @param context The context to associate with this operation. @@ -7030,9 +7027,9 @@ private PagedFlux listAsync(String resourceName, * @return the list of ASR replication protected items in the vault as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceName, String resourceGroupName, + private PagedFlux listAsync(String resourceGroupName, String resourceName, String skipToken, String filter, Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceName, resourceGroupName, skipToken, filter, context), + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName, skipToken, filter, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } @@ -7041,8 +7038,8 @@ private PagedFlux listAsync(String resourceName, * * Gets the list of ASR replication protected items in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -7050,10 +7047,10 @@ private PagedFlux listAsync(String resourceName, * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceName, String resourceGroupName) { + public PagedIterable list(String resourceGroupName, String resourceName) { final String skipToken = null; final String filter = null; - return new PagedIterable<>(listAsync(resourceName, resourceGroupName, skipToken, filter)); + return new PagedIterable<>(listAsync(resourceGroupName, resourceName, skipToken, filter)); } /** @@ -7061,8 +7058,8 @@ public PagedIterable list(String resourceName, St * * Gets the list of ASR replication protected items in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param skipToken The pagination token. Possible values: "FabricId" or "FabricId_CloudId" or null. * @param filter OData filter options. * @param context The context to associate with this operation. @@ -7073,9 +7070,9 @@ public PagedIterable list(String resourceName, St * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceName, String resourceGroupName, + public PagedIterable list(String resourceGroupName, String resourceName, String skipToken, String filter, Context context) { - return new PagedIterable<>(listAsync(resourceName, resourceGroupName, skipToken, filter, context)); + return new PagedIterable<>(listAsync(resourceGroupName, resourceName, skipToken, filter, context)); } /** diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectedItemsImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectedItemsImpl.java index 23fd93b0f288..bf5576b86a89 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectedItemsImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectedItemsImpl.java @@ -40,26 +40,26 @@ public ReplicationProtectedItemsImpl(ReplicationProtectedItemsClient innerClient this.serviceManager = serviceManager; } - public PagedIterable listByReplicationProtectionContainers(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName) { + public PagedIterable listByReplicationProtectionContainers(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName) { PagedIterable inner = this.serviceClient() - .listByReplicationProtectionContainers(resourceName, resourceGroupName, fabricName, + .listByReplicationProtectionContainers(resourceGroupName, resourceName, fabricName, protectionContainerName); return ResourceManagerUtils.mapPage(inner, inner1 -> new ReplicationProtectedItemImpl(inner1, this.manager())); } - public PagedIterable listByReplicationProtectionContainers(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, Context context) { + public PagedIterable listByReplicationProtectionContainers(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, Context context) { PagedIterable inner = this.serviceClient() - .listByReplicationProtectionContainers(resourceName, resourceGroupName, fabricName, protectionContainerName, + .listByReplicationProtectionContainers(resourceGroupName, resourceName, fabricName, protectionContainerName, context); return ResourceManagerUtils.mapPage(inner, inner1 -> new ReplicationProtectedItemImpl(inner1, this.manager())); } - public Response getWithResponse(String resourceName, String resourceGroupName, + public Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context) { Response inner = this.serviceClient() - .getWithResponse(resourceName, resourceGroupName, fabricName, protectionContainerName, + .getWithResponse(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, context); if (inner != null) { return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), @@ -69,10 +69,10 @@ public Response getWithResponse(String resourceName, S } } - public ReplicationProtectedItem get(String resourceName, String resourceGroupName, String fabricName, + public ReplicationProtectedItem get(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName) { ReplicationProtectedItemInner inner = this.serviceClient() - .get(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName); + .get(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName); if (inner != null) { return new ReplicationProtectedItemImpl(inner, this.manager()); } else { @@ -80,23 +80,23 @@ public ReplicationProtectedItem get(String resourceName, String resourceGroupNam } } - public void purge(String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + public void purge(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName) { this.serviceClient() - .purge(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName); + .purge(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName); } - public void purge(String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + public void purge(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context) { this.serviceClient() - .purge(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, + .purge(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, context); } - public ReplicationProtectedItem addDisks(String resourceName, String resourceGroupName, String fabricName, + public ReplicationProtectedItem addDisks(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, AddDisksInput addDisksInput) { ReplicationProtectedItemInner inner = this.serviceClient() - .addDisks(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, + .addDisks(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, addDisksInput); if (inner != null) { return new ReplicationProtectedItemImpl(inner, this.manager()); @@ -105,11 +105,11 @@ public ReplicationProtectedItem addDisks(String resourceName, String resourceGro } } - public ReplicationProtectedItem addDisks(String resourceName, String resourceGroupName, String fabricName, + public ReplicationProtectedItem addDisks(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, AddDisksInput addDisksInput, Context context) { ReplicationProtectedItemInner inner = this.serviceClient() - .addDisks(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, + .addDisks(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, addDisksInput, context); if (inner != null) { return new ReplicationProtectedItemImpl(inner, this.manager()); @@ -118,11 +118,11 @@ public ReplicationProtectedItem addDisks(String resourceName, String resourceGro } } - public ReplicationProtectedItem applyRecoveryPoint(String resourceName, String resourceGroupName, String fabricName, + public ReplicationProtectedItem applyRecoveryPoint(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ApplyRecoveryPointInput applyRecoveryPointInput) { ReplicationProtectedItemInner inner = this.serviceClient() - .applyRecoveryPoint(resourceName, resourceGroupName, fabricName, protectionContainerName, + .applyRecoveryPoint(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, applyRecoveryPointInput); if (inner != null) { return new ReplicationProtectedItemImpl(inner, this.manager()); @@ -131,11 +131,11 @@ public ReplicationProtectedItem applyRecoveryPoint(String resourceName, String r } } - public ReplicationProtectedItem applyRecoveryPoint(String resourceName, String resourceGroupName, String fabricName, + public ReplicationProtectedItem applyRecoveryPoint(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ApplyRecoveryPointInput applyRecoveryPointInput, Context context) { ReplicationProtectedItemInner inner = this.serviceClient() - .applyRecoveryPoint(resourceName, resourceGroupName, fabricName, protectionContainerName, + .applyRecoveryPoint(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, applyRecoveryPointInput, context); if (inner != null) { return new ReplicationProtectedItemImpl(inner, this.manager()); @@ -144,10 +144,10 @@ public ReplicationProtectedItem applyRecoveryPoint(String resourceName, String r } } - public ReplicationProtectedItem failoverCancel(String resourceName, String resourceGroupName, String fabricName, + public ReplicationProtectedItem failoverCancel(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName) { ReplicationProtectedItemInner inner = this.serviceClient() - .failoverCancel(resourceName, resourceGroupName, fabricName, protectionContainerName, + .failoverCancel(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName); if (inner != null) { return new ReplicationProtectedItemImpl(inner, this.manager()); @@ -156,10 +156,10 @@ public ReplicationProtectedItem failoverCancel(String resourceName, String resou } } - public ReplicationProtectedItem failoverCancel(String resourceName, String resourceGroupName, String fabricName, + public ReplicationProtectedItem failoverCancel(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context) { ReplicationProtectedItemInner inner = this.serviceClient() - .failoverCancel(resourceName, resourceGroupName, fabricName, protectionContainerName, + .failoverCancel(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, context); if (inner != null) { return new ReplicationProtectedItemImpl(inner, this.manager()); @@ -168,10 +168,10 @@ public ReplicationProtectedItem failoverCancel(String resourceName, String resou } } - public ReplicationProtectedItem failoverCommit(String resourceName, String resourceGroupName, String fabricName, + public ReplicationProtectedItem failoverCommit(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName) { ReplicationProtectedItemInner inner = this.serviceClient() - .failoverCommit(resourceName, resourceGroupName, fabricName, protectionContainerName, + .failoverCommit(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName); if (inner != null) { return new ReplicationProtectedItemImpl(inner, this.manager()); @@ -180,10 +180,10 @@ public ReplicationProtectedItem failoverCommit(String resourceName, String resou } } - public ReplicationProtectedItem failoverCommit(String resourceName, String resourceGroupName, String fabricName, + public ReplicationProtectedItem failoverCommit(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context) { ReplicationProtectedItemInner inner = this.serviceClient() - .failoverCommit(resourceName, resourceGroupName, fabricName, protectionContainerName, + .failoverCommit(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, context); if (inner != null) { return new ReplicationProtectedItemImpl(inner, this.manager()); @@ -192,10 +192,10 @@ public ReplicationProtectedItem failoverCommit(String resourceName, String resou } } - public ReplicationProtectedItem plannedFailover(String resourceName, String resourceGroupName, String fabricName, + public ReplicationProtectedItem plannedFailover(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, PlannedFailoverInput failoverInput) { ReplicationProtectedItemInner inner = this.serviceClient() - .plannedFailover(resourceName, resourceGroupName, fabricName, protectionContainerName, + .plannedFailover(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput); if (inner != null) { return new ReplicationProtectedItemImpl(inner, this.manager()); @@ -204,11 +204,11 @@ public ReplicationProtectedItem plannedFailover(String resourceName, String reso } } - public ReplicationProtectedItem plannedFailover(String resourceName, String resourceGroupName, String fabricName, + public ReplicationProtectedItem plannedFailover(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, PlannedFailoverInput failoverInput, Context context) { ReplicationProtectedItemInner inner = this.serviceClient() - .plannedFailover(resourceName, resourceGroupName, fabricName, protectionContainerName, + .plannedFailover(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, context); if (inner != null) { return new ReplicationProtectedItemImpl(inner, this.manager()); @@ -217,24 +217,24 @@ public ReplicationProtectedItem plannedFailover(String resourceName, String reso } } - public void delete(String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + public void delete(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, DisableProtectionInput disableProtectionInput) { this.serviceClient() - .delete(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, + .delete(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, disableProtectionInput); } - public void delete(String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + public void delete(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, DisableProtectionInput disableProtectionInput, Context context) { this.serviceClient() - .delete(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, + .delete(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, disableProtectionInput, context); } - public ReplicationProtectedItem removeDisks(String resourceName, String resourceGroupName, String fabricName, + public ReplicationProtectedItem removeDisks(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, RemoveDisksInput removeDisksInput) { ReplicationProtectedItemInner inner = this.serviceClient() - .removeDisks(resourceName, resourceGroupName, fabricName, protectionContainerName, + .removeDisks(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, removeDisksInput); if (inner != null) { return new ReplicationProtectedItemImpl(inner, this.manager()); @@ -243,11 +243,11 @@ public ReplicationProtectedItem removeDisks(String resourceName, String resource } } - public ReplicationProtectedItem removeDisks(String resourceName, String resourceGroupName, String fabricName, + public ReplicationProtectedItem removeDisks(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, RemoveDisksInput removeDisksInput, Context context) { ReplicationProtectedItemInner inner = this.serviceClient() - .removeDisks(resourceName, resourceGroupName, fabricName, protectionContainerName, + .removeDisks(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, removeDisksInput, context); if (inner != null) { return new ReplicationProtectedItemImpl(inner, this.manager()); @@ -256,10 +256,10 @@ public ReplicationProtectedItem removeDisks(String resourceName, String resource } } - public ReplicationProtectedItem repairReplication(String resourceName, String resourceGroupName, String fabricName, + public ReplicationProtectedItem repairReplication(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName) { ReplicationProtectedItemInner inner = this.serviceClient() - .repairReplication(resourceName, resourceGroupName, fabricName, protectionContainerName, + .repairReplication(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName); if (inner != null) { return new ReplicationProtectedItemImpl(inner, this.manager()); @@ -268,10 +268,10 @@ public ReplicationProtectedItem repairReplication(String resourceName, String re } } - public ReplicationProtectedItem repairReplication(String resourceName, String resourceGroupName, String fabricName, + public ReplicationProtectedItem repairReplication(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context) { ReplicationProtectedItemInner inner = this.serviceClient() - .repairReplication(resourceName, resourceGroupName, fabricName, protectionContainerName, + .repairReplication(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, context); if (inner != null) { return new ReplicationProtectedItemImpl(inner, this.manager()); @@ -280,10 +280,10 @@ public ReplicationProtectedItem repairReplication(String resourceName, String re } } - public ReplicationProtectedItem reprotect(String resourceName, String resourceGroupName, String fabricName, + public ReplicationProtectedItem reprotect(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ReverseReplicationInput reprotectInput) { ReplicationProtectedItemInner inner = this.serviceClient() - .reprotect(resourceName, resourceGroupName, fabricName, protectionContainerName, + .reprotect(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, reprotectInput); if (inner != null) { return new ReplicationProtectedItemImpl(inner, this.manager()); @@ -292,11 +292,11 @@ public ReplicationProtectedItem reprotect(String resourceName, String resourceGr } } - public ReplicationProtectedItem reprotect(String resourceName, String resourceGroupName, String fabricName, + public ReplicationProtectedItem reprotect(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ReverseReplicationInput reprotectInput, Context context) { ReplicationProtectedItemInner inner = this.serviceClient() - .reprotect(resourceName, resourceGroupName, fabricName, protectionContainerName, + .reprotect(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, reprotectInput, context); if (inner != null) { return new ReplicationProtectedItemImpl(inner, this.manager()); @@ -305,11 +305,11 @@ public ReplicationProtectedItem reprotect(String resourceName, String resourceGr } } - public ReplicationProtectedItem resolveHealthErrors(String resourceName, String resourceGroupName, + public ReplicationProtectedItem resolveHealthErrors(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ResolveHealthInput resolveHealthInput) { ReplicationProtectedItemInner inner = this.serviceClient() - .resolveHealthErrors(resourceName, resourceGroupName, fabricName, protectionContainerName, + .resolveHealthErrors(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, resolveHealthInput); if (inner != null) { return new ReplicationProtectedItemImpl(inner, this.manager()); @@ -318,11 +318,11 @@ public ReplicationProtectedItem resolveHealthErrors(String resourceName, String } } - public ReplicationProtectedItem resolveHealthErrors(String resourceName, String resourceGroupName, + public ReplicationProtectedItem resolveHealthErrors(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ResolveHealthInput resolveHealthInput, Context context) { ReplicationProtectedItemInner inner = this.serviceClient() - .resolveHealthErrors(resourceName, resourceGroupName, fabricName, protectionContainerName, + .resolveHealthErrors(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, resolveHealthInput, context); if (inner != null) { return new ReplicationProtectedItemImpl(inner, this.manager()); @@ -331,10 +331,10 @@ public ReplicationProtectedItem resolveHealthErrors(String resourceName, String } } - public ReplicationProtectedItem switchProvider(String resourceName, String resourceGroupName, String fabricName, + public ReplicationProtectedItem switchProvider(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, SwitchProviderInput switchProviderInput) { ReplicationProtectedItemInner inner = this.serviceClient() - .switchProvider(resourceName, resourceGroupName, fabricName, protectionContainerName, + .switchProvider(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, switchProviderInput); if (inner != null) { return new ReplicationProtectedItemImpl(inner, this.manager()); @@ -343,11 +343,11 @@ public ReplicationProtectedItem switchProvider(String resourceName, String resou } } - public ReplicationProtectedItem switchProvider(String resourceName, String resourceGroupName, String fabricName, + public ReplicationProtectedItem switchProvider(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, SwitchProviderInput switchProviderInput, Context context) { ReplicationProtectedItemInner inner = this.serviceClient() - .switchProvider(resourceName, resourceGroupName, fabricName, protectionContainerName, + .switchProvider(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, switchProviderInput, context); if (inner != null) { return new ReplicationProtectedItemImpl(inner, this.manager()); @@ -356,10 +356,10 @@ public ReplicationProtectedItem switchProvider(String resourceName, String resou } } - public ReplicationProtectedItem testFailover(String resourceName, String resourceGroupName, String fabricName, + public ReplicationProtectedItem testFailover(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, TestFailoverInput testfailoverInput) { ReplicationProtectedItemInner inner = this.serviceClient() - .testFailover(resourceName, resourceGroupName, fabricName, protectionContainerName, + .testFailover(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, testfailoverInput); if (inner != null) { return new ReplicationProtectedItemImpl(inner, this.manager()); @@ -368,11 +368,11 @@ public ReplicationProtectedItem testFailover(String resourceName, String resourc } } - public ReplicationProtectedItem testFailover(String resourceName, String resourceGroupName, String fabricName, + public ReplicationProtectedItem testFailover(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, TestFailoverInput testfailoverInput, Context context) { ReplicationProtectedItemInner inner = this.serviceClient() - .testFailover(resourceName, resourceGroupName, fabricName, protectionContainerName, + .testFailover(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, testfailoverInput, context); if (inner != null) { return new ReplicationProtectedItemImpl(inner, this.manager()); @@ -381,11 +381,11 @@ public ReplicationProtectedItem testFailover(String resourceName, String resourc } } - public ReplicationProtectedItem testFailoverCleanup(String resourceName, String resourceGroupName, + public ReplicationProtectedItem testFailoverCleanup(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, TestFailoverCleanupInput cleanupInput) { ReplicationProtectedItemInner inner = this.serviceClient() - .testFailoverCleanup(resourceName, resourceGroupName, fabricName, protectionContainerName, + .testFailoverCleanup(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, cleanupInput); if (inner != null) { return new ReplicationProtectedItemImpl(inner, this.manager()); @@ -394,11 +394,11 @@ public ReplicationProtectedItem testFailoverCleanup(String resourceName, String } } - public ReplicationProtectedItem testFailoverCleanup(String resourceName, String resourceGroupName, + public ReplicationProtectedItem testFailoverCleanup(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, TestFailoverCleanupInput cleanupInput, Context context) { ReplicationProtectedItemInner inner = this.serviceClient() - .testFailoverCleanup(resourceName, resourceGroupName, fabricName, protectionContainerName, + .testFailoverCleanup(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, cleanupInput, context); if (inner != null) { return new ReplicationProtectedItemImpl(inner, this.manager()); @@ -407,10 +407,10 @@ public ReplicationProtectedItem testFailoverCleanup(String resourceName, String } } - public ReplicationProtectedItem unplannedFailover(String resourceName, String resourceGroupName, String fabricName, + public ReplicationProtectedItem unplannedFailover(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UnplannedFailoverInput failoverInput) { ReplicationProtectedItemInner inner = this.serviceClient() - .unplannedFailover(resourceName, resourceGroupName, fabricName, protectionContainerName, + .unplannedFailover(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput); if (inner != null) { return new ReplicationProtectedItemImpl(inner, this.manager()); @@ -419,11 +419,11 @@ public ReplicationProtectedItem unplannedFailover(String resourceName, String re } } - public ReplicationProtectedItem unplannedFailover(String resourceName, String resourceGroupName, String fabricName, + public ReplicationProtectedItem unplannedFailover(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UnplannedFailoverInput failoverInput, Context context) { ReplicationProtectedItemInner inner = this.serviceClient() - .unplannedFailover(resourceName, resourceGroupName, fabricName, protectionContainerName, + .unplannedFailover(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, context); if (inner != null) { return new ReplicationProtectedItemImpl(inner, this.manager()); @@ -432,11 +432,11 @@ public ReplicationProtectedItem unplannedFailover(String resourceName, String re } } - public ReplicationProtectedItem updateAppliance(String resourceName, String resourceGroupName, String fabricName, + public ReplicationProtectedItem updateAppliance(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateApplianceForReplicationProtectedItemInput applianceUpdateInput) { ReplicationProtectedItemInner inner = this.serviceClient() - .updateAppliance(resourceName, resourceGroupName, fabricName, protectionContainerName, + .updateAppliance(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, applianceUpdateInput); if (inner != null) { return new ReplicationProtectedItemImpl(inner, this.manager()); @@ -445,11 +445,11 @@ public ReplicationProtectedItem updateAppliance(String resourceName, String reso } } - public ReplicationProtectedItem updateAppliance(String resourceName, String resourceGroupName, String fabricName, + public ReplicationProtectedItem updateAppliance(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateApplianceForReplicationProtectedItemInput applianceUpdateInput, Context context) { ReplicationProtectedItemInner inner = this.serviceClient() - .updateAppliance(resourceName, resourceGroupName, fabricName, protectionContainerName, + .updateAppliance(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, applianceUpdateInput, context); if (inner != null) { return new ReplicationProtectedItemImpl(inner, this.manager()); @@ -458,11 +458,11 @@ public ReplicationProtectedItem updateAppliance(String resourceName, String reso } } - public ReplicationProtectedItem updateMobilityService(String resourceName, String resourceGroupName, + public ReplicationProtectedItem updateMobilityService(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateMobilityServiceRequest updateMobilityServiceRequest) { ReplicationProtectedItemInner inner = this.serviceClient() - .updateMobilityService(resourceName, resourceGroupName, fabricName, protectionContainerName, + .updateMobilityService(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, updateMobilityServiceRequest); if (inner != null) { return new ReplicationProtectedItemImpl(inner, this.manager()); @@ -471,11 +471,11 @@ public ReplicationProtectedItem updateMobilityService(String resourceName, Strin } } - public ReplicationProtectedItem updateMobilityService(String resourceName, String resourceGroupName, + public ReplicationProtectedItem updateMobilityService(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateMobilityServiceRequest updateMobilityServiceRequest, Context context) { ReplicationProtectedItemInner inner = this.serviceClient() - .updateMobilityService(resourceName, resourceGroupName, fabricName, protectionContainerName, + .updateMobilityService(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, updateMobilityServiceRequest, context); if (inner != null) { return new ReplicationProtectedItemImpl(inner, this.manager()); @@ -484,29 +484,29 @@ public ReplicationProtectedItem updateMobilityService(String resourceName, Strin } } - public PagedIterable list(String resourceName, String resourceGroupName) { - PagedIterable inner = this.serviceClient().list(resourceName, resourceGroupName); + public PagedIterable list(String resourceGroupName, String resourceName) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, resourceName); return ResourceManagerUtils.mapPage(inner, inner1 -> new ReplicationProtectedItemImpl(inner1, this.manager())); } - public PagedIterable list(String resourceName, String resourceGroupName, String skipToken, + public PagedIterable list(String resourceGroupName, String resourceName, String skipToken, String filter, Context context) { PagedIterable inner - = this.serviceClient().list(resourceName, resourceGroupName, skipToken, filter, context); + = this.serviceClient().list(resourceGroupName, resourceName, skipToken, filter, context); return ResourceManagerUtils.mapPage(inner, inner1 -> new ReplicationProtectedItemImpl(inner1, this.manager())); } public ReplicationProtectedItem getById(String id) { - String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); - if (resourceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); - } String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); + if (resourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); + } String fabricName = ResourceManagerUtils.getValueFromIdByName(id, "replicationFabrics"); if (fabricName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( @@ -524,22 +524,22 @@ public ReplicationProtectedItem getById(String id) { .format("The resource ID '%s' is not valid. Missing path segment 'replicationProtectedItems'.", id))); } return this - .getWithResponse(resourceName, resourceGroupName, fabricName, protectionContainerName, + .getWithResponse(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, Context.NONE) .getValue(); } public Response getByIdWithResponse(String id, Context context) { - String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); - if (resourceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); - } String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); + if (resourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); + } String fabricName = ResourceManagerUtils.getValueFromIdByName(id, "replicationFabrics"); if (fabricName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( @@ -556,7 +556,7 @@ public Response getByIdWithResponse(String id, Context throw LOGGER.logExceptionAsError(new IllegalArgumentException(String .format("The resource ID '%s' is not valid. Missing path segment 'replicationProtectedItems'.", id))); } - return this.getWithResponse(resourceName, resourceGroupName, fabricName, protectionContainerName, + return this.getWithResponse(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, context); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectionClusterImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectionClusterImpl.java new file mode 100644 index 000000000000..3a72598ffb2a --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectionClusterImpl.java @@ -0,0 +1,192 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.implementation; + +import com.azure.core.util.Context; +import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.ReplicationProtectionClusterInner; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ApplyClusterRecoveryPointInput; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ClusterTestFailoverCleanupInput; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ClusterTestFailoverInput; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ClusterUnplannedFailoverInput; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationProtectionCluster; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationProtectionClusterProperties; + +public final class ReplicationProtectionClusterImpl + implements ReplicationProtectionCluster, ReplicationProtectionCluster.Definition { + private ReplicationProtectionClusterInner innerObject; + + private final com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager serviceManager; + + ReplicationProtectionClusterImpl(ReplicationProtectionClusterInner innerObject, + com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public ReplicationProtectionClusterProperties properties() { + return this.innerModel().properties(); + } + + public ReplicationProtectionClusterInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager() { + return this.serviceManager; + } + + private String resourceGroupName; + + private String resourceName; + + private String fabricName; + + private String protectionContainerName; + + private String replicationProtectionClusterName; + + public ReplicationProtectionClusterImpl withExistingReplicationProtectionContainer(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName) { + this.resourceGroupName = resourceGroupName; + this.resourceName = resourceName; + this.fabricName = fabricName; + this.protectionContainerName = protectionContainerName; + return this; + } + + public ReplicationProtectionCluster create() { + this.innerObject = serviceManager.serviceClient() + .getReplicationProtectionClusters() + .create(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, this.innerModel(), Context.NONE); + return this; + } + + public ReplicationProtectionCluster create(Context context) { + this.innerObject = serviceManager.serviceClient() + .getReplicationProtectionClusters() + .create(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, this.innerModel(), context); + return this; + } + + ReplicationProtectionClusterImpl(String name, + com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager serviceManager) { + this.innerObject = new ReplicationProtectionClusterInner(); + this.serviceManager = serviceManager; + this.replicationProtectionClusterName = name; + } + + public ReplicationProtectionCluster refresh() { + this.innerObject = serviceManager.serviceClient() + .getReplicationProtectionClusters() + .getWithResponse(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, Context.NONE) + .getValue(); + return this; + } + + public ReplicationProtectionCluster refresh(Context context) { + this.innerObject = serviceManager.serviceClient() + .getReplicationProtectionClusters() + .getWithResponse(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, context) + .getValue(); + return this; + } + + public ReplicationProtectionCluster + applyRecoveryPoint(ApplyClusterRecoveryPointInput applyClusterRecoveryPointInput) { + return serviceManager.replicationProtectionClusters() + .applyRecoveryPoint(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, applyClusterRecoveryPointInput); + } + + public ReplicationProtectionCluster + applyRecoveryPoint(ApplyClusterRecoveryPointInput applyClusterRecoveryPointInput, Context context) { + return serviceManager.replicationProtectionClusters() + .applyRecoveryPoint(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, applyClusterRecoveryPointInput, context); + } + + public ReplicationProtectionCluster failoverCommit() { + return serviceManager.replicationProtectionClusters() + .failoverCommit(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName); + } + + public ReplicationProtectionCluster failoverCommit(Context context) { + return serviceManager.replicationProtectionClusters() + .failoverCommit(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, context); + } + + public ReplicationProtectionCluster repairReplication() { + return serviceManager.replicationProtectionClusters() + .repairReplication(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName); + } + + public ReplicationProtectionCluster repairReplication(Context context) { + return serviceManager.replicationProtectionClusters() + .repairReplication(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, context); + } + + public ReplicationProtectionCluster testFailover(ClusterTestFailoverInput failoverInput) { + return serviceManager.replicationProtectionClusters() + .testFailover(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, failoverInput); + } + + public ReplicationProtectionCluster testFailover(ClusterTestFailoverInput failoverInput, Context context) { + return serviceManager.replicationProtectionClusters() + .testFailover(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, failoverInput, context); + } + + public ReplicationProtectionCluster testFailoverCleanup(ClusterTestFailoverCleanupInput cleanupInput) { + return serviceManager.replicationProtectionClusters() + .testFailoverCleanup(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, cleanupInput); + } + + public ReplicationProtectionCluster testFailoverCleanup(ClusterTestFailoverCleanupInput cleanupInput, + Context context) { + return serviceManager.replicationProtectionClusters() + .testFailoverCleanup(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, cleanupInput, context); + } + + public ReplicationProtectionCluster unplannedFailover(ClusterUnplannedFailoverInput failoverInput) { + return serviceManager.replicationProtectionClusters() + .unplannedFailover(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, failoverInput); + } + + public ReplicationProtectionCluster unplannedFailover(ClusterUnplannedFailoverInput failoverInput, + Context context) { + return serviceManager.replicationProtectionClusters() + .unplannedFailover(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, failoverInput, context); + } + + public ReplicationProtectionClusterImpl withProperties(ReplicationProtectionClusterProperties properties) { + this.innerModel().withProperties(properties); + return this; + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectionClustersClientImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectionClustersClientImpl.java new file mode 100644 index 000000000000..f13cc1494ecc --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectionClustersClientImpl.java @@ -0,0 +1,3672 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Post; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.ReplicationProtectionClustersClient; +import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.ReplicationProtectionClusterInner; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ApplyClusterRecoveryPointInput; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ClusterTestFailoverCleanupInput; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ClusterTestFailoverInput; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ClusterUnplannedFailoverInput; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationProtectionClusterCollection; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in ReplicationProtectionClustersClient. + */ +public final class ReplicationProtectionClustersClientImpl implements ReplicationProtectionClustersClient { + /** + * The proxy service used to perform REST calls. + */ + private final ReplicationProtectionClustersService service; + + /** + * The service client containing this operation class. + */ + private final SiteRecoveryManagementClientImpl client; + + /** + * Initializes an instance of ReplicationProtectionClustersClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + ReplicationProtectionClustersClientImpl(SiteRecoveryManagementClientImpl client) { + this.service = RestProxy.create(ReplicationProtectionClustersService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for SiteRecoveryManagementClientReplicationProtectionClusters to be used + * by the proxy service to perform REST calls. + */ + @Host("{$host}") + @ServiceInterface(name = "SiteRecoveryManageme") + public interface ReplicationProtectionClustersService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionClusters") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByReplicationProtectionContainers( + @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @PathParam("protectionContainerName") String protectionContainerName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionClusters/{replicationProtectionClusterName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, + @PathParam("protectionContainerName") String protectionContainerName, + @PathParam("replicationProtectionClusterName") String replicationProtectionClusterName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionClusters/{replicationProtectionClusterName}") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> create(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, + @PathParam("protectionContainerName") String protectionContainerName, + @PathParam("replicationProtectionClusterName") String replicationProtectionClusterName, + @BodyParam("application/json") ReplicationProtectionClusterInner replicationProtectionCluster, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionClusters/{replicationProtectionClusterName}") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> purge(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, + @PathParam("protectionContainerName") String protectionContainerName, + @PathParam("replicationProtectionClusterName") String replicationProtectionClusterName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionClusters/{replicationProtectionClusterName}/applyRecoveryPoint") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> applyRecoveryPoint(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, + @PathParam("protectionContainerName") String protectionContainerName, + @PathParam("replicationProtectionClusterName") String replicationProtectionClusterName, + @BodyParam("application/json") ApplyClusterRecoveryPointInput applyClusterRecoveryPointInput, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionClusters/{replicationProtectionClusterName}/failoverCommit") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> failoverCommit(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, + @PathParam("protectionContainerName") String protectionContainerName, + @PathParam("replicationProtectionClusterName") String replicationProtectionClusterName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionClusters/{replicationProtectionClusterName}/operationResults/{jobId}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> getOperationResults(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, + @PathParam("protectionContainerName") String protectionContainerName, + @PathParam("replicationProtectionClusterName") String replicationProtectionClusterName, + @PathParam("jobId") String jobId, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionClusters/{replicationProtectionClusterName}/repairReplication") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> repairReplication(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, + @PathParam("protectionContainerName") String protectionContainerName, + @PathParam("replicationProtectionClusterName") String replicationProtectionClusterName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionClusters/{replicationProtectionClusterName}/testFailover") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> testFailover(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, + @PathParam("protectionContainerName") String protectionContainerName, + @PathParam("replicationProtectionClusterName") String replicationProtectionClusterName, + @BodyParam("application/json") ClusterTestFailoverInput failoverInput, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionClusters/{replicationProtectionClusterName}/testFailoverCleanup") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> testFailoverCleanup(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, + @PathParam("protectionContainerName") String protectionContainerName, + @PathParam("replicationProtectionClusterName") String replicationProtectionClusterName, + @BodyParam("application/json") ClusterTestFailoverCleanupInput cleanupInput, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionClusters/{replicationProtectionClusterName}/unplannedFailover") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> unplannedFailover(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, + @PathParam("protectionContainerName") String protectionContainerName, + @PathParam("replicationProtectionClusterName") String replicationProtectionClusterName, + @BodyParam("application/json") ClusterUnplannedFailoverInput failoverInput, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationProtectionClusters") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @QueryParam("skipToken") String skipToken, @QueryParam("$filter") String filter, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByReplicationProtectionContainersNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * Gets the list of Replication protection clusters in fabric, container. + * + * Gets the list of ASR replication protected clusters in the protection container. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of ASR replication protected clusters in the protection container along with + * {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByReplicationProtectionContainersSinglePageAsync( + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (fabricName == null) { + return Mono.error(new IllegalArgumentException("Parameter fabricName is required and cannot be null.")); + } + if (protectionContainerName == null) { + return Mono.error( + new IllegalArgumentException("Parameter protectionContainerName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByReplicationProtectionContainers(this.client.getEndpoint(), + this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), + fabricName, protectionContainerName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets the list of Replication protection clusters in fabric, container. + * + * Gets the list of ASR replication protected clusters in the protection container. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of ASR replication protected clusters in the protection container along with + * {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByReplicationProtectionContainersSinglePageAsync( + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (fabricName == null) { + return Mono.error(new IllegalArgumentException("Parameter fabricName is required and cannot be null.")); + } + if (protectionContainerName == null) { + return Mono.error( + new IllegalArgumentException("Parameter protectionContainerName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listByReplicationProtectionContainers(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Gets the list of Replication protection clusters in fabric, container. + * + * Gets the list of ASR replication protected clusters in the protection container. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of ASR replication protected clusters in the protection container as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByReplicationProtectionContainersAsync( + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName) { + return new PagedFlux<>( + () -> listByReplicationProtectionContainersSinglePageAsync(resourceGroupName, resourceName, fabricName, + protectionContainerName), + nextLink -> listByReplicationProtectionContainersNextSinglePageAsync(nextLink)); + } + + /** + * Gets the list of Replication protection clusters in fabric, container. + * + * Gets the list of ASR replication protected clusters in the protection container. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of ASR replication protected clusters in the protection container as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByReplicationProtectionContainersAsync( + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, + Context context) { + return new PagedFlux<>( + () -> listByReplicationProtectionContainersSinglePageAsync(resourceGroupName, resourceName, fabricName, + protectionContainerName, context), + nextLink -> listByReplicationProtectionContainersNextSinglePageAsync(nextLink, context)); + } + + /** + * Gets the list of Replication protection clusters in fabric, container. + * + * Gets the list of ASR replication protected clusters in the protection container. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of ASR replication protected clusters in the protection container as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByReplicationProtectionContainers( + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName) { + return new PagedIterable<>(listByReplicationProtectionContainersAsync(resourceGroupName, resourceName, + fabricName, protectionContainerName)); + } + + /** + * Gets the list of Replication protection clusters in fabric, container. + * + * Gets the list of ASR replication protected clusters in the protection container. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of ASR replication protected clusters in the protection container as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByReplicationProtectionContainers( + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, + Context context) { + return new PagedIterable<>(listByReplicationProtectionContainersAsync(resourceGroupName, resourceName, + fabricName, protectionContainerName, context)); + } + + /** + * Gets the details of a Replication protection cluster. + * + * Gets the details of an ASR replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the details of an ASR replication protection cluster along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, + String replicationProtectionClusterName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (fabricName == null) { + return Mono.error(new IllegalArgumentException("Parameter fabricName is required and cannot be null.")); + } + if (protectionContainerName == null) { + return Mono.error( + new IllegalArgumentException("Parameter protectionContainerName is required and cannot be null.")); + } + if (replicationProtectionClusterName == null) { + return Mono.error(new IllegalArgumentException( + "Parameter replicationProtectionClusterName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + replicationProtectionClusterName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets the details of a Replication protection cluster. + * + * Gets the details of an ASR replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the details of an ASR replication protection cluster along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicationProtectionClusterName, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (fabricName == null) { + return Mono.error(new IllegalArgumentException("Parameter fabricName is required and cannot be null.")); + } + if (protectionContainerName == null) { + return Mono.error( + new IllegalArgumentException("Parameter protectionContainerName is required and cannot be null.")); + } + if (replicationProtectionClusterName == null) { + return Mono.error(new IllegalArgumentException( + "Parameter replicationProtectionClusterName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, + this.client.getSubscriptionId(), fabricName, protectionContainerName, replicationProtectionClusterName, + accept, context); + } + + /** + * Gets the details of a Replication protection cluster. + * + * Gets the details of an ASR replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the details of an ASR replication protection cluster on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName) { + return getWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName).flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets the details of a Replication protection cluster. + * + * Gets the details of an ASR replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the details of an ASR replication protection cluster along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName, Context context) { + return getWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, context).block(); + } + + /** + * Gets the details of a Replication protection cluster. + * + * Gets the details of an ASR replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the details of an ASR replication protection cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ReplicationProtectionClusterInner get(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName) { + return getWithResponse(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, Context.NONE).getValue(); + } + + /** + * Create Replication protection Cluster. + * + * The operation to create an ASR replication protection cluster item. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param replicationProtectionCluster Create replication protection cluster Input. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createWithResponseAsync(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName, + ReplicationProtectionClusterInner replicationProtectionCluster) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (fabricName == null) { + return Mono.error(new IllegalArgumentException("Parameter fabricName is required and cannot be null.")); + } + if (protectionContainerName == null) { + return Mono.error( + new IllegalArgumentException("Parameter protectionContainerName is required and cannot be null.")); + } + if (replicationProtectionClusterName == null) { + return Mono.error(new IllegalArgumentException( + "Parameter replicationProtectionClusterName is required and cannot be null.")); + } + if (replicationProtectionCluster == null) { + return Mono.error( + new IllegalArgumentException("Parameter replicationProtectionCluster is required and cannot be null.")); + } else { + replicationProtectionCluster.validate(); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + replicationProtectionClusterName, replicationProtectionCluster, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Create Replication protection Cluster. + * + * The operation to create an ASR replication protection cluster item. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param replicationProtectionCluster Create replication protection cluster Input. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createWithResponseAsync(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName, + ReplicationProtectionClusterInner replicationProtectionCluster, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (fabricName == null) { + return Mono.error(new IllegalArgumentException("Parameter fabricName is required and cannot be null.")); + } + if (protectionContainerName == null) { + return Mono.error( + new IllegalArgumentException("Parameter protectionContainerName is required and cannot be null.")); + } + if (replicationProtectionClusterName == null) { + return Mono.error(new IllegalArgumentException( + "Parameter replicationProtectionClusterName is required and cannot be null.")); + } + if (replicationProtectionCluster == null) { + return Mono.error( + new IllegalArgumentException("Parameter replicationProtectionCluster is required and cannot be null.")); + } else { + replicationProtectionCluster.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.create(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, + this.client.getSubscriptionId(), fabricName, protectionContainerName, replicationProtectionClusterName, + replicationProtectionCluster, accept, context); + } + + /** + * Create Replication protection Cluster. + * + * The operation to create an ASR replication protection cluster item. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param replicationProtectionCluster Create replication protection cluster Input. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, ReplicationProtectionClusterInner> + beginCreateAsync(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, + ReplicationProtectionClusterInner replicationProtectionCluster) { + Mono>> mono = createWithResponseAsync(resourceGroupName, resourceName, fabricName, + protectionContainerName, replicationProtectionClusterName, replicationProtectionCluster); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), ReplicationProtectionClusterInner.class, + ReplicationProtectionClusterInner.class, this.client.getContext()); + } + + /** + * Create Replication protection Cluster. + * + * The operation to create an ASR replication protection cluster item. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param replicationProtectionCluster Create replication protection cluster Input. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, ReplicationProtectionClusterInner> + beginCreateAsync(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, + ReplicationProtectionClusterInner replicationProtectionCluster, Context context) { + context = this.client.mergeContext(context); + Mono>> mono = createWithResponseAsync(resourceGroupName, resourceName, fabricName, + protectionContainerName, replicationProtectionClusterName, replicationProtectionCluster, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), ReplicationProtectionClusterInner.class, + ReplicationProtectionClusterInner.class, context); + } + + /** + * Create Replication protection Cluster. + * + * The operation to create an ASR replication protection cluster item. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param replicationProtectionCluster Create replication protection cluster Input. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ReplicationProtectionClusterInner> beginCreate( + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, + String replicationProtectionClusterName, ReplicationProtectionClusterInner replicationProtectionCluster) { + return this + .beginCreateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, replicationProtectionCluster) + .getSyncPoller(); + } + + /** + * Create Replication protection Cluster. + * + * The operation to create an ASR replication protection cluster item. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param replicationProtectionCluster Create replication protection cluster Input. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ReplicationProtectionClusterInner> beginCreate( + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, + String replicationProtectionClusterName, ReplicationProtectionClusterInner replicationProtectionCluster, + Context context) { + return this + .beginCreateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, replicationProtectionCluster, context) + .getSyncPoller(); + } + + /** + * Create Replication protection Cluster. + * + * The operation to create an ASR replication protection cluster item. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param replicationProtectionCluster Create replication protection cluster Input. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createAsync(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName, + ReplicationProtectionClusterInner replicationProtectionCluster) { + return beginCreateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, replicationProtectionCluster).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Create Replication protection Cluster. + * + * The operation to create an ASR replication protection cluster item. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param replicationProtectionCluster Create replication protection cluster Input. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createAsync(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName, + ReplicationProtectionClusterInner replicationProtectionCluster, Context context) { + return beginCreateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, replicationProtectionCluster, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Create Replication protection Cluster. + * + * The operation to create an ASR replication protection cluster item. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param replicationProtectionCluster Create replication protection cluster Input. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ReplicationProtectionClusterInner create(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, + ReplicationProtectionClusterInner replicationProtectionCluster) { + return createAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, replicationProtectionCluster).block(); + } + + /** + * Create Replication protection Cluster. + * + * The operation to create an ASR replication protection cluster item. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param replicationProtectionCluster Create replication protection cluster Input. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ReplicationProtectionClusterInner create(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, + ReplicationProtectionClusterInner replicationProtectionCluster, Context context) { + return createAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, replicationProtectionCluster, context).block(); + } + + /** + * Purge the replication protection cluster. + * + * The operation to purge the replication protection cluster. This operation will force delete the replication + * protection cluster. Use the remove operation on replication protection cluster to perform a clean disable + * replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> purgeWithResponseAsync(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (fabricName == null) { + return Mono.error(new IllegalArgumentException("Parameter fabricName is required and cannot be null.")); + } + if (protectionContainerName == null) { + return Mono.error( + new IllegalArgumentException("Parameter protectionContainerName is required and cannot be null.")); + } + if (replicationProtectionClusterName == null) { + return Mono.error(new IllegalArgumentException( + "Parameter replicationProtectionClusterName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.purge(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + replicationProtectionClusterName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Purge the replication protection cluster. + * + * The operation to purge the replication protection cluster. This operation will force delete the replication + * protection cluster. Use the remove operation on replication protection cluster to perform a clean disable + * replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> purgeWithResponseAsync(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (fabricName == null) { + return Mono.error(new IllegalArgumentException("Parameter fabricName is required and cannot be null.")); + } + if (protectionContainerName == null) { + return Mono.error( + new IllegalArgumentException("Parameter protectionContainerName is required and cannot be null.")); + } + if (replicationProtectionClusterName == null) { + return Mono.error(new IllegalArgumentException( + "Parameter replicationProtectionClusterName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.purge(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, + this.client.getSubscriptionId(), fabricName, protectionContainerName, replicationProtectionClusterName, + accept, context); + } + + /** + * Purge the replication protection cluster. + * + * The operation to purge the replication protection cluster. This operation will force delete the replication + * protection cluster. Use the remove operation on replication protection cluster to perform a clean disable + * replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginPurgeAsync(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName) { + Mono>> mono = purgeWithResponseAsync(resourceGroupName, resourceName, fabricName, + protectionContainerName, replicationProtectionClusterName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Purge the replication protection cluster. + * + * The operation to purge the replication protection cluster. This operation will force delete the replication + * protection cluster. Use the remove operation on replication protection cluster to perform a clean disable + * replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginPurgeAsync(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono = purgeWithResponseAsync(resourceGroupName, resourceName, fabricName, + protectionContainerName, replicationProtectionClusterName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Purge the replication protection cluster. + * + * The operation to purge the replication protection cluster. This operation will force delete the replication + * protection cluster. Use the remove operation on replication protection cluster to perform a clean disable + * replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginPurge(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName) { + return this + .beginPurgeAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName) + .getSyncPoller(); + } + + /** + * Purge the replication protection cluster. + * + * The operation to purge the replication protection cluster. This operation will force delete the replication + * protection cluster. Use the remove operation on replication protection cluster to perform a clean disable + * replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginPurge(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName, Context context) { + return this + .beginPurgeAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, context) + .getSyncPoller(); + } + + /** + * Purge the replication protection cluster. + * + * The operation to purge the replication protection cluster. This operation will force delete the replication + * protection cluster. Use the remove operation on replication protection cluster to perform a clean disable + * replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono purgeAsync(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName) { + return beginPurgeAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Purge the replication protection cluster. + * + * The operation to purge the replication protection cluster. This operation will force delete the replication + * protection cluster. Use the remove operation on replication protection cluster to perform a clean disable + * replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono purgeAsync(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, Context context) { + return beginPurgeAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, context).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Purge the replication protection cluster. + * + * The operation to purge the replication protection cluster. This operation will force delete the replication + * protection cluster. Use the remove operation on replication protection cluster to perform a clean disable + * replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void purge(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, + String replicationProtectionClusterName) { + purgeAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName).block(); + } + + /** + * Purge the replication protection cluster. + * + * The operation to purge the replication protection cluster. This operation will force delete the replication + * protection cluster. Use the remove operation on replication protection cluster to perform a clean disable + * replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void purge(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, + String replicationProtectionClusterName, Context context) { + purgeAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, context).block(); + } + + /** + * Execute the change recovery point operation for cluster. + * + * Operation to apply a new cluster recovery point on the Protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param applyClusterRecoveryPointInput Apply recovery point input. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> applyRecoveryPointWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicationProtectionClusterName, + ApplyClusterRecoveryPointInput applyClusterRecoveryPointInput) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (fabricName == null) { + return Mono.error(new IllegalArgumentException("Parameter fabricName is required and cannot be null.")); + } + if (protectionContainerName == null) { + return Mono.error( + new IllegalArgumentException("Parameter protectionContainerName is required and cannot be null.")); + } + if (replicationProtectionClusterName == null) { + return Mono.error(new IllegalArgumentException( + "Parameter replicationProtectionClusterName is required and cannot be null.")); + } + if (applyClusterRecoveryPointInput == null) { + return Mono.error(new IllegalArgumentException( + "Parameter applyClusterRecoveryPointInput is required and cannot be null.")); + } else { + applyClusterRecoveryPointInput.validate(); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.applyRecoveryPoint(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + replicationProtectionClusterName, applyClusterRecoveryPointInput, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Execute the change recovery point operation for cluster. + * + * Operation to apply a new cluster recovery point on the Protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param applyClusterRecoveryPointInput Apply recovery point input. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> applyRecoveryPointWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicationProtectionClusterName, + ApplyClusterRecoveryPointInput applyClusterRecoveryPointInput, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (fabricName == null) { + return Mono.error(new IllegalArgumentException("Parameter fabricName is required and cannot be null.")); + } + if (protectionContainerName == null) { + return Mono.error( + new IllegalArgumentException("Parameter protectionContainerName is required and cannot be null.")); + } + if (replicationProtectionClusterName == null) { + return Mono.error(new IllegalArgumentException( + "Parameter replicationProtectionClusterName is required and cannot be null.")); + } + if (applyClusterRecoveryPointInput == null) { + return Mono.error(new IllegalArgumentException( + "Parameter applyClusterRecoveryPointInput is required and cannot be null.")); + } else { + applyClusterRecoveryPointInput.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.applyRecoveryPoint(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + replicationProtectionClusterName, applyClusterRecoveryPointInput, accept, context); + } + + /** + * Execute the change recovery point operation for cluster. + * + * Operation to apply a new cluster recovery point on the Protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param applyClusterRecoveryPointInput Apply recovery point input. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, ReplicationProtectionClusterInner> + beginApplyRecoveryPointAsync(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, + ApplyClusterRecoveryPointInput applyClusterRecoveryPointInput) { + Mono>> mono = applyRecoveryPointWithResponseAsync(resourceGroupName, resourceName, + fabricName, protectionContainerName, replicationProtectionClusterName, applyClusterRecoveryPointInput); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), ReplicationProtectionClusterInner.class, + ReplicationProtectionClusterInner.class, this.client.getContext()); + } + + /** + * Execute the change recovery point operation for cluster. + * + * Operation to apply a new cluster recovery point on the Protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param applyClusterRecoveryPointInput Apply recovery point input. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, ReplicationProtectionClusterInner> + beginApplyRecoveryPointAsync(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, + ApplyClusterRecoveryPointInput applyClusterRecoveryPointInput, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = applyRecoveryPointWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, applyClusterRecoveryPointInput, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), ReplicationProtectionClusterInner.class, + ReplicationProtectionClusterInner.class, context); + } + + /** + * Execute the change recovery point operation for cluster. + * + * Operation to apply a new cluster recovery point on the Protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param applyClusterRecoveryPointInput Apply recovery point input. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ReplicationProtectionClusterInner> + beginApplyRecoveryPoint(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, + ApplyClusterRecoveryPointInput applyClusterRecoveryPointInput) { + return this + .beginApplyRecoveryPointAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, applyClusterRecoveryPointInput) + .getSyncPoller(); + } + + /** + * Execute the change recovery point operation for cluster. + * + * Operation to apply a new cluster recovery point on the Protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param applyClusterRecoveryPointInput Apply recovery point input. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ReplicationProtectionClusterInner> + beginApplyRecoveryPoint(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, + ApplyClusterRecoveryPointInput applyClusterRecoveryPointInput, Context context) { + return this + .beginApplyRecoveryPointAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, applyClusterRecoveryPointInput, context) + .getSyncPoller(); + } + + /** + * Execute the change recovery point operation for cluster. + * + * Operation to apply a new cluster recovery point on the Protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param applyClusterRecoveryPointInput Apply recovery point input. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono applyRecoveryPointAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicationProtectionClusterName, + ApplyClusterRecoveryPointInput applyClusterRecoveryPointInput) { + return beginApplyRecoveryPointAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, applyClusterRecoveryPointInput).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Execute the change recovery point operation for cluster. + * + * Operation to apply a new cluster recovery point on the Protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param applyClusterRecoveryPointInput Apply recovery point input. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono applyRecoveryPointAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicationProtectionClusterName, + ApplyClusterRecoveryPointInput applyClusterRecoveryPointInput, Context context) { + return beginApplyRecoveryPointAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, applyClusterRecoveryPointInput, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Execute the change recovery point operation for cluster. + * + * Operation to apply a new cluster recovery point on the Protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param applyClusterRecoveryPointInput Apply recovery point input. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ReplicationProtectionClusterInner applyRecoveryPoint(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName, + ApplyClusterRecoveryPointInput applyClusterRecoveryPointInput) { + return applyRecoveryPointAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, applyClusterRecoveryPointInput).block(); + } + + /** + * Execute the change recovery point operation for cluster. + * + * Operation to apply a new cluster recovery point on the Protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param applyClusterRecoveryPointInput Apply recovery point input. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ReplicationProtectionClusterInner applyRecoveryPoint(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName, + ApplyClusterRecoveryPointInput applyClusterRecoveryPointInput, Context context) { + return applyRecoveryPointAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, applyClusterRecoveryPointInput, context).block(); + } + + /** + * Execute commit failover for cluster. + * + * Operation to initiate commit failover of the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> failoverCommitWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, + String replicationProtectionClusterName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (fabricName == null) { + return Mono.error(new IllegalArgumentException("Parameter fabricName is required and cannot be null.")); + } + if (protectionContainerName == null) { + return Mono.error( + new IllegalArgumentException("Parameter protectionContainerName is required and cannot be null.")); + } + if (replicationProtectionClusterName == null) { + return Mono.error(new IllegalArgumentException( + "Parameter replicationProtectionClusterName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.failoverCommit(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + replicationProtectionClusterName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Execute commit failover for cluster. + * + * Operation to initiate commit failover of the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> failoverCommitWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicationProtectionClusterName, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (fabricName == null) { + return Mono.error(new IllegalArgumentException("Parameter fabricName is required and cannot be null.")); + } + if (protectionContainerName == null) { + return Mono.error( + new IllegalArgumentException("Parameter protectionContainerName is required and cannot be null.")); + } + if (replicationProtectionClusterName == null) { + return Mono.error(new IllegalArgumentException( + "Parameter replicationProtectionClusterName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.failoverCommit(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + replicationProtectionClusterName, accept, context); + } + + /** + * Execute commit failover for cluster. + * + * Operation to initiate commit failover of the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, ReplicationProtectionClusterInner> + beginFailoverCommitAsync(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName) { + Mono>> mono = failoverCommitWithResponseAsync(resourceGroupName, resourceName, + fabricName, protectionContainerName, replicationProtectionClusterName); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), ReplicationProtectionClusterInner.class, + ReplicationProtectionClusterInner.class, this.client.getContext()); + } + + /** + * Execute commit failover for cluster. + * + * Operation to initiate commit failover of the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, ReplicationProtectionClusterInner> + beginFailoverCommitAsync(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono = failoverCommitWithResponseAsync(resourceGroupName, resourceName, + fabricName, protectionContainerName, replicationProtectionClusterName, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), ReplicationProtectionClusterInner.class, + ReplicationProtectionClusterInner.class, context); + } + + /** + * Execute commit failover for cluster. + * + * Operation to initiate commit failover of the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ReplicationProtectionClusterInner> + beginFailoverCommit(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName) { + return this + .beginFailoverCommitAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName) + .getSyncPoller(); + } + + /** + * Execute commit failover for cluster. + * + * Operation to initiate commit failover of the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ReplicationProtectionClusterInner> + beginFailoverCommit(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, Context context) { + return this + .beginFailoverCommitAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, context) + .getSyncPoller(); + } + + /** + * Execute commit failover for cluster. + * + * Operation to initiate commit failover of the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono failoverCommitAsync(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName) { + return beginFailoverCommitAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Execute commit failover for cluster. + * + * Operation to initiate commit failover of the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono failoverCommitAsync(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName, Context context) { + return beginFailoverCommitAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, context).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Execute commit failover for cluster. + * + * Operation to initiate commit failover of the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ReplicationProtectionClusterInner failoverCommit(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName) { + return failoverCommitAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName).block(); + } + + /** + * Execute commit failover for cluster. + * + * Operation to initiate commit failover of the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ReplicationProtectionClusterInner failoverCommit(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName, Context context) { + return failoverCommitAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, context).block(); + } + + /** + * Tracks the Replication protection cluster async operation. + * + * Track the results of an asynchronous operation on the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param jobId job id to track. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getOperationResultsWithResponseAsync( + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, + String replicationProtectionClusterName, String jobId) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (fabricName == null) { + return Mono.error(new IllegalArgumentException("Parameter fabricName is required and cannot be null.")); + } + if (protectionContainerName == null) { + return Mono.error( + new IllegalArgumentException("Parameter protectionContainerName is required and cannot be null.")); + } + if (replicationProtectionClusterName == null) { + return Mono.error(new IllegalArgumentException( + "Parameter replicationProtectionClusterName is required and cannot be null.")); + } + if (jobId == null) { + return Mono.error(new IllegalArgumentException("Parameter jobId is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.getOperationResults(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + replicationProtectionClusterName, jobId, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Tracks the Replication protection cluster async operation. + * + * Track the results of an asynchronous operation on the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param jobId job id to track. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getOperationResultsWithResponseAsync( + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, + String replicationProtectionClusterName, String jobId, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (fabricName == null) { + return Mono.error(new IllegalArgumentException("Parameter fabricName is required and cannot be null.")); + } + if (protectionContainerName == null) { + return Mono.error( + new IllegalArgumentException("Parameter protectionContainerName is required and cannot be null.")); + } + if (replicationProtectionClusterName == null) { + return Mono.error(new IllegalArgumentException( + "Parameter replicationProtectionClusterName is required and cannot be null.")); + } + if (jobId == null) { + return Mono.error(new IllegalArgumentException("Parameter jobId is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.getOperationResults(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + replicationProtectionClusterName, jobId, accept, context); + } + + /** + * Tracks the Replication protection cluster async operation. + * + * Track the results of an asynchronous operation on the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param jobId job id to track. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getOperationResultsAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicationProtectionClusterName, + String jobId) { + return getOperationResultsWithResponseAsync(resourceGroupName, resourceName, fabricName, + protectionContainerName, replicationProtectionClusterName, jobId) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Tracks the Replication protection cluster async operation. + * + * Track the results of an asynchronous operation on the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param jobId job id to track. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getOperationResultsWithResponse(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicationProtectionClusterName, + String jobId, Context context) { + return getOperationResultsWithResponseAsync(resourceGroupName, resourceName, fabricName, + protectionContainerName, replicationProtectionClusterName, jobId, context).block(); + } + + /** + * Tracks the Replication protection cluster async operation. + * + * Track the results of an asynchronous operation on the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param jobId job id to track. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ReplicationProtectionClusterInner getOperationResults(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName, String jobId) { + return getOperationResultsWithResponse(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, jobId, Context.NONE).getValue(); + } + + /** + * Resynchronize or repair replication of protection cluster. + * + * The operation to repair replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> repairReplicationWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, + String replicationProtectionClusterName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (fabricName == null) { + return Mono.error(new IllegalArgumentException("Parameter fabricName is required and cannot be null.")); + } + if (protectionContainerName == null) { + return Mono.error( + new IllegalArgumentException("Parameter protectionContainerName is required and cannot be null.")); + } + if (replicationProtectionClusterName == null) { + return Mono.error(new IllegalArgumentException( + "Parameter replicationProtectionClusterName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.repairReplication(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + replicationProtectionClusterName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Resynchronize or repair replication of protection cluster. + * + * The operation to repair replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> repairReplicationWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicationProtectionClusterName, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (fabricName == null) { + return Mono.error(new IllegalArgumentException("Parameter fabricName is required and cannot be null.")); + } + if (protectionContainerName == null) { + return Mono.error( + new IllegalArgumentException("Parameter protectionContainerName is required and cannot be null.")); + } + if (replicationProtectionClusterName == null) { + return Mono.error(new IllegalArgumentException( + "Parameter replicationProtectionClusterName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.repairReplication(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + replicationProtectionClusterName, accept, context); + } + + /** + * Resynchronize or repair replication of protection cluster. + * + * The operation to repair replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, ReplicationProtectionClusterInner> + beginRepairReplicationAsync(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName) { + Mono>> mono = repairReplicationWithResponseAsync(resourceGroupName, resourceName, + fabricName, protectionContainerName, replicationProtectionClusterName); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), ReplicationProtectionClusterInner.class, + ReplicationProtectionClusterInner.class, this.client.getContext()); + } + + /** + * Resynchronize or repair replication of protection cluster. + * + * The operation to repair replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, ReplicationProtectionClusterInner> + beginRepairReplicationAsync(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono = repairReplicationWithResponseAsync(resourceGroupName, resourceName, + fabricName, protectionContainerName, replicationProtectionClusterName, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), ReplicationProtectionClusterInner.class, + ReplicationProtectionClusterInner.class, context); + } + + /** + * Resynchronize or repair replication of protection cluster. + * + * The operation to repair replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ReplicationProtectionClusterInner> + beginRepairReplication(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName) { + return this + .beginRepairReplicationAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName) + .getSyncPoller(); + } + + /** + * Resynchronize or repair replication of protection cluster. + * + * The operation to repair replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ReplicationProtectionClusterInner> + beginRepairReplication(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, Context context) { + return this + .beginRepairReplicationAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, context) + .getSyncPoller(); + } + + /** + * Resynchronize or repair replication of protection cluster. + * + * The operation to repair replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono repairReplicationAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, + String replicationProtectionClusterName) { + return beginRepairReplicationAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Resynchronize or repair replication of protection cluster. + * + * The operation to repair replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono repairReplicationAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicationProtectionClusterName, + Context context) { + return beginRepairReplicationAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, context).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Resynchronize or repair replication of protection cluster. + * + * The operation to repair replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ReplicationProtectionClusterInner repairReplication(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName) { + return repairReplicationAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName).block(); + } + + /** + * Resynchronize or repair replication of protection cluster. + * + * The operation to repair replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ReplicationProtectionClusterInner repairReplication(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName, Context context) { + return repairReplicationAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, context).block(); + } + + /** + * Execute test failover for cluster. + * + * Operation to initiate a failover of the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param failoverInput Cluster test failover input body. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> testFailoverWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicationProtectionClusterName, + ClusterTestFailoverInput failoverInput) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (fabricName == null) { + return Mono.error(new IllegalArgumentException("Parameter fabricName is required and cannot be null.")); + } + if (protectionContainerName == null) { + return Mono.error( + new IllegalArgumentException("Parameter protectionContainerName is required and cannot be null.")); + } + if (replicationProtectionClusterName == null) { + return Mono.error(new IllegalArgumentException( + "Parameter replicationProtectionClusterName is required and cannot be null.")); + } + if (failoverInput == null) { + return Mono.error(new IllegalArgumentException("Parameter failoverInput is required and cannot be null.")); + } else { + failoverInput.validate(); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.testFailover(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + replicationProtectionClusterName, failoverInput, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Execute test failover for cluster. + * + * Operation to initiate a failover of the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param failoverInput Cluster test failover input body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> testFailoverWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicationProtectionClusterName, + ClusterTestFailoverInput failoverInput, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (fabricName == null) { + return Mono.error(new IllegalArgumentException("Parameter fabricName is required and cannot be null.")); + } + if (protectionContainerName == null) { + return Mono.error( + new IllegalArgumentException("Parameter protectionContainerName is required and cannot be null.")); + } + if (replicationProtectionClusterName == null) { + return Mono.error(new IllegalArgumentException( + "Parameter replicationProtectionClusterName is required and cannot be null.")); + } + if (failoverInput == null) { + return Mono.error(new IllegalArgumentException("Parameter failoverInput is required and cannot be null.")); + } else { + failoverInput.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.testFailover(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + replicationProtectionClusterName, failoverInput, accept, context); + } + + /** + * Execute test failover for cluster. + * + * Operation to initiate a failover of the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param failoverInput Cluster test failover input body. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, ReplicationProtectionClusterInner> + beginTestFailoverAsync(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, + ClusterTestFailoverInput failoverInput) { + Mono>> mono = testFailoverWithResponseAsync(resourceGroupName, resourceName, + fabricName, protectionContainerName, replicationProtectionClusterName, failoverInput); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), ReplicationProtectionClusterInner.class, + ReplicationProtectionClusterInner.class, this.client.getContext()); + } + + /** + * Execute test failover for cluster. + * + * Operation to initiate a failover of the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param failoverInput Cluster test failover input body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, ReplicationProtectionClusterInner> + beginTestFailoverAsync(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, + ClusterTestFailoverInput failoverInput, Context context) { + context = this.client.mergeContext(context); + Mono>> mono = testFailoverWithResponseAsync(resourceGroupName, resourceName, + fabricName, protectionContainerName, replicationProtectionClusterName, failoverInput, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), ReplicationProtectionClusterInner.class, + ReplicationProtectionClusterInner.class, context); + } + + /** + * Execute test failover for cluster. + * + * Operation to initiate a failover of the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param failoverInput Cluster test failover input body. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ReplicationProtectionClusterInner> + beginTestFailover(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, + ClusterTestFailoverInput failoverInput) { + return this + .beginTestFailoverAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, failoverInput) + .getSyncPoller(); + } + + /** + * Execute test failover for cluster. + * + * Operation to initiate a failover of the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param failoverInput Cluster test failover input body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ReplicationProtectionClusterInner> + beginTestFailover(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, + ClusterTestFailoverInput failoverInput, Context context) { + return this + .beginTestFailoverAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, failoverInput, context) + .getSyncPoller(); + } + + /** + * Execute test failover for cluster. + * + * Operation to initiate a failover of the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param failoverInput Cluster test failover input body. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono testFailoverAsync(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName, + ClusterTestFailoverInput failoverInput) { + return beginTestFailoverAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, failoverInput).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Execute test failover for cluster. + * + * Operation to initiate a failover of the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param failoverInput Cluster test failover input body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono testFailoverAsync(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName, + ClusterTestFailoverInput failoverInput, Context context) { + return beginTestFailoverAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, failoverInput, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Execute test failover for cluster. + * + * Operation to initiate a failover of the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param failoverInput Cluster test failover input body. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ReplicationProtectionClusterInner testFailover(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName, + ClusterTestFailoverInput failoverInput) { + return testFailoverAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, failoverInput).block(); + } + + /** + * Execute test failover for cluster. + * + * Operation to initiate a failover of the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param failoverInput Cluster test failover input body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ReplicationProtectionClusterInner testFailover(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName, + ClusterTestFailoverInput failoverInput, Context context) { + return testFailoverAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, failoverInput, context).block(); + } + + /** + * Execute test failover cleanup for cluster. + * + * Operation to clean up the test failover of a replication protected cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param cleanupInput Test failover cleanup input. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> testFailoverCleanupWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicationProtectionClusterName, + ClusterTestFailoverCleanupInput cleanupInput) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (fabricName == null) { + return Mono.error(new IllegalArgumentException("Parameter fabricName is required and cannot be null.")); + } + if (protectionContainerName == null) { + return Mono.error( + new IllegalArgumentException("Parameter protectionContainerName is required and cannot be null.")); + } + if (replicationProtectionClusterName == null) { + return Mono.error(new IllegalArgumentException( + "Parameter replicationProtectionClusterName is required and cannot be null.")); + } + if (cleanupInput == null) { + return Mono.error(new IllegalArgumentException("Parameter cleanupInput is required and cannot be null.")); + } else { + cleanupInput.validate(); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.testFailoverCleanup(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + replicationProtectionClusterName, cleanupInput, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Execute test failover cleanup for cluster. + * + * Operation to clean up the test failover of a replication protected cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param cleanupInput Test failover cleanup input. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> testFailoverCleanupWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicationProtectionClusterName, + ClusterTestFailoverCleanupInput cleanupInput, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (fabricName == null) { + return Mono.error(new IllegalArgumentException("Parameter fabricName is required and cannot be null.")); + } + if (protectionContainerName == null) { + return Mono.error( + new IllegalArgumentException("Parameter protectionContainerName is required and cannot be null.")); + } + if (replicationProtectionClusterName == null) { + return Mono.error(new IllegalArgumentException( + "Parameter replicationProtectionClusterName is required and cannot be null.")); + } + if (cleanupInput == null) { + return Mono.error(new IllegalArgumentException("Parameter cleanupInput is required and cannot be null.")); + } else { + cleanupInput.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.testFailoverCleanup(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + replicationProtectionClusterName, cleanupInput, accept, context); + } + + /** + * Execute test failover cleanup for cluster. + * + * Operation to clean up the test failover of a replication protected cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param cleanupInput Test failover cleanup input. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, ReplicationProtectionClusterInner> + beginTestFailoverCleanupAsync(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, + ClusterTestFailoverCleanupInput cleanupInput) { + Mono>> mono = testFailoverCleanupWithResponseAsync(resourceGroupName, resourceName, + fabricName, protectionContainerName, replicationProtectionClusterName, cleanupInput); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), ReplicationProtectionClusterInner.class, + ReplicationProtectionClusterInner.class, this.client.getContext()); + } + + /** + * Execute test failover cleanup for cluster. + * + * Operation to clean up the test failover of a replication protected cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param cleanupInput Test failover cleanup input. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, ReplicationProtectionClusterInner> + beginTestFailoverCleanupAsync(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, + ClusterTestFailoverCleanupInput cleanupInput, Context context) { + context = this.client.mergeContext(context); + Mono>> mono = testFailoverCleanupWithResponseAsync(resourceGroupName, resourceName, + fabricName, protectionContainerName, replicationProtectionClusterName, cleanupInput, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), ReplicationProtectionClusterInner.class, + ReplicationProtectionClusterInner.class, context); + } + + /** + * Execute test failover cleanup for cluster. + * + * Operation to clean up the test failover of a replication protected cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param cleanupInput Test failover cleanup input. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ReplicationProtectionClusterInner> + beginTestFailoverCleanup(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, + ClusterTestFailoverCleanupInput cleanupInput) { + return this + .beginTestFailoverCleanupAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, cleanupInput) + .getSyncPoller(); + } + + /** + * Execute test failover cleanup for cluster. + * + * Operation to clean up the test failover of a replication protected cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param cleanupInput Test failover cleanup input. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ReplicationProtectionClusterInner> + beginTestFailoverCleanup(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, + ClusterTestFailoverCleanupInput cleanupInput, Context context) { + return this + .beginTestFailoverCleanupAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, cleanupInput, context) + .getSyncPoller(); + } + + /** + * Execute test failover cleanup for cluster. + * + * Operation to clean up the test failover of a replication protected cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param cleanupInput Test failover cleanup input. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono testFailoverCleanupAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicationProtectionClusterName, + ClusterTestFailoverCleanupInput cleanupInput) { + return beginTestFailoverCleanupAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, cleanupInput).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Execute test failover cleanup for cluster. + * + * Operation to clean up the test failover of a replication protected cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param cleanupInput Test failover cleanup input. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono testFailoverCleanupAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicationProtectionClusterName, + ClusterTestFailoverCleanupInput cleanupInput, Context context) { + return beginTestFailoverCleanupAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, cleanupInput, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Execute test failover cleanup for cluster. + * + * Operation to clean up the test failover of a replication protected cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param cleanupInput Test failover cleanup input. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ReplicationProtectionClusterInner testFailoverCleanup(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName, + ClusterTestFailoverCleanupInput cleanupInput) { + return testFailoverCleanupAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, cleanupInput).block(); + } + + /** + * Execute test failover cleanup for cluster. + * + * Operation to clean up the test failover of a replication protected cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param cleanupInput Test failover cleanup input. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ReplicationProtectionClusterInner testFailoverCleanup(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName, + ClusterTestFailoverCleanupInput cleanupInput, Context context) { + return testFailoverCleanupAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, cleanupInput, context).block(); + } + + /** + * Execute unplanned cluster failover. + * + * Operation to initiate a failover of the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param failoverInput Failover input. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> unplannedFailoverWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicationProtectionClusterName, + ClusterUnplannedFailoverInput failoverInput) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (fabricName == null) { + return Mono.error(new IllegalArgumentException("Parameter fabricName is required and cannot be null.")); + } + if (protectionContainerName == null) { + return Mono.error( + new IllegalArgumentException("Parameter protectionContainerName is required and cannot be null.")); + } + if (replicationProtectionClusterName == null) { + return Mono.error(new IllegalArgumentException( + "Parameter replicationProtectionClusterName is required and cannot be null.")); + } + if (failoverInput == null) { + return Mono.error(new IllegalArgumentException("Parameter failoverInput is required and cannot be null.")); + } else { + failoverInput.validate(); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.unplannedFailover(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + replicationProtectionClusterName, failoverInput, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Execute unplanned cluster failover. + * + * Operation to initiate a failover of the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param failoverInput Failover input. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> unplannedFailoverWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicationProtectionClusterName, + ClusterUnplannedFailoverInput failoverInput, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (fabricName == null) { + return Mono.error(new IllegalArgumentException("Parameter fabricName is required and cannot be null.")); + } + if (protectionContainerName == null) { + return Mono.error( + new IllegalArgumentException("Parameter protectionContainerName is required and cannot be null.")); + } + if (replicationProtectionClusterName == null) { + return Mono.error(new IllegalArgumentException( + "Parameter replicationProtectionClusterName is required and cannot be null.")); + } + if (failoverInput == null) { + return Mono.error(new IllegalArgumentException("Parameter failoverInput is required and cannot be null.")); + } else { + failoverInput.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.unplannedFailover(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + replicationProtectionClusterName, failoverInput, accept, context); + } + + /** + * Execute unplanned cluster failover. + * + * Operation to initiate a failover of the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param failoverInput Failover input. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, ReplicationProtectionClusterInner> + beginUnplannedFailoverAsync(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, + ClusterUnplannedFailoverInput failoverInput) { + Mono>> mono = unplannedFailoverWithResponseAsync(resourceGroupName, resourceName, + fabricName, protectionContainerName, replicationProtectionClusterName, failoverInput); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), ReplicationProtectionClusterInner.class, + ReplicationProtectionClusterInner.class, this.client.getContext()); + } + + /** + * Execute unplanned cluster failover. + * + * Operation to initiate a failover of the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param failoverInput Failover input. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, ReplicationProtectionClusterInner> + beginUnplannedFailoverAsync(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, + ClusterUnplannedFailoverInput failoverInput, Context context) { + context = this.client.mergeContext(context); + Mono>> mono = unplannedFailoverWithResponseAsync(resourceGroupName, resourceName, + fabricName, protectionContainerName, replicationProtectionClusterName, failoverInput, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), ReplicationProtectionClusterInner.class, + ReplicationProtectionClusterInner.class, context); + } + + /** + * Execute unplanned cluster failover. + * + * Operation to initiate a failover of the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param failoverInput Failover input. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ReplicationProtectionClusterInner> + beginUnplannedFailover(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, + ClusterUnplannedFailoverInput failoverInput) { + return this + .beginUnplannedFailoverAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, failoverInput) + .getSyncPoller(); + } + + /** + * Execute unplanned cluster failover. + * + * Operation to initiate a failover of the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param failoverInput Failover input. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ReplicationProtectionClusterInner> + beginUnplannedFailover(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, + ClusterUnplannedFailoverInput failoverInput, Context context) { + return this + .beginUnplannedFailoverAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, failoverInput, context) + .getSyncPoller(); + } + + /** + * Execute unplanned cluster failover. + * + * Operation to initiate a failover of the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param failoverInput Failover input. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono unplannedFailoverAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicationProtectionClusterName, + ClusterUnplannedFailoverInput failoverInput) { + return beginUnplannedFailoverAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, failoverInput).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Execute unplanned cluster failover. + * + * Operation to initiate a failover of the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param failoverInput Failover input. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono unplannedFailoverAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicationProtectionClusterName, + ClusterUnplannedFailoverInput failoverInput, Context context) { + return beginUnplannedFailoverAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, failoverInput, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Execute unplanned cluster failover. + * + * Operation to initiate a failover of the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param failoverInput Failover input. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ReplicationProtectionClusterInner unplannedFailover(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName, + ClusterUnplannedFailoverInput failoverInput) { + return unplannedFailoverAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, failoverInput).block(); + } + + /** + * Execute unplanned cluster failover. + * + * Operation to initiate a failover of the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param failoverInput Failover input. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ReplicationProtectionClusterInner unplannedFailover(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName, + ClusterUnplannedFailoverInput failoverInput, Context context) { + return unplannedFailoverAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, failoverInput, context).block(); + } + + /** + * Gets the list of Replication protection clusters in vault. + * + * Gets the list of ASR replication protected clusters in the vault. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param skipToken The pagination token. Possible values: "FabricId" or "FabricId_CloudId" or null. + * @param filter OData filter options. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of ASR replication protected clusters in the vault along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String resourceName, String skipToken, String filter) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), skipToken, filter, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets the list of Replication protection clusters in vault. + * + * Gets the list of ASR replication protected clusters in the vault. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param skipToken The pagination token. Possible values: "FabricId" or "FabricId_CloudId" or null. + * @param filter OData filter options. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of ASR replication protected clusters in the vault along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String resourceName, String skipToken, String filter, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .list(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, + this.client.getSubscriptionId(), skipToken, filter, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Gets the list of Replication protection clusters in vault. + * + * Gets the list of ASR replication protected clusters in the vault. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param skipToken The pagination token. Possible values: "FabricId" or "FabricId_CloudId" or null. + * @param filter OData filter options. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of ASR replication protected clusters in the vault as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String resourceName, + String skipToken, String filter) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName, skipToken, filter), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Gets the list of Replication protection clusters in vault. + * + * Gets the list of ASR replication protected clusters in the vault. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of ASR replication protected clusters in the vault as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String resourceName) { + final String skipToken = null; + final String filter = null; + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName, skipToken, filter), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Gets the list of Replication protection clusters in vault. + * + * Gets the list of ASR replication protected clusters in the vault. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param skipToken The pagination token. Possible values: "FabricId" or "FabricId_CloudId" or null. + * @param filter OData filter options. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of ASR replication protected clusters in the vault as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String resourceName, + String skipToken, String filter, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName, skipToken, filter, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); + } + + /** + * Gets the list of Replication protection clusters in vault. + * + * Gets the list of ASR replication protected clusters in the vault. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of ASR replication protected clusters in the vault as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String resourceName) { + final String skipToken = null; + final String filter = null; + return new PagedIterable<>(listAsync(resourceGroupName, resourceName, skipToken, filter)); + } + + /** + * Gets the list of Replication protection clusters in vault. + * + * Gets the list of ASR replication protected clusters in the vault. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param skipToken The pagination token. Possible values: "FabricId" or "FabricId_CloudId" or null. + * @param filter OData filter options. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of ASR replication protected clusters in the vault as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String resourceName, + String skipToken, String filter, Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, resourceName, skipToken, filter, context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protected item collection along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listByReplicationProtectionContainersNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByReplicationProtectionContainersNext(nextLink, + this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protected item collection along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listByReplicationProtectionContainersNextSinglePageAsync(String nextLink, Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listByReplicationProtectionContainersNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protected item collection along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protected item collection along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink, + Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectionClustersImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectionClustersImpl.java new file mode 100644 index 000000000000..a798895e5934 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectionClustersImpl.java @@ -0,0 +1,361 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.ReplicationProtectionClustersClient; +import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.ReplicationProtectionClusterInner; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ApplyClusterRecoveryPointInput; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ClusterTestFailoverCleanupInput; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ClusterTestFailoverInput; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ClusterUnplannedFailoverInput; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationProtectionCluster; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationProtectionClusters; + +public final class ReplicationProtectionClustersImpl implements ReplicationProtectionClusters { + private static final ClientLogger LOGGER = new ClientLogger(ReplicationProtectionClustersImpl.class); + + private final ReplicationProtectionClustersClient innerClient; + + private final com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager serviceManager; + + public ReplicationProtectionClustersImpl(ReplicationProtectionClustersClient innerClient, + com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public PagedIterable listByReplicationProtectionContainers(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName) { + PagedIterable inner = this.serviceClient() + .listByReplicationProtectionContainers(resourceGroupName, resourceName, fabricName, + protectionContainerName); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new ReplicationProtectionClusterImpl(inner1, this.manager())); + } + + public PagedIterable listByReplicationProtectionContainers(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, Context context) { + PagedIterable inner = this.serviceClient() + .listByReplicationProtectionContainers(resourceGroupName, resourceName, fabricName, protectionContainerName, + context); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new ReplicationProtectionClusterImpl(inner1, this.manager())); + } + + public Response getWithResponse(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName, Context context) { + Response inner = this.serviceClient() + .getWithResponse(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, context); + if (inner != null) { + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new ReplicationProtectionClusterImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public ReplicationProtectionCluster get(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName) { + ReplicationProtectionClusterInner inner = this.serviceClient() + .get(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName); + if (inner != null) { + return new ReplicationProtectionClusterImpl(inner, this.manager()); + } else { + return null; + } + } + + public void purge(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, + String replicationProtectionClusterName) { + this.serviceClient() + .purge(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName); + } + + public void purge(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, + String replicationProtectionClusterName, Context context) { + this.serviceClient() + .purge(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, context); + } + + public ReplicationProtectionCluster applyRecoveryPoint(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName, + ApplyClusterRecoveryPointInput applyClusterRecoveryPointInput) { + ReplicationProtectionClusterInner inner = this.serviceClient() + .applyRecoveryPoint(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, applyClusterRecoveryPointInput); + if (inner != null) { + return new ReplicationProtectionClusterImpl(inner, this.manager()); + } else { + return null; + } + } + + public ReplicationProtectionCluster applyRecoveryPoint(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName, + ApplyClusterRecoveryPointInput applyClusterRecoveryPointInput, Context context) { + ReplicationProtectionClusterInner inner = this.serviceClient() + .applyRecoveryPoint(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, applyClusterRecoveryPointInput, context); + if (inner != null) { + return new ReplicationProtectionClusterImpl(inner, this.manager()); + } else { + return null; + } + } + + public ReplicationProtectionCluster failoverCommit(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName) { + ReplicationProtectionClusterInner inner = this.serviceClient() + .failoverCommit(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName); + if (inner != null) { + return new ReplicationProtectionClusterImpl(inner, this.manager()); + } else { + return null; + } + } + + public ReplicationProtectionCluster failoverCommit(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, Context context) { + ReplicationProtectionClusterInner inner = this.serviceClient() + .failoverCommit(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, context); + if (inner != null) { + return new ReplicationProtectionClusterImpl(inner, this.manager()); + } else { + return null; + } + } + + public Response getOperationResultsWithResponse(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicationProtectionClusterName, + String jobId, Context context) { + Response inner = this.serviceClient() + .getOperationResultsWithResponse(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, jobId, context); + if (inner != null) { + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new ReplicationProtectionClusterImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public ReplicationProtectionCluster getOperationResults(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName, String jobId) { + ReplicationProtectionClusterInner inner = this.serviceClient() + .getOperationResults(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, jobId); + if (inner != null) { + return new ReplicationProtectionClusterImpl(inner, this.manager()); + } else { + return null; + } + } + + public ReplicationProtectionCluster repairReplication(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName) { + ReplicationProtectionClusterInner inner = this.serviceClient() + .repairReplication(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName); + if (inner != null) { + return new ReplicationProtectionClusterImpl(inner, this.manager()); + } else { + return null; + } + } + + public ReplicationProtectionCluster repairReplication(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName, Context context) { + ReplicationProtectionClusterInner inner = this.serviceClient() + .repairReplication(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, context); + if (inner != null) { + return new ReplicationProtectionClusterImpl(inner, this.manager()); + } else { + return null; + } + } + + public ReplicationProtectionCluster testFailover(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, + ClusterTestFailoverInput failoverInput) { + ReplicationProtectionClusterInner inner = this.serviceClient() + .testFailover(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, failoverInput); + if (inner != null) { + return new ReplicationProtectionClusterImpl(inner, this.manager()); + } else { + return null; + } + } + + public ReplicationProtectionCluster testFailover(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, ClusterTestFailoverInput failoverInput, + Context context) { + ReplicationProtectionClusterInner inner = this.serviceClient() + .testFailover(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, failoverInput, context); + if (inner != null) { + return new ReplicationProtectionClusterImpl(inner, this.manager()); + } else { + return null; + } + } + + public ReplicationProtectionCluster testFailoverCleanup(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName, + ClusterTestFailoverCleanupInput cleanupInput) { + ReplicationProtectionClusterInner inner = this.serviceClient() + .testFailoverCleanup(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, cleanupInput); + if (inner != null) { + return new ReplicationProtectionClusterImpl(inner, this.manager()); + } else { + return null; + } + } + + public ReplicationProtectionCluster testFailoverCleanup(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName, + ClusterTestFailoverCleanupInput cleanupInput, Context context) { + ReplicationProtectionClusterInner inner = this.serviceClient() + .testFailoverCleanup(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, cleanupInput, context); + if (inner != null) { + return new ReplicationProtectionClusterImpl(inner, this.manager()); + } else { + return null; + } + } + + public ReplicationProtectionCluster unplannedFailover(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName, + ClusterUnplannedFailoverInput failoverInput) { + ReplicationProtectionClusterInner inner = this.serviceClient() + .unplannedFailover(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, failoverInput); + if (inner != null) { + return new ReplicationProtectionClusterImpl(inner, this.manager()); + } else { + return null; + } + } + + public ReplicationProtectionCluster unplannedFailover(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName, + ClusterUnplannedFailoverInput failoverInput, Context context) { + ReplicationProtectionClusterInner inner = this.serviceClient() + .unplannedFailover(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, failoverInput, context); + if (inner != null) { + return new ReplicationProtectionClusterImpl(inner, this.manager()); + } else { + return null; + } + } + + public PagedIterable list(String resourceGroupName, String resourceName) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, resourceName); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new ReplicationProtectionClusterImpl(inner1, this.manager())); + } + + public PagedIterable list(String resourceGroupName, String resourceName, + String skipToken, String filter, Context context) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, resourceName, skipToken, filter, context); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new ReplicationProtectionClusterImpl(inner1, this.manager())); + } + + public ReplicationProtectionCluster getById(String id) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); + if (resourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); + } + String fabricName = ResourceManagerUtils.getValueFromIdByName(id, "replicationFabrics"); + if (fabricName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'replicationFabrics'.", id))); + } + String protectionContainerName + = ResourceManagerUtils.getValueFromIdByName(id, "replicationProtectionContainers"); + if (protectionContainerName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format( + "The resource ID '%s' is not valid. Missing path segment 'replicationProtectionContainers'.", id))); + } + String replicationProtectionClusterName + = ResourceManagerUtils.getValueFromIdByName(id, "replicationProtectionClusters"); + if (replicationProtectionClusterName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format( + "The resource ID '%s' is not valid. Missing path segment 'replicationProtectionClusters'.", id))); + } + return this + .getWithResponse(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, Context.NONE) + .getValue(); + } + + public Response getByIdWithResponse(String id, Context context) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); + if (resourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); + } + String fabricName = ResourceManagerUtils.getValueFromIdByName(id, "replicationFabrics"); + if (fabricName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'replicationFabrics'.", id))); + } + String protectionContainerName + = ResourceManagerUtils.getValueFromIdByName(id, "replicationProtectionContainers"); + if (protectionContainerName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format( + "The resource ID '%s' is not valid. Missing path segment 'replicationProtectionContainers'.", id))); + } + String replicationProtectionClusterName + = ResourceManagerUtils.getValueFromIdByName(id, "replicationProtectionClusters"); + if (replicationProtectionClusterName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format( + "The resource ID '%s' is not valid. Missing path segment 'replicationProtectionClusters'.", id))); + } + return this.getWithResponse(resourceGroupName, resourceName, fabricName, protectionContainerName, + replicationProtectionClusterName, context); + } + + private ReplicationProtectionClustersClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager() { + return this.serviceManager; + } + + public ReplicationProtectionClusterImpl define(String name) { + return new ReplicationProtectionClusterImpl(name, this.manager()); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectionContainerMappingsClientImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectionContainerMappingsClientImpl.java index c38a684ffac9..2a34d1887688 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectionContainerMappingsClientImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectionContainerMappingsClientImpl.java @@ -83,7 +83,7 @@ public interface ReplicationProtectionContainerMappingsService { @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByReplicationProtectionContainers( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("resourceName") String resourceName, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @HeaderParam("Accept") String accept, Context context); @@ -93,9 +93,9 @@ Mono> listByReplicationProtection @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @PathParam("mappingName") String mappingName, @HeaderParam("Accept") String accept, Context context); @@ -104,9 +104,9 @@ Mono> get(@HostParam("$host") String e @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> create(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @PathParam("mappingName") String mappingName, @BodyParam("application/json") CreateProtectionContainerMappingInput creationInput, @@ -117,9 +117,9 @@ Mono>> create(@HostParam("$host") String endpoint, @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> purge(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @PathParam("mappingName") String mappingName, Context context); @@ -128,9 +128,9 @@ Mono>> purge(@HostParam("$host") String endpoint, @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> update(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @PathParam("mappingName") String mappingName, @BodyParam("application/json") UpdateProtectionContainerMappingInput updateInput, @@ -141,9 +141,9 @@ Mono>> update(@HostParam("$host") String endpoint, @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> delete(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @PathParam("mappingName") String mappingName, @BodyParam("application/json") RemoveProtectionContainerMappingInput removalInput, Context context); @@ -153,9 +153,9 @@ Mono>> delete(@HostParam("$host") String endpoint, @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> list(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @@ -179,8 +179,8 @@ Mono> listNext( * * Lists the protection container mappings for a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -191,18 +191,18 @@ Mono> listNext( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByReplicationProtectionContainersSinglePageAsync( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName) { + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -217,7 +217,7 @@ private Mono> listByReplicationPr final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByReplicationProtectionContainers(this.client.getEndpoint(), - this.client.getApiVersion(), resourceName, resourceGroupName, this.client.getSubscriptionId(), + this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) @@ -229,8 +229,8 @@ private Mono> listByReplicationPr * * Lists the protection container mappings for a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param context The context to associate with this operation. @@ -242,19 +242,19 @@ private Mono> listByReplicationPr */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByReplicationProtectionContainersSinglePageAsync( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -269,9 +269,9 @@ private Mono> listByReplicationPr final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByReplicationProtectionContainers(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, accept, - context) + .listByReplicationProtectionContainers(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -281,8 +281,8 @@ private Mono> listByReplicationPr * * Lists the protection container mappings for a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -291,10 +291,10 @@ private Mono> listByReplicationPr * @return protection container mapping collection class as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByReplicationProtectionContainersAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName) { + private PagedFlux listByReplicationProtectionContainersAsync( + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName) { return new PagedFlux<>( - () -> listByReplicationProtectionContainersSinglePageAsync(resourceName, resourceGroupName, fabricName, + () -> listByReplicationProtectionContainersSinglePageAsync(resourceGroupName, resourceName, fabricName, protectionContainerName), nextLink -> listByReplicationProtectionContainersNextSinglePageAsync(nextLink)); } @@ -304,8 +304,8 @@ private PagedFlux listByReplicationProtectionCo * * Lists the protection container mappings for a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param context The context to associate with this operation. @@ -315,10 +315,11 @@ private PagedFlux listByReplicationProtectionCo * @return protection container mapping collection class as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByReplicationProtectionContainersAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, Context context) { + private PagedFlux listByReplicationProtectionContainersAsync( + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, + Context context) { return new PagedFlux<>( - () -> listByReplicationProtectionContainersSinglePageAsync(resourceName, resourceGroupName, fabricName, + () -> listByReplicationProtectionContainersSinglePageAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, context), nextLink -> listByReplicationProtectionContainersNextSinglePageAsync(nextLink, context)); } @@ -328,8 +329,8 @@ private PagedFlux listByReplicationProtectionCo * * Lists the protection container mappings for a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -338,9 +339,9 @@ private PagedFlux listByReplicationProtectionCo * @return protection container mapping collection class as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByReplicationProtectionContainers(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName) { - return new PagedIterable<>(listByReplicationProtectionContainersAsync(resourceName, resourceGroupName, + public PagedIterable listByReplicationProtectionContainers( + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName) { + return new PagedIterable<>(listByReplicationProtectionContainersAsync(resourceGroupName, resourceName, fabricName, protectionContainerName)); } @@ -349,8 +350,8 @@ public PagedIterable listByReplicationProtectio * * Lists the protection container mappings for a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param context The context to associate with this operation. @@ -360,9 +361,10 @@ public PagedIterable listByReplicationProtectio * @return protection container mapping collection class as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByReplicationProtectionContainers(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, Context context) { - return new PagedIterable<>(listByReplicationProtectionContainersAsync(resourceName, resourceGroupName, + public PagedIterable listByReplicationProtectionContainers( + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, + Context context) { + return new PagedIterable<>(listByReplicationProtectionContainersAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, context)); } @@ -371,8 +373,8 @@ public PagedIterable listByReplicationProtectio * * Gets the details of a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection Container mapping name. @@ -383,19 +385,19 @@ public PagedIterable listByReplicationProtectio * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String mappingName) { + private Mono> getWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String mappingName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -412,9 +414,9 @@ private Mono> getWithResponseAsync(Str } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, mappingName, - accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + mappingName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -423,8 +425,8 @@ private Mono> getWithResponseAsync(Str * * Gets the details of a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection Container mapping name. @@ -436,20 +438,19 @@ private Mono> getWithResponseAsync(Str * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String mappingName, - Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String mappingName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -466,7 +467,7 @@ private Mono> getWithResponseAsync(Str } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, mappingName, accept, context); } @@ -475,8 +476,8 @@ private Mono> getWithResponseAsync(Str * * Gets the details of a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection Container mapping name. @@ -486,9 +487,9 @@ private Mono> getWithResponseAsync(Str * @return the details of a protection container mapping on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceName, String resourceGroupName, + private Mono getAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName) { - return getWithResponseAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName) + return getWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } @@ -497,8 +498,8 @@ private Mono getAsync(String resourceName, Stri * * Gets the details of a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection Container mapping name. @@ -509,9 +510,9 @@ private Mono getAsync(String resourceName, Stri * @return the details of a protection container mapping along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceName, String resourceGroupName, + public Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, Context context) { - return getWithResponseAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, + return getWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName, context).block(); } @@ -520,8 +521,8 @@ public Response getWithResponse(String resource * * Gets the details of a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection Container mapping name. @@ -531,9 +532,9 @@ public Response getWithResponse(String resource * @return the details of a protection container mapping. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ProtectionContainerMappingInner get(String resourceName, String resourceGroupName, String fabricName, + public ProtectionContainerMappingInner get(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName) { - return getWithResponse(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, + return getWithResponse(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName, Context.NONE).getValue(); } @@ -542,8 +543,8 @@ public ProtectionContainerMappingInner get(String resourceName, String resourceG * * The operation to create a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -554,20 +555,20 @@ public ProtectionContainerMappingInner get(String resourceName, String resourceG * @return protection container mapping object along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> createWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, CreateProtectionContainerMappingInput creationInput) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -589,9 +590,9 @@ private Mono>> createWithResponseAsync(String resource } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, mappingName, - creationInput, accept, context)) + .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + mappingName, creationInput, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -600,8 +601,8 @@ private Mono>> createWithResponseAsync(String resource * * The operation to create a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -613,20 +614,20 @@ private Mono>> createWithResponseAsync(String resource * @return protection container mapping object along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> createWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, CreateProtectionContainerMappingInput creationInput, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -648,7 +649,7 @@ private Mono>> createWithResponseAsync(String resource } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.create(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.create(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, mappingName, creationInput, accept, context); } @@ -658,8 +659,8 @@ private Mono>> createWithResponseAsync(String resource * * The operation to create a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -671,9 +672,9 @@ private Mono>> createWithResponseAsync(String resource */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ProtectionContainerMappingInner> beginCreateAsync( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, CreateProtectionContainerMappingInput creationInput) { - Mono>> mono = createWithResponseAsync(resourceName, resourceGroupName, fabricName, + Mono>> mono = createWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName, creationInput); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ProtectionContainerMappingInner.class, ProtectionContainerMappingInner.class, @@ -685,8 +686,8 @@ private PollerFlux, ProtectionContai * * The operation to create a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -699,10 +700,10 @@ private PollerFlux, ProtectionContai */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ProtectionContainerMappingInner> beginCreateAsync( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, CreateProtectionContainerMappingInput creationInput, Context context) { context = this.client.mergeContext(context); - Mono>> mono = createWithResponseAsync(resourceName, resourceGroupName, fabricName, + Mono>> mono = createWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName, creationInput, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ProtectionContainerMappingInner.class, ProtectionContainerMappingInner.class, @@ -714,8 +715,8 @@ private PollerFlux, ProtectionContai * * The operation to create a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -727,10 +728,10 @@ private PollerFlux, ProtectionContai */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ProtectionContainerMappingInner> beginCreate( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, CreateProtectionContainerMappingInput creationInput) { return this - .beginCreateAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, + .beginCreateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName, creationInput) .getSyncPoller(); } @@ -740,8 +741,8 @@ public SyncPoller, ProtectionContain * * The operation to create a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -754,10 +755,10 @@ public SyncPoller, ProtectionContain */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ProtectionContainerMappingInner> beginCreate( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, CreateProtectionContainerMappingInput creationInput, Context context) { return this - .beginCreateAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, + .beginCreateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName, creationInput, context) .getSyncPoller(); } @@ -767,8 +768,8 @@ public SyncPoller, ProtectionContain * * The operation to create a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -779,10 +780,10 @@ public SyncPoller, ProtectionContain * @return protection container mapping object on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync(String resourceName, String resourceGroupName, + private Mono createAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, CreateProtectionContainerMappingInput creationInput) { - return beginCreateAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, + return beginCreateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName, creationInput).last().flatMap(this.client::getLroFinalResultOrError); } @@ -791,8 +792,8 @@ private Mono createAsync(String resourceName, S * * The operation to create a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -804,10 +805,10 @@ private Mono createAsync(String resourceName, S * @return protection container mapping object on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync(String resourceName, String resourceGroupName, + private Mono createAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, CreateProtectionContainerMappingInput creationInput, Context context) { - return beginCreateAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, + return beginCreateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName, creationInput, context).last().flatMap(this.client::getLroFinalResultOrError); } @@ -816,8 +817,8 @@ private Mono createAsync(String resourceName, S * * The operation to create a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -828,9 +829,9 @@ private Mono createAsync(String resourceName, S * @return protection container mapping object. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ProtectionContainerMappingInner create(String resourceName, String resourceGroupName, String fabricName, + public ProtectionContainerMappingInner create(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, CreateProtectionContainerMappingInput creationInput) { - return createAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, + return createAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName, creationInput).block(); } @@ -839,8 +840,8 @@ public ProtectionContainerMappingInner create(String resourceName, String resour * * The operation to create a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -852,10 +853,10 @@ public ProtectionContainerMappingInner create(String resourceName, String resour * @return protection container mapping object. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ProtectionContainerMappingInner create(String resourceName, String resourceGroupName, String fabricName, + public ProtectionContainerMappingInner create(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, CreateProtectionContainerMappingInput creationInput, Context context) { - return createAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, + return createAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName, creationInput, context).block(); } @@ -864,8 +865,8 @@ public ProtectionContainerMappingInner create(String resourceName, String resour * * The operation to purge(force delete) a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -875,19 +876,19 @@ public ProtectionContainerMappingInner create(String resourceName, String resour * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> purgeWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> purgeWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -903,9 +904,9 @@ private Mono>> purgeWithResponseAsync(String resourceN return Mono.error(new IllegalArgumentException("Parameter mappingName is required and cannot be null.")); } return FluxUtil - .withContext(context -> service.purge(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, mappingName, - context)) + .withContext(context -> service.purge(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + mappingName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -914,8 +915,8 @@ private Mono>> purgeWithResponseAsync(String resourceN * * The operation to purge(force delete) a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -926,19 +927,19 @@ private Mono>> purgeWithResponseAsync(String resourceN * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> purgeWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> purgeWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -954,7 +955,7 @@ private Mono>> purgeWithResponseAsync(String resourceN return Mono.error(new IllegalArgumentException("Parameter mappingName is required and cannot be null.")); } context = this.client.mergeContext(context); - return service.purge(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.purge(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, mappingName, context); } @@ -963,8 +964,8 @@ private Mono>> purgeWithResponseAsync(String resourceN * * The operation to purge(force delete) a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -974,10 +975,10 @@ private Mono>> purgeWithResponseAsync(String resourceN * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginPurgeAsync(String resourceName, String resourceGroupName, + private PollerFlux, Void> beginPurgeAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName) { Mono>> mono - = purgeWithResponseAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName); + = purgeWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } @@ -987,8 +988,8 @@ private PollerFlux, Void> beginPurgeAsync(String resourceName, * * The operation to purge(force delete) a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -999,10 +1000,10 @@ private PollerFlux, Void> beginPurgeAsync(String resourceName, * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginPurgeAsync(String resourceName, String resourceGroupName, + private PollerFlux, Void> beginPurgeAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = purgeWithResponseAsync(resourceName, resourceGroupName, fabricName, + Mono>> mono = purgeWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); @@ -1013,8 +1014,8 @@ private PollerFlux, Void> beginPurgeAsync(String resourceName, * * The operation to purge(force delete) a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -1024,9 +1025,9 @@ private PollerFlux, Void> beginPurgeAsync(String resourceName, * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginPurge(String resourceName, String resourceGroupName, + public SyncPoller, Void> beginPurge(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName) { - return this.beginPurgeAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName) + return this.beginPurgeAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName) .getSyncPoller(); } @@ -1035,8 +1036,8 @@ public SyncPoller, Void> beginPurge(String resourceName, String * * The operation to purge(force delete) a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -1047,10 +1048,10 @@ public SyncPoller, Void> beginPurge(String resourceName, String * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginPurge(String resourceName, String resourceGroupName, + public SyncPoller, Void> beginPurge(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, Context context) { return this - .beginPurgeAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, context) + .beginPurgeAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName, context) .getSyncPoller(); } @@ -1059,8 +1060,8 @@ public SyncPoller, Void> beginPurge(String resourceName, String * * The operation to purge(force delete) a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -1070,9 +1071,9 @@ public SyncPoller, Void> beginPurge(String resourceName, String * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono purgeAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono purgeAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName) { - return beginPurgeAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName).last() + return beginPurgeAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1081,8 +1082,8 @@ private Mono purgeAsync(String resourceName, String resourceGroupName, Str * * The operation to purge(force delete) a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -1093,9 +1094,9 @@ private Mono purgeAsync(String resourceName, String resourceGroupName, Str * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono purgeAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono purgeAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, Context context) { - return beginPurgeAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, + return beginPurgeAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName, context).last().flatMap(this.client::getLroFinalResultOrError); } @@ -1104,8 +1105,8 @@ private Mono purgeAsync(String resourceName, String resourceGroupName, Str * * The operation to purge(force delete) a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -1114,9 +1115,9 @@ private Mono purgeAsync(String resourceName, String resourceGroupName, Str * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void purge(String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + public void purge(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName) { - purgeAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName).block(); + purgeAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName).block(); } /** @@ -1124,8 +1125,8 @@ public void purge(String resourceName, String resourceGroupName, String fabricNa * * The operation to purge(force delete) a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -1135,9 +1136,9 @@ public void purge(String resourceName, String resourceGroupName, String fabricNa * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void purge(String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + public void purge(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, Context context) { - purgeAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, context).block(); + purgeAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName, context).block(); } /** @@ -1145,8 +1146,8 @@ public void purge(String resourceName, String resourceGroupName, String fabricNa * * The operation to update protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -1157,20 +1158,20 @@ public void purge(String resourceName, String resourceGroupName, String fabricNa * @return protection container mapping object along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> updateWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, UpdateProtectionContainerMappingInput updateInput) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1192,9 +1193,9 @@ private Mono>> updateWithResponseAsync(String resource } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, mappingName, - updateInput, accept, context)) + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + mappingName, updateInput, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1203,8 +1204,8 @@ private Mono>> updateWithResponseAsync(String resource * * The operation to update protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -1216,20 +1217,20 @@ private Mono>> updateWithResponseAsync(String resource * @return protection container mapping object along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> updateWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, UpdateProtectionContainerMappingInput updateInput, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1251,7 +1252,7 @@ private Mono>> updateWithResponseAsync(String resource } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.update(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.update(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, mappingName, updateInput, accept, context); } @@ -1261,8 +1262,8 @@ private Mono>> updateWithResponseAsync(String resource * * The operation to update protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -1274,9 +1275,9 @@ private Mono>> updateWithResponseAsync(String resource */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ProtectionContainerMappingInner> beginUpdateAsync( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, UpdateProtectionContainerMappingInput updateInput) { - Mono>> mono = updateWithResponseAsync(resourceName, resourceGroupName, fabricName, + Mono>> mono = updateWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName, updateInput); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ProtectionContainerMappingInner.class, ProtectionContainerMappingInner.class, @@ -1288,8 +1289,8 @@ private PollerFlux, ProtectionContai * * The operation to update protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -1302,10 +1303,10 @@ private PollerFlux, ProtectionContai */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ProtectionContainerMappingInner> beginUpdateAsync( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, UpdateProtectionContainerMappingInput updateInput, Context context) { context = this.client.mergeContext(context); - Mono>> mono = updateWithResponseAsync(resourceName, resourceGroupName, fabricName, + Mono>> mono = updateWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName, updateInput, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ProtectionContainerMappingInner.class, ProtectionContainerMappingInner.class, @@ -1317,8 +1318,8 @@ private PollerFlux, ProtectionContai * * The operation to update protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -1330,10 +1331,10 @@ private PollerFlux, ProtectionContai */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ProtectionContainerMappingInner> beginUpdate( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, UpdateProtectionContainerMappingInput updateInput) { return this - .beginUpdateAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, + .beginUpdateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName, updateInput) .getSyncPoller(); } @@ -1343,8 +1344,8 @@ public SyncPoller, ProtectionContain * * The operation to update protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -1357,10 +1358,10 @@ public SyncPoller, ProtectionContain */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ProtectionContainerMappingInner> beginUpdate( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, UpdateProtectionContainerMappingInput updateInput, Context context) { return this - .beginUpdateAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, + .beginUpdateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName, updateInput, context) .getSyncPoller(); } @@ -1370,8 +1371,8 @@ public SyncPoller, ProtectionContain * * The operation to update protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -1382,10 +1383,10 @@ public SyncPoller, ProtectionContain * @return protection container mapping object on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceName, String resourceGroupName, + private Mono updateAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, UpdateProtectionContainerMappingInput updateInput) { - return beginUpdateAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, + return beginUpdateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName, updateInput).last().flatMap(this.client::getLroFinalResultOrError); } @@ -1394,8 +1395,8 @@ private Mono updateAsync(String resourceName, S * * The operation to update protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -1407,10 +1408,10 @@ private Mono updateAsync(String resourceName, S * @return protection container mapping object on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceName, String resourceGroupName, + private Mono updateAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, UpdateProtectionContainerMappingInput updateInput, Context context) { - return beginUpdateAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, + return beginUpdateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName, updateInput, context).last().flatMap(this.client::getLroFinalResultOrError); } @@ -1419,8 +1420,8 @@ private Mono updateAsync(String resourceName, S * * The operation to update protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -1431,9 +1432,9 @@ private Mono updateAsync(String resourceName, S * @return protection container mapping object. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ProtectionContainerMappingInner update(String resourceName, String resourceGroupName, String fabricName, + public ProtectionContainerMappingInner update(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, UpdateProtectionContainerMappingInput updateInput) { - return updateAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, + return updateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName, updateInput).block(); } @@ -1442,8 +1443,8 @@ public ProtectionContainerMappingInner update(String resourceName, String resour * * The operation to update protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -1455,10 +1456,10 @@ public ProtectionContainerMappingInner update(String resourceName, String resour * @return protection container mapping object. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ProtectionContainerMappingInner update(String resourceName, String resourceGroupName, String fabricName, + public ProtectionContainerMappingInner update(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, UpdateProtectionContainerMappingInput updateInput, Context context) { - return updateAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, + return updateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName, updateInput, context).block(); } @@ -1467,8 +1468,8 @@ public ProtectionContainerMappingInner update(String resourceName, String resour * * The operation to delete or remove a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -1479,20 +1480,20 @@ public ProtectionContainerMappingInner update(String resourceName, String resour * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, RemoveProtectionContainerMappingInput removalInput) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1513,9 +1514,9 @@ private Mono>> deleteWithResponseAsync(String resource removalInput.validate(); } return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, mappingName, - removalInput, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + mappingName, removalInput, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1524,8 +1525,8 @@ private Mono>> deleteWithResponseAsync(String resource * * The operation to delete or remove a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -1537,20 +1538,20 @@ private Mono>> deleteWithResponseAsync(String resource * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, RemoveProtectionContainerMappingInput removalInput, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1571,7 +1572,7 @@ private Mono>> deleteWithResponseAsync(String resource removalInput.validate(); } context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, mappingName, removalInput, context); } @@ -1580,8 +1581,8 @@ private Mono>> deleteWithResponseAsync(String resource * * The operation to delete or remove a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -1592,10 +1593,10 @@ private Mono>> deleteWithResponseAsync(String resource * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceName, String resourceGroupName, + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, RemoveProtectionContainerMappingInput removalInput) { - Mono>> mono = deleteWithResponseAsync(resourceName, resourceGroupName, fabricName, + Mono>> mono = deleteWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName, removalInput); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); @@ -1606,8 +1607,8 @@ private PollerFlux, Void> beginDeleteAsync(String resourceName, * * The operation to delete or remove a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -1619,11 +1620,11 @@ private PollerFlux, Void> beginDeleteAsync(String resourceName, * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceName, String resourceGroupName, + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, RemoveProtectionContainerMappingInput removalInput, Context context) { context = this.client.mergeContext(context); - Mono>> mono = deleteWithResponseAsync(resourceName, resourceGroupName, fabricName, + Mono>> mono = deleteWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName, removalInput, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); @@ -1634,8 +1635,8 @@ private PollerFlux, Void> beginDeleteAsync(String resourceName, * * The operation to delete or remove a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -1646,11 +1647,11 @@ private PollerFlux, Void> beginDeleteAsync(String resourceName, * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceName, String resourceGroupName, + public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, RemoveProtectionContainerMappingInput removalInput) { return this - .beginDeleteAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, + .beginDeleteAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName, removalInput) .getSyncPoller(); } @@ -1660,8 +1661,8 @@ public SyncPoller, Void> beginDelete(String resourceName, Strin * * The operation to delete or remove a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -1673,11 +1674,11 @@ public SyncPoller, Void> beginDelete(String resourceName, Strin * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceName, String resourceGroupName, + public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, RemoveProtectionContainerMappingInput removalInput, Context context) { return this - .beginDeleteAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, + .beginDeleteAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName, removalInput, context) .getSyncPoller(); } @@ -1687,8 +1688,8 @@ public SyncPoller, Void> beginDelete(String resourceName, Strin * * The operation to delete or remove a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -1699,9 +1700,9 @@ public SyncPoller, Void> beginDelete(String resourceName, Strin * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono deleteAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, RemoveProtectionContainerMappingInput removalInput) { - return beginDeleteAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, + return beginDeleteAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName, removalInput).last().flatMap(this.client::getLroFinalResultOrError); } @@ -1710,8 +1711,8 @@ private Mono deleteAsync(String resourceName, String resourceGroupName, St * * The operation to delete or remove a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -1723,10 +1724,10 @@ private Mono deleteAsync(String resourceName, String resourceGroupName, St * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono deleteAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, RemoveProtectionContainerMappingInput removalInput, Context context) { - return beginDeleteAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, + return beginDeleteAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName, removalInput, context).last().flatMap(this.client::getLroFinalResultOrError); } @@ -1735,8 +1736,8 @@ private Mono deleteAsync(String resourceName, String resourceGroupName, St * * The operation to delete or remove a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -1746,9 +1747,9 @@ private Mono deleteAsync(String resourceName, String resourceGroupName, St * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + public void delete(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, RemoveProtectionContainerMappingInput removalInput) { - deleteAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, removalInput) + deleteAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName, removalInput) .block(); } @@ -1757,8 +1758,8 @@ public void delete(String resourceName, String resourceGroupName, String fabricN * * The operation to delete or remove a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -1769,9 +1770,9 @@ public void delete(String resourceName, String resourceGroupName, String fabricN * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + public void delete(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, RemoveProtectionContainerMappingInput removalInput, Context context) { - deleteAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, removalInput, + deleteAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName, removalInput, context).block(); } @@ -1780,8 +1781,8 @@ public void delete(String resourceName, String resourceGroupName, String fabricN * * Lists the protection container mappings in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1789,27 +1790,27 @@ public void delete(String resourceName, String resourceGroupName, String fabricN * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceName, - String resourceGroupName) { + private Mono> listSinglePageAsync(String resourceGroupName, + String resourceName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1820,8 +1821,8 @@ private Mono> listSinglePageAsync * * Lists the protection container mappings in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1830,19 +1831,19 @@ private Mono> listSinglePageAsync * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceName, - String resourceGroupName, Context context) { + private Mono> listSinglePageAsync(String resourceGroupName, + String resourceName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1850,7 +1851,7 @@ private Mono> listSinglePageAsync final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + .list(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); @@ -1861,16 +1862,16 @@ private Mono> listSinglePageAsync * * Lists the protection container mappings in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return protection container mapping collection class as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceName, String resourceGroupName) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceName, resourceGroupName), + private PagedFlux listAsync(String resourceGroupName, String resourceName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName), nextLink -> listNextSinglePageAsync(nextLink)); } @@ -1879,8 +1880,8 @@ private PagedFlux listAsync(String resourceName * * Lists the protection container mappings in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1888,9 +1889,9 @@ private PagedFlux listAsync(String resourceName * @return protection container mapping collection class as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceName, String resourceGroupName, + private PagedFlux listAsync(String resourceGroupName, String resourceName, Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceName, resourceGroupName, context), + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } @@ -1899,16 +1900,16 @@ private PagedFlux listAsync(String resourceName * * Lists the protection container mappings in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return protection container mapping collection class as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceName, String resourceGroupName) { - return new PagedIterable<>(listAsync(resourceName, resourceGroupName)); + public PagedIterable list(String resourceGroupName, String resourceName) { + return new PagedIterable<>(listAsync(resourceGroupName, resourceName)); } /** @@ -1916,8 +1917,8 @@ public PagedIterable list(String resourceName, * * Lists the protection container mappings in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1925,9 +1926,9 @@ public PagedIterable list(String resourceName, * @return protection container mapping collection class as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceName, String resourceGroupName, + public PagedIterable list(String resourceGroupName, String resourceName, Context context) { - return new PagedIterable<>(listAsync(resourceName, resourceGroupName, context)); + return new PagedIterable<>(listAsync(resourceGroupName, resourceName, context)); } /** diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectionContainerMappingsImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectionContainerMappingsImpl.java index 5e797af8c7e1..4978512c7b38 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectionContainerMappingsImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectionContainerMappingsImpl.java @@ -28,28 +28,28 @@ public ReplicationProtectionContainerMappingsImpl(ReplicationProtectionContainer this.serviceManager = serviceManager; } - public PagedIterable listByReplicationProtectionContainers(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName) { + public PagedIterable listByReplicationProtectionContainers(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName) { PagedIterable inner = this.serviceClient() - .listByReplicationProtectionContainers(resourceName, resourceGroupName, fabricName, + .listByReplicationProtectionContainers(resourceGroupName, resourceName, fabricName, protectionContainerName); return ResourceManagerUtils.mapPage(inner, inner1 -> new ProtectionContainerMappingImpl(inner1, this.manager())); } - public PagedIterable listByReplicationProtectionContainers(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, Context context) { + public PagedIterable listByReplicationProtectionContainers(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, Context context) { PagedIterable inner = this.serviceClient() - .listByReplicationProtectionContainers(resourceName, resourceGroupName, fabricName, protectionContainerName, + .listByReplicationProtectionContainers(resourceGroupName, resourceName, fabricName, protectionContainerName, context); return ResourceManagerUtils.mapPage(inner, inner1 -> new ProtectionContainerMappingImpl(inner1, this.manager())); } - public Response getWithResponse(String resourceName, String resourceGroupName, + public Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, Context context) { Response inner = this.serviceClient() - .getWithResponse(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, + .getWithResponse(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName, context); if (inner != null) { return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), @@ -59,10 +59,10 @@ public Response getWithResponse(String resourceName, } } - public ProtectionContainerMapping get(String resourceName, String resourceGroupName, String fabricName, + public ProtectionContainerMapping get(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName) { ProtectionContainerMappingInner inner = this.serviceClient() - .get(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName); + .get(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName); if (inner != null) { return new ProtectionContainerMappingImpl(inner, this.manager()); } else { @@ -70,56 +70,56 @@ public ProtectionContainerMapping get(String resourceName, String resourceGroupN } } - public void purge(String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + public void purge(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName) { - this.serviceClient().purge(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName); + this.serviceClient().purge(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName); } - public void purge(String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + public void purge(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, Context context) { this.serviceClient() - .purge(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, context); + .purge(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName, context); } - public void delete(String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + public void delete(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, RemoveProtectionContainerMappingInput removalInput) { this.serviceClient() - .delete(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, removalInput); + .delete(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName, removalInput); } - public void delete(String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + public void delete(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, RemoveProtectionContainerMappingInput removalInput, Context context) { this.serviceClient() - .delete(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, removalInput, + .delete(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName, removalInput, context); } - public PagedIterable list(String resourceName, String resourceGroupName) { + public PagedIterable list(String resourceGroupName, String resourceName) { PagedIterable inner - = this.serviceClient().list(resourceName, resourceGroupName); + = this.serviceClient().list(resourceGroupName, resourceName); return ResourceManagerUtils.mapPage(inner, inner1 -> new ProtectionContainerMappingImpl(inner1, this.manager())); } - public PagedIterable list(String resourceName, String resourceGroupName, + public PagedIterable list(String resourceGroupName, String resourceName, Context context) { PagedIterable inner - = this.serviceClient().list(resourceName, resourceGroupName, context); + = this.serviceClient().list(resourceGroupName, resourceName, context); return ResourceManagerUtils.mapPage(inner, inner1 -> new ProtectionContainerMappingImpl(inner1, this.manager())); } public ProtectionContainerMapping getById(String id) { - String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); - if (resourceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); - } String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); + if (resourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); + } String fabricName = ResourceManagerUtils.getValueFromIdByName(id, "replicationFabrics"); if (fabricName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( @@ -138,22 +138,22 @@ public ProtectionContainerMapping getById(String id) { id))); } return this - .getWithResponse(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, + .getWithResponse(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName, Context.NONE) .getValue(); } public Response getByIdWithResponse(String id, Context context) { - String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); - if (resourceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); - } String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); + if (resourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); + } String fabricName = ResourceManagerUtils.getValueFromIdByName(id, "replicationFabrics"); if (fabricName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( @@ -171,7 +171,7 @@ public Response getByIdWithResponse(String id, Conte "The resource ID '%s' is not valid. Missing path segment 'replicationProtectionContainerMappings'.", id))); } - return this.getWithResponse(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, + return this.getWithResponse(resourceGroupName, resourceName, fabricName, protectionContainerName, mappingName, context); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectionContainersClientImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectionContainersClientImpl.java index e226312a910f..ba7fba5b317f 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectionContainersClientImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectionContainersClientImpl.java @@ -36,6 +36,7 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.models.CreateProtectionContainerInput; import com.azure.resourcemanager.recoveryservicessiterecovery.models.DiscoverProtectableItemRequest; import com.azure.resourcemanager.recoveryservicessiterecovery.models.ProtectionContainerCollection; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.SwitchClusterProtectionInput; import com.azure.resourcemanager.recoveryservicessiterecovery.models.SwitchProtectionInput; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; @@ -78,19 +79,18 @@ public interface ReplicationProtectionContainersService { @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByReplicationFabrics(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, - @HeaderParam("Accept") String accept, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @HeaderParam("Accept") String accept, Context context); @@ -99,9 +99,9 @@ Mono> get(@HostParam("$host") String endpoint @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> create(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @BodyParam("application/json") CreateProtectionContainerInput creationInput, @HeaderParam("Accept") String accept, Context context); @@ -111,9 +111,9 @@ Mono>> create(@HostParam("$host") String endpoint, @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> discoverProtectableItem(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @BodyParam("application/json") DiscoverProtectableItemRequest discoverProtectableItemRequest, @HeaderParam("Accept") String accept, Context context); @@ -123,19 +123,31 @@ Mono>> discoverProtectableItem(@HostParam("$host") Str @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> delete(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, Context context); + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/switchClusterProtection") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> switchClusterProtection(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, + @PathParam("protectionContainerName") String protectionContainerName, + @BodyParam("application/json") SwitchClusterProtectionInput switchInput, + @HeaderParam("Accept") String accept, Context context); + @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/switchprotection") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> switchProtection(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @BodyParam("application/json") SwitchProtectionInput switchInput, @HeaderParam("Accept") String accept, Context context); @@ -145,9 +157,9 @@ Mono>> switchProtection(@HostParam("$host") String end @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> list(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @@ -171,8 +183,8 @@ Mono> listNext( * * Lists the protection containers in the specified fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -181,19 +193,19 @@ Mono> listNext( * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByReplicationFabricsSinglePageAsync(String resourceName, - String resourceGroupName, String fabricName) { + private Mono> + listByReplicationFabricsSinglePageAsync(String resourceGroupName, String resourceName, String fabricName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -205,7 +217,7 @@ private Mono> listByReplicationFabricsSi return FluxUtil .withContext( context -> service.listByReplicationFabrics(this.client.getEndpoint(), this.client.getApiVersion(), - resourceName, resourceGroupName, this.client.getSubscriptionId(), fabricName, accept, context)) + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -216,8 +228,8 @@ private Mono> listByReplicationFabricsSi * * Lists the protection containers in the specified fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -227,19 +239,19 @@ private Mono> listByReplicationFabricsSi * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByReplicationFabricsSinglePageAsync(String resourceName, - String resourceGroupName, String fabricName, Context context) { + private Mono> listByReplicationFabricsSinglePageAsync( + String resourceGroupName, String resourceName, String fabricName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -250,8 +262,8 @@ private Mono> listByReplicationFabricsSi final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByReplicationFabrics(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, accept, context) + .listByReplicationFabrics(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), fabricName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -261,8 +273,8 @@ private Mono> listByReplicationFabricsSi * * Lists the protection containers in the specified fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -270,10 +282,10 @@ private Mono> listByReplicationFabricsSi * @return protection Container collection as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByReplicationFabricsAsync(String resourceName, - String resourceGroupName, String fabricName) { + private PagedFlux listByReplicationFabricsAsync(String resourceGroupName, + String resourceName, String fabricName) { return new PagedFlux<>( - () -> listByReplicationFabricsSinglePageAsync(resourceName, resourceGroupName, fabricName), + () -> listByReplicationFabricsSinglePageAsync(resourceGroupName, resourceName, fabricName), nextLink -> listByReplicationFabricsNextSinglePageAsync(nextLink)); } @@ -282,8 +294,8 @@ private PagedFlux listByReplicationFabricsAsync(String * * Lists the protection containers in the specified fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -292,10 +304,10 @@ private PagedFlux listByReplicationFabricsAsync(String * @return protection Container collection as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByReplicationFabricsAsync(String resourceName, - String resourceGroupName, String fabricName, Context context) { + private PagedFlux listByReplicationFabricsAsync(String resourceGroupName, + String resourceName, String fabricName, Context context) { return new PagedFlux<>( - () -> listByReplicationFabricsSinglePageAsync(resourceName, resourceGroupName, fabricName, context), + () -> listByReplicationFabricsSinglePageAsync(resourceGroupName, resourceName, fabricName, context), nextLink -> listByReplicationFabricsNextSinglePageAsync(nextLink, context)); } @@ -304,8 +316,8 @@ private PagedFlux listByReplicationFabricsAsync(String * * Lists the protection containers in the specified fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -313,9 +325,9 @@ private PagedFlux listByReplicationFabricsAsync(String * @return protection Container collection as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByReplicationFabrics(String resourceName, - String resourceGroupName, String fabricName) { - return new PagedIterable<>(listByReplicationFabricsAsync(resourceName, resourceGroupName, fabricName)); + public PagedIterable listByReplicationFabrics(String resourceGroupName, + String resourceName, String fabricName) { + return new PagedIterable<>(listByReplicationFabricsAsync(resourceGroupName, resourceName, fabricName)); } /** @@ -323,8 +335,8 @@ public PagedIterable listByReplicationFabrics(String r * * Lists the protection containers in the specified fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -333,9 +345,9 @@ public PagedIterable listByReplicationFabrics(String r * @return protection Container collection as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByReplicationFabrics(String resourceName, - String resourceGroupName, String fabricName, Context context) { - return new PagedIterable<>(listByReplicationFabricsAsync(resourceName, resourceGroupName, fabricName, context)); + public PagedIterable listByReplicationFabrics(String resourceGroupName, + String resourceName, String fabricName, Context context) { + return new PagedIterable<>(listByReplicationFabricsAsync(resourceGroupName, resourceName, fabricName, context)); } /** @@ -343,8 +355,8 @@ public PagedIterable listByReplicationFabrics(String r * * Gets the details of a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -354,19 +366,19 @@ public PagedIterable listByReplicationFabrics(String r * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceName, String resourceGroupName, + private Mono> getWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -380,9 +392,9 @@ private Mono> getWithResponseAsync(String res } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -391,8 +403,8 @@ private Mono> getWithResponseAsync(String res * * Gets the details of a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param context The context to associate with this operation. @@ -403,19 +415,19 @@ private Mono> getWithResponseAsync(String res * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceName, String resourceGroupName, + private Mono> getWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -429,7 +441,7 @@ private Mono> getWithResponseAsync(String res } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, accept, context); } @@ -438,8 +450,8 @@ private Mono> getWithResponseAsync(String res * * Gets the details of a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -448,9 +460,9 @@ private Mono> getWithResponseAsync(String res * @return the details of a protection container on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono getAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName) { - return getWithResponseAsync(resourceName, resourceGroupName, fabricName, protectionContainerName) + return getWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } @@ -459,8 +471,8 @@ private Mono getAsync(String resourceName, String reso * * Gets the details of a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param context The context to associate with this operation. @@ -470,9 +482,9 @@ private Mono getAsync(String resourceName, String reso * @return the details of a protection container along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceName, String resourceGroupName, + public Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, Context context) { - return getWithResponseAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, context) + return getWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, context) .block(); } @@ -481,8 +493,8 @@ public Response getWithResponse(String resourceName, S * * Gets the details of a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -491,9 +503,9 @@ public Response getWithResponse(String resourceName, S * @return the details of a protection container. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ProtectionContainerInner get(String resourceName, String resourceGroupName, String fabricName, + public ProtectionContainerInner get(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName) { - return getWithResponse(resourceName, resourceGroupName, fabricName, protectionContainerName, Context.NONE) + return getWithResponse(resourceGroupName, resourceName, fabricName, protectionContainerName, Context.NONE) .getValue(); } @@ -502,8 +514,8 @@ public ProtectionContainerInner get(String resourceName, String resourceGroupNam * * Operation to create a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric ARM name. * @param protectionContainerName Unique protection container ARM name. * @param creationInput Creation input. @@ -513,19 +525,19 @@ public ProtectionContainerInner get(String resourceName, String resourceGroupNam * @return protection container details along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> createWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, CreateProtectionContainerInput creationInput) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -544,9 +556,9 @@ private Mono>> createWithResponseAsync(String resource } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, creationInput, - accept, context)) + .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + creationInput, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -555,8 +567,8 @@ private Mono>> createWithResponseAsync(String resource * * Operation to create a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric ARM name. * @param protectionContainerName Unique protection container ARM name. * @param creationInput Creation input. @@ -567,20 +579,20 @@ private Mono>> createWithResponseAsync(String resource * @return protection container details along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> createWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, CreateProtectionContainerInput creationInput, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -599,7 +611,7 @@ private Mono>> createWithResponseAsync(String resource } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.create(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.create(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, creationInput, accept, context); } @@ -608,8 +620,8 @@ private Mono>> createWithResponseAsync(String resource * * Operation to create a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric ARM name. * @param protectionContainerName Unique protection container ARM name. * @param creationInput Creation input. @@ -620,9 +632,9 @@ private Mono>> createWithResponseAsync(String resource */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ProtectionContainerInner> beginCreateAsync( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, CreateProtectionContainerInput creationInput) { - Mono>> mono = createWithResponseAsync(resourceName, resourceGroupName, fabricName, + Mono>> mono = createWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, creationInput); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ProtectionContainerInner.class, ProtectionContainerInner.class, @@ -634,8 +646,8 @@ private PollerFlux, ProtectionContainerInne * * Operation to create a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric ARM name. * @param protectionContainerName Unique protection container ARM name. * @param creationInput Creation input. @@ -647,10 +659,10 @@ private PollerFlux, ProtectionContainerInne */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ProtectionContainerInner> beginCreateAsync( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, CreateProtectionContainerInput creationInput, Context context) { context = this.client.mergeContext(context); - Mono>> mono = createWithResponseAsync(resourceName, resourceGroupName, fabricName, + Mono>> mono = createWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, creationInput, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ProtectionContainerInner.class, ProtectionContainerInner.class, context); @@ -661,8 +673,8 @@ private PollerFlux, ProtectionContainerInne * * Operation to create a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric ARM name. * @param protectionContainerName Unique protection container ARM name. * @param creationInput Creation input. @@ -672,11 +684,11 @@ private PollerFlux, ProtectionContainerInne * @return the {@link SyncPoller} for polling of protection container details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ProtectionContainerInner> beginCreate(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, + public SyncPoller, ProtectionContainerInner> beginCreate( + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, CreateProtectionContainerInput creationInput) { return this - .beginCreateAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, creationInput) + .beginCreateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, creationInput) .getSyncPoller(); } @@ -685,8 +697,8 @@ public SyncPoller, ProtectionContainerInner * * Operation to create a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric ARM name. * @param protectionContainerName Unique protection container ARM name. * @param creationInput Creation input. @@ -697,11 +709,11 @@ public SyncPoller, ProtectionContainerInner * @return the {@link SyncPoller} for polling of protection container details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ProtectionContainerInner> beginCreate(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, + public SyncPoller, ProtectionContainerInner> beginCreate( + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, CreateProtectionContainerInput creationInput, Context context) { return this - .beginCreateAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, creationInput, + .beginCreateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, creationInput, context) .getSyncPoller(); } @@ -711,8 +723,8 @@ public SyncPoller, ProtectionContainerInner * * Operation to create a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric ARM name. * @param protectionContainerName Unique protection container ARM name. * @param creationInput Creation input. @@ -722,9 +734,9 @@ public SyncPoller, ProtectionContainerInner * @return protection container details on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono createAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, CreateProtectionContainerInput creationInput) { - return beginCreateAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, creationInput) + return beginCreateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, creationInput) .last() .flatMap(this.client::getLroFinalResultOrError); } @@ -734,8 +746,8 @@ private Mono createAsync(String resourceName, String r * * Operation to create a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric ARM name. * @param protectionContainerName Unique protection container ARM name. * @param creationInput Creation input. @@ -746,9 +758,9 @@ private Mono createAsync(String resourceName, String r * @return protection container details on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono createAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, CreateProtectionContainerInput creationInput, Context context) { - return beginCreateAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, creationInput, + return beginCreateAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, creationInput, context).last().flatMap(this.client::getLroFinalResultOrError); } @@ -757,8 +769,8 @@ private Mono createAsync(String resourceName, String r * * Operation to create a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric ARM name. * @param protectionContainerName Unique protection container ARM name. * @param creationInput Creation input. @@ -768,9 +780,9 @@ private Mono createAsync(String resourceName, String r * @return protection container details. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ProtectionContainerInner create(String resourceName, String resourceGroupName, String fabricName, + public ProtectionContainerInner create(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, CreateProtectionContainerInput creationInput) { - return createAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, creationInput).block(); + return createAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, creationInput).block(); } /** @@ -778,8 +790,8 @@ public ProtectionContainerInner create(String resourceName, String resourceGroup * * Operation to create a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric ARM name. * @param protectionContainerName Unique protection container ARM name. * @param creationInput Creation input. @@ -790,9 +802,9 @@ public ProtectionContainerInner create(String resourceName, String resourceGroup * @return protection container details. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ProtectionContainerInner create(String resourceName, String resourceGroupName, String fabricName, + public ProtectionContainerInner create(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, CreateProtectionContainerInput creationInput, Context context) { - return createAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, creationInput, context) + return createAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, creationInput, context) .block(); } @@ -801,8 +813,8 @@ public ProtectionContainerInner create(String resourceName, String resourceGroup * * The operation to a add a protectable item to a protection container(Add physical server). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric. * @param protectionContainerName The name of the protection container. * @param discoverProtectableItemRequest The request object to add a protectable item. @@ -812,20 +824,20 @@ public ProtectionContainerInner create(String resourceName, String resourceGroup * @return protection container details along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> discoverProtectableItemWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, + private Mono>> discoverProtectableItemWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, DiscoverProtectableItemRequest discoverProtectableItemRequest) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -846,7 +858,7 @@ private Mono>> discoverProtectableItemWithResponseAsyn final String accept = "application/json"; return FluxUtil .withContext(context -> service.discoverProtectableItem(this.client.getEndpoint(), - this.client.getApiVersion(), resourceName, resourceGroupName, this.client.getSubscriptionId(), + this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, discoverProtectableItemRequest, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -856,8 +868,8 @@ private Mono>> discoverProtectableItemWithResponseAsyn * * The operation to a add a protectable item to a protection container(Add physical server). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric. * @param protectionContainerName The name of the protection container. * @param discoverProtectableItemRequest The request object to add a protectable item. @@ -868,20 +880,20 @@ private Mono>> discoverProtectableItemWithResponseAsyn * @return protection container details along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> discoverProtectableItemWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, + private Mono>> discoverProtectableItemWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, DiscoverProtectableItemRequest discoverProtectableItemRequest, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -901,8 +913,8 @@ private Mono>> discoverProtectableItemWithResponseAsyn } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.discoverProtectableItem(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + return service.discoverProtectableItem(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, discoverProtectableItemRequest, accept, context); } @@ -911,8 +923,8 @@ private Mono>> discoverProtectableItemWithResponseAsyn * * The operation to a add a protectable item to a protection container(Add physical server). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric. * @param protectionContainerName The name of the protection container. * @param discoverProtectableItemRequest The request object to add a protectable item. @@ -923,10 +935,10 @@ private Mono>> discoverProtectableItemWithResponseAsyn */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ProtectionContainerInner> - beginDiscoverProtectableItemAsync(String resourceName, String resourceGroupName, String fabricName, + beginDiscoverProtectableItemAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, DiscoverProtectableItemRequest discoverProtectableItemRequest) { - Mono>> mono = discoverProtectableItemWithResponseAsync(resourceName, - resourceGroupName, fabricName, protectionContainerName, discoverProtectableItemRequest); + Mono>> mono = discoverProtectableItemWithResponseAsync(resourceGroupName, + resourceName, fabricName, protectionContainerName, discoverProtectableItemRequest); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ProtectionContainerInner.class, ProtectionContainerInner.class, this.client.getContext()); @@ -937,8 +949,8 @@ private Mono>> discoverProtectableItemWithResponseAsyn * * The operation to a add a protectable item to a protection container(Add physical server). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric. * @param protectionContainerName The name of the protection container. * @param discoverProtectableItemRequest The request object to add a protectable item. @@ -950,12 +962,12 @@ private Mono>> discoverProtectableItemWithResponseAsyn */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ProtectionContainerInner> - beginDiscoverProtectableItemAsync(String resourceName, String resourceGroupName, String fabricName, + beginDiscoverProtectableItemAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, DiscoverProtectableItemRequest discoverProtectableItemRequest, Context context) { context = this.client.mergeContext(context); - Mono>> mono = discoverProtectableItemWithResponseAsync(resourceName, - resourceGroupName, fabricName, protectionContainerName, discoverProtectableItemRequest, context); + Mono>> mono = discoverProtectableItemWithResponseAsync(resourceGroupName, + resourceName, fabricName, protectionContainerName, discoverProtectableItemRequest, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ProtectionContainerInner.class, ProtectionContainerInner.class, context); } @@ -965,8 +977,8 @@ private Mono>> discoverProtectableItemWithResponseAsyn * * The operation to a add a protectable item to a protection container(Add physical server). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric. * @param protectionContainerName The name of the protection container. * @param discoverProtectableItemRequest The request object to add a protectable item. @@ -977,10 +989,10 @@ private Mono>> discoverProtectableItemWithResponseAsyn */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ProtectionContainerInner> beginDiscoverProtectableItem( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, DiscoverProtectableItemRequest discoverProtectableItemRequest) { return this - .beginDiscoverProtectableItemAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginDiscoverProtectableItemAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, discoverProtectableItemRequest) .getSyncPoller(); } @@ -990,8 +1002,8 @@ public SyncPoller, ProtectionContainerInner * * The operation to a add a protectable item to a protection container(Add physical server). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric. * @param protectionContainerName The name of the protection container. * @param discoverProtectableItemRequest The request object to add a protectable item. @@ -1003,10 +1015,10 @@ public SyncPoller, ProtectionContainerInner */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ProtectionContainerInner> beginDiscoverProtectableItem( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, DiscoverProtectableItemRequest discoverProtectableItemRequest, Context context) { return this - .beginDiscoverProtectableItemAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginDiscoverProtectableItemAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, discoverProtectableItemRequest, context) .getSyncPoller(); } @@ -1016,8 +1028,8 @@ public SyncPoller, ProtectionContainerInner * * The operation to a add a protectable item to a protection container(Add physical server). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric. * @param protectionContainerName The name of the protection container. * @param discoverProtectableItemRequest The request object to add a protectable item. @@ -1027,10 +1039,10 @@ public SyncPoller, ProtectionContainerInner * @return protection container details on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono discoverProtectableItemAsync(String resourceName, String resourceGroupName, + private Mono discoverProtectableItemAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, DiscoverProtectableItemRequest discoverProtectableItemRequest) { - return beginDiscoverProtectableItemAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginDiscoverProtectableItemAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, discoverProtectableItemRequest).last().flatMap(this.client::getLroFinalResultOrError); } @@ -1039,8 +1051,8 @@ private Mono discoverProtectableItemAsync(String resou * * The operation to a add a protectable item to a protection container(Add physical server). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric. * @param protectionContainerName The name of the protection container. * @param discoverProtectableItemRequest The request object to add a protectable item. @@ -1051,10 +1063,10 @@ private Mono discoverProtectableItemAsync(String resou * @return protection container details on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono discoverProtectableItemAsync(String resourceName, String resourceGroupName, + private Mono discoverProtectableItemAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, DiscoverProtectableItemRequest discoverProtectableItemRequest, Context context) { - return beginDiscoverProtectableItemAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginDiscoverProtectableItemAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, discoverProtectableItemRequest, context).last().flatMap(this.client::getLroFinalResultOrError); } @@ -1063,8 +1075,8 @@ private Mono discoverProtectableItemAsync(String resou * * The operation to a add a protectable item to a protection container(Add physical server). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric. * @param protectionContainerName The name of the protection container. * @param discoverProtectableItemRequest The request object to add a protectable item. @@ -1074,10 +1086,10 @@ private Mono discoverProtectableItemAsync(String resou * @return protection container details. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ProtectionContainerInner discoverProtectableItem(String resourceName, String resourceGroupName, + public ProtectionContainerInner discoverProtectableItem(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, DiscoverProtectableItemRequest discoverProtectableItemRequest) { - return discoverProtectableItemAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return discoverProtectableItemAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, discoverProtectableItemRequest).block(); } @@ -1086,8 +1098,8 @@ public ProtectionContainerInner discoverProtectableItem(String resourceName, Str * * The operation to a add a protectable item to a protection container(Add physical server). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric. * @param protectionContainerName The name of the protection container. * @param discoverProtectableItemRequest The request object to add a protectable item. @@ -1098,10 +1110,10 @@ public ProtectionContainerInner discoverProtectableItem(String resourceName, Str * @return protection container details. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ProtectionContainerInner discoverProtectableItem(String resourceName, String resourceGroupName, + public ProtectionContainerInner discoverProtectableItem(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, DiscoverProtectableItemRequest discoverProtectableItemRequest, Context context) { - return discoverProtectableItemAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return discoverProtectableItemAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, discoverProtectableItemRequest, context).block(); } @@ -1110,8 +1122,8 @@ public ProtectionContainerInner discoverProtectableItem(String resourceName, Str * * Operation to remove a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric ARM name. * @param protectionContainerName Unique protection container ARM name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1120,19 +1132,19 @@ public ProtectionContainerInner discoverProtectableItem(String resourceName, Str * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1145,8 +1157,9 @@ private Mono>> deleteWithResponseAsync(String resource new IllegalArgumentException("Parameter protectionContainerName is required and cannot be null.")); } return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, context)) + .withContext( + context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1155,8 +1168,8 @@ private Mono>> deleteWithResponseAsync(String resource * * Operation to remove a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric ARM name. * @param protectionContainerName Unique protection container ARM name. * @param context The context to associate with this operation. @@ -1166,19 +1179,19 @@ private Mono>> deleteWithResponseAsync(String resource * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1191,7 +1204,7 @@ private Mono>> deleteWithResponseAsync(String resource new IllegalArgumentException("Parameter protectionContainerName is required and cannot be null.")); } context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, context); } @@ -1200,8 +1213,8 @@ private Mono>> deleteWithResponseAsync(String resource * * Operation to remove a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric ARM name. * @param protectionContainerName Unique protection container ARM name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1210,10 +1223,10 @@ private Mono>> deleteWithResponseAsync(String resource * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceName, String resourceGroupName, + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName) { Mono>> mono - = deleteWithResponseAsync(resourceName, resourceGroupName, fabricName, protectionContainerName); + = deleteWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } @@ -1223,8 +1236,8 @@ private PollerFlux, Void> beginDeleteAsync(String resourceName, * * Operation to remove a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric ARM name. * @param protectionContainerName Unique protection container ARM name. * @param context The context to associate with this operation. @@ -1234,11 +1247,11 @@ private PollerFlux, Void> beginDeleteAsync(String resourceName, * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceName, String resourceGroupName, + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, Context context) { context = this.client.mergeContext(context); Mono>> mono - = deleteWithResponseAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, context); + = deleteWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); } @@ -1248,8 +1261,8 @@ private PollerFlux, Void> beginDeleteAsync(String resourceName, * * Operation to remove a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric ARM name. * @param protectionContainerName Unique protection container ARM name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1258,9 +1271,9 @@ private PollerFlux, Void> beginDeleteAsync(String resourceName, * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceName, String resourceGroupName, + public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName) { - return this.beginDeleteAsync(resourceName, resourceGroupName, fabricName, protectionContainerName) + return this.beginDeleteAsync(resourceGroupName, resourceName, fabricName, protectionContainerName) .getSyncPoller(); } @@ -1269,8 +1282,8 @@ public SyncPoller, Void> beginDelete(String resourceName, Strin * * Operation to remove a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric ARM name. * @param protectionContainerName Unique protection container ARM name. * @param context The context to associate with this operation. @@ -1280,9 +1293,9 @@ public SyncPoller, Void> beginDelete(String resourceName, Strin * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceName, String resourceGroupName, + public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, Context context) { - return this.beginDeleteAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, context) + return this.beginDeleteAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, context) .getSyncPoller(); } @@ -1291,8 +1304,8 @@ public SyncPoller, Void> beginDelete(String resourceName, Strin * * Operation to remove a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric ARM name. * @param protectionContainerName Unique protection container ARM name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1301,9 +1314,9 @@ public SyncPoller, Void> beginDelete(String resourceName, Strin * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono deleteAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName) { - return beginDeleteAsync(resourceName, resourceGroupName, fabricName, protectionContainerName).last() + return beginDeleteAsync(resourceGroupName, resourceName, fabricName, protectionContainerName).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1312,8 +1325,8 @@ private Mono deleteAsync(String resourceName, String resourceGroupName, St * * Operation to remove a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric ARM name. * @param protectionContainerName Unique protection container ARM name. * @param context The context to associate with this operation. @@ -1323,9 +1336,9 @@ private Mono deleteAsync(String resourceName, String resourceGroupName, St * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono deleteAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, Context context) { - return beginDeleteAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, context).last() + return beginDeleteAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1334,8 +1347,8 @@ private Mono deleteAsync(String resourceName, String resourceGroupName, St * * Operation to remove a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric ARM name. * @param protectionContainerName Unique protection container ARM name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1343,9 +1356,9 @@ private Mono deleteAsync(String resourceName, String resourceGroupName, St * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceName, String resourceGroupName, String fabricName, + public void delete(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName) { - deleteAsync(resourceName, resourceGroupName, fabricName, protectionContainerName).block(); + deleteAsync(resourceGroupName, resourceName, fabricName, protectionContainerName).block(); } /** @@ -1353,8 +1366,8 @@ public void delete(String resourceName, String resourceGroupName, String fabricN * * Operation to remove a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric ARM name. * @param protectionContainerName Unique protection container ARM name. * @param context The context to associate with this operation. @@ -1363,41 +1376,342 @@ public void delete(String resourceName, String resourceGroupName, String fabricN * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + public void delete(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, Context context) { - deleteAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, context).block(); + deleteAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, context).block(); } /** - * Switches protection from one container to another or one replication provider to another. + * Switches protection from one container to another. * - * Operation to switch protection from one container to another or one replication provider to another. + * Operation to switch protection from one container to another. * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param switchInput Switch protection input. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return protection container details along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> switchClusterProtectionWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, + SwitchClusterProtectionInput switchInput) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (fabricName == null) { + return Mono.error(new IllegalArgumentException("Parameter fabricName is required and cannot be null.")); + } + if (protectionContainerName == null) { + return Mono.error( + new IllegalArgumentException("Parameter protectionContainerName is required and cannot be null.")); + } + if (switchInput == null) { + return Mono.error(new IllegalArgumentException("Parameter switchInput is required and cannot be null.")); + } else { + switchInput.validate(); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.switchClusterProtection(this.client.getEndpoint(), + this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), + fabricName, protectionContainerName, switchInput, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Switches protection from one container to another. + * + * Operation to switch protection from one container to another. + * * @param resourceGroupName The name of the resource group where the recovery services vault is present. - * @param fabricName Unique fabric name. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param switchInput Switch protection input. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return protection container details along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> switchProtectionWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, - SwitchProtectionInput switchInput) { + private Mono>> switchClusterProtectionWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, + SwitchClusterProtectionInput switchInput, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (fabricName == null) { + return Mono.error(new IllegalArgumentException("Parameter fabricName is required and cannot be null.")); + } + if (protectionContainerName == null) { + return Mono.error( + new IllegalArgumentException("Parameter protectionContainerName is required and cannot be null.")); + } + if (switchInput == null) { + return Mono.error(new IllegalArgumentException("Parameter switchInput is required and cannot be null.")); + } else { + switchInput.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.switchClusterProtection(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + switchInput, accept, context); + } + + /** + * Switches protection from one container to another. + * + * Operation to switch protection from one container to another. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param switchInput Switch protection input. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of protection container details. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, ProtectionContainerInner> + beginSwitchClusterProtectionAsync(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, SwitchClusterProtectionInput switchInput) { + Mono>> mono = switchClusterProtectionWithResponseAsync(resourceGroupName, + resourceName, fabricName, protectionContainerName, switchInput); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), ProtectionContainerInner.class, ProtectionContainerInner.class, + this.client.getContext()); + } + + /** + * Switches protection from one container to another. + * + * Operation to switch protection from one container to another. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param switchInput Switch protection input. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of protection container details. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, ProtectionContainerInner> + beginSwitchClusterProtectionAsync(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, SwitchClusterProtectionInput switchInput, Context context) { + context = this.client.mergeContext(context); + Mono>> mono = switchClusterProtectionWithResponseAsync(resourceGroupName, + resourceName, fabricName, protectionContainerName, switchInput, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), ProtectionContainerInner.class, ProtectionContainerInner.class, context); + } + + /** + * Switches protection from one container to another. + * + * Operation to switch protection from one container to another. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param switchInput Switch protection input. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of protection container details. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ProtectionContainerInner> beginSwitchClusterProtection( + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, + SwitchClusterProtectionInput switchInput) { + return this + .beginSwitchClusterProtectionAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + switchInput) + .getSyncPoller(); + } + + /** + * Switches protection from one container to another. + * + * Operation to switch protection from one container to another. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param switchInput Switch protection input. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of protection container details. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ProtectionContainerInner> beginSwitchClusterProtection( + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, + SwitchClusterProtectionInput switchInput, Context context) { + return this + .beginSwitchClusterProtectionAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + switchInput, context) + .getSyncPoller(); + } + + /** + * Switches protection from one container to another. + * + * Operation to switch protection from one container to another. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param switchInput Switch protection input. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return protection container details on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono switchClusterProtectionAsync(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, SwitchClusterProtectionInput switchInput) { + return beginSwitchClusterProtectionAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + switchInput).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Switches protection from one container to another. + * + * Operation to switch protection from one container to another. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param switchInput Switch protection input. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return protection container details on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono switchClusterProtectionAsync(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, SwitchClusterProtectionInput switchInput, Context context) { + return beginSwitchClusterProtectionAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + switchInput, context).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Switches protection from one container to another. + * + * Operation to switch protection from one container to another. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param switchInput Switch protection input. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return protection container details. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ProtectionContainerInner switchClusterProtection(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, SwitchClusterProtectionInput switchInput) { + return switchClusterProtectionAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + switchInput).block(); + } + + /** + * Switches protection from one container to another. + * + * Operation to switch protection from one container to another. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param switchInput Switch protection input. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return protection container details. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ProtectionContainerInner switchClusterProtection(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, SwitchClusterProtectionInput switchInput, Context context) { + return switchClusterProtectionAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, + switchInput, context).block(); + } + + /** + * Switches protection from one container to another or one replication provider to another. + * + * Operation to switch protection from one container to another or one replication provider to another. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Unique fabric name. + * @param protectionContainerName Protection container name. + * @param switchInput Switch protection input. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return protection container details along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> switchProtectionWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, SwitchProtectionInput switchInput) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1417,7 +1731,7 @@ private Mono>> switchProtectionWithResponseAsync(Strin final String accept = "application/json"; return FluxUtil .withContext(context -> service.switchProtection(this.client.getEndpoint(), this.client.getApiVersion(), - resourceName, resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, switchInput, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1427,8 +1741,8 @@ private Mono>> switchProtectionWithResponseAsync(Strin * * Operation to switch protection from one container to another or one replication provider to another. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param switchInput Switch protection input. @@ -1439,20 +1753,20 @@ private Mono>> switchProtectionWithResponseAsync(Strin * @return protection container details along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> switchProtectionWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, SwitchProtectionInput switchInput, + private Mono>> switchProtectionWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, SwitchProtectionInput switchInput, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1471,9 +1785,9 @@ private Mono>> switchProtectionWithResponseAsync(Strin } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.switchProtection(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, switchInput, - accept, context); + return service.switchProtection(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, switchInput, accept, + context); } /** @@ -1481,8 +1795,8 @@ private Mono>> switchProtectionWithResponseAsync(Strin * * Operation to switch protection from one container to another or one replication provider to another. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param switchInput Switch protection input. @@ -1493,9 +1807,9 @@ private Mono>> switchProtectionWithResponseAsync(Strin */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ProtectionContainerInner> beginSwitchProtectionAsync( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, SwitchProtectionInput switchInput) { - Mono>> mono = switchProtectionWithResponseAsync(resourceName, resourceGroupName, + Mono>> mono = switchProtectionWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, switchInput); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ProtectionContainerInner.class, ProtectionContainerInner.class, @@ -1507,8 +1821,8 @@ private PollerFlux, ProtectionContainerInne * * Operation to switch protection from one container to another or one replication provider to another. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param switchInput Switch protection input. @@ -1520,10 +1834,10 @@ private PollerFlux, ProtectionContainerInne */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ProtectionContainerInner> beginSwitchProtectionAsync( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, SwitchProtectionInput switchInput, Context context) { context = this.client.mergeContext(context); - Mono>> mono = switchProtectionWithResponseAsync(resourceName, resourceGroupName, + Mono>> mono = switchProtectionWithResponseAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, switchInput, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ProtectionContainerInner.class, ProtectionContainerInner.class, context); @@ -1534,8 +1848,8 @@ private PollerFlux, ProtectionContainerInne * * Operation to switch protection from one container to another or one replication provider to another. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param switchInput Switch protection input. @@ -1546,10 +1860,10 @@ private PollerFlux, ProtectionContainerInne */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ProtectionContainerInner> beginSwitchProtection( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, SwitchProtectionInput switchInput) { return this - .beginSwitchProtectionAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginSwitchProtectionAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, switchInput) .getSyncPoller(); } @@ -1559,8 +1873,8 @@ public SyncPoller, ProtectionContainerInner * * Operation to switch protection from one container to another or one replication provider to another. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param switchInput Switch protection input. @@ -1572,10 +1886,10 @@ public SyncPoller, ProtectionContainerInner */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ProtectionContainerInner> beginSwitchProtection( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, SwitchProtectionInput switchInput, Context context) { return this - .beginSwitchProtectionAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + .beginSwitchProtectionAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, switchInput, context) .getSyncPoller(); } @@ -1585,8 +1899,8 @@ public SyncPoller, ProtectionContainerInner * * Operation to switch protection from one container to another or one replication provider to another. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param switchInput Switch protection input. @@ -1596,9 +1910,9 @@ public SyncPoller, ProtectionContainerInner * @return protection container details on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono switchProtectionAsync(String resourceName, String resourceGroupName, + private Mono switchProtectionAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, SwitchProtectionInput switchInput) { - return beginSwitchProtectionAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginSwitchProtectionAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, switchInput).last().flatMap(this.client::getLroFinalResultOrError); } @@ -1607,8 +1921,8 @@ private Mono switchProtectionAsync(String resourceName * * Operation to switch protection from one container to another or one replication provider to another. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param switchInput Switch protection input. @@ -1619,9 +1933,9 @@ private Mono switchProtectionAsync(String resourceName * @return protection container details on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono switchProtectionAsync(String resourceName, String resourceGroupName, + private Mono switchProtectionAsync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, SwitchProtectionInput switchInput, Context context) { - return beginSwitchProtectionAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, + return beginSwitchProtectionAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, switchInput, context).last().flatMap(this.client::getLroFinalResultOrError); } @@ -1630,8 +1944,8 @@ private Mono switchProtectionAsync(String resourceName * * Operation to switch protection from one container to another or one replication provider to another. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param switchInput Switch protection input. @@ -1641,9 +1955,9 @@ private Mono switchProtectionAsync(String resourceName * @return protection container details. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ProtectionContainerInner switchProtection(String resourceName, String resourceGroupName, String fabricName, + public ProtectionContainerInner switchProtection(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, SwitchProtectionInput switchInput) { - return switchProtectionAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, switchInput) + return switchProtectionAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, switchInput) .block(); } @@ -1652,8 +1966,8 @@ public ProtectionContainerInner switchProtection(String resourceName, String res * * Operation to switch protection from one container to another or one replication provider to another. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param switchInput Switch protection input. @@ -1664,9 +1978,9 @@ public ProtectionContainerInner switchProtection(String resourceName, String res * @return protection container details. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ProtectionContainerInner switchProtection(String resourceName, String resourceGroupName, String fabricName, + public ProtectionContainerInner switchProtection(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, SwitchProtectionInput switchInput, Context context) { - return switchProtectionAsync(resourceName, resourceGroupName, fabricName, protectionContainerName, switchInput, + return switchProtectionAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, switchInput, context).block(); } @@ -1675,8 +1989,8 @@ public ProtectionContainerInner switchProtection(String resourceName, String res * * Lists the protection containers in a vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1684,27 +1998,27 @@ public ProtectionContainerInner switchProtection(String resourceName, String res * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceName, - String resourceGroupName) { + private Mono> listSinglePageAsync(String resourceGroupName, + String resourceName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1715,8 +2029,8 @@ private Mono> listSinglePageAsync(String * * Lists the protection containers in a vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1725,19 +2039,19 @@ private Mono> listSinglePageAsync(String * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceName, - String resourceGroupName, Context context) { + private Mono> listSinglePageAsync(String resourceGroupName, + String resourceName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1745,7 +2059,7 @@ private Mono> listSinglePageAsync(String final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + .list(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); @@ -1756,16 +2070,16 @@ private Mono> listSinglePageAsync(String * * Lists the protection containers in a vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return protection Container collection as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceName, String resourceGroupName) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceName, resourceGroupName), + private PagedFlux listAsync(String resourceGroupName, String resourceName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName), nextLink -> listNextSinglePageAsync(nextLink)); } @@ -1774,8 +2088,8 @@ private PagedFlux listAsync(String resourceName, Strin * * Lists the protection containers in a vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1783,9 +2097,9 @@ private PagedFlux listAsync(String resourceName, Strin * @return protection Container collection as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceName, String resourceGroupName, + private PagedFlux listAsync(String resourceGroupName, String resourceName, Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceName, resourceGroupName, context), + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } @@ -1794,16 +2108,16 @@ private PagedFlux listAsync(String resourceName, Strin * * Lists the protection containers in a vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return protection Container collection as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceName, String resourceGroupName) { - return new PagedIterable<>(listAsync(resourceName, resourceGroupName)); + public PagedIterable list(String resourceGroupName, String resourceName) { + return new PagedIterable<>(listAsync(resourceGroupName, resourceName)); } /** @@ -1811,8 +2125,8 @@ public PagedIterable list(String resourceName, String * * Lists the protection containers in a vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1820,9 +2134,9 @@ public PagedIterable list(String resourceName, String * @return protection Container collection as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceName, String resourceGroupName, + public PagedIterable list(String resourceGroupName, String resourceName, Context context) { - return new PagedIterable<>(listAsync(resourceName, resourceGroupName, context)); + return new PagedIterable<>(listAsync(resourceGroupName, resourceName, context)); } /** diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectionContainersImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectionContainersImpl.java index 0332d11d8480..bd4f50e38fa8 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectionContainersImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectionContainersImpl.java @@ -14,6 +14,7 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.models.DiscoverProtectableItemRequest; import com.azure.resourcemanager.recoveryservicessiterecovery.models.ProtectionContainer; import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationProtectionContainers; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.SwitchClusterProtectionInput; import com.azure.resourcemanager.recoveryservicessiterecovery.models.SwitchProtectionInput; public final class ReplicationProtectionContainersImpl implements ReplicationProtectionContainers { @@ -29,24 +30,24 @@ public ReplicationProtectionContainersImpl(ReplicationProtectionContainersClient this.serviceManager = serviceManager; } - public PagedIterable listByReplicationFabrics(String resourceName, String resourceGroupName, + public PagedIterable listByReplicationFabrics(String resourceGroupName, String resourceName, String fabricName) { PagedIterable inner - = this.serviceClient().listByReplicationFabrics(resourceName, resourceGroupName, fabricName); + = this.serviceClient().listByReplicationFabrics(resourceGroupName, resourceName, fabricName); return ResourceManagerUtils.mapPage(inner, inner1 -> new ProtectionContainerImpl(inner1, this.manager())); } - public PagedIterable listByReplicationFabrics(String resourceName, String resourceGroupName, + public PagedIterable listByReplicationFabrics(String resourceGroupName, String resourceName, String fabricName, Context context) { PagedIterable inner - = this.serviceClient().listByReplicationFabrics(resourceName, resourceGroupName, fabricName, context); + = this.serviceClient().listByReplicationFabrics(resourceGroupName, resourceName, fabricName, context); return ResourceManagerUtils.mapPage(inner, inner1 -> new ProtectionContainerImpl(inner1, this.manager())); } - public Response getWithResponse(String resourceName, String resourceGroupName, + public Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, Context context) { Response inner = this.serviceClient() - .getWithResponse(resourceName, resourceGroupName, fabricName, protectionContainerName, context); + .getWithResponse(resourceGroupName, resourceName, fabricName, protectionContainerName, context); if (inner != null) { return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new ProtectionContainerImpl(inner.getValue(), this.manager())); @@ -55,10 +56,10 @@ public Response getWithResponse(String resourceName, String } } - public ProtectionContainer get(String resourceName, String resourceGroupName, String fabricName, + public ProtectionContainer get(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName) { ProtectionContainerInner inner - = this.serviceClient().get(resourceName, resourceGroupName, fabricName, protectionContainerName); + = this.serviceClient().get(resourceGroupName, resourceName, fabricName, protectionContainerName); if (inner != null) { return new ProtectionContainerImpl(inner, this.manager()); } else { @@ -66,10 +67,10 @@ public ProtectionContainer get(String resourceName, String resourceGroupName, St } } - public ProtectionContainer discoverProtectableItem(String resourceName, String resourceGroupName, String fabricName, + public ProtectionContainer discoverProtectableItem(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, DiscoverProtectableItemRequest discoverProtectableItemRequest) { ProtectionContainerInner inner = this.serviceClient() - .discoverProtectableItem(resourceName, resourceGroupName, fabricName, protectionContainerName, + .discoverProtectableItem(resourceGroupName, resourceName, fabricName, protectionContainerName, discoverProtectableItemRequest); if (inner != null) { return new ProtectionContainerImpl(inner, this.manager()); @@ -78,11 +79,11 @@ public ProtectionContainer discoverProtectableItem(String resourceName, String r } } - public ProtectionContainer discoverProtectableItem(String resourceName, String resourceGroupName, String fabricName, + public ProtectionContainer discoverProtectableItem(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, DiscoverProtectableItemRequest discoverProtectableItemRequest, Context context) { ProtectionContainerInner inner = this.serviceClient() - .discoverProtectableItem(resourceName, resourceGroupName, fabricName, protectionContainerName, + .discoverProtectableItem(resourceGroupName, resourceName, fabricName, protectionContainerName, discoverProtectableItemRequest, context); if (inner != null) { return new ProtectionContainerImpl(inner, this.manager()); @@ -91,20 +92,43 @@ public ProtectionContainer discoverProtectableItem(String resourceName, String r } } - public void delete(String resourceName, String resourceGroupName, String fabricName, + public void delete(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName) { - this.serviceClient().delete(resourceName, resourceGroupName, fabricName, protectionContainerName); + this.serviceClient().delete(resourceGroupName, resourceName, fabricName, protectionContainerName); } - public void delete(String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + public void delete(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, Context context) { - this.serviceClient().delete(resourceName, resourceGroupName, fabricName, protectionContainerName, context); + this.serviceClient().delete(resourceGroupName, resourceName, fabricName, protectionContainerName, context); } - public ProtectionContainer switchProtection(String resourceName, String resourceGroupName, String fabricName, + public ProtectionContainer switchClusterProtection(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, SwitchClusterProtectionInput switchInput) { + ProtectionContainerInner inner = this.serviceClient() + .switchClusterProtection(resourceGroupName, resourceName, fabricName, protectionContainerName, switchInput); + if (inner != null) { + return new ProtectionContainerImpl(inner, this.manager()); + } else { + return null; + } + } + + public ProtectionContainer switchClusterProtection(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, SwitchClusterProtectionInput switchInput, Context context) { + ProtectionContainerInner inner = this.serviceClient() + .switchClusterProtection(resourceGroupName, resourceName, fabricName, protectionContainerName, switchInput, + context); + if (inner != null) { + return new ProtectionContainerImpl(inner, this.manager()); + } else { + return null; + } + } + + public ProtectionContainer switchProtection(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, SwitchProtectionInput switchInput) { ProtectionContainerInner inner = this.serviceClient() - .switchProtection(resourceName, resourceGroupName, fabricName, protectionContainerName, switchInput); + .switchProtection(resourceGroupName, resourceName, fabricName, protectionContainerName, switchInput); if (inner != null) { return new ProtectionContainerImpl(inner, this.manager()); } else { @@ -112,10 +136,10 @@ public ProtectionContainer switchProtection(String resourceName, String resource } } - public ProtectionContainer switchProtection(String resourceName, String resourceGroupName, String fabricName, + public ProtectionContainer switchProtection(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, SwitchProtectionInput switchInput, Context context) { ProtectionContainerInner inner = this.serviceClient() - .switchProtection(resourceName, resourceGroupName, fabricName, protectionContainerName, switchInput, + .switchProtection(resourceGroupName, resourceName, fabricName, protectionContainerName, switchInput, context); if (inner != null) { return new ProtectionContainerImpl(inner, this.manager()); @@ -124,28 +148,28 @@ public ProtectionContainer switchProtection(String resourceName, String resource } } - public PagedIterable list(String resourceName, String resourceGroupName) { - PagedIterable inner = this.serviceClient().list(resourceName, resourceGroupName); + public PagedIterable list(String resourceGroupName, String resourceName) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, resourceName); return ResourceManagerUtils.mapPage(inner, inner1 -> new ProtectionContainerImpl(inner1, this.manager())); } - public PagedIterable list(String resourceName, String resourceGroupName, Context context) { + public PagedIterable list(String resourceGroupName, String resourceName, Context context) { PagedIterable inner - = this.serviceClient().list(resourceName, resourceGroupName, context); + = this.serviceClient().list(resourceGroupName, resourceName, context); return ResourceManagerUtils.mapPage(inner, inner1 -> new ProtectionContainerImpl(inner1, this.manager())); } public ProtectionContainer getById(String id) { - String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); - if (resourceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); - } String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); + if (resourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); + } String fabricName = ResourceManagerUtils.getValueFromIdByName(id, "replicationFabrics"); if (fabricName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( @@ -157,21 +181,21 @@ public ProtectionContainer getById(String id) { throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format( "The resource ID '%s' is not valid. Missing path segment 'replicationProtectionContainers'.", id))); } - return this.getWithResponse(resourceName, resourceGroupName, fabricName, protectionContainerName, Context.NONE) + return this.getWithResponse(resourceGroupName, resourceName, fabricName, protectionContainerName, Context.NONE) .getValue(); } public Response getByIdWithResponse(String id, Context context) { - String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); - if (resourceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); - } String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); + if (resourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); + } String fabricName = ResourceManagerUtils.getValueFromIdByName(id, "replicationFabrics"); if (fabricName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( @@ -183,7 +207,7 @@ public Response getByIdWithResponse(String id, Context cont throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format( "The resource ID '%s' is not valid. Missing path segment 'replicationProtectionContainers'.", id))); } - return this.getWithResponse(resourceName, resourceGroupName, fabricName, protectionContainerName, context); + return this.getWithResponse(resourceGroupName, resourceName, fabricName, protectionContainerName, context); } private ReplicationProtectionContainersClient serviceClient() { diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectionIntentImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectionIntentImpl.java index 91b6f291b066..ce6e5226eb9b 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectionIntentImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectionIntentImpl.java @@ -60,24 +60,24 @@ private com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManag return this.serviceManager; } - private String resourceName; - private String resourceGroupName; + private String resourceName; + private String intentObjectName; private CreateProtectionIntentInput createInput; - public ReplicationProtectionIntentImpl withExistingVault(String resourceName, String resourceGroupName) { - this.resourceName = resourceName; + public ReplicationProtectionIntentImpl withExistingVault(String resourceGroupName, String resourceName) { this.resourceGroupName = resourceGroupName; + this.resourceName = resourceName; return this; } public ReplicationProtectionIntent create() { this.innerObject = serviceManager.serviceClient() .getReplicationProtectionIntents() - .createWithResponse(resourceName, resourceGroupName, intentObjectName, createInput, Context.NONE) + .createWithResponse(resourceGroupName, resourceName, intentObjectName, createInput, Context.NONE) .getValue(); return this; } @@ -85,7 +85,7 @@ public ReplicationProtectionIntent create() { public ReplicationProtectionIntent create(Context context) { this.innerObject = serviceManager.serviceClient() .getReplicationProtectionIntents() - .createWithResponse(resourceName, resourceGroupName, intentObjectName, createInput, context) + .createWithResponse(resourceGroupName, resourceName, intentObjectName, createInput, context) .getValue(); return this; } @@ -101,7 +101,7 @@ public ReplicationProtectionIntent create(Context context) { public ReplicationProtectionIntent refresh() { this.innerObject = serviceManager.serviceClient() .getReplicationProtectionIntents() - .getWithResponse(resourceName, resourceGroupName, intentObjectName, Context.NONE) + .getWithResponse(resourceGroupName, resourceName, intentObjectName, Context.NONE) .getValue(); return this; } @@ -109,7 +109,7 @@ public ReplicationProtectionIntent refresh() { public ReplicationProtectionIntent refresh(Context context) { this.innerObject = serviceManager.serviceClient() .getReplicationProtectionIntents() - .getWithResponse(resourceName, resourceGroupName, intentObjectName, context) + .getWithResponse(resourceGroupName, resourceName, intentObjectName, context) .getValue(); return this; } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectionIntentsClientImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectionIntentsClientImpl.java index cd00a9bbbc45..2ed931e792f6 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectionIntentsClientImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectionIntentsClientImpl.java @@ -70,29 +70,29 @@ public interface ReplicationProtectionIntentsService { @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> list(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("skipToken") String skipToken, - @QueryParam("takeToken") String takeToken, @HeaderParam("Accept") String accept, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @QueryParam("skipToken") String skipToken, @QueryParam("takeToken") String takeToken, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationProtectionIntents/{intentObjectName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("intentObjectName") String intentObjectName, - @HeaderParam("Accept") String accept, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("intentObjectName") String intentObjectName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationProtectionIntents/{intentObjectName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> create(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("intentObjectName") String intentObjectName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("intentObjectName") String intentObjectName, @BodyParam("application/json") CreateProtectionIntentInput input, @HeaderParam("Accept") String accept, Context context); @@ -110,8 +110,8 @@ Mono> listNext( * * Gets the list of ASR replication protection intent objects in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param skipToken The pagination token. * @param takeToken The page size. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -121,27 +121,28 @@ Mono> listNext( * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceName, - String resourceGroupName, String skipToken, String takeToken) { + private Mono> listSinglePageAsync(String resourceGroupName, + String resourceName, String skipToken, String takeToken) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), skipToken, takeToken, accept, context)) + .withContext( + context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), skipToken, takeToken, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -152,8 +153,8 @@ private Mono> listSinglePageAsyn * * Gets the list of ASR replication protection intent objects in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param skipToken The pagination token. * @param takeToken The page size. * @param context The context to associate with this operation. @@ -164,19 +165,19 @@ private Mono> listSinglePageAsyn * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceName, - String resourceGroupName, String skipToken, String takeToken, Context context) { + private Mono> listSinglePageAsync(String resourceGroupName, + String resourceName, String skipToken, String takeToken, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -184,7 +185,7 @@ private Mono> listSinglePageAsyn final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + .list(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), skipToken, takeToken, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); @@ -195,8 +196,8 @@ private Mono> listSinglePageAsyn * * Gets the list of ASR replication protection intent objects in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param skipToken The pagination token. * @param takeToken The page size. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -206,9 +207,9 @@ private Mono> listSinglePageAsyn * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceName, String resourceGroupName, + private PagedFlux listAsync(String resourceGroupName, String resourceName, String skipToken, String takeToken) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceName, resourceGroupName, skipToken, takeToken), + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName, skipToken, takeToken), nextLink -> listNextSinglePageAsync(nextLink)); } @@ -217,8 +218,8 @@ private PagedFlux listAsync(String resourceNam * * Gets the list of ASR replication protection intent objects in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -226,10 +227,10 @@ private PagedFlux listAsync(String resourceNam * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceName, String resourceGroupName) { + private PagedFlux listAsync(String resourceGroupName, String resourceName) { final String skipToken = null; final String takeToken = null; - return new PagedFlux<>(() -> listSinglePageAsync(resourceName, resourceGroupName, skipToken, takeToken), + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName, skipToken, takeToken), nextLink -> listNextSinglePageAsync(nextLink)); } @@ -238,8 +239,8 @@ private PagedFlux listAsync(String resourceNam * * Gets the list of ASR replication protection intent objects in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param skipToken The pagination token. * @param takeToken The page size. * @param context The context to associate with this operation. @@ -250,10 +251,10 @@ private PagedFlux listAsync(String resourceNam * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceName, String resourceGroupName, + private PagedFlux listAsync(String resourceGroupName, String resourceName, String skipToken, String takeToken, Context context) { return new PagedFlux<>( - () -> listSinglePageAsync(resourceName, resourceGroupName, skipToken, takeToken, context), + () -> listSinglePageAsync(resourceGroupName, resourceName, skipToken, takeToken, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } @@ -262,8 +263,8 @@ private PagedFlux listAsync(String resourceNam * * Gets the list of ASR replication protection intent objects in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -271,10 +272,10 @@ private PagedFlux listAsync(String resourceNam * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceName, String resourceGroupName) { + public PagedIterable list(String resourceGroupName, String resourceName) { final String skipToken = null; final String takeToken = null; - return new PagedIterable<>(listAsync(resourceName, resourceGroupName, skipToken, takeToken)); + return new PagedIterable<>(listAsync(resourceGroupName, resourceName, skipToken, takeToken)); } /** @@ -282,8 +283,8 @@ public PagedIterable list(String resourceName, * * Gets the list of ASR replication protection intent objects in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param skipToken The pagination token. * @param takeToken The page size. * @param context The context to associate with this operation. @@ -294,9 +295,9 @@ public PagedIterable list(String resourceName, * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceName, String resourceGroupName, + public PagedIterable list(String resourceGroupName, String resourceName, String skipToken, String takeToken, Context context) { - return new PagedIterable<>(listAsync(resourceName, resourceGroupName, skipToken, takeToken, context)); + return new PagedIterable<>(listAsync(resourceGroupName, resourceName, skipToken, takeToken, context)); } /** @@ -304,8 +305,8 @@ public PagedIterable list(String resourceName, * * Gets the details of an ASR replication protection intent. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param intentObjectName Replication protection intent name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -314,19 +315,19 @@ public PagedIterable list(String resourceName, * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceName, - String resourceGroupName, String intentObjectName) { + private Mono> getWithResponseAsync(String resourceGroupName, + String resourceName, String intentObjectName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -337,8 +338,8 @@ private Mono> getWithResponseAsync(St } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), intentObjectName, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), intentObjectName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -347,8 +348,8 @@ private Mono> getWithResponseAsync(St * * Gets the details of an ASR replication protection intent. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param intentObjectName Replication protection intent name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -358,19 +359,19 @@ private Mono> getWithResponseAsync(St * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceName, - String resourceGroupName, String intentObjectName, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, + String resourceName, String intentObjectName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -381,7 +382,7 @@ private Mono> getWithResponseAsync(St } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), intentObjectName, accept, context); } @@ -390,8 +391,8 @@ private Mono> getWithResponseAsync(St * * Gets the details of an ASR replication protection intent. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param intentObjectName Replication protection intent name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -399,9 +400,9 @@ private Mono> getWithResponseAsync(St * @return the details of an ASR replication protection intent on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceName, String resourceGroupName, + private Mono getAsync(String resourceGroupName, String resourceName, String intentObjectName) { - return getWithResponseAsync(resourceName, resourceGroupName, intentObjectName) + return getWithResponseAsync(resourceGroupName, resourceName, intentObjectName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } @@ -410,8 +411,8 @@ private Mono getAsync(String resourceName, Str * * Gets the details of an ASR replication protection intent. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param intentObjectName Replication protection intent name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -420,9 +421,9 @@ private Mono getAsync(String resourceName, Str * @return the details of an ASR replication protection intent along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceName, String resourceGroupName, + public Response getWithResponse(String resourceGroupName, String resourceName, String intentObjectName, Context context) { - return getWithResponseAsync(resourceName, resourceGroupName, intentObjectName, context).block(); + return getWithResponseAsync(resourceGroupName, resourceName, intentObjectName, context).block(); } /** @@ -430,8 +431,8 @@ public Response getWithResponse(String resourc * * Gets the details of an ASR replication protection intent. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param intentObjectName Replication protection intent name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -439,9 +440,9 @@ public Response getWithResponse(String resourc * @return the details of an ASR replication protection intent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReplicationProtectionIntentInner get(String resourceName, String resourceGroupName, + public ReplicationProtectionIntentInner get(String resourceGroupName, String resourceName, String intentObjectName) { - return getWithResponse(resourceName, resourceGroupName, intentObjectName, Context.NONE).getValue(); + return getWithResponse(resourceGroupName, resourceName, intentObjectName, Context.NONE).getValue(); } /** @@ -449,8 +450,8 @@ public ReplicationProtectionIntentInner get(String resourceName, String resource * * The operation to create an ASR replication protection intent item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param intentObjectName A name for the replication protection item. * @param input Create Protection Intent Input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -459,19 +460,19 @@ public ReplicationProtectionIntentInner get(String resourceName, String resource * @return replication protection intent along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createWithResponseAsync(String resourceName, - String resourceGroupName, String intentObjectName, CreateProtectionIntentInput input) { + private Mono> createWithResponseAsync(String resourceGroupName, + String resourceName, String intentObjectName, CreateProtectionIntentInput input) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -487,8 +488,9 @@ private Mono> createWithResponseAsync } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), intentObjectName, input, accept, context)) + .withContext( + context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), intentObjectName, input, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -497,8 +499,8 @@ private Mono> createWithResponseAsync * * The operation to create an ASR replication protection intent item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param intentObjectName A name for the replication protection item. * @param input Create Protection Intent Input. * @param context The context to associate with this operation. @@ -508,19 +510,19 @@ private Mono> createWithResponseAsync * @return replication protection intent along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createWithResponseAsync(String resourceName, - String resourceGroupName, String intentObjectName, CreateProtectionIntentInput input, Context context) { + private Mono> createWithResponseAsync(String resourceGroupName, + String resourceName, String intentObjectName, CreateProtectionIntentInput input, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -536,7 +538,7 @@ private Mono> createWithResponseAsync } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.create(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.create(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), intentObjectName, input, accept, context); } @@ -545,8 +547,8 @@ private Mono> createWithResponseAsync * * The operation to create an ASR replication protection intent item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param intentObjectName A name for the replication protection item. * @param input Create Protection Intent Input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -555,9 +557,9 @@ private Mono> createWithResponseAsync * @return replication protection intent on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync(String resourceName, String resourceGroupName, + private Mono createAsync(String resourceGroupName, String resourceName, String intentObjectName, CreateProtectionIntentInput input) { - return createWithResponseAsync(resourceName, resourceGroupName, intentObjectName, input) + return createWithResponseAsync(resourceGroupName, resourceName, intentObjectName, input) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } @@ -566,8 +568,8 @@ private Mono createAsync(String resourceName, * * The operation to create an ASR replication protection intent item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param intentObjectName A name for the replication protection item. * @param input Create Protection Intent Input. * @param context The context to associate with this operation. @@ -577,9 +579,9 @@ private Mono createAsync(String resourceName, * @return replication protection intent along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createWithResponse(String resourceName, String resourceGroupName, + public Response createWithResponse(String resourceGroupName, String resourceName, String intentObjectName, CreateProtectionIntentInput input, Context context) { - return createWithResponseAsync(resourceName, resourceGroupName, intentObjectName, input, context).block(); + return createWithResponseAsync(resourceGroupName, resourceName, intentObjectName, input, context).block(); } /** @@ -587,8 +589,8 @@ public Response createWithResponse(String reso * * The operation to create an ASR replication protection intent item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param intentObjectName A name for the replication protection item. * @param input Create Protection Intent Input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -597,9 +599,9 @@ public Response createWithResponse(String reso * @return replication protection intent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReplicationProtectionIntentInner create(String resourceName, String resourceGroupName, + public ReplicationProtectionIntentInner create(String resourceGroupName, String resourceName, String intentObjectName, CreateProtectionIntentInput input) { - return createWithResponse(resourceName, resourceGroupName, intentObjectName, input, Context.NONE).getValue(); + return createWithResponse(resourceGroupName, resourceName, intentObjectName, input, Context.NONE).getValue(); } /** diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectionIntentsImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectionIntentsImpl.java index 3dc692b96d00..66f4498b9835 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectionIntentsImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationProtectionIntentsImpl.java @@ -27,25 +27,25 @@ public ReplicationProtectionIntentsImpl(ReplicationProtectionIntentsClient inner this.serviceManager = serviceManager; } - public PagedIterable list(String resourceName, String resourceGroupName) { + public PagedIterable list(String resourceGroupName, String resourceName) { PagedIterable inner - = this.serviceClient().list(resourceName, resourceGroupName); + = this.serviceClient().list(resourceGroupName, resourceName); return ResourceManagerUtils.mapPage(inner, inner1 -> new ReplicationProtectionIntentImpl(inner1, this.manager())); } - public PagedIterable list(String resourceName, String resourceGroupName, + public PagedIterable list(String resourceGroupName, String resourceName, String skipToken, String takeToken, Context context) { PagedIterable inner - = this.serviceClient().list(resourceName, resourceGroupName, skipToken, takeToken, context); + = this.serviceClient().list(resourceGroupName, resourceName, skipToken, takeToken, context); return ResourceManagerUtils.mapPage(inner, inner1 -> new ReplicationProtectionIntentImpl(inner1, this.manager())); } - public Response getWithResponse(String resourceName, String resourceGroupName, + public Response getWithResponse(String resourceGroupName, String resourceName, String intentObjectName, Context context) { Response inner - = this.serviceClient().getWithResponse(resourceName, resourceGroupName, intentObjectName, context); + = this.serviceClient().getWithResponse(resourceGroupName, resourceName, intentObjectName, context); if (inner != null) { return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new ReplicationProtectionIntentImpl(inner.getValue(), this.manager())); @@ -54,9 +54,9 @@ public Response getWithResponse(String resourceName } } - public ReplicationProtectionIntent get(String resourceName, String resourceGroupName, String intentObjectName) { + public ReplicationProtectionIntent get(String resourceGroupName, String resourceName, String intentObjectName) { ReplicationProtectionIntentInner inner - = this.serviceClient().get(resourceName, resourceGroupName, intentObjectName); + = this.serviceClient().get(resourceGroupName, resourceName, intentObjectName); if (inner != null) { return new ReplicationProtectionIntentImpl(inner, this.manager()); } else { @@ -65,41 +65,41 @@ public ReplicationProtectionIntent get(String resourceName, String resourceGroup } public ReplicationProtectionIntent getById(String id) { - String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); - if (resourceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); - } String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); + if (resourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); + } String intentObjectName = ResourceManagerUtils.getValueFromIdByName(id, "replicationProtectionIntents"); if (intentObjectName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format( "The resource ID '%s' is not valid. Missing path segment 'replicationProtectionIntents'.", id))); } - return this.getWithResponse(resourceName, resourceGroupName, intentObjectName, Context.NONE).getValue(); + return this.getWithResponse(resourceGroupName, resourceName, intentObjectName, Context.NONE).getValue(); } public Response getByIdWithResponse(String id, Context context) { - String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); - if (resourceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); - } String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); + if (resourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); + } String intentObjectName = ResourceManagerUtils.getValueFromIdByName(id, "replicationProtectionIntents"); if (intentObjectName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format( "The resource ID '%s' is not valid. Missing path segment 'replicationProtectionIntents'.", id))); } - return this.getWithResponse(resourceName, resourceGroupName, intentObjectName, context); + return this.getWithResponse(resourceGroupName, resourceName, intentObjectName, context); } private ReplicationProtectionIntentsClient serviceClient() { diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationRecoveryPlansClientImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationRecoveryPlansClientImpl.java index 99bcb658ba02..0faa8261e542 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationRecoveryPlansClientImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationRecoveryPlansClientImpl.java @@ -83,28 +83,28 @@ public interface ReplicationRecoveryPlansService { @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> list(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("recoveryPlanName") String recoveryPlanName, - @HeaderParam("Accept") String accept, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("recoveryPlanName") String recoveryPlanName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> create(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("recoveryPlanName") String recoveryPlanName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("recoveryPlanName") String recoveryPlanName, @BodyParam("application/json") CreateRecoveryPlanInput input, @HeaderParam("Accept") String accept, Context context); @@ -113,19 +113,18 @@ Mono>> create(@HostParam("$host") String endpoint, @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> delete(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("recoveryPlanName") String recoveryPlanName, - Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("recoveryPlanName") String recoveryPlanName, Context context); @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> update(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("recoveryPlanName") String recoveryPlanName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("recoveryPlanName") String recoveryPlanName, @BodyParam("application/json") UpdateRecoveryPlanInput input, @HeaderParam("Accept") String accept, Context context); @@ -134,29 +133,29 @@ Mono>> update(@HostParam("$host") String endpoint, @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> failoverCancel(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("recoveryPlanName") String recoveryPlanName, - @HeaderParam("Accept") String accept, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("recoveryPlanName") String recoveryPlanName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/failoverCommit") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> failoverCommit(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("recoveryPlanName") String recoveryPlanName, - @HeaderParam("Accept") String accept, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("recoveryPlanName") String recoveryPlanName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/plannedFailover") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> plannedFailover(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("recoveryPlanName") String recoveryPlanName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("recoveryPlanName") String recoveryPlanName, @BodyParam("application/json") RecoveryPlanPlannedFailoverInput input, @HeaderParam("Accept") String accept, Context context); @@ -165,19 +164,19 @@ Mono>> plannedFailover(@HostParam("$host") String endp @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> reprotect(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("recoveryPlanName") String recoveryPlanName, - @HeaderParam("Accept") String accept, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("recoveryPlanName") String recoveryPlanName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/testFailover") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> testFailover(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("recoveryPlanName") String recoveryPlanName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("recoveryPlanName") String recoveryPlanName, @BodyParam("application/json") RecoveryPlanTestFailoverInput input, @HeaderParam("Accept") String accept, Context context); @@ -186,9 +185,9 @@ Mono>> testFailover(@HostParam("$host") String endpoin @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> testFailoverCleanup(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("recoveryPlanName") String recoveryPlanName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("recoveryPlanName") String recoveryPlanName, @BodyParam("application/json") RecoveryPlanTestFailoverCleanupInput input, @HeaderParam("Accept") String accept, Context context); @@ -197,9 +196,9 @@ Mono>> testFailoverCleanup(@HostParam("$host") String @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> unplannedFailover(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("recoveryPlanName") String recoveryPlanName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("recoveryPlanName") String recoveryPlanName, @BodyParam("application/json") RecoveryPlanUnplannedFailoverInput input, @HeaderParam("Accept") String accept, Context context); @@ -216,8 +215,8 @@ Mono> listNext(@PathParam(value = "nextLink", e * * Lists the recovery plans in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -225,26 +224,26 @@ Mono> listNext(@PathParam(value = "nextLink", e * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceName, String resourceGroupName) { + private Mono> listSinglePageAsync(String resourceGroupName, String resourceName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -255,8 +254,8 @@ private Mono> listSinglePageAsync(String resour * * Lists the recovery plans in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -265,19 +264,19 @@ private Mono> listSinglePageAsync(String resour * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceName, String resourceGroupName, + private Mono> listSinglePageAsync(String resourceGroupName, String resourceName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -285,7 +284,7 @@ private Mono> listSinglePageAsync(String resour final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + .list(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); @@ -296,16 +295,16 @@ private Mono> listSinglePageAsync(String resour * * Lists the recovery plans in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return recovery plan collection details as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceName, String resourceGroupName) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceName, resourceGroupName), + private PagedFlux listAsync(String resourceGroupName, String resourceName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName), nextLink -> listNextSinglePageAsync(nextLink)); } @@ -314,8 +313,8 @@ private PagedFlux listAsync(String resourceName, String resou * * Lists the recovery plans in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -323,8 +322,8 @@ private PagedFlux listAsync(String resourceName, String resou * @return recovery plan collection details as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceName, String resourceGroupName, Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceName, resourceGroupName, context), + private PagedFlux listAsync(String resourceGroupName, String resourceName, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } @@ -333,16 +332,16 @@ private PagedFlux listAsync(String resourceName, String resou * * Lists the recovery plans in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return recovery plan collection details as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceName, String resourceGroupName) { - return new PagedIterable<>(listAsync(resourceName, resourceGroupName)); + public PagedIterable list(String resourceGroupName, String resourceName) { + return new PagedIterable<>(listAsync(resourceGroupName, resourceName)); } /** @@ -350,8 +349,8 @@ public PagedIterable list(String resourceName, String resourc * * Lists the recovery plans in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -359,8 +358,8 @@ public PagedIterable list(String resourceName, String resourc * @return recovery plan collection details as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceName, String resourceGroupName, Context context) { - return new PagedIterable<>(listAsync(resourceName, resourceGroupName, context)); + public PagedIterable list(String resourceGroupName, String resourceName, Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, resourceName, context)); } /** @@ -368,8 +367,8 @@ public PagedIterable list(String resourceName, String resourc * * Gets the details of the recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Name of the recovery plan. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -377,19 +376,19 @@ public PagedIterable list(String resourceName, String resourc * @return the details of the recovery plan along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceName, String resourceGroupName, + private Mono> getWithResponseAsync(String resourceGroupName, String resourceName, String recoveryPlanName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -400,8 +399,8 @@ private Mono> getWithResponseAsync(String resourceNa } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), recoveryPlanName, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), recoveryPlanName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -410,8 +409,8 @@ private Mono> getWithResponseAsync(String resourceNa * * Gets the details of the recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Name of the recovery plan. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -420,19 +419,19 @@ private Mono> getWithResponseAsync(String resourceNa * @return the details of the recovery plan along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceName, String resourceGroupName, + private Mono> getWithResponseAsync(String resourceGroupName, String resourceName, String recoveryPlanName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -443,7 +442,7 @@ private Mono> getWithResponseAsync(String resourceNa } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), recoveryPlanName, accept, context); } @@ -452,8 +451,8 @@ private Mono> getWithResponseAsync(String resourceNa * * Gets the details of the recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Name of the recovery plan. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -461,8 +460,8 @@ private Mono> getWithResponseAsync(String resourceNa * @return the details of the recovery plan on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceName, String resourceGroupName, String recoveryPlanName) { - return getWithResponseAsync(resourceName, resourceGroupName, recoveryPlanName) + private Mono getAsync(String resourceGroupName, String resourceName, String recoveryPlanName) { + return getWithResponseAsync(resourceGroupName, resourceName, recoveryPlanName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } @@ -471,8 +470,8 @@ private Mono getAsync(String resourceName, String resourceGro * * Gets the details of the recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Name of the recovery plan. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -481,9 +480,9 @@ private Mono getAsync(String resourceName, String resourceGro * @return the details of the recovery plan along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceName, String resourceGroupName, + public Response getWithResponse(String resourceGroupName, String resourceName, String recoveryPlanName, Context context) { - return getWithResponseAsync(resourceName, resourceGroupName, recoveryPlanName, context).block(); + return getWithResponseAsync(resourceGroupName, resourceName, recoveryPlanName, context).block(); } /** @@ -491,8 +490,8 @@ public Response getWithResponse(String resourceName, String r * * Gets the details of the recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Name of the recovery plan. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -500,8 +499,8 @@ public Response getWithResponse(String resourceName, String r * @return the details of the recovery plan. */ @ServiceMethod(returns = ReturnType.SINGLE) - public RecoveryPlanInner get(String resourceName, String resourceGroupName, String recoveryPlanName) { - return getWithResponse(resourceName, resourceGroupName, recoveryPlanName, Context.NONE).getValue(); + public RecoveryPlanInner get(String resourceGroupName, String resourceName, String recoveryPlanName) { + return getWithResponse(resourceGroupName, resourceName, recoveryPlanName, Context.NONE).getValue(); } /** @@ -509,8 +508,8 @@ public RecoveryPlanInner get(String resourceName, String resourceGroupName, Stri * * The operation to create a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery Plan creation input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -519,19 +518,19 @@ public RecoveryPlanInner get(String resourceName, String resourceGroupName, Stri * @return recovery plan details along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> createWithResponseAsync(String resourceGroupName, String resourceName, String recoveryPlanName, CreateRecoveryPlanInput input) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -547,8 +546,9 @@ private Mono>> createWithResponseAsync(String resource } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), recoveryPlanName, input, accept, context)) + .withContext( + context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), recoveryPlanName, input, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -557,8 +557,8 @@ private Mono>> createWithResponseAsync(String resource * * The operation to create a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery Plan creation input. * @param context The context to associate with this operation. @@ -568,19 +568,19 @@ private Mono>> createWithResponseAsync(String resource * @return recovery plan details along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> createWithResponseAsync(String resourceGroupName, String resourceName, String recoveryPlanName, CreateRecoveryPlanInput input, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -596,7 +596,7 @@ private Mono>> createWithResponseAsync(String resource } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.create(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.create(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), recoveryPlanName, input, accept, context); } @@ -605,8 +605,8 @@ private Mono>> createWithResponseAsync(String resource * * The operation to create a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery Plan creation input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -615,10 +615,10 @@ private Mono>> createWithResponseAsync(String resource * @return the {@link PollerFlux} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, RecoveryPlanInner> beginCreateAsync(String resourceName, - String resourceGroupName, String recoveryPlanName, CreateRecoveryPlanInput input) { + private PollerFlux, RecoveryPlanInner> beginCreateAsync(String resourceGroupName, + String resourceName, String recoveryPlanName, CreateRecoveryPlanInput input) { Mono>> mono - = createWithResponseAsync(resourceName, resourceGroupName, recoveryPlanName, input); + = createWithResponseAsync(resourceGroupName, resourceName, recoveryPlanName, input); return this.client.getLroResult(mono, this.client.getHttpPipeline(), RecoveryPlanInner.class, RecoveryPlanInner.class, this.client.getContext()); } @@ -628,8 +628,8 @@ private PollerFlux, RecoveryPlanInner> beginCreate * * The operation to create a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery Plan creation input. * @param context The context to associate with this operation. @@ -639,11 +639,11 @@ private PollerFlux, RecoveryPlanInner> beginCreate * @return the {@link PollerFlux} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, RecoveryPlanInner> beginCreateAsync(String resourceName, - String resourceGroupName, String recoveryPlanName, CreateRecoveryPlanInput input, Context context) { + private PollerFlux, RecoveryPlanInner> beginCreateAsync(String resourceGroupName, + String resourceName, String recoveryPlanName, CreateRecoveryPlanInput input, Context context) { context = this.client.mergeContext(context); Mono>> mono - = createWithResponseAsync(resourceName, resourceGroupName, recoveryPlanName, input, context); + = createWithResponseAsync(resourceGroupName, resourceName, recoveryPlanName, input, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), RecoveryPlanInner.class, RecoveryPlanInner.class, context); } @@ -653,8 +653,8 @@ private PollerFlux, RecoveryPlanInner> beginCreate * * The operation to create a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery Plan creation input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -663,9 +663,9 @@ private PollerFlux, RecoveryPlanInner> beginCreate * @return the {@link SyncPoller} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, RecoveryPlanInner> beginCreate(String resourceName, - String resourceGroupName, String recoveryPlanName, CreateRecoveryPlanInput input) { - return this.beginCreateAsync(resourceName, resourceGroupName, recoveryPlanName, input).getSyncPoller(); + public SyncPoller, RecoveryPlanInner> beginCreate(String resourceGroupName, + String resourceName, String recoveryPlanName, CreateRecoveryPlanInput input) { + return this.beginCreateAsync(resourceGroupName, resourceName, recoveryPlanName, input).getSyncPoller(); } /** @@ -673,8 +673,8 @@ public SyncPoller, RecoveryPlanInner> beginCreate( * * The operation to create a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery Plan creation input. * @param context The context to associate with this operation. @@ -684,9 +684,9 @@ public SyncPoller, RecoveryPlanInner> beginCreate( * @return the {@link SyncPoller} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, RecoveryPlanInner> beginCreate(String resourceName, - String resourceGroupName, String recoveryPlanName, CreateRecoveryPlanInput input, Context context) { - return this.beginCreateAsync(resourceName, resourceGroupName, recoveryPlanName, input, context).getSyncPoller(); + public SyncPoller, RecoveryPlanInner> beginCreate(String resourceGroupName, + String resourceName, String recoveryPlanName, CreateRecoveryPlanInput input, Context context) { + return this.beginCreateAsync(resourceGroupName, resourceName, recoveryPlanName, input, context).getSyncPoller(); } /** @@ -694,8 +694,8 @@ public SyncPoller, RecoveryPlanInner> beginCreate( * * The operation to create a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery Plan creation input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -704,9 +704,9 @@ public SyncPoller, RecoveryPlanInner> beginCreate( * @return recovery plan details on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync(String resourceName, String resourceGroupName, String recoveryPlanName, + private Mono createAsync(String resourceGroupName, String resourceName, String recoveryPlanName, CreateRecoveryPlanInput input) { - return beginCreateAsync(resourceName, resourceGroupName, recoveryPlanName, input).last() + return beginCreateAsync(resourceGroupName, resourceName, recoveryPlanName, input).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -715,8 +715,8 @@ private Mono createAsync(String resourceName, String resource * * The operation to create a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery Plan creation input. * @param context The context to associate with this operation. @@ -726,9 +726,9 @@ private Mono createAsync(String resourceName, String resource * @return recovery plan details on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync(String resourceName, String resourceGroupName, String recoveryPlanName, + private Mono createAsync(String resourceGroupName, String resourceName, String recoveryPlanName, CreateRecoveryPlanInput input, Context context) { - return beginCreateAsync(resourceName, resourceGroupName, recoveryPlanName, input, context).last() + return beginCreateAsync(resourceGroupName, resourceName, recoveryPlanName, input, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -737,8 +737,8 @@ private Mono createAsync(String resourceName, String resource * * The operation to create a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery Plan creation input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -747,9 +747,9 @@ private Mono createAsync(String resourceName, String resource * @return recovery plan details. */ @ServiceMethod(returns = ReturnType.SINGLE) - public RecoveryPlanInner create(String resourceName, String resourceGroupName, String recoveryPlanName, + public RecoveryPlanInner create(String resourceGroupName, String resourceName, String recoveryPlanName, CreateRecoveryPlanInput input) { - return createAsync(resourceName, resourceGroupName, recoveryPlanName, input).block(); + return createAsync(resourceGroupName, resourceName, recoveryPlanName, input).block(); } /** @@ -757,8 +757,8 @@ public RecoveryPlanInner create(String resourceName, String resourceGroupName, S * * The operation to create a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery Plan creation input. * @param context The context to associate with this operation. @@ -768,9 +768,9 @@ public RecoveryPlanInner create(String resourceName, String resourceGroupName, S * @return recovery plan details. */ @ServiceMethod(returns = ReturnType.SINGLE) - public RecoveryPlanInner create(String resourceName, String resourceGroupName, String recoveryPlanName, + public RecoveryPlanInner create(String resourceGroupName, String resourceName, String recoveryPlanName, CreateRecoveryPlanInput input, Context context) { - return createAsync(resourceName, resourceGroupName, recoveryPlanName, input, context).block(); + return createAsync(resourceGroupName, resourceName, recoveryPlanName, input, context).block(); } /** @@ -778,8 +778,8 @@ public RecoveryPlanInner create(String resourceName, String resourceGroupName, S * * Delete a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -787,19 +787,19 @@ public RecoveryPlanInner create(String resourceName, String resourceGroupName, S * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, String recoveryPlanName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -809,8 +809,8 @@ private Mono>> deleteWithResponseAsync(String resource .error(new IllegalArgumentException("Parameter recoveryPlanName is required and cannot be null.")); } return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), recoveryPlanName, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), recoveryPlanName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -819,8 +819,8 @@ private Mono>> deleteWithResponseAsync(String resource * * Delete a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -829,19 +829,19 @@ private Mono>> deleteWithResponseAsync(String resource * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, String recoveryPlanName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -851,7 +851,7 @@ private Mono>> deleteWithResponseAsync(String resource .error(new IllegalArgumentException("Parameter recoveryPlanName is required and cannot be null.")); } context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), recoveryPlanName, context); } @@ -860,8 +860,8 @@ private Mono>> deleteWithResponseAsync(String resource * * Delete a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -869,10 +869,10 @@ private Mono>> deleteWithResponseAsync(String resource * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceName, String resourceGroupName, + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, String recoveryPlanName) { Mono>> mono - = deleteWithResponseAsync(resourceName, resourceGroupName, recoveryPlanName); + = deleteWithResponseAsync(resourceGroupName, resourceName, recoveryPlanName); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } @@ -882,8 +882,8 @@ private PollerFlux, Void> beginDeleteAsync(String resourceName, * * Delete a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -892,11 +892,11 @@ private PollerFlux, Void> beginDeleteAsync(String resourceName, * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceName, String resourceGroupName, + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, String recoveryPlanName, Context context) { context = this.client.mergeContext(context); Mono>> mono - = deleteWithResponseAsync(resourceName, resourceGroupName, recoveryPlanName, context); + = deleteWithResponseAsync(resourceGroupName, resourceName, recoveryPlanName, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); } @@ -906,8 +906,8 @@ private PollerFlux, Void> beginDeleteAsync(String resourceName, * * Delete a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -915,9 +915,9 @@ private PollerFlux, Void> beginDeleteAsync(String resourceName, * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceName, String resourceGroupName, + public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String recoveryPlanName) { - return this.beginDeleteAsync(resourceName, resourceGroupName, recoveryPlanName).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, resourceName, recoveryPlanName).getSyncPoller(); } /** @@ -925,8 +925,8 @@ public SyncPoller, Void> beginDelete(String resourceName, Strin * * Delete a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -935,9 +935,9 @@ public SyncPoller, Void> beginDelete(String resourceName, Strin * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceName, String resourceGroupName, + public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String recoveryPlanName, Context context) { - return this.beginDeleteAsync(resourceName, resourceGroupName, recoveryPlanName, context).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, resourceName, recoveryPlanName, context).getSyncPoller(); } /** @@ -945,8 +945,8 @@ public SyncPoller, Void> beginDelete(String resourceName, Strin * * Delete a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -954,8 +954,8 @@ public SyncPoller, Void> beginDelete(String resourceName, Strin * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceName, String resourceGroupName, String recoveryPlanName) { - return beginDeleteAsync(resourceName, resourceGroupName, recoveryPlanName).last() + private Mono deleteAsync(String resourceGroupName, String resourceName, String recoveryPlanName) { + return beginDeleteAsync(resourceGroupName, resourceName, recoveryPlanName).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -964,8 +964,8 @@ private Mono deleteAsync(String resourceName, String resourceGroupName, St * * Delete a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -974,9 +974,9 @@ private Mono deleteAsync(String resourceName, String resourceGroupName, St * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceName, String resourceGroupName, String recoveryPlanName, + private Mono deleteAsync(String resourceGroupName, String resourceName, String recoveryPlanName, Context context) { - return beginDeleteAsync(resourceName, resourceGroupName, recoveryPlanName, context).last() + return beginDeleteAsync(resourceGroupName, resourceName, recoveryPlanName, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -985,16 +985,16 @@ private Mono deleteAsync(String resourceName, String resourceGroupName, St * * Delete a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceName, String resourceGroupName, String recoveryPlanName) { - deleteAsync(resourceName, resourceGroupName, recoveryPlanName).block(); + public void delete(String resourceGroupName, String resourceName, String recoveryPlanName) { + deleteAsync(resourceGroupName, resourceName, recoveryPlanName).block(); } /** @@ -1002,8 +1002,8 @@ public void delete(String resourceName, String resourceGroupName, String recover * * Delete a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1011,8 +1011,8 @@ public void delete(String resourceName, String resourceGroupName, String recover * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceName, String resourceGroupName, String recoveryPlanName, Context context) { - deleteAsync(resourceName, resourceGroupName, recoveryPlanName, context).block(); + public void delete(String resourceGroupName, String resourceName, String recoveryPlanName, Context context) { + deleteAsync(resourceGroupName, resourceName, recoveryPlanName, context).block(); } /** @@ -1020,8 +1020,8 @@ public void delete(String resourceName, String resourceGroupName, String recover * * The operation to update a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Update recovery plan input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1030,19 +1030,19 @@ public void delete(String resourceName, String resourceGroupName, String recover * @return recovery plan details along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> updateWithResponseAsync(String resourceGroupName, String resourceName, String recoveryPlanName, UpdateRecoveryPlanInput input) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1058,8 +1058,9 @@ private Mono>> updateWithResponseAsync(String resource } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), recoveryPlanName, input, accept, context)) + .withContext( + context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), recoveryPlanName, input, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1068,8 +1069,8 @@ private Mono>> updateWithResponseAsync(String resource * * The operation to update a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Update recovery plan input. * @param context The context to associate with this operation. @@ -1079,19 +1080,19 @@ private Mono>> updateWithResponseAsync(String resource * @return recovery plan details along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> updateWithResponseAsync(String resourceGroupName, String resourceName, String recoveryPlanName, UpdateRecoveryPlanInput input, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1107,7 +1108,7 @@ private Mono>> updateWithResponseAsync(String resource } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.update(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.update(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), recoveryPlanName, input, accept, context); } @@ -1116,8 +1117,8 @@ private Mono>> updateWithResponseAsync(String resource * * The operation to update a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Update recovery plan input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1126,10 +1127,10 @@ private Mono>> updateWithResponseAsync(String resource * @return the {@link PollerFlux} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, RecoveryPlanInner> beginUpdateAsync(String resourceName, - String resourceGroupName, String recoveryPlanName, UpdateRecoveryPlanInput input) { + private PollerFlux, RecoveryPlanInner> beginUpdateAsync(String resourceGroupName, + String resourceName, String recoveryPlanName, UpdateRecoveryPlanInput input) { Mono>> mono - = updateWithResponseAsync(resourceName, resourceGroupName, recoveryPlanName, input); + = updateWithResponseAsync(resourceGroupName, resourceName, recoveryPlanName, input); return this.client.getLroResult(mono, this.client.getHttpPipeline(), RecoveryPlanInner.class, RecoveryPlanInner.class, this.client.getContext()); } @@ -1139,8 +1140,8 @@ private PollerFlux, RecoveryPlanInner> beginUpdate * * The operation to update a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Update recovery plan input. * @param context The context to associate with this operation. @@ -1150,11 +1151,11 @@ private PollerFlux, RecoveryPlanInner> beginUpdate * @return the {@link PollerFlux} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, RecoveryPlanInner> beginUpdateAsync(String resourceName, - String resourceGroupName, String recoveryPlanName, UpdateRecoveryPlanInput input, Context context) { + private PollerFlux, RecoveryPlanInner> beginUpdateAsync(String resourceGroupName, + String resourceName, String recoveryPlanName, UpdateRecoveryPlanInput input, Context context) { context = this.client.mergeContext(context); Mono>> mono - = updateWithResponseAsync(resourceName, resourceGroupName, recoveryPlanName, input, context); + = updateWithResponseAsync(resourceGroupName, resourceName, recoveryPlanName, input, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), RecoveryPlanInner.class, RecoveryPlanInner.class, context); } @@ -1164,8 +1165,8 @@ private PollerFlux, RecoveryPlanInner> beginUpdate * * The operation to update a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Update recovery plan input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1174,9 +1175,9 @@ private PollerFlux, RecoveryPlanInner> beginUpdate * @return the {@link SyncPoller} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, RecoveryPlanInner> beginUpdate(String resourceName, - String resourceGroupName, String recoveryPlanName, UpdateRecoveryPlanInput input) { - return this.beginUpdateAsync(resourceName, resourceGroupName, recoveryPlanName, input).getSyncPoller(); + public SyncPoller, RecoveryPlanInner> beginUpdate(String resourceGroupName, + String resourceName, String recoveryPlanName, UpdateRecoveryPlanInput input) { + return this.beginUpdateAsync(resourceGroupName, resourceName, recoveryPlanName, input).getSyncPoller(); } /** @@ -1184,8 +1185,8 @@ public SyncPoller, RecoveryPlanInner> beginUpdate( * * The operation to update a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Update recovery plan input. * @param context The context to associate with this operation. @@ -1195,9 +1196,9 @@ public SyncPoller, RecoveryPlanInner> beginUpdate( * @return the {@link SyncPoller} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, RecoveryPlanInner> beginUpdate(String resourceName, - String resourceGroupName, String recoveryPlanName, UpdateRecoveryPlanInput input, Context context) { - return this.beginUpdateAsync(resourceName, resourceGroupName, recoveryPlanName, input, context).getSyncPoller(); + public SyncPoller, RecoveryPlanInner> beginUpdate(String resourceGroupName, + String resourceName, String recoveryPlanName, UpdateRecoveryPlanInput input, Context context) { + return this.beginUpdateAsync(resourceGroupName, resourceName, recoveryPlanName, input, context).getSyncPoller(); } /** @@ -1205,8 +1206,8 @@ public SyncPoller, RecoveryPlanInner> beginUpdate( * * The operation to update a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Update recovery plan input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1215,9 +1216,9 @@ public SyncPoller, RecoveryPlanInner> beginUpdate( * @return recovery plan details on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceName, String resourceGroupName, String recoveryPlanName, + private Mono updateAsync(String resourceGroupName, String resourceName, String recoveryPlanName, UpdateRecoveryPlanInput input) { - return beginUpdateAsync(resourceName, resourceGroupName, recoveryPlanName, input).last() + return beginUpdateAsync(resourceGroupName, resourceName, recoveryPlanName, input).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1226,8 +1227,8 @@ private Mono updateAsync(String resourceName, String resource * * The operation to update a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Update recovery plan input. * @param context The context to associate with this operation. @@ -1237,9 +1238,9 @@ private Mono updateAsync(String resourceName, String resource * @return recovery plan details on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceName, String resourceGroupName, String recoveryPlanName, + private Mono updateAsync(String resourceGroupName, String resourceName, String recoveryPlanName, UpdateRecoveryPlanInput input, Context context) { - return beginUpdateAsync(resourceName, resourceGroupName, recoveryPlanName, input, context).last() + return beginUpdateAsync(resourceGroupName, resourceName, recoveryPlanName, input, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1248,8 +1249,8 @@ private Mono updateAsync(String resourceName, String resource * * The operation to update a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Update recovery plan input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1258,9 +1259,9 @@ private Mono updateAsync(String resourceName, String resource * @return recovery plan details. */ @ServiceMethod(returns = ReturnType.SINGLE) - public RecoveryPlanInner update(String resourceName, String resourceGroupName, String recoveryPlanName, + public RecoveryPlanInner update(String resourceGroupName, String resourceName, String recoveryPlanName, UpdateRecoveryPlanInput input) { - return updateAsync(resourceName, resourceGroupName, recoveryPlanName, input).block(); + return updateAsync(resourceGroupName, resourceName, recoveryPlanName, input).block(); } /** @@ -1268,8 +1269,8 @@ public RecoveryPlanInner update(String resourceName, String resourceGroupName, S * * The operation to update a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Update recovery plan input. * @param context The context to associate with this operation. @@ -1279,9 +1280,9 @@ public RecoveryPlanInner update(String resourceName, String resourceGroupName, S * @return recovery plan details. */ @ServiceMethod(returns = ReturnType.SINGLE) - public RecoveryPlanInner update(String resourceName, String resourceGroupName, String recoveryPlanName, + public RecoveryPlanInner update(String resourceGroupName, String resourceName, String recoveryPlanName, UpdateRecoveryPlanInput input, Context context) { - return updateAsync(resourceName, resourceGroupName, recoveryPlanName, input, context).block(); + return updateAsync(resourceGroupName, resourceName, recoveryPlanName, input, context).block(); } /** @@ -1289,8 +1290,8 @@ public RecoveryPlanInner update(String resourceName, String resourceGroupName, S * * The operation to cancel the failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1298,19 +1299,19 @@ public RecoveryPlanInner update(String resourceName, String resourceGroupName, S * @return recovery plan details along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> failoverCancelWithResponseAsync(String resourceName, - String resourceGroupName, String recoveryPlanName) { + private Mono>> failoverCancelWithResponseAsync(String resourceGroupName, + String resourceName, String recoveryPlanName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1322,7 +1323,7 @@ private Mono>> failoverCancelWithResponseAsync(String final String accept = "application/json"; return FluxUtil .withContext(context -> service.failoverCancel(this.client.getEndpoint(), this.client.getApiVersion(), - resourceName, resourceGroupName, this.client.getSubscriptionId(), recoveryPlanName, accept, context)) + resourceGroupName, resourceName, this.client.getSubscriptionId(), recoveryPlanName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1331,8 +1332,8 @@ private Mono>> failoverCancelWithResponseAsync(String * * The operation to cancel the failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1341,19 +1342,19 @@ private Mono>> failoverCancelWithResponseAsync(String * @return recovery plan details along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> failoverCancelWithResponseAsync(String resourceName, - String resourceGroupName, String recoveryPlanName, Context context) { + private Mono>> failoverCancelWithResponseAsync(String resourceGroupName, + String resourceName, String recoveryPlanName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1364,8 +1365,8 @@ private Mono>> failoverCancelWithResponseAsync(String } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.failoverCancel(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), recoveryPlanName, accept, context); + return service.failoverCancel(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), recoveryPlanName, accept, context); } /** @@ -1373,8 +1374,8 @@ private Mono>> failoverCancelWithResponseAsync(String * * The operation to cancel the failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1382,10 +1383,10 @@ private Mono>> failoverCancelWithResponseAsync(String * @return the {@link PollerFlux} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, RecoveryPlanInner> beginFailoverCancelAsync(String resourceName, - String resourceGroupName, String recoveryPlanName) { + private PollerFlux, RecoveryPlanInner> + beginFailoverCancelAsync(String resourceGroupName, String resourceName, String recoveryPlanName) { Mono>> mono - = failoverCancelWithResponseAsync(resourceName, resourceGroupName, recoveryPlanName); + = failoverCancelWithResponseAsync(resourceGroupName, resourceName, recoveryPlanName); return this.client.getLroResult(mono, this.client.getHttpPipeline(), RecoveryPlanInner.class, RecoveryPlanInner.class, this.client.getContext()); } @@ -1395,8 +1396,8 @@ private PollerFlux, RecoveryPlanInner> beginFailov * * The operation to cancel the failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1405,11 +1406,11 @@ private PollerFlux, RecoveryPlanInner> beginFailov * @return the {@link PollerFlux} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, RecoveryPlanInner> beginFailoverCancelAsync(String resourceName, - String resourceGroupName, String recoveryPlanName, Context context) { + private PollerFlux, RecoveryPlanInner> beginFailoverCancelAsync( + String resourceGroupName, String resourceName, String recoveryPlanName, Context context) { context = this.client.mergeContext(context); Mono>> mono - = failoverCancelWithResponseAsync(resourceName, resourceGroupName, recoveryPlanName, context); + = failoverCancelWithResponseAsync(resourceGroupName, resourceName, recoveryPlanName, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), RecoveryPlanInner.class, RecoveryPlanInner.class, context); } @@ -1419,8 +1420,8 @@ private PollerFlux, RecoveryPlanInner> beginFailov * * The operation to cancel the failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1428,9 +1429,9 @@ private PollerFlux, RecoveryPlanInner> beginFailov * @return the {@link SyncPoller} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, RecoveryPlanInner> beginFailoverCancel(String resourceName, - String resourceGroupName, String recoveryPlanName) { - return this.beginFailoverCancelAsync(resourceName, resourceGroupName, recoveryPlanName).getSyncPoller(); + public SyncPoller, RecoveryPlanInner> beginFailoverCancel(String resourceGroupName, + String resourceName, String recoveryPlanName) { + return this.beginFailoverCancelAsync(resourceGroupName, resourceName, recoveryPlanName).getSyncPoller(); } /** @@ -1438,8 +1439,8 @@ public SyncPoller, RecoveryPlanInner> beginFailove * * The operation to cancel the failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1448,9 +1449,9 @@ public SyncPoller, RecoveryPlanInner> beginFailove * @return the {@link SyncPoller} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, RecoveryPlanInner> beginFailoverCancel(String resourceName, - String resourceGroupName, String recoveryPlanName, Context context) { - return this.beginFailoverCancelAsync(resourceName, resourceGroupName, recoveryPlanName, context) + public SyncPoller, RecoveryPlanInner> beginFailoverCancel(String resourceGroupName, + String resourceName, String recoveryPlanName, Context context) { + return this.beginFailoverCancelAsync(resourceGroupName, resourceName, recoveryPlanName, context) .getSyncPoller(); } @@ -1459,8 +1460,8 @@ public SyncPoller, RecoveryPlanInner> beginFailove * * The operation to cancel the failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1468,9 +1469,9 @@ public SyncPoller, RecoveryPlanInner> beginFailove * @return recovery plan details on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono failoverCancelAsync(String resourceName, String resourceGroupName, + private Mono failoverCancelAsync(String resourceGroupName, String resourceName, String recoveryPlanName) { - return beginFailoverCancelAsync(resourceName, resourceGroupName, recoveryPlanName).last() + return beginFailoverCancelAsync(resourceGroupName, resourceName, recoveryPlanName).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1479,8 +1480,8 @@ private Mono failoverCancelAsync(String resourceName, String * * The operation to cancel the failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1489,9 +1490,9 @@ private Mono failoverCancelAsync(String resourceName, String * @return recovery plan details on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono failoverCancelAsync(String resourceName, String resourceGroupName, + private Mono failoverCancelAsync(String resourceGroupName, String resourceName, String recoveryPlanName, Context context) { - return beginFailoverCancelAsync(resourceName, resourceGroupName, recoveryPlanName, context).last() + return beginFailoverCancelAsync(resourceGroupName, resourceName, recoveryPlanName, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1500,8 +1501,8 @@ private Mono failoverCancelAsync(String resourceName, String * * The operation to cancel the failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1509,8 +1510,8 @@ private Mono failoverCancelAsync(String resourceName, String * @return recovery plan details. */ @ServiceMethod(returns = ReturnType.SINGLE) - public RecoveryPlanInner failoverCancel(String resourceName, String resourceGroupName, String recoveryPlanName) { - return failoverCancelAsync(resourceName, resourceGroupName, recoveryPlanName).block(); + public RecoveryPlanInner failoverCancel(String resourceGroupName, String resourceName, String recoveryPlanName) { + return failoverCancelAsync(resourceGroupName, resourceName, recoveryPlanName).block(); } /** @@ -1518,8 +1519,8 @@ public RecoveryPlanInner failoverCancel(String resourceName, String resourceGrou * * The operation to cancel the failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1528,9 +1529,9 @@ public RecoveryPlanInner failoverCancel(String resourceName, String resourceGrou * @return recovery plan details. */ @ServiceMethod(returns = ReturnType.SINGLE) - public RecoveryPlanInner failoverCancel(String resourceName, String resourceGroupName, String recoveryPlanName, + public RecoveryPlanInner failoverCancel(String resourceGroupName, String resourceName, String recoveryPlanName, Context context) { - return failoverCancelAsync(resourceName, resourceGroupName, recoveryPlanName, context).block(); + return failoverCancelAsync(resourceGroupName, resourceName, recoveryPlanName, context).block(); } /** @@ -1538,8 +1539,8 @@ public RecoveryPlanInner failoverCancel(String resourceName, String resourceGrou * * The operation to commit the failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1547,19 +1548,19 @@ public RecoveryPlanInner failoverCancel(String resourceName, String resourceGrou * @return recovery plan details along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> failoverCommitWithResponseAsync(String resourceName, - String resourceGroupName, String recoveryPlanName) { + private Mono>> failoverCommitWithResponseAsync(String resourceGroupName, + String resourceName, String recoveryPlanName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1571,7 +1572,7 @@ private Mono>> failoverCommitWithResponseAsync(String final String accept = "application/json"; return FluxUtil .withContext(context -> service.failoverCommit(this.client.getEndpoint(), this.client.getApiVersion(), - resourceName, resourceGroupName, this.client.getSubscriptionId(), recoveryPlanName, accept, context)) + resourceGroupName, resourceName, this.client.getSubscriptionId(), recoveryPlanName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1580,8 +1581,8 @@ private Mono>> failoverCommitWithResponseAsync(String * * The operation to commit the failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1590,19 +1591,19 @@ private Mono>> failoverCommitWithResponseAsync(String * @return recovery plan details along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> failoverCommitWithResponseAsync(String resourceName, - String resourceGroupName, String recoveryPlanName, Context context) { + private Mono>> failoverCommitWithResponseAsync(String resourceGroupName, + String resourceName, String recoveryPlanName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1613,8 +1614,8 @@ private Mono>> failoverCommitWithResponseAsync(String } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.failoverCommit(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), recoveryPlanName, accept, context); + return service.failoverCommit(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), recoveryPlanName, accept, context); } /** @@ -1622,8 +1623,8 @@ private Mono>> failoverCommitWithResponseAsync(String * * The operation to commit the failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1631,10 +1632,10 @@ private Mono>> failoverCommitWithResponseAsync(String * @return the {@link PollerFlux} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, RecoveryPlanInner> beginFailoverCommitAsync(String resourceName, - String resourceGroupName, String recoveryPlanName) { + private PollerFlux, RecoveryPlanInner> + beginFailoverCommitAsync(String resourceGroupName, String resourceName, String recoveryPlanName) { Mono>> mono - = failoverCommitWithResponseAsync(resourceName, resourceGroupName, recoveryPlanName); + = failoverCommitWithResponseAsync(resourceGroupName, resourceName, recoveryPlanName); return this.client.getLroResult(mono, this.client.getHttpPipeline(), RecoveryPlanInner.class, RecoveryPlanInner.class, this.client.getContext()); } @@ -1644,8 +1645,8 @@ private PollerFlux, RecoveryPlanInner> beginFailov * * The operation to commit the failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1654,11 +1655,11 @@ private PollerFlux, RecoveryPlanInner> beginFailov * @return the {@link PollerFlux} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, RecoveryPlanInner> beginFailoverCommitAsync(String resourceName, - String resourceGroupName, String recoveryPlanName, Context context) { + private PollerFlux, RecoveryPlanInner> beginFailoverCommitAsync( + String resourceGroupName, String resourceName, String recoveryPlanName, Context context) { context = this.client.mergeContext(context); Mono>> mono - = failoverCommitWithResponseAsync(resourceName, resourceGroupName, recoveryPlanName, context); + = failoverCommitWithResponseAsync(resourceGroupName, resourceName, recoveryPlanName, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), RecoveryPlanInner.class, RecoveryPlanInner.class, context); } @@ -1668,8 +1669,8 @@ private PollerFlux, RecoveryPlanInner> beginFailov * * The operation to commit the failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1677,9 +1678,9 @@ private PollerFlux, RecoveryPlanInner> beginFailov * @return the {@link SyncPoller} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, RecoveryPlanInner> beginFailoverCommit(String resourceName, - String resourceGroupName, String recoveryPlanName) { - return this.beginFailoverCommitAsync(resourceName, resourceGroupName, recoveryPlanName).getSyncPoller(); + public SyncPoller, RecoveryPlanInner> beginFailoverCommit(String resourceGroupName, + String resourceName, String recoveryPlanName) { + return this.beginFailoverCommitAsync(resourceGroupName, resourceName, recoveryPlanName).getSyncPoller(); } /** @@ -1687,8 +1688,8 @@ public SyncPoller, RecoveryPlanInner> beginFailove * * The operation to commit the failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1697,9 +1698,9 @@ public SyncPoller, RecoveryPlanInner> beginFailove * @return the {@link SyncPoller} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, RecoveryPlanInner> beginFailoverCommit(String resourceName, - String resourceGroupName, String recoveryPlanName, Context context) { - return this.beginFailoverCommitAsync(resourceName, resourceGroupName, recoveryPlanName, context) + public SyncPoller, RecoveryPlanInner> beginFailoverCommit(String resourceGroupName, + String resourceName, String recoveryPlanName, Context context) { + return this.beginFailoverCommitAsync(resourceGroupName, resourceName, recoveryPlanName, context) .getSyncPoller(); } @@ -1708,8 +1709,8 @@ public SyncPoller, RecoveryPlanInner> beginFailove * * The operation to commit the failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1717,9 +1718,9 @@ public SyncPoller, RecoveryPlanInner> beginFailove * @return recovery plan details on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono failoverCommitAsync(String resourceName, String resourceGroupName, + private Mono failoverCommitAsync(String resourceGroupName, String resourceName, String recoveryPlanName) { - return beginFailoverCommitAsync(resourceName, resourceGroupName, recoveryPlanName).last() + return beginFailoverCommitAsync(resourceGroupName, resourceName, recoveryPlanName).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1728,8 +1729,8 @@ private Mono failoverCommitAsync(String resourceName, String * * The operation to commit the failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1738,9 +1739,9 @@ private Mono failoverCommitAsync(String resourceName, String * @return recovery plan details on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono failoverCommitAsync(String resourceName, String resourceGroupName, + private Mono failoverCommitAsync(String resourceGroupName, String resourceName, String recoveryPlanName, Context context) { - return beginFailoverCommitAsync(resourceName, resourceGroupName, recoveryPlanName, context).last() + return beginFailoverCommitAsync(resourceGroupName, resourceName, recoveryPlanName, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1749,8 +1750,8 @@ private Mono failoverCommitAsync(String resourceName, String * * The operation to commit the failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1758,8 +1759,8 @@ private Mono failoverCommitAsync(String resourceName, String * @return recovery plan details. */ @ServiceMethod(returns = ReturnType.SINGLE) - public RecoveryPlanInner failoverCommit(String resourceName, String resourceGroupName, String recoveryPlanName) { - return failoverCommitAsync(resourceName, resourceGroupName, recoveryPlanName).block(); + public RecoveryPlanInner failoverCommit(String resourceGroupName, String resourceName, String recoveryPlanName) { + return failoverCommitAsync(resourceGroupName, resourceName, recoveryPlanName).block(); } /** @@ -1767,8 +1768,8 @@ public RecoveryPlanInner failoverCommit(String resourceName, String resourceGrou * * The operation to commit the failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1777,9 +1778,9 @@ public RecoveryPlanInner failoverCommit(String resourceName, String resourceGrou * @return recovery plan details. */ @ServiceMethod(returns = ReturnType.SINGLE) - public RecoveryPlanInner failoverCommit(String resourceName, String resourceGroupName, String recoveryPlanName, + public RecoveryPlanInner failoverCommit(String resourceGroupName, String resourceName, String recoveryPlanName, Context context) { - return failoverCommitAsync(resourceName, resourceGroupName, recoveryPlanName, context).block(); + return failoverCommitAsync(resourceGroupName, resourceName, recoveryPlanName, context).block(); } /** @@ -1787,8 +1788,8 @@ public RecoveryPlanInner failoverCommit(String resourceName, String resourceGrou * * The operation to start the planned failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Failover input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1797,19 +1798,19 @@ public RecoveryPlanInner failoverCommit(String resourceName, String resourceGrou * @return recovery plan details along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> plannedFailoverWithResponseAsync(String resourceName, - String resourceGroupName, String recoveryPlanName, RecoveryPlanPlannedFailoverInput input) { + private Mono>> plannedFailoverWithResponseAsync(String resourceGroupName, + String resourceName, String recoveryPlanName, RecoveryPlanPlannedFailoverInput input) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1825,9 +1826,9 @@ private Mono>> plannedFailoverWithResponseAsync(String } final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.plannedFailover(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), recoveryPlanName, input, accept, context)) + .withContext(context -> service.plannedFailover(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), recoveryPlanName, input, accept, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1836,8 +1837,8 @@ private Mono>> plannedFailoverWithResponseAsync(String * * The operation to start the planned failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Failover input. * @param context The context to associate with this operation. @@ -1847,19 +1848,19 @@ private Mono>> plannedFailoverWithResponseAsync(String * @return recovery plan details along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> plannedFailoverWithResponseAsync(String resourceName, - String resourceGroupName, String recoveryPlanName, RecoveryPlanPlannedFailoverInput input, Context context) { + private Mono>> plannedFailoverWithResponseAsync(String resourceGroupName, + String resourceName, String recoveryPlanName, RecoveryPlanPlannedFailoverInput input, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1875,8 +1876,8 @@ private Mono>> plannedFailoverWithResponseAsync(String } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.plannedFailover(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), recoveryPlanName, input, accept, context); + return service.plannedFailover(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), recoveryPlanName, input, accept, context); } /** @@ -1884,8 +1885,8 @@ private Mono>> plannedFailoverWithResponseAsync(String * * The operation to start the planned failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Failover input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1894,10 +1895,11 @@ private Mono>> plannedFailoverWithResponseAsync(String * @return the {@link PollerFlux} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, RecoveryPlanInner> beginPlannedFailoverAsync(String resourceName, - String resourceGroupName, String recoveryPlanName, RecoveryPlanPlannedFailoverInput input) { + private PollerFlux, RecoveryPlanInner> beginPlannedFailoverAsync( + String resourceGroupName, String resourceName, String recoveryPlanName, + RecoveryPlanPlannedFailoverInput input) { Mono>> mono - = plannedFailoverWithResponseAsync(resourceName, resourceGroupName, recoveryPlanName, input); + = plannedFailoverWithResponseAsync(resourceGroupName, resourceName, recoveryPlanName, input); return this.client.getLroResult(mono, this.client.getHttpPipeline(), RecoveryPlanInner.class, RecoveryPlanInner.class, this.client.getContext()); } @@ -1907,8 +1909,8 @@ private PollerFlux, RecoveryPlanInner> beginPlanne * * The operation to start the planned failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Failover input. * @param context The context to associate with this operation. @@ -1918,11 +1920,12 @@ private PollerFlux, RecoveryPlanInner> beginPlanne * @return the {@link PollerFlux} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, RecoveryPlanInner> beginPlannedFailoverAsync(String resourceName, - String resourceGroupName, String recoveryPlanName, RecoveryPlanPlannedFailoverInput input, Context context) { + private PollerFlux, RecoveryPlanInner> beginPlannedFailoverAsync( + String resourceGroupName, String resourceName, String recoveryPlanName, RecoveryPlanPlannedFailoverInput input, + Context context) { context = this.client.mergeContext(context); Mono>> mono - = plannedFailoverWithResponseAsync(resourceName, resourceGroupName, recoveryPlanName, input, context); + = plannedFailoverWithResponseAsync(resourceGroupName, resourceName, recoveryPlanName, input, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), RecoveryPlanInner.class, RecoveryPlanInner.class, context); } @@ -1932,8 +1935,8 @@ private PollerFlux, RecoveryPlanInner> beginPlanne * * The operation to start the planned failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Failover input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1942,9 +1945,9 @@ private PollerFlux, RecoveryPlanInner> beginPlanne * @return the {@link SyncPoller} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, RecoveryPlanInner> beginPlannedFailover(String resourceName, - String resourceGroupName, String recoveryPlanName, RecoveryPlanPlannedFailoverInput input) { - return this.beginPlannedFailoverAsync(resourceName, resourceGroupName, recoveryPlanName, input).getSyncPoller(); + public SyncPoller, RecoveryPlanInner> beginPlannedFailover(String resourceGroupName, + String resourceName, String recoveryPlanName, RecoveryPlanPlannedFailoverInput input) { + return this.beginPlannedFailoverAsync(resourceGroupName, resourceName, recoveryPlanName, input).getSyncPoller(); } /** @@ -1952,8 +1955,8 @@ public SyncPoller, RecoveryPlanInner> beginPlanned * * The operation to start the planned failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Failover input. * @param context The context to associate with this operation. @@ -1963,9 +1966,9 @@ public SyncPoller, RecoveryPlanInner> beginPlanned * @return the {@link SyncPoller} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, RecoveryPlanInner> beginPlannedFailover(String resourceName, - String resourceGroupName, String recoveryPlanName, RecoveryPlanPlannedFailoverInput input, Context context) { - return this.beginPlannedFailoverAsync(resourceName, resourceGroupName, recoveryPlanName, input, context) + public SyncPoller, RecoveryPlanInner> beginPlannedFailover(String resourceGroupName, + String resourceName, String recoveryPlanName, RecoveryPlanPlannedFailoverInput input, Context context) { + return this.beginPlannedFailoverAsync(resourceGroupName, resourceName, recoveryPlanName, input, context) .getSyncPoller(); } @@ -1974,8 +1977,8 @@ public SyncPoller, RecoveryPlanInner> beginPlanned * * The operation to start the planned failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Failover input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1984,9 +1987,9 @@ public SyncPoller, RecoveryPlanInner> beginPlanned * @return recovery plan details on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono plannedFailoverAsync(String resourceName, String resourceGroupName, + private Mono plannedFailoverAsync(String resourceGroupName, String resourceName, String recoveryPlanName, RecoveryPlanPlannedFailoverInput input) { - return beginPlannedFailoverAsync(resourceName, resourceGroupName, recoveryPlanName, input).last() + return beginPlannedFailoverAsync(resourceGroupName, resourceName, recoveryPlanName, input).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1995,8 +1998,8 @@ private Mono plannedFailoverAsync(String resourceName, String * * The operation to start the planned failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Failover input. * @param context The context to associate with this operation. @@ -2006,9 +2009,9 @@ private Mono plannedFailoverAsync(String resourceName, String * @return recovery plan details on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono plannedFailoverAsync(String resourceName, String resourceGroupName, + private Mono plannedFailoverAsync(String resourceGroupName, String resourceName, String recoveryPlanName, RecoveryPlanPlannedFailoverInput input, Context context) { - return beginPlannedFailoverAsync(resourceName, resourceGroupName, recoveryPlanName, input, context).last() + return beginPlannedFailoverAsync(resourceGroupName, resourceName, recoveryPlanName, input, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -2017,8 +2020,8 @@ private Mono plannedFailoverAsync(String resourceName, String * * The operation to start the planned failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Failover input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2027,9 +2030,9 @@ private Mono plannedFailoverAsync(String resourceName, String * @return recovery plan details. */ @ServiceMethod(returns = ReturnType.SINGLE) - public RecoveryPlanInner plannedFailover(String resourceName, String resourceGroupName, String recoveryPlanName, + public RecoveryPlanInner plannedFailover(String resourceGroupName, String resourceName, String recoveryPlanName, RecoveryPlanPlannedFailoverInput input) { - return plannedFailoverAsync(resourceName, resourceGroupName, recoveryPlanName, input).block(); + return plannedFailoverAsync(resourceGroupName, resourceName, recoveryPlanName, input).block(); } /** @@ -2037,8 +2040,8 @@ public RecoveryPlanInner plannedFailover(String resourceName, String resourceGro * * The operation to start the planned failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Failover input. * @param context The context to associate with this operation. @@ -2048,18 +2051,19 @@ public RecoveryPlanInner plannedFailover(String resourceName, String resourceGro * @return recovery plan details. */ @ServiceMethod(returns = ReturnType.SINGLE) - public RecoveryPlanInner plannedFailover(String resourceName, String resourceGroupName, String recoveryPlanName, + public RecoveryPlanInner plannedFailover(String resourceGroupName, String resourceName, String recoveryPlanName, RecoveryPlanPlannedFailoverInput input, Context context) { - return plannedFailoverAsync(resourceName, resourceGroupName, recoveryPlanName, input, context).block(); + return plannedFailoverAsync(resourceGroupName, resourceName, recoveryPlanName, input, context).block(); } /** * Execute reprotect of the recovery plan. * - * The operation to reprotect(reverse replicate) a recovery plan. + * The operation to reprotect(reverse replicate) a recovery plan. This api is for deprecated scenarios and no longer + * works. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2067,19 +2071,19 @@ public RecoveryPlanInner plannedFailover(String resourceName, String resourceGro * @return recovery plan details along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> reprotectWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> reprotectWithResponseAsync(String resourceGroupName, String resourceName, String recoveryPlanName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -2091,17 +2095,18 @@ private Mono>> reprotectWithResponseAsync(String resou final String accept = "application/json"; return FluxUtil .withContext(context -> service.reprotect(this.client.getEndpoint(), this.client.getApiVersion(), - resourceName, resourceGroupName, this.client.getSubscriptionId(), recoveryPlanName, accept, context)) + resourceGroupName, resourceName, this.client.getSubscriptionId(), recoveryPlanName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Execute reprotect of the recovery plan. * - * The operation to reprotect(reverse replicate) a recovery plan. + * The operation to reprotect(reverse replicate) a recovery plan. This api is for deprecated scenarios and no longer + * works. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2110,19 +2115,19 @@ private Mono>> reprotectWithResponseAsync(String resou * @return recovery plan details along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> reprotectWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> reprotectWithResponseAsync(String resourceGroupName, String resourceName, String recoveryPlanName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -2133,17 +2138,18 @@ private Mono>> reprotectWithResponseAsync(String resou } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.reprotect(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), recoveryPlanName, accept, context); + return service.reprotect(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), recoveryPlanName, accept, context); } /** * Execute reprotect of the recovery plan. * - * The operation to reprotect(reverse replicate) a recovery plan. + * The operation to reprotect(reverse replicate) a recovery plan. This api is for deprecated scenarios and no longer + * works. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2151,10 +2157,10 @@ private Mono>> reprotectWithResponseAsync(String resou * @return the {@link PollerFlux} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, RecoveryPlanInner> beginReprotectAsync(String resourceName, - String resourceGroupName, String recoveryPlanName) { + private PollerFlux, RecoveryPlanInner> beginReprotectAsync(String resourceGroupName, + String resourceName, String recoveryPlanName) { Mono>> mono - = reprotectWithResponseAsync(resourceName, resourceGroupName, recoveryPlanName); + = reprotectWithResponseAsync(resourceGroupName, resourceName, recoveryPlanName); return this.client.getLroResult(mono, this.client.getHttpPipeline(), RecoveryPlanInner.class, RecoveryPlanInner.class, this.client.getContext()); } @@ -2162,10 +2168,11 @@ private PollerFlux, RecoveryPlanInner> beginReprot /** * Execute reprotect of the recovery plan. * - * The operation to reprotect(reverse replicate) a recovery plan. + * The operation to reprotect(reverse replicate) a recovery plan. This api is for deprecated scenarios and no longer + * works. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2174,11 +2181,11 @@ private PollerFlux, RecoveryPlanInner> beginReprot * @return the {@link PollerFlux} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, RecoveryPlanInner> beginReprotectAsync(String resourceName, - String resourceGroupName, String recoveryPlanName, Context context) { + private PollerFlux, RecoveryPlanInner> beginReprotectAsync(String resourceGroupName, + String resourceName, String recoveryPlanName, Context context) { context = this.client.mergeContext(context); Mono>> mono - = reprotectWithResponseAsync(resourceName, resourceGroupName, recoveryPlanName, context); + = reprotectWithResponseAsync(resourceGroupName, resourceName, recoveryPlanName, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), RecoveryPlanInner.class, RecoveryPlanInner.class, context); } @@ -2186,10 +2193,11 @@ private PollerFlux, RecoveryPlanInner> beginReprot /** * Execute reprotect of the recovery plan. * - * The operation to reprotect(reverse replicate) a recovery plan. + * The operation to reprotect(reverse replicate) a recovery plan. This api is for deprecated scenarios and no longer + * works. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2197,18 +2205,19 @@ private PollerFlux, RecoveryPlanInner> beginReprot * @return the {@link SyncPoller} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, RecoveryPlanInner> beginReprotect(String resourceName, - String resourceGroupName, String recoveryPlanName) { - return this.beginReprotectAsync(resourceName, resourceGroupName, recoveryPlanName).getSyncPoller(); + public SyncPoller, RecoveryPlanInner> beginReprotect(String resourceGroupName, + String resourceName, String recoveryPlanName) { + return this.beginReprotectAsync(resourceGroupName, resourceName, recoveryPlanName).getSyncPoller(); } /** * Execute reprotect of the recovery plan. * - * The operation to reprotect(reverse replicate) a recovery plan. + * The operation to reprotect(reverse replicate) a recovery plan. This api is for deprecated scenarios and no longer + * works. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2217,18 +2226,19 @@ public SyncPoller, RecoveryPlanInner> beginReprote * @return the {@link SyncPoller} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, RecoveryPlanInner> beginReprotect(String resourceName, - String resourceGroupName, String recoveryPlanName, Context context) { - return this.beginReprotectAsync(resourceName, resourceGroupName, recoveryPlanName, context).getSyncPoller(); + public SyncPoller, RecoveryPlanInner> beginReprotect(String resourceGroupName, + String resourceName, String recoveryPlanName, Context context) { + return this.beginReprotectAsync(resourceGroupName, resourceName, recoveryPlanName, context).getSyncPoller(); } /** * Execute reprotect of the recovery plan. * - * The operation to reprotect(reverse replicate) a recovery plan. + * The operation to reprotect(reverse replicate) a recovery plan. This api is for deprecated scenarios and no longer + * works. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2236,19 +2246,20 @@ public SyncPoller, RecoveryPlanInner> beginReprote * @return recovery plan details on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono reprotectAsync(String resourceName, String resourceGroupName, + private Mono reprotectAsync(String resourceGroupName, String resourceName, String recoveryPlanName) { - return beginReprotectAsync(resourceName, resourceGroupName, recoveryPlanName).last() + return beginReprotectAsync(resourceGroupName, resourceName, recoveryPlanName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Execute reprotect of the recovery plan. * - * The operation to reprotect(reverse replicate) a recovery plan. + * The operation to reprotect(reverse replicate) a recovery plan. This api is for deprecated scenarios and no longer + * works. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2257,19 +2268,20 @@ private Mono reprotectAsync(String resourceName, String resou * @return recovery plan details on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono reprotectAsync(String resourceName, String resourceGroupName, + private Mono reprotectAsync(String resourceGroupName, String resourceName, String recoveryPlanName, Context context) { - return beginReprotectAsync(resourceName, resourceGroupName, recoveryPlanName, context).last() + return beginReprotectAsync(resourceGroupName, resourceName, recoveryPlanName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Execute reprotect of the recovery plan. * - * The operation to reprotect(reverse replicate) a recovery plan. + * The operation to reprotect(reverse replicate) a recovery plan. This api is for deprecated scenarios and no longer + * works. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2277,17 +2289,18 @@ private Mono reprotectAsync(String resourceName, String resou * @return recovery plan details. */ @ServiceMethod(returns = ReturnType.SINGLE) - public RecoveryPlanInner reprotect(String resourceName, String resourceGroupName, String recoveryPlanName) { - return reprotectAsync(resourceName, resourceGroupName, recoveryPlanName).block(); + public RecoveryPlanInner reprotect(String resourceGroupName, String resourceName, String recoveryPlanName) { + return reprotectAsync(resourceGroupName, resourceName, recoveryPlanName).block(); } /** * Execute reprotect of the recovery plan. * - * The operation to reprotect(reverse replicate) a recovery plan. + * The operation to reprotect(reverse replicate) a recovery plan. This api is for deprecated scenarios and no longer + * works. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2296,9 +2309,9 @@ public RecoveryPlanInner reprotect(String resourceName, String resourceGroupName * @return recovery plan details. */ @ServiceMethod(returns = ReturnType.SINGLE) - public RecoveryPlanInner reprotect(String resourceName, String resourceGroupName, String recoveryPlanName, + public RecoveryPlanInner reprotect(String resourceGroupName, String resourceName, String recoveryPlanName, Context context) { - return reprotectAsync(resourceName, resourceGroupName, recoveryPlanName, context).block(); + return reprotectAsync(resourceGroupName, resourceName, recoveryPlanName, context).block(); } /** @@ -2306,8 +2319,8 @@ public RecoveryPlanInner reprotect(String resourceName, String resourceGroupName * * The operation to start the test failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan test failover input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2316,19 +2329,19 @@ public RecoveryPlanInner reprotect(String resourceName, String resourceGroupName * @return recovery plan details along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> testFailoverWithResponseAsync(String resourceName, - String resourceGroupName, String recoveryPlanName, RecoveryPlanTestFailoverInput input) { + private Mono>> testFailoverWithResponseAsync(String resourceGroupName, + String resourceName, String recoveryPlanName, RecoveryPlanTestFailoverInput input) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -2344,9 +2357,9 @@ private Mono>> testFailoverWithResponseAsync(String re } final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.testFailover(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), recoveryPlanName, input, accept, context)) + .withContext(context -> service.testFailover(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), recoveryPlanName, input, accept, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -2355,8 +2368,8 @@ private Mono>> testFailoverWithResponseAsync(String re * * The operation to start the test failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan test failover input. * @param context The context to associate with this operation. @@ -2366,19 +2379,19 @@ private Mono>> testFailoverWithResponseAsync(String re * @return recovery plan details along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> testFailoverWithResponseAsync(String resourceName, - String resourceGroupName, String recoveryPlanName, RecoveryPlanTestFailoverInput input, Context context) { + private Mono>> testFailoverWithResponseAsync(String resourceGroupName, + String resourceName, String recoveryPlanName, RecoveryPlanTestFailoverInput input, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -2394,8 +2407,8 @@ private Mono>> testFailoverWithResponseAsync(String re } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.testFailover(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), recoveryPlanName, input, accept, context); + return service.testFailover(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), recoveryPlanName, input, accept, context); } /** @@ -2403,8 +2416,8 @@ private Mono>> testFailoverWithResponseAsync(String re * * The operation to start the test failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan test failover input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2413,10 +2426,10 @@ private Mono>> testFailoverWithResponseAsync(String re * @return the {@link PollerFlux} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, RecoveryPlanInner> beginTestFailoverAsync(String resourceName, - String resourceGroupName, String recoveryPlanName, RecoveryPlanTestFailoverInput input) { + private PollerFlux, RecoveryPlanInner> beginTestFailoverAsync( + String resourceGroupName, String resourceName, String recoveryPlanName, RecoveryPlanTestFailoverInput input) { Mono>> mono - = testFailoverWithResponseAsync(resourceName, resourceGroupName, recoveryPlanName, input); + = testFailoverWithResponseAsync(resourceGroupName, resourceName, recoveryPlanName, input); return this.client.getLroResult(mono, this.client.getHttpPipeline(), RecoveryPlanInner.class, RecoveryPlanInner.class, this.client.getContext()); } @@ -2426,8 +2439,8 @@ private PollerFlux, RecoveryPlanInner> beginTestFa * * The operation to start the test failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan test failover input. * @param context The context to associate with this operation. @@ -2437,11 +2450,12 @@ private PollerFlux, RecoveryPlanInner> beginTestFa * @return the {@link PollerFlux} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, RecoveryPlanInner> beginTestFailoverAsync(String resourceName, - String resourceGroupName, String recoveryPlanName, RecoveryPlanTestFailoverInput input, Context context) { + private PollerFlux, RecoveryPlanInner> beginTestFailoverAsync( + String resourceGroupName, String resourceName, String recoveryPlanName, RecoveryPlanTestFailoverInput input, + Context context) { context = this.client.mergeContext(context); Mono>> mono - = testFailoverWithResponseAsync(resourceName, resourceGroupName, recoveryPlanName, input, context); + = testFailoverWithResponseAsync(resourceGroupName, resourceName, recoveryPlanName, input, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), RecoveryPlanInner.class, RecoveryPlanInner.class, context); } @@ -2451,8 +2465,8 @@ private PollerFlux, RecoveryPlanInner> beginTestFa * * The operation to start the test failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan test failover input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2461,9 +2475,9 @@ private PollerFlux, RecoveryPlanInner> beginTestFa * @return the {@link SyncPoller} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, RecoveryPlanInner> beginTestFailover(String resourceName, - String resourceGroupName, String recoveryPlanName, RecoveryPlanTestFailoverInput input) { - return this.beginTestFailoverAsync(resourceName, resourceGroupName, recoveryPlanName, input).getSyncPoller(); + public SyncPoller, RecoveryPlanInner> beginTestFailover(String resourceGroupName, + String resourceName, String recoveryPlanName, RecoveryPlanTestFailoverInput input) { + return this.beginTestFailoverAsync(resourceGroupName, resourceName, recoveryPlanName, input).getSyncPoller(); } /** @@ -2471,8 +2485,8 @@ public SyncPoller, RecoveryPlanInner> beginTestFai * * The operation to start the test failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan test failover input. * @param context The context to associate with this operation. @@ -2482,9 +2496,9 @@ public SyncPoller, RecoveryPlanInner> beginTestFai * @return the {@link SyncPoller} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, RecoveryPlanInner> beginTestFailover(String resourceName, - String resourceGroupName, String recoveryPlanName, RecoveryPlanTestFailoverInput input, Context context) { - return this.beginTestFailoverAsync(resourceName, resourceGroupName, recoveryPlanName, input, context) + public SyncPoller, RecoveryPlanInner> beginTestFailover(String resourceGroupName, + String resourceName, String recoveryPlanName, RecoveryPlanTestFailoverInput input, Context context) { + return this.beginTestFailoverAsync(resourceGroupName, resourceName, recoveryPlanName, input, context) .getSyncPoller(); } @@ -2493,8 +2507,8 @@ public SyncPoller, RecoveryPlanInner> beginTestFai * * The operation to start the test failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan test failover input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2503,9 +2517,9 @@ public SyncPoller, RecoveryPlanInner> beginTestFai * @return recovery plan details on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono testFailoverAsync(String resourceName, String resourceGroupName, + private Mono testFailoverAsync(String resourceGroupName, String resourceName, String recoveryPlanName, RecoveryPlanTestFailoverInput input) { - return beginTestFailoverAsync(resourceName, resourceGroupName, recoveryPlanName, input).last() + return beginTestFailoverAsync(resourceGroupName, resourceName, recoveryPlanName, input).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -2514,8 +2528,8 @@ private Mono testFailoverAsync(String resourceName, String re * * The operation to start the test failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan test failover input. * @param context The context to associate with this operation. @@ -2525,9 +2539,9 @@ private Mono testFailoverAsync(String resourceName, String re * @return recovery plan details on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono testFailoverAsync(String resourceName, String resourceGroupName, + private Mono testFailoverAsync(String resourceGroupName, String resourceName, String recoveryPlanName, RecoveryPlanTestFailoverInput input, Context context) { - return beginTestFailoverAsync(resourceName, resourceGroupName, recoveryPlanName, input, context).last() + return beginTestFailoverAsync(resourceGroupName, resourceName, recoveryPlanName, input, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -2536,8 +2550,8 @@ private Mono testFailoverAsync(String resourceName, String re * * The operation to start the test failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan test failover input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2546,9 +2560,9 @@ private Mono testFailoverAsync(String resourceName, String re * @return recovery plan details. */ @ServiceMethod(returns = ReturnType.SINGLE) - public RecoveryPlanInner testFailover(String resourceName, String resourceGroupName, String recoveryPlanName, + public RecoveryPlanInner testFailover(String resourceGroupName, String resourceName, String recoveryPlanName, RecoveryPlanTestFailoverInput input) { - return testFailoverAsync(resourceName, resourceGroupName, recoveryPlanName, input).block(); + return testFailoverAsync(resourceGroupName, resourceName, recoveryPlanName, input).block(); } /** @@ -2556,8 +2570,8 @@ public RecoveryPlanInner testFailover(String resourceName, String resourceGroupN * * The operation to start the test failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan test failover input. * @param context The context to associate with this operation. @@ -2567,9 +2581,9 @@ public RecoveryPlanInner testFailover(String resourceName, String resourceGroupN * @return recovery plan details. */ @ServiceMethod(returns = ReturnType.SINGLE) - public RecoveryPlanInner testFailover(String resourceName, String resourceGroupName, String recoveryPlanName, + public RecoveryPlanInner testFailover(String resourceGroupName, String resourceName, String recoveryPlanName, RecoveryPlanTestFailoverInput input, Context context) { - return testFailoverAsync(resourceName, resourceGroupName, recoveryPlanName, input, context).block(); + return testFailoverAsync(resourceGroupName, resourceName, recoveryPlanName, input, context).block(); } /** @@ -2577,8 +2591,8 @@ public RecoveryPlanInner testFailover(String resourceName, String resourceGroupN * * The operation to cleanup test failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan test failover cleanup input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2587,19 +2601,19 @@ public RecoveryPlanInner testFailover(String resourceName, String resourceGroupN * @return recovery plan details along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> testFailoverCleanupWithResponseAsync(String resourceName, - String resourceGroupName, String recoveryPlanName, RecoveryPlanTestFailoverCleanupInput input) { + private Mono>> testFailoverCleanupWithResponseAsync(String resourceGroupName, + String resourceName, String recoveryPlanName, RecoveryPlanTestFailoverCleanupInput input) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -2616,7 +2630,7 @@ private Mono>> testFailoverCleanupWithResponseAsync(St final String accept = "application/json"; return FluxUtil .withContext(context -> service.testFailoverCleanup(this.client.getEndpoint(), this.client.getApiVersion(), - resourceName, resourceGroupName, this.client.getSubscriptionId(), recoveryPlanName, input, accept, + resourceGroupName, resourceName, this.client.getSubscriptionId(), recoveryPlanName, input, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -2626,8 +2640,8 @@ private Mono>> testFailoverCleanupWithResponseAsync(St * * The operation to cleanup test failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan test failover cleanup input. * @param context The context to associate with this operation. @@ -2637,20 +2651,19 @@ private Mono>> testFailoverCleanupWithResponseAsync(St * @return recovery plan details along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> testFailoverCleanupWithResponseAsync(String resourceName, - String resourceGroupName, String recoveryPlanName, RecoveryPlanTestFailoverCleanupInput input, - Context context) { + private Mono>> testFailoverCleanupWithResponseAsync(String resourceGroupName, + String resourceName, String recoveryPlanName, RecoveryPlanTestFailoverCleanupInput input, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -2666,8 +2679,8 @@ private Mono>> testFailoverCleanupWithResponseAsync(St } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.testFailoverCleanup(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), recoveryPlanName, input, accept, context); + return service.testFailoverCleanup(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), recoveryPlanName, input, accept, context); } /** @@ -2675,8 +2688,8 @@ private Mono>> testFailoverCleanupWithResponseAsync(St * * The operation to cleanup test failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan test failover cleanup input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2686,10 +2699,10 @@ private Mono>> testFailoverCleanupWithResponseAsync(St */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, RecoveryPlanInner> beginTestFailoverCleanupAsync( - String resourceName, String resourceGroupName, String recoveryPlanName, + String resourceGroupName, String resourceName, String recoveryPlanName, RecoveryPlanTestFailoverCleanupInput input) { Mono>> mono - = testFailoverCleanupWithResponseAsync(resourceName, resourceGroupName, recoveryPlanName, input); + = testFailoverCleanupWithResponseAsync(resourceGroupName, resourceName, recoveryPlanName, input); return this.client.getLroResult(mono, this.client.getHttpPipeline(), RecoveryPlanInner.class, RecoveryPlanInner.class, this.client.getContext()); } @@ -2699,8 +2712,8 @@ private PollerFlux, RecoveryPlanInner> beginTestFa * * The operation to cleanup test failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan test failover cleanup input. * @param context The context to associate with this operation. @@ -2711,11 +2724,11 @@ private PollerFlux, RecoveryPlanInner> beginTestFa */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, RecoveryPlanInner> beginTestFailoverCleanupAsync( - String resourceName, String resourceGroupName, String recoveryPlanName, + String resourceGroupName, String resourceName, String recoveryPlanName, RecoveryPlanTestFailoverCleanupInput input, Context context) { context = this.client.mergeContext(context); Mono>> mono - = testFailoverCleanupWithResponseAsync(resourceName, resourceGroupName, recoveryPlanName, input, context); + = testFailoverCleanupWithResponseAsync(resourceGroupName, resourceName, recoveryPlanName, input, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), RecoveryPlanInner.class, RecoveryPlanInner.class, context); } @@ -2725,8 +2738,8 @@ private PollerFlux, RecoveryPlanInner> beginTestFa * * The operation to cleanup test failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan test failover cleanup input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2735,9 +2748,10 @@ private PollerFlux, RecoveryPlanInner> beginTestFa * @return the {@link SyncPoller} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, RecoveryPlanInner> beginTestFailoverCleanup(String resourceName, - String resourceGroupName, String recoveryPlanName, RecoveryPlanTestFailoverCleanupInput input) { - return this.beginTestFailoverCleanupAsync(resourceName, resourceGroupName, recoveryPlanName, input) + public SyncPoller, RecoveryPlanInner> beginTestFailoverCleanup( + String resourceGroupName, String resourceName, String recoveryPlanName, + RecoveryPlanTestFailoverCleanupInput input) { + return this.beginTestFailoverCleanupAsync(resourceGroupName, resourceName, recoveryPlanName, input) .getSyncPoller(); } @@ -2746,8 +2760,8 @@ public SyncPoller, RecoveryPlanInner> beginTestFai * * The operation to cleanup test failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan test failover cleanup input. * @param context The context to associate with this operation. @@ -2757,10 +2771,10 @@ public SyncPoller, RecoveryPlanInner> beginTestFai * @return the {@link SyncPoller} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, RecoveryPlanInner> beginTestFailoverCleanup(String resourceName, - String resourceGroupName, String recoveryPlanName, RecoveryPlanTestFailoverCleanupInput input, - Context context) { - return this.beginTestFailoverCleanupAsync(resourceName, resourceGroupName, recoveryPlanName, input, context) + public SyncPoller, RecoveryPlanInner> beginTestFailoverCleanup( + String resourceGroupName, String resourceName, String recoveryPlanName, + RecoveryPlanTestFailoverCleanupInput input, Context context) { + return this.beginTestFailoverCleanupAsync(resourceGroupName, resourceName, recoveryPlanName, input, context) .getSyncPoller(); } @@ -2769,8 +2783,8 @@ public SyncPoller, RecoveryPlanInner> beginTestFai * * The operation to cleanup test failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan test failover cleanup input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2779,9 +2793,9 @@ public SyncPoller, RecoveryPlanInner> beginTestFai * @return recovery plan details on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono testFailoverCleanupAsync(String resourceName, String resourceGroupName, + private Mono testFailoverCleanupAsync(String resourceGroupName, String resourceName, String recoveryPlanName, RecoveryPlanTestFailoverCleanupInput input) { - return beginTestFailoverCleanupAsync(resourceName, resourceGroupName, recoveryPlanName, input).last() + return beginTestFailoverCleanupAsync(resourceGroupName, resourceName, recoveryPlanName, input).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -2790,8 +2804,8 @@ private Mono testFailoverCleanupAsync(String resourceName, St * * The operation to cleanup test failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan test failover cleanup input. * @param context The context to associate with this operation. @@ -2801,9 +2815,9 @@ private Mono testFailoverCleanupAsync(String resourceName, St * @return recovery plan details on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono testFailoverCleanupAsync(String resourceName, String resourceGroupName, + private Mono testFailoverCleanupAsync(String resourceGroupName, String resourceName, String recoveryPlanName, RecoveryPlanTestFailoverCleanupInput input, Context context) { - return beginTestFailoverCleanupAsync(resourceName, resourceGroupName, recoveryPlanName, input, context).last() + return beginTestFailoverCleanupAsync(resourceGroupName, resourceName, recoveryPlanName, input, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -2812,8 +2826,8 @@ private Mono testFailoverCleanupAsync(String resourceName, St * * The operation to cleanup test failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan test failover cleanup input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2822,9 +2836,9 @@ private Mono testFailoverCleanupAsync(String resourceName, St * @return recovery plan details. */ @ServiceMethod(returns = ReturnType.SINGLE) - public RecoveryPlanInner testFailoverCleanup(String resourceName, String resourceGroupName, String recoveryPlanName, + public RecoveryPlanInner testFailoverCleanup(String resourceGroupName, String resourceName, String recoveryPlanName, RecoveryPlanTestFailoverCleanupInput input) { - return testFailoverCleanupAsync(resourceName, resourceGroupName, recoveryPlanName, input).block(); + return testFailoverCleanupAsync(resourceGroupName, resourceName, recoveryPlanName, input).block(); } /** @@ -2832,8 +2846,8 @@ public RecoveryPlanInner testFailoverCleanup(String resourceName, String resourc * * The operation to cleanup test failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan test failover cleanup input. * @param context The context to associate with this operation. @@ -2843,9 +2857,9 @@ public RecoveryPlanInner testFailoverCleanup(String resourceName, String resourc * @return recovery plan details. */ @ServiceMethod(returns = ReturnType.SINGLE) - public RecoveryPlanInner testFailoverCleanup(String resourceName, String resourceGroupName, String recoveryPlanName, + public RecoveryPlanInner testFailoverCleanup(String resourceGroupName, String resourceName, String recoveryPlanName, RecoveryPlanTestFailoverCleanupInput input, Context context) { - return testFailoverCleanupAsync(resourceName, resourceGroupName, recoveryPlanName, input, context).block(); + return testFailoverCleanupAsync(resourceGroupName, resourceName, recoveryPlanName, input, context).block(); } /** @@ -2853,8 +2867,8 @@ public RecoveryPlanInner testFailoverCleanup(String resourceName, String resourc * * The operation to start the unplanned failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan unplanned failover input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2863,19 +2877,19 @@ public RecoveryPlanInner testFailoverCleanup(String resourceName, String resourc * @return recovery plan details along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> unplannedFailoverWithResponseAsync(String resourceName, - String resourceGroupName, String recoveryPlanName, RecoveryPlanUnplannedFailoverInput input) { + private Mono>> unplannedFailoverWithResponseAsync(String resourceGroupName, + String resourceName, String recoveryPlanName, RecoveryPlanUnplannedFailoverInput input) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -2892,7 +2906,7 @@ private Mono>> unplannedFailoverWithResponseAsync(Stri final String accept = "application/json"; return FluxUtil .withContext(context -> service.unplannedFailover(this.client.getEndpoint(), this.client.getApiVersion(), - resourceName, resourceGroupName, this.client.getSubscriptionId(), recoveryPlanName, input, accept, + resourceGroupName, resourceName, this.client.getSubscriptionId(), recoveryPlanName, input, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -2902,8 +2916,8 @@ private Mono>> unplannedFailoverWithResponseAsync(Stri * * The operation to start the unplanned failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan unplanned failover input. * @param context The context to associate with this operation. @@ -2913,19 +2927,19 @@ private Mono>> unplannedFailoverWithResponseAsync(Stri * @return recovery plan details along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> unplannedFailoverWithResponseAsync(String resourceName, - String resourceGroupName, String recoveryPlanName, RecoveryPlanUnplannedFailoverInput input, Context context) { + private Mono>> unplannedFailoverWithResponseAsync(String resourceGroupName, + String resourceName, String recoveryPlanName, RecoveryPlanUnplannedFailoverInput input, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -2941,8 +2955,8 @@ private Mono>> unplannedFailoverWithResponseAsync(Stri } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.unplannedFailover(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), recoveryPlanName, input, accept, context); + return service.unplannedFailover(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), recoveryPlanName, input, accept, context); } /** @@ -2950,8 +2964,8 @@ private Mono>> unplannedFailoverWithResponseAsync(Stri * * The operation to start the unplanned failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan unplanned failover input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2961,10 +2975,10 @@ private Mono>> unplannedFailoverWithResponseAsync(Stri */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, RecoveryPlanInner> beginUnplannedFailoverAsync( - String resourceName, String resourceGroupName, String recoveryPlanName, + String resourceGroupName, String resourceName, String recoveryPlanName, RecoveryPlanUnplannedFailoverInput input) { Mono>> mono - = unplannedFailoverWithResponseAsync(resourceName, resourceGroupName, recoveryPlanName, input); + = unplannedFailoverWithResponseAsync(resourceGroupName, resourceName, recoveryPlanName, input); return this.client.getLroResult(mono, this.client.getHttpPipeline(), RecoveryPlanInner.class, RecoveryPlanInner.class, this.client.getContext()); } @@ -2974,8 +2988,8 @@ private PollerFlux, RecoveryPlanInner> beginUnplan * * The operation to start the unplanned failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan unplanned failover input. * @param context The context to associate with this operation. @@ -2986,11 +3000,11 @@ private PollerFlux, RecoveryPlanInner> beginUnplan */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, RecoveryPlanInner> beginUnplannedFailoverAsync( - String resourceName, String resourceGroupName, String recoveryPlanName, + String resourceGroupName, String resourceName, String recoveryPlanName, RecoveryPlanUnplannedFailoverInput input, Context context) { context = this.client.mergeContext(context); Mono>> mono - = unplannedFailoverWithResponseAsync(resourceName, resourceGroupName, recoveryPlanName, input, context); + = unplannedFailoverWithResponseAsync(resourceGroupName, resourceName, recoveryPlanName, input, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), RecoveryPlanInner.class, RecoveryPlanInner.class, context); } @@ -3000,8 +3014,8 @@ private PollerFlux, RecoveryPlanInner> beginUnplan * * The operation to start the unplanned failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan unplanned failover input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3010,9 +3024,9 @@ private PollerFlux, RecoveryPlanInner> beginUnplan * @return the {@link SyncPoller} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, RecoveryPlanInner> beginUnplannedFailover(String resourceName, - String resourceGroupName, String recoveryPlanName, RecoveryPlanUnplannedFailoverInput input) { - return this.beginUnplannedFailoverAsync(resourceName, resourceGroupName, recoveryPlanName, input) + public SyncPoller, RecoveryPlanInner> beginUnplannedFailover(String resourceGroupName, + String resourceName, String recoveryPlanName, RecoveryPlanUnplannedFailoverInput input) { + return this.beginUnplannedFailoverAsync(resourceGroupName, resourceName, recoveryPlanName, input) .getSyncPoller(); } @@ -3021,8 +3035,8 @@ public SyncPoller, RecoveryPlanInner> beginUnplann * * The operation to start the unplanned failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan unplanned failover input. * @param context The context to associate with this operation. @@ -3032,9 +3046,9 @@ public SyncPoller, RecoveryPlanInner> beginUnplann * @return the {@link SyncPoller} for polling of recovery plan details. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, RecoveryPlanInner> beginUnplannedFailover(String resourceName, - String resourceGroupName, String recoveryPlanName, RecoveryPlanUnplannedFailoverInput input, Context context) { - return this.beginUnplannedFailoverAsync(resourceName, resourceGroupName, recoveryPlanName, input, context) + public SyncPoller, RecoveryPlanInner> beginUnplannedFailover(String resourceGroupName, + String resourceName, String recoveryPlanName, RecoveryPlanUnplannedFailoverInput input, Context context) { + return this.beginUnplannedFailoverAsync(resourceGroupName, resourceName, recoveryPlanName, input, context) .getSyncPoller(); } @@ -3043,8 +3057,8 @@ public SyncPoller, RecoveryPlanInner> beginUnplann * * The operation to start the unplanned failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan unplanned failover input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3053,9 +3067,9 @@ public SyncPoller, RecoveryPlanInner> beginUnplann * @return recovery plan details on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono unplannedFailoverAsync(String resourceName, String resourceGroupName, + private Mono unplannedFailoverAsync(String resourceGroupName, String resourceName, String recoveryPlanName, RecoveryPlanUnplannedFailoverInput input) { - return beginUnplannedFailoverAsync(resourceName, resourceGroupName, recoveryPlanName, input).last() + return beginUnplannedFailoverAsync(resourceGroupName, resourceName, recoveryPlanName, input).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -3064,8 +3078,8 @@ private Mono unplannedFailoverAsync(String resourceName, Stri * * The operation to start the unplanned failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan unplanned failover input. * @param context The context to associate with this operation. @@ -3075,9 +3089,9 @@ private Mono unplannedFailoverAsync(String resourceName, Stri * @return recovery plan details on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono unplannedFailoverAsync(String resourceName, String resourceGroupName, + private Mono unplannedFailoverAsync(String resourceGroupName, String resourceName, String recoveryPlanName, RecoveryPlanUnplannedFailoverInput input, Context context) { - return beginUnplannedFailoverAsync(resourceName, resourceGroupName, recoveryPlanName, input, context).last() + return beginUnplannedFailoverAsync(resourceGroupName, resourceName, recoveryPlanName, input, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -3086,8 +3100,8 @@ private Mono unplannedFailoverAsync(String resourceName, Stri * * The operation to start the unplanned failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan unplanned failover input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3096,9 +3110,9 @@ private Mono unplannedFailoverAsync(String resourceName, Stri * @return recovery plan details. */ @ServiceMethod(returns = ReturnType.SINGLE) - public RecoveryPlanInner unplannedFailover(String resourceName, String resourceGroupName, String recoveryPlanName, + public RecoveryPlanInner unplannedFailover(String resourceGroupName, String resourceName, String recoveryPlanName, RecoveryPlanUnplannedFailoverInput input) { - return unplannedFailoverAsync(resourceName, resourceGroupName, recoveryPlanName, input).block(); + return unplannedFailoverAsync(resourceGroupName, resourceName, recoveryPlanName, input).block(); } /** @@ -3106,8 +3120,8 @@ public RecoveryPlanInner unplannedFailover(String resourceName, String resourceG * * The operation to start the unplanned failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan unplanned failover input. * @param context The context to associate with this operation. @@ -3117,9 +3131,9 @@ public RecoveryPlanInner unplannedFailover(String resourceName, String resourceG * @return recovery plan details. */ @ServiceMethod(returns = ReturnType.SINGLE) - public RecoveryPlanInner unplannedFailover(String resourceName, String resourceGroupName, String recoveryPlanName, + public RecoveryPlanInner unplannedFailover(String resourceGroupName, String resourceName, String recoveryPlanName, RecoveryPlanUnplannedFailoverInput input, Context context) { - return unplannedFailoverAsync(resourceName, resourceGroupName, recoveryPlanName, input, context).block(); + return unplannedFailoverAsync(resourceGroupName, resourceName, recoveryPlanName, input, context).block(); } /** diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationRecoveryPlansImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationRecoveryPlansImpl.java index 1bc4556765de..038433b99428 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationRecoveryPlansImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationRecoveryPlansImpl.java @@ -31,20 +31,20 @@ public ReplicationRecoveryPlansImpl(ReplicationRecoveryPlansClient innerClient, this.serviceManager = serviceManager; } - public PagedIterable list(String resourceName, String resourceGroupName) { - PagedIterable inner = this.serviceClient().list(resourceName, resourceGroupName); + public PagedIterable list(String resourceGroupName, String resourceName) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, resourceName); return ResourceManagerUtils.mapPage(inner, inner1 -> new RecoveryPlanImpl(inner1, this.manager())); } - public PagedIterable list(String resourceName, String resourceGroupName, Context context) { - PagedIterable inner = this.serviceClient().list(resourceName, resourceGroupName, context); + public PagedIterable list(String resourceGroupName, String resourceName, Context context) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, resourceName, context); return ResourceManagerUtils.mapPage(inner, inner1 -> new RecoveryPlanImpl(inner1, this.manager())); } - public Response getWithResponse(String resourceName, String resourceGroupName, + public Response getWithResponse(String resourceGroupName, String resourceName, String recoveryPlanName, Context context) { Response inner - = this.serviceClient().getWithResponse(resourceName, resourceGroupName, recoveryPlanName, context); + = this.serviceClient().getWithResponse(resourceGroupName, resourceName, recoveryPlanName, context); if (inner != null) { return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new RecoveryPlanImpl(inner.getValue(), this.manager())); @@ -53,8 +53,8 @@ public Response getWithResponse(String resourceName, String resour } } - public RecoveryPlan get(String resourceName, String resourceGroupName, String recoveryPlanName) { - RecoveryPlanInner inner = this.serviceClient().get(resourceName, resourceGroupName, recoveryPlanName); + public RecoveryPlan get(String resourceGroupName, String resourceName, String recoveryPlanName) { + RecoveryPlanInner inner = this.serviceClient().get(resourceGroupName, resourceName, recoveryPlanName); if (inner != null) { return new RecoveryPlanImpl(inner, this.manager()); } else { @@ -62,17 +62,17 @@ public RecoveryPlan get(String resourceName, String resourceGroupName, String re } } - public void delete(String resourceName, String resourceGroupName, String recoveryPlanName) { - this.serviceClient().delete(resourceName, resourceGroupName, recoveryPlanName); + public void delete(String resourceGroupName, String resourceName, String recoveryPlanName) { + this.serviceClient().delete(resourceGroupName, resourceName, recoveryPlanName); } - public void delete(String resourceName, String resourceGroupName, String recoveryPlanName, Context context) { - this.serviceClient().delete(resourceName, resourceGroupName, recoveryPlanName, context); + public void delete(String resourceGroupName, String resourceName, String recoveryPlanName, Context context) { + this.serviceClient().delete(resourceGroupName, resourceName, recoveryPlanName, context); } - public RecoveryPlan failoverCancel(String resourceName, String resourceGroupName, String recoveryPlanName) { + public RecoveryPlan failoverCancel(String resourceGroupName, String resourceName, String recoveryPlanName) { RecoveryPlanInner inner - = this.serviceClient().failoverCancel(resourceName, resourceGroupName, recoveryPlanName); + = this.serviceClient().failoverCancel(resourceGroupName, resourceName, recoveryPlanName); if (inner != null) { return new RecoveryPlanImpl(inner, this.manager()); } else { @@ -80,10 +80,10 @@ public RecoveryPlan failoverCancel(String resourceName, String resourceGroupName } } - public RecoveryPlan failoverCancel(String resourceName, String resourceGroupName, String recoveryPlanName, + public RecoveryPlan failoverCancel(String resourceGroupName, String resourceName, String recoveryPlanName, Context context) { RecoveryPlanInner inner - = this.serviceClient().failoverCancel(resourceName, resourceGroupName, recoveryPlanName, context); + = this.serviceClient().failoverCancel(resourceGroupName, resourceName, recoveryPlanName, context); if (inner != null) { return new RecoveryPlanImpl(inner, this.manager()); } else { @@ -91,9 +91,9 @@ public RecoveryPlan failoverCancel(String resourceName, String resourceGroupName } } - public RecoveryPlan failoverCommit(String resourceName, String resourceGroupName, String recoveryPlanName) { + public RecoveryPlan failoverCommit(String resourceGroupName, String resourceName, String recoveryPlanName) { RecoveryPlanInner inner - = this.serviceClient().failoverCommit(resourceName, resourceGroupName, recoveryPlanName); + = this.serviceClient().failoverCommit(resourceGroupName, resourceName, recoveryPlanName); if (inner != null) { return new RecoveryPlanImpl(inner, this.manager()); } else { @@ -101,10 +101,10 @@ public RecoveryPlan failoverCommit(String resourceName, String resourceGroupName } } - public RecoveryPlan failoverCommit(String resourceName, String resourceGroupName, String recoveryPlanName, + public RecoveryPlan failoverCommit(String resourceGroupName, String resourceName, String recoveryPlanName, Context context) { RecoveryPlanInner inner - = this.serviceClient().failoverCommit(resourceName, resourceGroupName, recoveryPlanName, context); + = this.serviceClient().failoverCommit(resourceGroupName, resourceName, recoveryPlanName, context); if (inner != null) { return new RecoveryPlanImpl(inner, this.manager()); } else { @@ -112,10 +112,10 @@ public RecoveryPlan failoverCommit(String resourceName, String resourceGroupName } } - public RecoveryPlan plannedFailover(String resourceName, String resourceGroupName, String recoveryPlanName, + public RecoveryPlan plannedFailover(String resourceGroupName, String resourceName, String recoveryPlanName, RecoveryPlanPlannedFailoverInput input) { RecoveryPlanInner inner - = this.serviceClient().plannedFailover(resourceName, resourceGroupName, recoveryPlanName, input); + = this.serviceClient().plannedFailover(resourceGroupName, resourceName, recoveryPlanName, input); if (inner != null) { return new RecoveryPlanImpl(inner, this.manager()); } else { @@ -123,10 +123,10 @@ public RecoveryPlan plannedFailover(String resourceName, String resourceGroupNam } } - public RecoveryPlan plannedFailover(String resourceName, String resourceGroupName, String recoveryPlanName, + public RecoveryPlan plannedFailover(String resourceGroupName, String resourceName, String recoveryPlanName, RecoveryPlanPlannedFailoverInput input, Context context) { RecoveryPlanInner inner - = this.serviceClient().plannedFailover(resourceName, resourceGroupName, recoveryPlanName, input, context); + = this.serviceClient().plannedFailover(resourceGroupName, resourceName, recoveryPlanName, input, context); if (inner != null) { return new RecoveryPlanImpl(inner, this.manager()); } else { @@ -134,8 +134,8 @@ public RecoveryPlan plannedFailover(String resourceName, String resourceGroupNam } } - public RecoveryPlan reprotect(String resourceName, String resourceGroupName, String recoveryPlanName) { - RecoveryPlanInner inner = this.serviceClient().reprotect(resourceName, resourceGroupName, recoveryPlanName); + public RecoveryPlan reprotect(String resourceGroupName, String resourceName, String recoveryPlanName) { + RecoveryPlanInner inner = this.serviceClient().reprotect(resourceGroupName, resourceName, recoveryPlanName); if (inner != null) { return new RecoveryPlanImpl(inner, this.manager()); } else { @@ -143,10 +143,10 @@ public RecoveryPlan reprotect(String resourceName, String resourceGroupName, Str } } - public RecoveryPlan reprotect(String resourceName, String resourceGroupName, String recoveryPlanName, + public RecoveryPlan reprotect(String resourceGroupName, String resourceName, String recoveryPlanName, Context context) { RecoveryPlanInner inner - = this.serviceClient().reprotect(resourceName, resourceGroupName, recoveryPlanName, context); + = this.serviceClient().reprotect(resourceGroupName, resourceName, recoveryPlanName, context); if (inner != null) { return new RecoveryPlanImpl(inner, this.manager()); } else { @@ -154,10 +154,10 @@ public RecoveryPlan reprotect(String resourceName, String resourceGroupName, Str } } - public RecoveryPlan testFailover(String resourceName, String resourceGroupName, String recoveryPlanName, + public RecoveryPlan testFailover(String resourceGroupName, String resourceName, String recoveryPlanName, RecoveryPlanTestFailoverInput input) { RecoveryPlanInner inner - = this.serviceClient().testFailover(resourceName, resourceGroupName, recoveryPlanName, input); + = this.serviceClient().testFailover(resourceGroupName, resourceName, recoveryPlanName, input); if (inner != null) { return new RecoveryPlanImpl(inner, this.manager()); } else { @@ -165,10 +165,10 @@ public RecoveryPlan testFailover(String resourceName, String resourceGroupName, } } - public RecoveryPlan testFailover(String resourceName, String resourceGroupName, String recoveryPlanName, + public RecoveryPlan testFailover(String resourceGroupName, String resourceName, String recoveryPlanName, RecoveryPlanTestFailoverInput input, Context context) { RecoveryPlanInner inner - = this.serviceClient().testFailover(resourceName, resourceGroupName, recoveryPlanName, input, context); + = this.serviceClient().testFailover(resourceGroupName, resourceName, recoveryPlanName, input, context); if (inner != null) { return new RecoveryPlanImpl(inner, this.manager()); } else { @@ -176,10 +176,10 @@ public RecoveryPlan testFailover(String resourceName, String resourceGroupName, } } - public RecoveryPlan testFailoverCleanup(String resourceName, String resourceGroupName, String recoveryPlanName, + public RecoveryPlan testFailoverCleanup(String resourceGroupName, String resourceName, String recoveryPlanName, RecoveryPlanTestFailoverCleanupInput input) { RecoveryPlanInner inner - = this.serviceClient().testFailoverCleanup(resourceName, resourceGroupName, recoveryPlanName, input); + = this.serviceClient().testFailoverCleanup(resourceGroupName, resourceName, recoveryPlanName, input); if (inner != null) { return new RecoveryPlanImpl(inner, this.manager()); } else { @@ -187,10 +187,10 @@ public RecoveryPlan testFailoverCleanup(String resourceName, String resourceGrou } } - public RecoveryPlan testFailoverCleanup(String resourceName, String resourceGroupName, String recoveryPlanName, + public RecoveryPlan testFailoverCleanup(String resourceGroupName, String resourceName, String recoveryPlanName, RecoveryPlanTestFailoverCleanupInput input, Context context) { RecoveryPlanInner inner = this.serviceClient() - .testFailoverCleanup(resourceName, resourceGroupName, recoveryPlanName, input, context); + .testFailoverCleanup(resourceGroupName, resourceName, recoveryPlanName, input, context); if (inner != null) { return new RecoveryPlanImpl(inner, this.manager()); } else { @@ -198,10 +198,10 @@ public RecoveryPlan testFailoverCleanup(String resourceName, String resourceGrou } } - public RecoveryPlan unplannedFailover(String resourceName, String resourceGroupName, String recoveryPlanName, + public RecoveryPlan unplannedFailover(String resourceGroupName, String resourceName, String recoveryPlanName, RecoveryPlanUnplannedFailoverInput input) { RecoveryPlanInner inner - = this.serviceClient().unplannedFailover(resourceName, resourceGroupName, recoveryPlanName, input); + = this.serviceClient().unplannedFailover(resourceGroupName, resourceName, recoveryPlanName, input); if (inner != null) { return new RecoveryPlanImpl(inner, this.manager()); } else { @@ -209,10 +209,10 @@ public RecoveryPlan unplannedFailover(String resourceName, String resourceGroupN } } - public RecoveryPlan unplannedFailover(String resourceName, String resourceGroupName, String recoveryPlanName, + public RecoveryPlan unplannedFailover(String resourceGroupName, String resourceName, String recoveryPlanName, RecoveryPlanUnplannedFailoverInput input, Context context) { RecoveryPlanInner inner - = this.serviceClient().unplannedFailover(resourceName, resourceGroupName, recoveryPlanName, input, context); + = this.serviceClient().unplannedFailover(resourceGroupName, resourceName, recoveryPlanName, input, context); if (inner != null) { return new RecoveryPlanImpl(inner, this.manager()); } else { @@ -221,79 +221,79 @@ public RecoveryPlan unplannedFailover(String resourceName, String resourceGroupN } public RecoveryPlan getById(String id) { - String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); - if (resourceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); - } String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); + if (resourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); + } String recoveryPlanName = ResourceManagerUtils.getValueFromIdByName(id, "replicationRecoveryPlans"); if (recoveryPlanName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException(String .format("The resource ID '%s' is not valid. Missing path segment 'replicationRecoveryPlans'.", id))); } - return this.getWithResponse(resourceName, resourceGroupName, recoveryPlanName, Context.NONE).getValue(); + return this.getWithResponse(resourceGroupName, resourceName, recoveryPlanName, Context.NONE).getValue(); } public Response getByIdWithResponse(String id, Context context) { - String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); - if (resourceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); - } String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); + if (resourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); + } String recoveryPlanName = ResourceManagerUtils.getValueFromIdByName(id, "replicationRecoveryPlans"); if (recoveryPlanName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException(String .format("The resource ID '%s' is not valid. Missing path segment 'replicationRecoveryPlans'.", id))); } - return this.getWithResponse(resourceName, resourceGroupName, recoveryPlanName, context); + return this.getWithResponse(resourceGroupName, resourceName, recoveryPlanName, context); } public void deleteById(String id) { - String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); - if (resourceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); - } String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); + if (resourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); + } String recoveryPlanName = ResourceManagerUtils.getValueFromIdByName(id, "replicationRecoveryPlans"); if (recoveryPlanName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException(String .format("The resource ID '%s' is not valid. Missing path segment 'replicationRecoveryPlans'.", id))); } - this.delete(resourceName, resourceGroupName, recoveryPlanName, Context.NONE); + this.delete(resourceGroupName, resourceName, recoveryPlanName, Context.NONE); } public void deleteByIdWithResponse(String id, Context context) { - String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); - if (resourceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); - } String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); + if (resourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); + } String recoveryPlanName = ResourceManagerUtils.getValueFromIdByName(id, "replicationRecoveryPlans"); if (recoveryPlanName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException(String .format("The resource ID '%s' is not valid. Missing path segment 'replicationRecoveryPlans'.", id))); } - this.delete(resourceName, resourceGroupName, recoveryPlanName, context); + this.delete(resourceGroupName, resourceName, recoveryPlanName, context); } private ReplicationRecoveryPlansClient serviceClient() { diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationRecoveryServicesProvidersClientImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationRecoveryServicesProvidersClientImpl.java index 918c6e85289c..51e8e734f700 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationRecoveryServicesProvidersClientImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationRecoveryServicesProvidersClientImpl.java @@ -79,30 +79,28 @@ public interface ReplicationRecoveryServicesProvidersService { @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByReplicationFabrics(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, - @HeaderParam("Accept") String accept, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationRecoveryServicesProviders/{providerName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, - @PathParam("providerName") String providerName, @HeaderParam("Accept") String accept, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("providerName") String providerName, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationRecoveryServicesProviders/{providerName}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> create(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, - @PathParam("providerName") String providerName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("providerName") String providerName, @BodyParam("application/json") AddRecoveryServicesProviderInput addProviderInput, @HeaderParam("Accept") String accept, Context context); @@ -111,39 +109,39 @@ Mono>> create(@HostParam("$host") String endpoint, @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> purge(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, - @PathParam("providerName") String providerName, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("providerName") String providerName, + Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationRecoveryServicesProviders/{providerName}/refreshProvider") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> refreshProvider(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, - @PathParam("providerName") String providerName, @HeaderParam("Accept") String accept, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("providerName") String providerName, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationRecoveryServicesProviders/{providerName}/remove") @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> delete(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, - @PathParam("providerName") String providerName, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("providerName") String providerName, + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryServicesProviders") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> list(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @@ -167,8 +165,8 @@ Mono> listNext( * * Lists the registered recovery services providers for the specified fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -177,18 +175,18 @@ Mono> listNext( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> - listByReplicationFabricsSinglePageAsync(String resourceName, String resourceGroupName, String fabricName) { + listByReplicationFabricsSinglePageAsync(String resourceGroupName, String resourceName, String fabricName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -200,7 +198,7 @@ Mono> listNext( return FluxUtil .withContext( context -> service.listByReplicationFabrics(this.client.getEndpoint(), this.client.getApiVersion(), - resourceName, resourceGroupName, this.client.getSubscriptionId(), fabricName, accept, context)) + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -211,8 +209,8 @@ Mono> listNext( * * Lists the registered recovery services providers for the specified fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -222,18 +220,18 @@ Mono> listNext( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByReplicationFabricsSinglePageAsync( - String resourceName, String resourceGroupName, String fabricName, Context context) { + String resourceGroupName, String resourceName, String fabricName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -244,8 +242,8 @@ private Mono> listByReplicationFabr final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByReplicationFabrics(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, accept, context) + .listByReplicationFabrics(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), fabricName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -255,8 +253,8 @@ private Mono> listByReplicationFabr * * Lists the registered recovery services providers for the specified fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -264,10 +262,10 @@ private Mono> listByReplicationFabr * @return collection of providers as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByReplicationFabricsAsync(String resourceName, - String resourceGroupName, String fabricName) { + private PagedFlux listByReplicationFabricsAsync(String resourceGroupName, + String resourceName, String fabricName) { return new PagedFlux<>( - () -> listByReplicationFabricsSinglePageAsync(resourceName, resourceGroupName, fabricName), + () -> listByReplicationFabricsSinglePageAsync(resourceGroupName, resourceName, fabricName), nextLink -> listByReplicationFabricsNextSinglePageAsync(nextLink)); } @@ -276,8 +274,8 @@ private PagedFlux listByReplicationFabricsAsync(S * * Lists the registered recovery services providers for the specified fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -286,10 +284,10 @@ private PagedFlux listByReplicationFabricsAsync(S * @return collection of providers as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByReplicationFabricsAsync(String resourceName, - String resourceGroupName, String fabricName, Context context) { + private PagedFlux listByReplicationFabricsAsync(String resourceGroupName, + String resourceName, String fabricName, Context context) { return new PagedFlux<>( - () -> listByReplicationFabricsSinglePageAsync(resourceName, resourceGroupName, fabricName, context), + () -> listByReplicationFabricsSinglePageAsync(resourceGroupName, resourceName, fabricName, context), nextLink -> listByReplicationFabricsNextSinglePageAsync(nextLink, context)); } @@ -298,8 +296,8 @@ private PagedFlux listByReplicationFabricsAsync(S * * Lists the registered recovery services providers for the specified fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -307,9 +305,9 @@ private PagedFlux listByReplicationFabricsAsync(S * @return collection of providers as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByReplicationFabrics(String resourceName, - String resourceGroupName, String fabricName) { - return new PagedIterable<>(listByReplicationFabricsAsync(resourceName, resourceGroupName, fabricName)); + public PagedIterable listByReplicationFabrics(String resourceGroupName, + String resourceName, String fabricName) { + return new PagedIterable<>(listByReplicationFabricsAsync(resourceGroupName, resourceName, fabricName)); } /** @@ -317,8 +315,8 @@ public PagedIterable listByReplicationFabrics(Str * * Lists the registered recovery services providers for the specified fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -327,9 +325,9 @@ public PagedIterable listByReplicationFabrics(Str * @return collection of providers as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByReplicationFabrics(String resourceName, - String resourceGroupName, String fabricName, Context context) { - return new PagedIterable<>(listByReplicationFabricsAsync(resourceName, resourceGroupName, fabricName, context)); + public PagedIterable listByReplicationFabrics(String resourceGroupName, + String resourceName, String fabricName, Context context) { + return new PagedIterable<>(listByReplicationFabricsAsync(resourceGroupName, resourceName, fabricName, context)); } /** @@ -337,8 +335,8 @@ public PagedIterable listByReplicationFabrics(Str * * Gets the details of registered recovery services provider. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -348,19 +346,19 @@ public PagedIterable listByReplicationFabrics(Str * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, String providerName) { + private Mono> getWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String providerName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -373,8 +371,9 @@ private Mono> getWithResponseAsync(Strin } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, providerName, accept, context)) + .withContext( + context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), fabricName, providerName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -383,8 +382,8 @@ private Mono> getWithResponseAsync(Strin * * Gets the details of registered recovery services provider. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param context The context to associate with this operation. @@ -395,19 +394,19 @@ private Mono> getWithResponseAsync(Strin * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, String providerName, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String providerName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -420,7 +419,7 @@ private Mono> getWithResponseAsync(Strin } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, providerName, accept, context); } @@ -429,8 +428,8 @@ private Mono> getWithResponseAsync(Strin * * Gets the details of registered recovery services provider. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -439,9 +438,9 @@ private Mono> getWithResponseAsync(Strin * @return the details of registered recovery services provider on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceName, String resourceGroupName, + private Mono getAsync(String resourceGroupName, String resourceName, String fabricName, String providerName) { - return getWithResponseAsync(resourceName, resourceGroupName, fabricName, providerName) + return getWithResponseAsync(resourceGroupName, resourceName, fabricName, providerName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } @@ -450,8 +449,8 @@ private Mono getAsync(String resourceName, String * * Gets the details of registered recovery services provider. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param context The context to associate with this operation. @@ -461,9 +460,9 @@ private Mono getAsync(String resourceName, String * @return the details of registered recovery services provider along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceName, String resourceGroupName, + public Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String providerName, Context context) { - return getWithResponseAsync(resourceName, resourceGroupName, fabricName, providerName, context).block(); + return getWithResponseAsync(resourceGroupName, resourceName, fabricName, providerName, context).block(); } /** @@ -471,8 +470,8 @@ public Response getWithResponse(String resourceNa * * Gets the details of registered recovery services provider. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -481,9 +480,9 @@ public Response getWithResponse(String resourceNa * @return the details of registered recovery services provider. */ @ServiceMethod(returns = ReturnType.SINGLE) - public RecoveryServicesProviderInner get(String resourceName, String resourceGroupName, String fabricName, + public RecoveryServicesProviderInner get(String resourceGroupName, String resourceName, String fabricName, String providerName) { - return getWithResponse(resourceName, resourceGroupName, fabricName, providerName, Context.NONE).getValue(); + return getWithResponse(resourceGroupName, resourceName, fabricName, providerName, Context.NONE).getValue(); } /** @@ -491,8 +490,8 @@ public RecoveryServicesProviderInner get(String resourceName, String resourceGro * * The operation to add a recovery services provider. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param addProviderInput Add provider input. @@ -502,19 +501,19 @@ public RecoveryServicesProviderInner get(String resourceName, String resourceGro * @return provider details along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> createWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String providerName, AddRecoveryServicesProviderInput addProviderInput) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -533,9 +532,9 @@ private Mono>> createWithResponseAsync(String resource } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, providerName, addProviderInput, accept, - context)) + .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, providerName, + addProviderInput, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -544,8 +543,8 @@ private Mono>> createWithResponseAsync(String resource * * The operation to add a recovery services provider. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param addProviderInput Add provider input. @@ -556,19 +555,19 @@ private Mono>> createWithResponseAsync(String resource * @return provider details along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> createWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String providerName, AddRecoveryServicesProviderInput addProviderInput, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -587,7 +586,7 @@ private Mono>> createWithResponseAsync(String resource } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.create(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.create(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, providerName, addProviderInput, accept, context); } @@ -596,8 +595,8 @@ private Mono>> createWithResponseAsync(String resource * * The operation to add a recovery services provider. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param addProviderInput Add provider input. @@ -608,10 +607,10 @@ private Mono>> createWithResponseAsync(String resource */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, RecoveryServicesProviderInner> beginCreateAsync( - String resourceName, String resourceGroupName, String fabricName, String providerName, + String resourceGroupName, String resourceName, String fabricName, String providerName, AddRecoveryServicesProviderInput addProviderInput) { Mono>> mono - = createWithResponseAsync(resourceName, resourceGroupName, fabricName, providerName, addProviderInput); + = createWithResponseAsync(resourceGroupName, resourceName, fabricName, providerName, addProviderInput); return this.client.getLroResult(mono, this.client.getHttpPipeline(), RecoveryServicesProviderInner.class, RecoveryServicesProviderInner.class, this.client.getContext()); @@ -622,8 +621,8 @@ private PollerFlux, RecoveryServicesPr * * The operation to add a recovery services provider. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param addProviderInput Add provider input. @@ -635,10 +634,10 @@ private PollerFlux, RecoveryServicesPr */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, RecoveryServicesProviderInner> beginCreateAsync( - String resourceName, String resourceGroupName, String fabricName, String providerName, + String resourceGroupName, String resourceName, String fabricName, String providerName, AddRecoveryServicesProviderInput addProviderInput, Context context) { context = this.client.mergeContext(context); - Mono>> mono = createWithResponseAsync(resourceName, resourceGroupName, fabricName, + Mono>> mono = createWithResponseAsync(resourceGroupName, resourceName, fabricName, providerName, addProviderInput, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), RecoveryServicesProviderInner.class, RecoveryServicesProviderInner.class, @@ -650,8 +649,8 @@ private PollerFlux, RecoveryServicesPr * * The operation to add a recovery services provider. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param addProviderInput Add provider input. @@ -662,9 +661,9 @@ private PollerFlux, RecoveryServicesPr */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, RecoveryServicesProviderInner> beginCreate( - String resourceName, String resourceGroupName, String fabricName, String providerName, + String resourceGroupName, String resourceName, String fabricName, String providerName, AddRecoveryServicesProviderInput addProviderInput) { - return this.beginCreateAsync(resourceName, resourceGroupName, fabricName, providerName, addProviderInput) + return this.beginCreateAsync(resourceGroupName, resourceName, fabricName, providerName, addProviderInput) .getSyncPoller(); } @@ -673,8 +672,8 @@ public SyncPoller, RecoveryServicesPro * * The operation to add a recovery services provider. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param addProviderInput Add provider input. @@ -686,10 +685,10 @@ public SyncPoller, RecoveryServicesPro */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, RecoveryServicesProviderInner> beginCreate( - String resourceName, String resourceGroupName, String fabricName, String providerName, + String resourceGroupName, String resourceName, String fabricName, String providerName, AddRecoveryServicesProviderInput addProviderInput, Context context) { return this - .beginCreateAsync(resourceName, resourceGroupName, fabricName, providerName, addProviderInput, context) + .beginCreateAsync(resourceGroupName, resourceName, fabricName, providerName, addProviderInput, context) .getSyncPoller(); } @@ -698,8 +697,8 @@ public SyncPoller, RecoveryServicesPro * * The operation to add a recovery services provider. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param addProviderInput Add provider input. @@ -709,9 +708,9 @@ public SyncPoller, RecoveryServicesPro * @return provider details on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync(String resourceName, String resourceGroupName, + private Mono createAsync(String resourceGroupName, String resourceName, String fabricName, String providerName, AddRecoveryServicesProviderInput addProviderInput) { - return beginCreateAsync(resourceName, resourceGroupName, fabricName, providerName, addProviderInput).last() + return beginCreateAsync(resourceGroupName, resourceName, fabricName, providerName, addProviderInput).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -720,8 +719,8 @@ private Mono createAsync(String resourceName, Str * * The operation to add a recovery services provider. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param addProviderInput Add provider input. @@ -732,9 +731,9 @@ private Mono createAsync(String resourceName, Str * @return provider details on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync(String resourceName, String resourceGroupName, + private Mono createAsync(String resourceGroupName, String resourceName, String fabricName, String providerName, AddRecoveryServicesProviderInput addProviderInput, Context context) { - return beginCreateAsync(resourceName, resourceGroupName, fabricName, providerName, addProviderInput, context) + return beginCreateAsync(resourceGroupName, resourceName, fabricName, providerName, addProviderInput, context) .last() .flatMap(this.client::getLroFinalResultOrError); } @@ -744,8 +743,8 @@ private Mono createAsync(String resourceName, Str * * The operation to add a recovery services provider. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param addProviderInput Add provider input. @@ -755,9 +754,9 @@ private Mono createAsync(String resourceName, Str * @return provider details. */ @ServiceMethod(returns = ReturnType.SINGLE) - public RecoveryServicesProviderInner create(String resourceName, String resourceGroupName, String fabricName, + public RecoveryServicesProviderInner create(String resourceGroupName, String resourceName, String fabricName, String providerName, AddRecoveryServicesProviderInput addProviderInput) { - return createAsync(resourceName, resourceGroupName, fabricName, providerName, addProviderInput).block(); + return createAsync(resourceGroupName, resourceName, fabricName, providerName, addProviderInput).block(); } /** @@ -765,8 +764,8 @@ public RecoveryServicesProviderInner create(String resourceName, String resource * * The operation to add a recovery services provider. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param addProviderInput Add provider input. @@ -777,9 +776,9 @@ public RecoveryServicesProviderInner create(String resourceName, String resource * @return provider details. */ @ServiceMethod(returns = ReturnType.SINGLE) - public RecoveryServicesProviderInner create(String resourceName, String resourceGroupName, String fabricName, + public RecoveryServicesProviderInner create(String resourceGroupName, String resourceName, String fabricName, String providerName, AddRecoveryServicesProviderInput addProviderInput, Context context) { - return createAsync(resourceName, resourceGroupName, fabricName, providerName, addProviderInput, context) + return createAsync(resourceGroupName, resourceName, fabricName, providerName, addProviderInput, context) .block(); } @@ -788,8 +787,8 @@ public RecoveryServicesProviderInner create(String resourceName, String resource * * The operation to purge(force delete) a recovery services provider from the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -798,19 +797,19 @@ public RecoveryServicesProviderInner create(String resourceName, String resource * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> purgeWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> purgeWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String providerName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -822,8 +821,8 @@ private Mono>> purgeWithResponseAsync(String resourceN return Mono.error(new IllegalArgumentException("Parameter providerName is required and cannot be null.")); } return FluxUtil - .withContext(context -> service.purge(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, providerName, context)) + .withContext(context -> service.purge(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, providerName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -832,8 +831,8 @@ private Mono>> purgeWithResponseAsync(String resourceN * * The operation to purge(force delete) a recovery services provider from the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param context The context to associate with this operation. @@ -843,19 +842,19 @@ private Mono>> purgeWithResponseAsync(String resourceN * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> purgeWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> purgeWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String providerName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -867,7 +866,7 @@ private Mono>> purgeWithResponseAsync(String resourceN return Mono.error(new IllegalArgumentException("Parameter providerName is required and cannot be null.")); } context = this.client.mergeContext(context); - return service.purge(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.purge(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, providerName, context); } @@ -876,8 +875,8 @@ private Mono>> purgeWithResponseAsync(String resourceN * * The operation to purge(force delete) a recovery services provider from the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -886,10 +885,10 @@ private Mono>> purgeWithResponseAsync(String resourceN * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginPurgeAsync(String resourceName, String resourceGroupName, + private PollerFlux, Void> beginPurgeAsync(String resourceGroupName, String resourceName, String fabricName, String providerName) { Mono>> mono - = purgeWithResponseAsync(resourceName, resourceGroupName, fabricName, providerName); + = purgeWithResponseAsync(resourceGroupName, resourceName, fabricName, providerName); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } @@ -899,8 +898,8 @@ private PollerFlux, Void> beginPurgeAsync(String resourceName, * * The operation to purge(force delete) a recovery services provider from the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param context The context to associate with this operation. @@ -910,11 +909,11 @@ private PollerFlux, Void> beginPurgeAsync(String resourceName, * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginPurgeAsync(String resourceName, String resourceGroupName, + private PollerFlux, Void> beginPurgeAsync(String resourceGroupName, String resourceName, String fabricName, String providerName, Context context) { context = this.client.mergeContext(context); Mono>> mono - = purgeWithResponseAsync(resourceName, resourceGroupName, fabricName, providerName, context); + = purgeWithResponseAsync(resourceGroupName, resourceName, fabricName, providerName, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); } @@ -924,8 +923,8 @@ private PollerFlux, Void> beginPurgeAsync(String resourceName, * * The operation to purge(force delete) a recovery services provider from the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -934,9 +933,9 @@ private PollerFlux, Void> beginPurgeAsync(String resourceName, * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginPurge(String resourceName, String resourceGroupName, + public SyncPoller, Void> beginPurge(String resourceGroupName, String resourceName, String fabricName, String providerName) { - return this.beginPurgeAsync(resourceName, resourceGroupName, fabricName, providerName).getSyncPoller(); + return this.beginPurgeAsync(resourceGroupName, resourceName, fabricName, providerName).getSyncPoller(); } /** @@ -944,8 +943,8 @@ public SyncPoller, Void> beginPurge(String resourceName, String * * The operation to purge(force delete) a recovery services provider from the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param context The context to associate with this operation. @@ -955,9 +954,9 @@ public SyncPoller, Void> beginPurge(String resourceName, String * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginPurge(String resourceName, String resourceGroupName, + public SyncPoller, Void> beginPurge(String resourceGroupName, String resourceName, String fabricName, String providerName, Context context) { - return this.beginPurgeAsync(resourceName, resourceGroupName, fabricName, providerName, context).getSyncPoller(); + return this.beginPurgeAsync(resourceGroupName, resourceName, fabricName, providerName, context).getSyncPoller(); } /** @@ -965,8 +964,8 @@ public SyncPoller, Void> beginPurge(String resourceName, String * * The operation to purge(force delete) a recovery services provider from the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -975,9 +974,9 @@ public SyncPoller, Void> beginPurge(String resourceName, String * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono purgeAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono purgeAsync(String resourceGroupName, String resourceName, String fabricName, String providerName) { - return beginPurgeAsync(resourceName, resourceGroupName, fabricName, providerName).last() + return beginPurgeAsync(resourceGroupName, resourceName, fabricName, providerName).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -986,8 +985,8 @@ private Mono purgeAsync(String resourceName, String resourceGroupName, Str * * The operation to purge(force delete) a recovery services provider from the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param context The context to associate with this operation. @@ -997,9 +996,9 @@ private Mono purgeAsync(String resourceName, String resourceGroupName, Str * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono purgeAsync(String resourceName, String resourceGroupName, String fabricName, String providerName, + private Mono purgeAsync(String resourceGroupName, String resourceName, String fabricName, String providerName, Context context) { - return beginPurgeAsync(resourceName, resourceGroupName, fabricName, providerName, context).last() + return beginPurgeAsync(resourceGroupName, resourceName, fabricName, providerName, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1008,8 +1007,8 @@ private Mono purgeAsync(String resourceName, String resourceGroupName, Str * * The operation to purge(force delete) a recovery services provider from the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1017,8 +1016,8 @@ private Mono purgeAsync(String resourceName, String resourceGroupName, Str * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void purge(String resourceName, String resourceGroupName, String fabricName, String providerName) { - purgeAsync(resourceName, resourceGroupName, fabricName, providerName).block(); + public void purge(String resourceGroupName, String resourceName, String fabricName, String providerName) { + purgeAsync(resourceGroupName, resourceName, fabricName, providerName).block(); } /** @@ -1026,8 +1025,8 @@ public void purge(String resourceName, String resourceGroupName, String fabricNa * * The operation to purge(force delete) a recovery services provider from the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param context The context to associate with this operation. @@ -1036,9 +1035,9 @@ public void purge(String resourceName, String resourceGroupName, String fabricNa * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void purge(String resourceName, String resourceGroupName, String fabricName, String providerName, + public void purge(String resourceGroupName, String resourceName, String fabricName, String providerName, Context context) { - purgeAsync(resourceName, resourceGroupName, fabricName, providerName, context).block(); + purgeAsync(resourceGroupName, resourceName, fabricName, providerName, context).block(); } /** @@ -1046,8 +1045,8 @@ public void purge(String resourceName, String resourceGroupName, String fabricNa * * The operation to refresh the information from the recovery services provider. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1056,19 +1055,19 @@ public void purge(String resourceName, String resourceGroupName, String fabricNa * @return provider details along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> refreshProviderWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, String providerName) { + private Mono>> refreshProviderWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String providerName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1081,9 +1080,9 @@ private Mono>> refreshProviderWithResponseAsync(String } final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.refreshProvider(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, providerName, accept, context)) + .withContext(context -> service.refreshProvider(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, providerName, accept, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1092,8 +1091,8 @@ private Mono>> refreshProviderWithResponseAsync(String * * The operation to refresh the information from the recovery services provider. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param context The context to associate with this operation. @@ -1103,19 +1102,19 @@ private Mono>> refreshProviderWithResponseAsync(String * @return provider details along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> refreshProviderWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, String providerName, Context context) { + private Mono>> refreshProviderWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String providerName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1128,8 +1127,8 @@ private Mono>> refreshProviderWithResponseAsync(String } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.refreshProvider(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, providerName, accept, context); + return service.refreshProvider(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), fabricName, providerName, accept, context); } /** @@ -1137,8 +1136,8 @@ private Mono>> refreshProviderWithResponseAsync(String * * The operation to refresh the information from the recovery services provider. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1148,10 +1147,10 @@ private Mono>> refreshProviderWithResponseAsync(String */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, RecoveryServicesProviderInner> - beginRefreshProviderAsync(String resourceName, String resourceGroupName, String fabricName, + beginRefreshProviderAsync(String resourceGroupName, String resourceName, String fabricName, String providerName) { Mono>> mono - = refreshProviderWithResponseAsync(resourceName, resourceGroupName, fabricName, providerName); + = refreshProviderWithResponseAsync(resourceGroupName, resourceName, fabricName, providerName); return this.client.getLroResult(mono, this.client.getHttpPipeline(), RecoveryServicesProviderInner.class, RecoveryServicesProviderInner.class, this.client.getContext()); @@ -1162,8 +1161,8 @@ private Mono>> refreshProviderWithResponseAsync(String * * The operation to refresh the information from the recovery services provider. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param context The context to associate with this operation. @@ -1174,11 +1173,11 @@ private Mono>> refreshProviderWithResponseAsync(String */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, RecoveryServicesProviderInner> - beginRefreshProviderAsync(String resourceName, String resourceGroupName, String fabricName, String providerName, + beginRefreshProviderAsync(String resourceGroupName, String resourceName, String fabricName, String providerName, Context context) { context = this.client.mergeContext(context); Mono>> mono - = refreshProviderWithResponseAsync(resourceName, resourceGroupName, fabricName, providerName, context); + = refreshProviderWithResponseAsync(resourceGroupName, resourceName, fabricName, providerName, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), RecoveryServicesProviderInner.class, RecoveryServicesProviderInner.class, context); @@ -1189,8 +1188,8 @@ private Mono>> refreshProviderWithResponseAsync(String * * The operation to refresh the information from the recovery services provider. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1200,8 +1199,8 @@ private Mono>> refreshProviderWithResponseAsync(String */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, RecoveryServicesProviderInner> - beginRefreshProvider(String resourceName, String resourceGroupName, String fabricName, String providerName) { - return this.beginRefreshProviderAsync(resourceName, resourceGroupName, fabricName, providerName) + beginRefreshProvider(String resourceGroupName, String resourceName, String fabricName, String providerName) { + return this.beginRefreshProviderAsync(resourceGroupName, resourceName, fabricName, providerName) .getSyncPoller(); } @@ -1210,8 +1209,8 @@ private Mono>> refreshProviderWithResponseAsync(String * * The operation to refresh the information from the recovery services provider. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param context The context to associate with this operation. @@ -1222,8 +1221,8 @@ private Mono>> refreshProviderWithResponseAsync(String */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, RecoveryServicesProviderInner> beginRefreshProvider( - String resourceName, String resourceGroupName, String fabricName, String providerName, Context context) { - return this.beginRefreshProviderAsync(resourceName, resourceGroupName, fabricName, providerName, context) + String resourceGroupName, String resourceName, String fabricName, String providerName, Context context) { + return this.beginRefreshProviderAsync(resourceGroupName, resourceName, fabricName, providerName, context) .getSyncPoller(); } @@ -1232,8 +1231,8 @@ public SyncPoller, RecoveryServicesPro * * The operation to refresh the information from the recovery services provider. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1242,9 +1241,9 @@ public SyncPoller, RecoveryServicesPro * @return provider details on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono refreshProviderAsync(String resourceName, String resourceGroupName, + private Mono refreshProviderAsync(String resourceGroupName, String resourceName, String fabricName, String providerName) { - return beginRefreshProviderAsync(resourceName, resourceGroupName, fabricName, providerName).last() + return beginRefreshProviderAsync(resourceGroupName, resourceName, fabricName, providerName).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1253,8 +1252,8 @@ private Mono refreshProviderAsync(String resource * * The operation to refresh the information from the recovery services provider. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param context The context to associate with this operation. @@ -1264,9 +1263,9 @@ private Mono refreshProviderAsync(String resource * @return provider details on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono refreshProviderAsync(String resourceName, String resourceGroupName, + private Mono refreshProviderAsync(String resourceGroupName, String resourceName, String fabricName, String providerName, Context context) { - return beginRefreshProviderAsync(resourceName, resourceGroupName, fabricName, providerName, context).last() + return beginRefreshProviderAsync(resourceGroupName, resourceName, fabricName, providerName, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1275,8 +1274,8 @@ private Mono refreshProviderAsync(String resource * * The operation to refresh the information from the recovery services provider. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1285,9 +1284,9 @@ private Mono refreshProviderAsync(String resource * @return provider details. */ @ServiceMethod(returns = ReturnType.SINGLE) - public RecoveryServicesProviderInner refreshProvider(String resourceName, String resourceGroupName, + public RecoveryServicesProviderInner refreshProvider(String resourceGroupName, String resourceName, String fabricName, String providerName) { - return refreshProviderAsync(resourceName, resourceGroupName, fabricName, providerName).block(); + return refreshProviderAsync(resourceGroupName, resourceName, fabricName, providerName).block(); } /** @@ -1295,8 +1294,8 @@ public RecoveryServicesProviderInner refreshProvider(String resourceName, String * * The operation to refresh the information from the recovery services provider. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param context The context to associate with this operation. @@ -1306,9 +1305,9 @@ public RecoveryServicesProviderInner refreshProvider(String resourceName, String * @return provider details. */ @ServiceMethod(returns = ReturnType.SINGLE) - public RecoveryServicesProviderInner refreshProvider(String resourceName, String resourceGroupName, + public RecoveryServicesProviderInner refreshProvider(String resourceGroupName, String resourceName, String fabricName, String providerName, Context context) { - return refreshProviderAsync(resourceName, resourceGroupName, fabricName, providerName, context).block(); + return refreshProviderAsync(resourceGroupName, resourceName, fabricName, providerName, context).block(); } /** @@ -1318,8 +1317,8 @@ public RecoveryServicesProviderInner refreshProvider(String resourceName, String * * The operation to removes/delete(unregister) a recovery services provider from the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1328,19 +1327,19 @@ public RecoveryServicesProviderInner refreshProvider(String resourceName, String * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String providerName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1352,8 +1351,8 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException("Parameter providerName is required and cannot be null.")); } return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, providerName, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, providerName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1364,8 +1363,8 @@ private Mono>> deleteWithResponseAsync(String resource * * The operation to removes/delete(unregister) a recovery services provider from the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param context The context to associate with this operation. @@ -1375,19 +1374,19 @@ private Mono>> deleteWithResponseAsync(String resource * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String providerName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1399,7 +1398,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException("Parameter providerName is required and cannot be null.")); } context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, providerName, context); } @@ -1410,8 +1409,8 @@ private Mono>> deleteWithResponseAsync(String resource * * The operation to removes/delete(unregister) a recovery services provider from the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1420,10 +1419,10 @@ private Mono>> deleteWithResponseAsync(String resource * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceName, String resourceGroupName, + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, String fabricName, String providerName) { Mono>> mono - = deleteWithResponseAsync(resourceName, resourceGroupName, fabricName, providerName); + = deleteWithResponseAsync(resourceGroupName, resourceName, fabricName, providerName); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } @@ -1435,8 +1434,8 @@ private PollerFlux, Void> beginDeleteAsync(String resourceName, * * The operation to removes/delete(unregister) a recovery services provider from the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param context The context to associate with this operation. @@ -1446,11 +1445,11 @@ private PollerFlux, Void> beginDeleteAsync(String resourceName, * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceName, String resourceGroupName, + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, String fabricName, String providerName, Context context) { context = this.client.mergeContext(context); Mono>> mono - = deleteWithResponseAsync(resourceName, resourceGroupName, fabricName, providerName, context); + = deleteWithResponseAsync(resourceGroupName, resourceName, fabricName, providerName, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); } @@ -1462,8 +1461,8 @@ private PollerFlux, Void> beginDeleteAsync(String resourceName, * * The operation to removes/delete(unregister) a recovery services provider from the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1472,9 +1471,9 @@ private PollerFlux, Void> beginDeleteAsync(String resourceName, * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceName, String resourceGroupName, + public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String fabricName, String providerName) { - return this.beginDeleteAsync(resourceName, resourceGroupName, fabricName, providerName).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, resourceName, fabricName, providerName).getSyncPoller(); } /** @@ -1484,8 +1483,8 @@ public SyncPoller, Void> beginDelete(String resourceName, Strin * * The operation to removes/delete(unregister) a recovery services provider from the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param context The context to associate with this operation. @@ -1495,9 +1494,9 @@ public SyncPoller, Void> beginDelete(String resourceName, Strin * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceName, String resourceGroupName, + public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String fabricName, String providerName, Context context) { - return this.beginDeleteAsync(resourceName, resourceGroupName, fabricName, providerName, context) + return this.beginDeleteAsync(resourceGroupName, resourceName, fabricName, providerName, context) .getSyncPoller(); } @@ -1508,8 +1507,8 @@ public SyncPoller, Void> beginDelete(String resourceName, Strin * * The operation to removes/delete(unregister) a recovery services provider from the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1518,9 +1517,9 @@ public SyncPoller, Void> beginDelete(String resourceName, Strin * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono deleteAsync(String resourceGroupName, String resourceName, String fabricName, String providerName) { - return beginDeleteAsync(resourceName, resourceGroupName, fabricName, providerName).last() + return beginDeleteAsync(resourceGroupName, resourceName, fabricName, providerName).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1531,8 +1530,8 @@ private Mono deleteAsync(String resourceName, String resourceGroupName, St * * The operation to removes/delete(unregister) a recovery services provider from the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param context The context to associate with this operation. @@ -1542,9 +1541,9 @@ private Mono deleteAsync(String resourceName, String resourceGroupName, St * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono deleteAsync(String resourceGroupName, String resourceName, String fabricName, String providerName, Context context) { - return beginDeleteAsync(resourceName, resourceGroupName, fabricName, providerName, context).last() + return beginDeleteAsync(resourceGroupName, resourceName, fabricName, providerName, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1555,8 +1554,8 @@ private Mono deleteAsync(String resourceName, String resourceGroupName, St * * The operation to removes/delete(unregister) a recovery services provider from the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1564,8 +1563,8 @@ private Mono deleteAsync(String resourceName, String resourceGroupName, St * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceName, String resourceGroupName, String fabricName, String providerName) { - deleteAsync(resourceName, resourceGroupName, fabricName, providerName).block(); + public void delete(String resourceGroupName, String resourceName, String fabricName, String providerName) { + deleteAsync(resourceGroupName, resourceName, fabricName, providerName).block(); } /** @@ -1575,8 +1574,8 @@ public void delete(String resourceName, String resourceGroupName, String fabricN * * The operation to removes/delete(unregister) a recovery services provider from the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param context The context to associate with this operation. @@ -1585,9 +1584,9 @@ public void delete(String resourceName, String resourceGroupName, String fabricN * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceName, String resourceGroupName, String fabricName, String providerName, + public void delete(String resourceGroupName, String resourceName, String fabricName, String providerName, Context context) { - deleteAsync(resourceName, resourceGroupName, fabricName, providerName, context).block(); + deleteAsync(resourceGroupName, resourceName, fabricName, providerName, context).block(); } /** @@ -1595,35 +1594,35 @@ public void delete(String resourceName, String resourceGroupName, String fabricN * * Lists the registered recovery services providers in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return collection of providers along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceName, - String resourceGroupName) { + private Mono> listSinglePageAsync(String resourceGroupName, + String resourceName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1634,8 +1633,8 @@ private Mono> listSinglePageAsync(S * * Lists the registered recovery services providers in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1643,19 +1642,19 @@ private Mono> listSinglePageAsync(S * @return collection of providers along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceName, - String resourceGroupName, Context context) { + private Mono> listSinglePageAsync(String resourceGroupName, + String resourceName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1663,7 +1662,7 @@ private Mono> listSinglePageAsync(S final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + .list(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); @@ -1674,16 +1673,16 @@ private Mono> listSinglePageAsync(S * * Lists the registered recovery services providers in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return collection of providers as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceName, String resourceGroupName) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceName, resourceGroupName), + private PagedFlux listAsync(String resourceGroupName, String resourceName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName), nextLink -> listNextSinglePageAsync(nextLink)); } @@ -1692,8 +1691,8 @@ private PagedFlux listAsync(String resourceName, * * Lists the registered recovery services providers in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1701,9 +1700,9 @@ private PagedFlux listAsync(String resourceName, * @return collection of providers as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceName, String resourceGroupName, + private PagedFlux listAsync(String resourceGroupName, String resourceName, Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceName, resourceGroupName, context), + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } @@ -1712,16 +1711,16 @@ private PagedFlux listAsync(String resourceName, * * Lists the registered recovery services providers in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return collection of providers as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceName, String resourceGroupName) { - return new PagedIterable<>(listAsync(resourceName, resourceGroupName)); + public PagedIterable list(String resourceGroupName, String resourceName) { + return new PagedIterable<>(listAsync(resourceGroupName, resourceName)); } /** @@ -1729,8 +1728,8 @@ public PagedIterable list(String resourceName, St * * Lists the registered recovery services providers in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1738,9 +1737,9 @@ public PagedIterable list(String resourceName, St * @return collection of providers as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceName, String resourceGroupName, + public PagedIterable list(String resourceGroupName, String resourceName, Context context) { - return new PagedIterable<>(listAsync(resourceName, resourceGroupName, context)); + return new PagedIterable<>(listAsync(resourceGroupName, resourceName, context)); } /** diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationRecoveryServicesProvidersImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationRecoveryServicesProvidersImpl.java index 2dc4c4f72bf3..332aeeda90d4 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationRecoveryServicesProvidersImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationRecoveryServicesProvidersImpl.java @@ -27,24 +27,24 @@ public ReplicationRecoveryServicesProvidersImpl(ReplicationRecoveryServicesProvi this.serviceManager = serviceManager; } - public PagedIterable listByReplicationFabrics(String resourceName, - String resourceGroupName, String fabricName) { + public PagedIterable listByReplicationFabrics(String resourceGroupName, + String resourceName, String fabricName) { PagedIterable inner - = this.serviceClient().listByReplicationFabrics(resourceName, resourceGroupName, fabricName); + = this.serviceClient().listByReplicationFabrics(resourceGroupName, resourceName, fabricName); return ResourceManagerUtils.mapPage(inner, inner1 -> new RecoveryServicesProviderImpl(inner1, this.manager())); } - public PagedIterable listByReplicationFabrics(String resourceName, - String resourceGroupName, String fabricName, Context context) { + public PagedIterable listByReplicationFabrics(String resourceGroupName, + String resourceName, String fabricName, Context context) { PagedIterable inner - = this.serviceClient().listByReplicationFabrics(resourceName, resourceGroupName, fabricName, context); + = this.serviceClient().listByReplicationFabrics(resourceGroupName, resourceName, fabricName, context); return ResourceManagerUtils.mapPage(inner, inner1 -> new RecoveryServicesProviderImpl(inner1, this.manager())); } - public Response getWithResponse(String resourceName, String resourceGroupName, + public Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String providerName, Context context) { Response inner - = this.serviceClient().getWithResponse(resourceName, resourceGroupName, fabricName, providerName, context); + = this.serviceClient().getWithResponse(resourceGroupName, resourceName, fabricName, providerName, context); if (inner != null) { return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new RecoveryServicesProviderImpl(inner.getValue(), this.manager())); @@ -53,10 +53,10 @@ public Response getWithResponse(String resourceName, S } } - public RecoveryServicesProvider get(String resourceName, String resourceGroupName, String fabricName, + public RecoveryServicesProvider get(String resourceGroupName, String resourceName, String fabricName, String providerName) { RecoveryServicesProviderInner inner - = this.serviceClient().get(resourceName, resourceGroupName, fabricName, providerName); + = this.serviceClient().get(resourceGroupName, resourceName, fabricName, providerName); if (inner != null) { return new RecoveryServicesProviderImpl(inner, this.manager()); } else { @@ -64,19 +64,19 @@ public RecoveryServicesProvider get(String resourceName, String resourceGroupNam } } - public void purge(String resourceName, String resourceGroupName, String fabricName, String providerName) { - this.serviceClient().purge(resourceName, resourceGroupName, fabricName, providerName); + public void purge(String resourceGroupName, String resourceName, String fabricName, String providerName) { + this.serviceClient().purge(resourceGroupName, resourceName, fabricName, providerName); } - public void purge(String resourceName, String resourceGroupName, String fabricName, String providerName, + public void purge(String resourceGroupName, String resourceName, String fabricName, String providerName, Context context) { - this.serviceClient().purge(resourceName, resourceGroupName, fabricName, providerName, context); + this.serviceClient().purge(resourceGroupName, resourceName, fabricName, providerName, context); } - public RecoveryServicesProvider refreshProvider(String resourceName, String resourceGroupName, String fabricName, + public RecoveryServicesProvider refreshProvider(String resourceGroupName, String resourceName, String fabricName, String providerName) { RecoveryServicesProviderInner inner - = this.serviceClient().refreshProvider(resourceName, resourceGroupName, fabricName, providerName); + = this.serviceClient().refreshProvider(resourceGroupName, resourceName, fabricName, providerName); if (inner != null) { return new RecoveryServicesProviderImpl(inner, this.manager()); } else { @@ -84,10 +84,10 @@ public RecoveryServicesProvider refreshProvider(String resourceName, String reso } } - public RecoveryServicesProvider refreshProvider(String resourceName, String resourceGroupName, String fabricName, + public RecoveryServicesProvider refreshProvider(String resourceGroupName, String resourceName, String fabricName, String providerName, Context context) { RecoveryServicesProviderInner inner - = this.serviceClient().refreshProvider(resourceName, resourceGroupName, fabricName, providerName, context); + = this.serviceClient().refreshProvider(resourceGroupName, resourceName, fabricName, providerName, context); if (inner != null) { return new RecoveryServicesProviderImpl(inner, this.manager()); } else { @@ -95,38 +95,38 @@ public RecoveryServicesProvider refreshProvider(String resourceName, String reso } } - public void delete(String resourceName, String resourceGroupName, String fabricName, String providerName) { - this.serviceClient().delete(resourceName, resourceGroupName, fabricName, providerName); + public void delete(String resourceGroupName, String resourceName, String fabricName, String providerName) { + this.serviceClient().delete(resourceGroupName, resourceName, fabricName, providerName); } - public void delete(String resourceName, String resourceGroupName, String fabricName, String providerName, + public void delete(String resourceGroupName, String resourceName, String fabricName, String providerName, Context context) { - this.serviceClient().delete(resourceName, resourceGroupName, fabricName, providerName, context); + this.serviceClient().delete(resourceGroupName, resourceName, fabricName, providerName, context); } - public PagedIterable list(String resourceName, String resourceGroupName) { - PagedIterable inner = this.serviceClient().list(resourceName, resourceGroupName); + public PagedIterable list(String resourceGroupName, String resourceName) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, resourceName); return ResourceManagerUtils.mapPage(inner, inner1 -> new RecoveryServicesProviderImpl(inner1, this.manager())); } - public PagedIterable list(String resourceName, String resourceGroupName, + public PagedIterable list(String resourceGroupName, String resourceName, Context context) { PagedIterable inner - = this.serviceClient().list(resourceName, resourceGroupName, context); + = this.serviceClient().list(resourceGroupName, resourceName, context); return ResourceManagerUtils.mapPage(inner, inner1 -> new RecoveryServicesProviderImpl(inner1, this.manager())); } public RecoveryServicesProvider getById(String id) { - String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); - if (resourceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); - } String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); + if (resourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); + } String fabricName = ResourceManagerUtils.getValueFromIdByName(id, "replicationFabrics"); if (fabricName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( @@ -138,20 +138,20 @@ public RecoveryServicesProvider getById(String id) { "The resource ID '%s' is not valid. Missing path segment 'replicationRecoveryServicesProviders'.", id))); } - return this.getWithResponse(resourceName, resourceGroupName, fabricName, providerName, Context.NONE).getValue(); + return this.getWithResponse(resourceGroupName, resourceName, fabricName, providerName, Context.NONE).getValue(); } public Response getByIdWithResponse(String id, Context context) { - String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); - if (resourceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); - } String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); + if (resourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); + } String fabricName = ResourceManagerUtils.getValueFromIdByName(id, "replicationFabrics"); if (fabricName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( @@ -163,7 +163,7 @@ public Response getByIdWithResponse(String id, Context "The resource ID '%s' is not valid. Missing path segment 'replicationRecoveryServicesProviders'.", id))); } - return this.getWithResponse(resourceName, resourceGroupName, fabricName, providerName, context); + return this.getWithResponse(resourceGroupName, resourceName, fabricName, providerName, context); } private ReplicationRecoveryServicesProvidersClient serviceClient() { diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationVaultHealthsClientImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationVaultHealthsClientImpl.java index 88efb8b1cb87..9b1361deae8e 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationVaultHealthsClientImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationVaultHealthsClientImpl.java @@ -68,18 +68,18 @@ public interface ReplicationVaultHealthsService { @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationVaultHealth/default/refresh") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> refresh(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); } /** @@ -87,35 +87,35 @@ Mono>> refresh(@HostParam("$host") String endpoint, * * Gets the health details of the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the health details of the vault along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceName, - String resourceGroupName) { + private Mono> getWithResponseAsync(String resourceGroupName, + String resourceName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -124,8 +124,8 @@ private Mono> getWithResponseAsync(String reso * * Gets the health details of the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -133,26 +133,26 @@ private Mono> getWithResponseAsync(String reso * @return the health details of the vault along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceName, String resourceGroupName, + private Mono> getWithResponseAsync(String resourceGroupName, String resourceName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), accept, context); } @@ -161,16 +161,16 @@ private Mono> getWithResponseAsync(String reso * * Gets the health details of the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the health details of the vault on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceName, String resourceGroupName) { - return getWithResponseAsync(resourceName, resourceGroupName).flatMap(res -> Mono.justOrEmpty(res.getValue())); + private Mono getAsync(String resourceGroupName, String resourceName) { + return getWithResponseAsync(resourceGroupName, resourceName).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -178,8 +178,8 @@ private Mono getAsync(String resourceName, String resou * * Gets the health details of the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -187,9 +187,9 @@ private Mono getAsync(String resourceName, String resou * @return the health details of the vault along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceName, String resourceGroupName, + public Response getWithResponse(String resourceGroupName, String resourceName, Context context) { - return getWithResponseAsync(resourceName, resourceGroupName, context).block(); + return getWithResponseAsync(resourceGroupName, resourceName, context).block(); } /** @@ -197,41 +197,41 @@ public Response getWithResponse(String resourceName, St * * Gets the health details of the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the health details of the vault. */ @ServiceMethod(returns = ReturnType.SINGLE) - public VaultHealthDetailsInner get(String resourceName, String resourceGroupName) { - return getWithResponse(resourceName, resourceGroupName, Context.NONE).getValue(); + public VaultHealthDetailsInner get(String resourceGroupName, String resourceName) { + return getWithResponse(resourceGroupName, resourceName, Context.NONE).getValue(); } /** * Refreshes health summary of the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return vault health details definition along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> refreshWithResponseAsync(String resourceName, String resourceGroupName) { + private Mono>> refreshWithResponseAsync(String resourceGroupName, String resourceName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -239,15 +239,15 @@ private Mono>> refreshWithResponseAsync(String resourc final String accept = "application/json"; return FluxUtil .withContext(context -> service.refresh(this.client.getEndpoint(), this.client.getApiVersion(), - resourceName, resourceGroupName, this.client.getSubscriptionId(), accept, context)) + resourceGroupName, resourceName, this.client.getSubscriptionId(), accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Refreshes health summary of the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -255,34 +255,34 @@ private Mono>> refreshWithResponseAsync(String resourc * @return vault health details definition along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> refreshWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> refreshWithResponseAsync(String resourceGroupName, String resourceName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.refresh(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.refresh(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), accept, context); } /** * Refreshes health summary of the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -290,8 +290,8 @@ private Mono>> refreshWithResponseAsync(String resourc */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, VaultHealthDetailsInner> - beginRefreshAsync(String resourceName, String resourceGroupName) { - Mono>> mono = refreshWithResponseAsync(resourceName, resourceGroupName); + beginRefreshAsync(String resourceGroupName, String resourceName) { + Mono>> mono = refreshWithResponseAsync(resourceGroupName, resourceName); return this.client.getLroResult(mono, this.client.getHttpPipeline(), VaultHealthDetailsInner.class, VaultHealthDetailsInner.class, this.client.getContext()); @@ -300,8 +300,8 @@ private Mono>> refreshWithResponseAsync(String resourc /** * Refreshes health summary of the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -310,9 +310,9 @@ private Mono>> refreshWithResponseAsync(String resourc */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, VaultHealthDetailsInner> - beginRefreshAsync(String resourceName, String resourceGroupName, Context context) { + beginRefreshAsync(String resourceGroupName, String resourceName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = refreshWithResponseAsync(resourceName, resourceGroupName, context); + Mono>> mono = refreshWithResponseAsync(resourceGroupName, resourceName, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), VaultHealthDetailsInner.class, VaultHealthDetailsInner.class, context); } @@ -320,24 +320,24 @@ private Mono>> refreshWithResponseAsync(String resourc /** * Refreshes health summary of the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of vault health details definition. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, VaultHealthDetailsInner> beginRefresh(String resourceName, - String resourceGroupName) { - return this.beginRefreshAsync(resourceName, resourceGroupName).getSyncPoller(); + public SyncPoller, VaultHealthDetailsInner> + beginRefresh(String resourceGroupName, String resourceName) { + return this.beginRefreshAsync(resourceGroupName, resourceName).getSyncPoller(); } /** * Refreshes health summary of the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -345,31 +345,31 @@ public SyncPoller, VaultHealthDetailsInner> * @return the {@link SyncPoller} for polling of vault health details definition. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, VaultHealthDetailsInner> beginRefresh(String resourceName, - String resourceGroupName, Context context) { - return this.beginRefreshAsync(resourceName, resourceGroupName, context).getSyncPoller(); + public SyncPoller, VaultHealthDetailsInner> + beginRefresh(String resourceGroupName, String resourceName, Context context) { + return this.beginRefreshAsync(resourceGroupName, resourceName, context).getSyncPoller(); } /** * Refreshes health summary of the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return vault health details definition on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono refreshAsync(String resourceName, String resourceGroupName) { - return beginRefreshAsync(resourceName, resourceGroupName).last().flatMap(this.client::getLroFinalResultOrError); + private Mono refreshAsync(String resourceGroupName, String resourceName) { + return beginRefreshAsync(resourceGroupName, resourceName).last().flatMap(this.client::getLroFinalResultOrError); } /** * Refreshes health summary of the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -377,31 +377,31 @@ private Mono refreshAsync(String resourceName, String r * @return vault health details definition on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono refreshAsync(String resourceName, String resourceGroupName, Context context) { - return beginRefreshAsync(resourceName, resourceGroupName, context).last() + private Mono refreshAsync(String resourceGroupName, String resourceName, Context context) { + return beginRefreshAsync(resourceGroupName, resourceName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Refreshes health summary of the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return vault health details definition. */ @ServiceMethod(returns = ReturnType.SINGLE) - public VaultHealthDetailsInner refresh(String resourceName, String resourceGroupName) { - return refreshAsync(resourceName, resourceGroupName).block(); + public VaultHealthDetailsInner refresh(String resourceGroupName, String resourceName) { + return refreshAsync(resourceGroupName, resourceName).block(); } /** * Refreshes health summary of the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -409,7 +409,7 @@ public VaultHealthDetailsInner refresh(String resourceName, String resourceGroup * @return vault health details definition. */ @ServiceMethod(returns = ReturnType.SINGLE) - public VaultHealthDetailsInner refresh(String resourceName, String resourceGroupName, Context context) { - return refreshAsync(resourceName, resourceGroupName, context).block(); + public VaultHealthDetailsInner refresh(String resourceGroupName, String resourceName, Context context) { + return refreshAsync(resourceGroupName, resourceName, context).block(); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationVaultHealthsImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationVaultHealthsImpl.java index 60c3d2b57711..15e7535654b4 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationVaultHealthsImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationVaultHealthsImpl.java @@ -26,10 +26,10 @@ public ReplicationVaultHealthsImpl(ReplicationVaultHealthsClient innerClient, this.serviceManager = serviceManager; } - public Response getWithResponse(String resourceName, String resourceGroupName, + public Response getWithResponse(String resourceGroupName, String resourceName, Context context) { Response inner - = this.serviceClient().getWithResponse(resourceName, resourceGroupName, context); + = this.serviceClient().getWithResponse(resourceGroupName, resourceName, context); if (inner != null) { return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new VaultHealthDetailsImpl(inner.getValue(), this.manager())); @@ -38,8 +38,8 @@ public Response getWithResponse(String resourceName, String } } - public VaultHealthDetails get(String resourceName, String resourceGroupName) { - VaultHealthDetailsInner inner = this.serviceClient().get(resourceName, resourceGroupName); + public VaultHealthDetails get(String resourceGroupName, String resourceName) { + VaultHealthDetailsInner inner = this.serviceClient().get(resourceGroupName, resourceName); if (inner != null) { return new VaultHealthDetailsImpl(inner, this.manager()); } else { @@ -47,8 +47,8 @@ public VaultHealthDetails get(String resourceName, String resourceGroupName) { } } - public VaultHealthDetails refresh(String resourceName, String resourceGroupName) { - VaultHealthDetailsInner inner = this.serviceClient().refresh(resourceName, resourceGroupName); + public VaultHealthDetails refresh(String resourceGroupName, String resourceName) { + VaultHealthDetailsInner inner = this.serviceClient().refresh(resourceGroupName, resourceName); if (inner != null) { return new VaultHealthDetailsImpl(inner, this.manager()); } else { @@ -56,8 +56,8 @@ public VaultHealthDetails refresh(String resourceName, String resourceGroupName) } } - public VaultHealthDetails refresh(String resourceName, String resourceGroupName, Context context) { - VaultHealthDetailsInner inner = this.serviceClient().refresh(resourceName, resourceGroupName, context); + public VaultHealthDetails refresh(String resourceGroupName, String resourceName, Context context) { + VaultHealthDetailsInner inner = this.serviceClient().refresh(resourceGroupName, resourceName, context); if (inner != null) { return new VaultHealthDetailsImpl(inner, this.manager()); } else { diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationVaultSettingsClientImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationVaultSettingsClientImpl.java index 13ade66c7bfb..aaf1d2b3d8e3 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationVaultSettingsClientImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationVaultSettingsClientImpl.java @@ -75,28 +75,28 @@ public interface ReplicationVaultSettingsService { @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> list(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationVaultSettings/{vaultSettingName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("vaultSettingName") String vaultSettingName, - @HeaderParam("Accept") String accept, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("vaultSettingName") String vaultSettingName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationVaultSettings/{vaultSettingName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> create(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("vaultSettingName") String vaultSettingName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("vaultSettingName") String vaultSettingName, @BodyParam("application/json") VaultSettingCreationInput input, @HeaderParam("Accept") String accept, Context context); @@ -113,34 +113,34 @@ Mono> listNext(@PathParam(value = "nextLink", e * * Gets the list of vault setting. This includes the Migration Hub connection settings. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of vault setting along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceName, String resourceGroupName) { + private Mono> listSinglePageAsync(String resourceGroupName, String resourceName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -151,8 +151,8 @@ private Mono> listSinglePageAsync(String resour * * Gets the list of vault setting. This includes the Migration Hub connection settings. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -160,19 +160,19 @@ private Mono> listSinglePageAsync(String resour * @return the list of vault setting along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceName, String resourceGroupName, + private Mono> listSinglePageAsync(String resourceGroupName, String resourceName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -180,7 +180,7 @@ private Mono> listSinglePageAsync(String resour final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + .list(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); @@ -191,16 +191,16 @@ private Mono> listSinglePageAsync(String resour * * Gets the list of vault setting. This includes the Migration Hub connection settings. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of vault setting as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceName, String resourceGroupName) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceName, resourceGroupName), + private PagedFlux listAsync(String resourceGroupName, String resourceName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName), nextLink -> listNextSinglePageAsync(nextLink)); } @@ -209,8 +209,8 @@ private PagedFlux listAsync(String resourceName, String resou * * Gets the list of vault setting. This includes the Migration Hub connection settings. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -218,8 +218,8 @@ private PagedFlux listAsync(String resourceName, String resou * @return the list of vault setting as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceName, String resourceGroupName, Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceName, resourceGroupName, context), + private PagedFlux listAsync(String resourceGroupName, String resourceName, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } @@ -228,16 +228,16 @@ private PagedFlux listAsync(String resourceName, String resou * * Gets the list of vault setting. This includes the Migration Hub connection settings. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of vault setting as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceName, String resourceGroupName) { - return new PagedIterable<>(listAsync(resourceName, resourceGroupName)); + public PagedIterable list(String resourceGroupName, String resourceName) { + return new PagedIterable<>(listAsync(resourceGroupName, resourceName)); } /** @@ -245,8 +245,8 @@ public PagedIterable list(String resourceName, String resourc * * Gets the list of vault setting. This includes the Migration Hub connection settings. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -254,8 +254,8 @@ public PagedIterable list(String resourceName, String resourc * @return the list of vault setting as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceName, String resourceGroupName, Context context) { - return new PagedIterable<>(listAsync(resourceName, resourceGroupName, context)); + public PagedIterable list(String resourceGroupName, String resourceName, Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, resourceName, context)); } /** @@ -263,8 +263,8 @@ public PagedIterable list(String resourceName, String resourc * * Gets the vault setting. This includes the Migration Hub connection settings. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param vaultSettingName Vault setting name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -272,19 +272,19 @@ public PagedIterable list(String resourceName, String resourc * @return the vault setting along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceName, String resourceGroupName, + private Mono> getWithResponseAsync(String resourceGroupName, String resourceName, String vaultSettingName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -295,8 +295,8 @@ private Mono> getWithResponseAsync(String resourceNa } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), vaultSettingName, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), vaultSettingName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -305,8 +305,8 @@ private Mono> getWithResponseAsync(String resourceNa * * Gets the vault setting. This includes the Migration Hub connection settings. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param vaultSettingName Vault setting name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -315,19 +315,19 @@ private Mono> getWithResponseAsync(String resourceNa * @return the vault setting along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceName, String resourceGroupName, + private Mono> getWithResponseAsync(String resourceGroupName, String resourceName, String vaultSettingName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -338,7 +338,7 @@ private Mono> getWithResponseAsync(String resourceNa } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), vaultSettingName, accept, context); } @@ -347,8 +347,8 @@ private Mono> getWithResponseAsync(String resourceNa * * Gets the vault setting. This includes the Migration Hub connection settings. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param vaultSettingName Vault setting name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -356,8 +356,8 @@ private Mono> getWithResponseAsync(String resourceNa * @return the vault setting on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceName, String resourceGroupName, String vaultSettingName) { - return getWithResponseAsync(resourceName, resourceGroupName, vaultSettingName) + private Mono getAsync(String resourceGroupName, String resourceName, String vaultSettingName) { + return getWithResponseAsync(resourceGroupName, resourceName, vaultSettingName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } @@ -366,8 +366,8 @@ private Mono getAsync(String resourceName, String resourceGro * * Gets the vault setting. This includes the Migration Hub connection settings. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param vaultSettingName Vault setting name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -376,9 +376,9 @@ private Mono getAsync(String resourceName, String resourceGro * @return the vault setting along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceName, String resourceGroupName, + public Response getWithResponse(String resourceGroupName, String resourceName, String vaultSettingName, Context context) { - return getWithResponseAsync(resourceName, resourceGroupName, vaultSettingName, context).block(); + return getWithResponseAsync(resourceGroupName, resourceName, vaultSettingName, context).block(); } /** @@ -386,8 +386,8 @@ public Response getWithResponse(String resourceName, String r * * Gets the vault setting. This includes the Migration Hub connection settings. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param vaultSettingName Vault setting name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -395,8 +395,8 @@ public Response getWithResponse(String resourceName, String r * @return the vault setting. */ @ServiceMethod(returns = ReturnType.SINGLE) - public VaultSettingInner get(String resourceName, String resourceGroupName, String vaultSettingName) { - return getWithResponse(resourceName, resourceGroupName, vaultSettingName, Context.NONE).getValue(); + public VaultSettingInner get(String resourceGroupName, String resourceName, String vaultSettingName) { + return getWithResponse(resourceGroupName, resourceName, vaultSettingName, Context.NONE).getValue(); } /** @@ -404,8 +404,8 @@ public VaultSettingInner get(String resourceName, String resourceGroupName, Stri * * The operation to configure vault setting. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param vaultSettingName Vault setting name. * @param input Vault setting creation input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -414,19 +414,19 @@ public VaultSettingInner get(String resourceName, String resourceGroupName, Stri * @return vault setting along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> createWithResponseAsync(String resourceGroupName, String resourceName, String vaultSettingName, VaultSettingCreationInput input) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -442,8 +442,9 @@ private Mono>> createWithResponseAsync(String resource } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), vaultSettingName, input, accept, context)) + .withContext( + context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), vaultSettingName, input, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -452,8 +453,8 @@ private Mono>> createWithResponseAsync(String resource * * The operation to configure vault setting. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param vaultSettingName Vault setting name. * @param input Vault setting creation input. * @param context The context to associate with this operation. @@ -463,19 +464,19 @@ private Mono>> createWithResponseAsync(String resource * @return vault setting along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> createWithResponseAsync(String resourceGroupName, String resourceName, String vaultSettingName, VaultSettingCreationInput input, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -491,7 +492,7 @@ private Mono>> createWithResponseAsync(String resource } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.create(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.create(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), vaultSettingName, input, accept, context); } @@ -500,8 +501,8 @@ private Mono>> createWithResponseAsync(String resource * * The operation to configure vault setting. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param vaultSettingName Vault setting name. * @param input Vault setting creation input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -510,10 +511,10 @@ private Mono>> createWithResponseAsync(String resource * @return the {@link PollerFlux} for polling of vault setting. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, VaultSettingInner> beginCreateAsync(String resourceName, - String resourceGroupName, String vaultSettingName, VaultSettingCreationInput input) { + private PollerFlux, VaultSettingInner> beginCreateAsync(String resourceGroupName, + String resourceName, String vaultSettingName, VaultSettingCreationInput input) { Mono>> mono - = createWithResponseAsync(resourceName, resourceGroupName, vaultSettingName, input); + = createWithResponseAsync(resourceGroupName, resourceName, vaultSettingName, input); return this.client.getLroResult(mono, this.client.getHttpPipeline(), VaultSettingInner.class, VaultSettingInner.class, this.client.getContext()); } @@ -523,8 +524,8 @@ private PollerFlux, VaultSettingInner> beginCreate * * The operation to configure vault setting. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param vaultSettingName Vault setting name. * @param input Vault setting creation input. * @param context The context to associate with this operation. @@ -534,11 +535,11 @@ private PollerFlux, VaultSettingInner> beginCreate * @return the {@link PollerFlux} for polling of vault setting. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, VaultSettingInner> beginCreateAsync(String resourceName, - String resourceGroupName, String vaultSettingName, VaultSettingCreationInput input, Context context) { + private PollerFlux, VaultSettingInner> beginCreateAsync(String resourceGroupName, + String resourceName, String vaultSettingName, VaultSettingCreationInput input, Context context) { context = this.client.mergeContext(context); Mono>> mono - = createWithResponseAsync(resourceName, resourceGroupName, vaultSettingName, input, context); + = createWithResponseAsync(resourceGroupName, resourceName, vaultSettingName, input, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), VaultSettingInner.class, VaultSettingInner.class, context); } @@ -548,8 +549,8 @@ private PollerFlux, VaultSettingInner> beginCreate * * The operation to configure vault setting. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param vaultSettingName Vault setting name. * @param input Vault setting creation input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -558,9 +559,9 @@ private PollerFlux, VaultSettingInner> beginCreate * @return the {@link SyncPoller} for polling of vault setting. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, VaultSettingInner> beginCreate(String resourceName, - String resourceGroupName, String vaultSettingName, VaultSettingCreationInput input) { - return this.beginCreateAsync(resourceName, resourceGroupName, vaultSettingName, input).getSyncPoller(); + public SyncPoller, VaultSettingInner> beginCreate(String resourceGroupName, + String resourceName, String vaultSettingName, VaultSettingCreationInput input) { + return this.beginCreateAsync(resourceGroupName, resourceName, vaultSettingName, input).getSyncPoller(); } /** @@ -568,8 +569,8 @@ public SyncPoller, VaultSettingInner> beginCreate( * * The operation to configure vault setting. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param vaultSettingName Vault setting name. * @param input Vault setting creation input. * @param context The context to associate with this operation. @@ -579,9 +580,9 @@ public SyncPoller, VaultSettingInner> beginCreate( * @return the {@link SyncPoller} for polling of vault setting. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, VaultSettingInner> beginCreate(String resourceName, - String resourceGroupName, String vaultSettingName, VaultSettingCreationInput input, Context context) { - return this.beginCreateAsync(resourceName, resourceGroupName, vaultSettingName, input, context).getSyncPoller(); + public SyncPoller, VaultSettingInner> beginCreate(String resourceGroupName, + String resourceName, String vaultSettingName, VaultSettingCreationInput input, Context context) { + return this.beginCreateAsync(resourceGroupName, resourceName, vaultSettingName, input, context).getSyncPoller(); } /** @@ -589,8 +590,8 @@ public SyncPoller, VaultSettingInner> beginCreate( * * The operation to configure vault setting. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param vaultSettingName Vault setting name. * @param input Vault setting creation input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -599,9 +600,9 @@ public SyncPoller, VaultSettingInner> beginCreate( * @return vault setting on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync(String resourceName, String resourceGroupName, String vaultSettingName, + private Mono createAsync(String resourceGroupName, String resourceName, String vaultSettingName, VaultSettingCreationInput input) { - return beginCreateAsync(resourceName, resourceGroupName, vaultSettingName, input).last() + return beginCreateAsync(resourceGroupName, resourceName, vaultSettingName, input).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -610,8 +611,8 @@ private Mono createAsync(String resourceName, String resource * * The operation to configure vault setting. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param vaultSettingName Vault setting name. * @param input Vault setting creation input. * @param context The context to associate with this operation. @@ -621,9 +622,9 @@ private Mono createAsync(String resourceName, String resource * @return vault setting on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync(String resourceName, String resourceGroupName, String vaultSettingName, + private Mono createAsync(String resourceGroupName, String resourceName, String vaultSettingName, VaultSettingCreationInput input, Context context) { - return beginCreateAsync(resourceName, resourceGroupName, vaultSettingName, input, context).last() + return beginCreateAsync(resourceGroupName, resourceName, vaultSettingName, input, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -632,8 +633,8 @@ private Mono createAsync(String resourceName, String resource * * The operation to configure vault setting. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param vaultSettingName Vault setting name. * @param input Vault setting creation input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -642,9 +643,9 @@ private Mono createAsync(String resourceName, String resource * @return vault setting. */ @ServiceMethod(returns = ReturnType.SINGLE) - public VaultSettingInner create(String resourceName, String resourceGroupName, String vaultSettingName, + public VaultSettingInner create(String resourceGroupName, String resourceName, String vaultSettingName, VaultSettingCreationInput input) { - return createAsync(resourceName, resourceGroupName, vaultSettingName, input).block(); + return createAsync(resourceGroupName, resourceName, vaultSettingName, input).block(); } /** @@ -652,8 +653,8 @@ public VaultSettingInner create(String resourceName, String resourceGroupName, S * * The operation to configure vault setting. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param vaultSettingName Vault setting name. * @param input Vault setting creation input. * @param context The context to associate with this operation. @@ -663,9 +664,9 @@ public VaultSettingInner create(String resourceName, String resourceGroupName, S * @return vault setting. */ @ServiceMethod(returns = ReturnType.SINGLE) - public VaultSettingInner create(String resourceName, String resourceGroupName, String vaultSettingName, + public VaultSettingInner create(String resourceGroupName, String resourceName, String vaultSettingName, VaultSettingCreationInput input, Context context) { - return createAsync(resourceName, resourceGroupName, vaultSettingName, input, context).block(); + return createAsync(resourceGroupName, resourceName, vaultSettingName, input, context).block(); } /** diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationVaultSettingsImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationVaultSettingsImpl.java index ccc1a736de73..136428e1863a 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationVaultSettingsImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationVaultSettingsImpl.java @@ -27,20 +27,20 @@ public ReplicationVaultSettingsImpl(ReplicationVaultSettingsClient innerClient, this.serviceManager = serviceManager; } - public PagedIterable list(String resourceName, String resourceGroupName) { - PagedIterable inner = this.serviceClient().list(resourceName, resourceGroupName); + public PagedIterable list(String resourceGroupName, String resourceName) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, resourceName); return ResourceManagerUtils.mapPage(inner, inner1 -> new VaultSettingImpl(inner1, this.manager())); } - public PagedIterable list(String resourceName, String resourceGroupName, Context context) { - PagedIterable inner = this.serviceClient().list(resourceName, resourceGroupName, context); + public PagedIterable list(String resourceGroupName, String resourceName, Context context) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, resourceName, context); return ResourceManagerUtils.mapPage(inner, inner1 -> new VaultSettingImpl(inner1, this.manager())); } - public Response getWithResponse(String resourceName, String resourceGroupName, + public Response getWithResponse(String resourceGroupName, String resourceName, String vaultSettingName, Context context) { Response inner - = this.serviceClient().getWithResponse(resourceName, resourceGroupName, vaultSettingName, context); + = this.serviceClient().getWithResponse(resourceGroupName, resourceName, vaultSettingName, context); if (inner != null) { return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new VaultSettingImpl(inner.getValue(), this.manager())); @@ -49,8 +49,8 @@ public Response getWithResponse(String resourceName, String resour } } - public VaultSetting get(String resourceName, String resourceGroupName, String vaultSettingName) { - VaultSettingInner inner = this.serviceClient().get(resourceName, resourceGroupName, vaultSettingName); + public VaultSetting get(String resourceGroupName, String resourceName, String vaultSettingName) { + VaultSettingInner inner = this.serviceClient().get(resourceGroupName, resourceName, vaultSettingName); if (inner != null) { return new VaultSettingImpl(inner, this.manager()); } else { @@ -59,41 +59,41 @@ public VaultSetting get(String resourceName, String resourceGroupName, String va } public VaultSetting getById(String id) { - String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); - if (resourceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); - } String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); + if (resourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); + } String vaultSettingName = ResourceManagerUtils.getValueFromIdByName(id, "replicationVaultSettings"); if (vaultSettingName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException(String .format("The resource ID '%s' is not valid. Missing path segment 'replicationVaultSettings'.", id))); } - return this.getWithResponse(resourceName, resourceGroupName, vaultSettingName, Context.NONE).getValue(); + return this.getWithResponse(resourceGroupName, resourceName, vaultSettingName, Context.NONE).getValue(); } public Response getByIdWithResponse(String id, Context context) { - String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); - if (resourceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); - } String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); + if (resourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); + } String vaultSettingName = ResourceManagerUtils.getValueFromIdByName(id, "replicationVaultSettings"); if (vaultSettingName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException(String .format("The resource ID '%s' is not valid. Missing path segment 'replicationVaultSettings'.", id))); } - return this.getWithResponse(resourceName, resourceGroupName, vaultSettingName, context); + return this.getWithResponse(resourceGroupName, resourceName, vaultSettingName, context); } private ReplicationVaultSettingsClient serviceClient() { diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationvCentersClientImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationvCentersClientImpl.java index f01219e6d073..9292f17d904a 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationvCentersClientImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationvCentersClientImpl.java @@ -78,30 +78,28 @@ public interface ReplicationvCentersService { @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByReplicationFabrics(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, - @HeaderParam("Accept") String accept, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationvCenters/{vcenterName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, - @PathParam("vcenterName") String vcenterName, @HeaderParam("Accept") String accept, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("vcenterName") String vcenterName, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationvCenters/{vcenterName}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> create(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, - @PathParam("vcenterName") String vcenterName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("vcenterName") String vcenterName, @BodyParam("application/json") AddVCenterRequest addVCenterRequest, @HeaderParam("Accept") String accept, Context context); @@ -110,20 +108,18 @@ Mono>> create(@HostParam("$host") String endpoint, @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> delete(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, - @PathParam("vcenterName") String vcenterName, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("vcenterName") String vcenterName, Context context); @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationvCenters/{vcenterName}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> update(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, - @PathParam("vcenterName") String vcenterName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("vcenterName") String vcenterName, @BodyParam("application/json") UpdateVCenterRequest updateVCenterRequest, @HeaderParam("Accept") String accept, Context context); @@ -132,9 +128,9 @@ Mono>> update(@HostParam("$host") String endpoint, @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> list(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @@ -157,8 +153,8 @@ Mono> listNext(@PathParam(value = "nextLink", encode * * Lists the vCenter servers registered in a fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -166,19 +162,19 @@ Mono> listNext(@PathParam(value = "nextLink", encode * @return collection of vCenter details along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByReplicationFabricsSinglePageAsync(String resourceName, - String resourceGroupName, String fabricName) { + private Mono> listByReplicationFabricsSinglePageAsync(String resourceGroupName, + String resourceName, String fabricName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -190,7 +186,7 @@ private Mono> listByReplicationFabricsSinglePageAsyn return FluxUtil .withContext( context -> service.listByReplicationFabrics(this.client.getEndpoint(), this.client.getApiVersion(), - resourceName, resourceGroupName, this.client.getSubscriptionId(), fabricName, accept, context)) + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -201,8 +197,8 @@ private Mono> listByReplicationFabricsSinglePageAsyn * * Lists the vCenter servers registered in a fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -211,19 +207,19 @@ private Mono> listByReplicationFabricsSinglePageAsyn * @return collection of vCenter details along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByReplicationFabricsSinglePageAsync(String resourceName, - String resourceGroupName, String fabricName, Context context) { + private Mono> listByReplicationFabricsSinglePageAsync(String resourceGroupName, + String resourceName, String fabricName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -234,8 +230,8 @@ private Mono> listByReplicationFabricsSinglePageAsyn final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByReplicationFabrics(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, accept, context) + .listByReplicationFabrics(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), fabricName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -245,8 +241,8 @@ private Mono> listByReplicationFabricsSinglePageAsyn * * Lists the vCenter servers registered in a fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -254,10 +250,10 @@ private Mono> listByReplicationFabricsSinglePageAsyn * @return collection of vCenter details as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByReplicationFabricsAsync(String resourceName, String resourceGroupName, + private PagedFlux listByReplicationFabricsAsync(String resourceGroupName, String resourceName, String fabricName) { return new PagedFlux<>( - () -> listByReplicationFabricsSinglePageAsync(resourceName, resourceGroupName, fabricName), + () -> listByReplicationFabricsSinglePageAsync(resourceGroupName, resourceName, fabricName), nextLink -> listByReplicationFabricsNextSinglePageAsync(nextLink)); } @@ -266,8 +262,8 @@ private PagedFlux listByReplicationFabricsAsync(String resourceNam * * Lists the vCenter servers registered in a fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -276,10 +272,10 @@ private PagedFlux listByReplicationFabricsAsync(String resourceNam * @return collection of vCenter details as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByReplicationFabricsAsync(String resourceName, String resourceGroupName, + private PagedFlux listByReplicationFabricsAsync(String resourceGroupName, String resourceName, String fabricName, Context context) { return new PagedFlux<>( - () -> listByReplicationFabricsSinglePageAsync(resourceName, resourceGroupName, fabricName, context), + () -> listByReplicationFabricsSinglePageAsync(resourceGroupName, resourceName, fabricName, context), nextLink -> listByReplicationFabricsNextSinglePageAsync(nextLink, context)); } @@ -288,8 +284,8 @@ private PagedFlux listByReplicationFabricsAsync(String resourceNam * * Lists the vCenter servers registered in a fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -297,9 +293,9 @@ private PagedFlux listByReplicationFabricsAsync(String resourceNam * @return collection of vCenter details as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByReplicationFabrics(String resourceName, String resourceGroupName, + public PagedIterable listByReplicationFabrics(String resourceGroupName, String resourceName, String fabricName) { - return new PagedIterable<>(listByReplicationFabricsAsync(resourceName, resourceGroupName, fabricName)); + return new PagedIterable<>(listByReplicationFabricsAsync(resourceGroupName, resourceName, fabricName)); } /** @@ -307,8 +303,8 @@ public PagedIterable listByReplicationFabrics(String resourceName, * * Lists the vCenter servers registered in a fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -317,9 +313,9 @@ public PagedIterable listByReplicationFabrics(String resourceName, * @return collection of vCenter details as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByReplicationFabrics(String resourceName, String resourceGroupName, + public PagedIterable listByReplicationFabrics(String resourceGroupName, String resourceName, String fabricName, Context context) { - return new PagedIterable<>(listByReplicationFabricsAsync(resourceName, resourceGroupName, fabricName, context)); + return new PagedIterable<>(listByReplicationFabricsAsync(resourceGroupName, resourceName, fabricName, context)); } /** @@ -327,8 +323,8 @@ public PagedIterable listByReplicationFabrics(String resourceName, * * Gets the details of a registered vCenter server(Add vCenter server). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -338,19 +334,19 @@ public PagedIterable listByReplicationFabrics(String resourceName, * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceName, String resourceGroupName, + private Mono> getWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String vcenterName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -363,8 +359,9 @@ private Mono> getWithResponseAsync(String resourceName, S } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, vcenterName, accept, context)) + .withContext( + context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), fabricName, vcenterName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -373,8 +370,8 @@ private Mono> getWithResponseAsync(String resourceName, S * * Gets the details of a registered vCenter server(Add vCenter server). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param context The context to associate with this operation. @@ -385,19 +382,19 @@ private Mono> getWithResponseAsync(String resourceName, S * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceName, String resourceGroupName, + private Mono> getWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String vcenterName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -410,7 +407,7 @@ private Mono> getWithResponseAsync(String resourceName, S } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, vcenterName, accept, context); } @@ -419,8 +416,8 @@ private Mono> getWithResponseAsync(String resourceName, S * * Gets the details of a registered vCenter server(Add vCenter server). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -429,9 +426,9 @@ private Mono> getWithResponseAsync(String resourceName, S * @return the details of a registered vCenter server(Add vCenter server) on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono getAsync(String resourceGroupName, String resourceName, String fabricName, String vcenterName) { - return getWithResponseAsync(resourceName, resourceGroupName, fabricName, vcenterName) + return getWithResponseAsync(resourceGroupName, resourceName, fabricName, vcenterName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } @@ -440,8 +437,8 @@ private Mono getAsync(String resourceName, String resourceGroupNam * * Gets the details of a registered vCenter server(Add vCenter server). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param context The context to associate with this operation. @@ -451,9 +448,9 @@ private Mono getAsync(String resourceName, String resourceGroupNam * @return the details of a registered vCenter server(Add vCenter server) along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceName, String resourceGroupName, String fabricName, + public Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String vcenterName, Context context) { - return getWithResponseAsync(resourceName, resourceGroupName, fabricName, vcenterName, context).block(); + return getWithResponseAsync(resourceGroupName, resourceName, fabricName, vcenterName, context).block(); } /** @@ -461,8 +458,8 @@ public Response getWithResponse(String resourceName, String resour * * Gets the details of a registered vCenter server(Add vCenter server). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -471,8 +468,8 @@ public Response getWithResponse(String resourceName, String resour * @return the details of a registered vCenter server(Add vCenter server). */ @ServiceMethod(returns = ReturnType.SINGLE) - public VCenterInner get(String resourceName, String resourceGroupName, String fabricName, String vcenterName) { - return getWithResponse(resourceName, resourceGroupName, fabricName, vcenterName, Context.NONE).getValue(); + public VCenterInner get(String resourceGroupName, String resourceName, String fabricName, String vcenterName) { + return getWithResponse(resourceGroupName, resourceName, fabricName, vcenterName, Context.NONE).getValue(); } /** @@ -480,8 +477,8 @@ public VCenterInner get(String resourceName, String resourceGroupName, String fa * * The operation to create a vCenter object.. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param addVCenterRequest The input to the add vCenter operation. @@ -491,19 +488,19 @@ public VCenterInner get(String resourceName, String resourceGroupName, String fa * @return vCenter definition along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> createWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String vcenterName, AddVCenterRequest addVCenterRequest) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -522,9 +519,9 @@ private Mono>> createWithResponseAsync(String resource } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, vcenterName, addVCenterRequest, accept, - context)) + .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, vcenterName, + addVCenterRequest, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -533,8 +530,8 @@ private Mono>> createWithResponseAsync(String resource * * The operation to create a vCenter object.. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param addVCenterRequest The input to the add vCenter operation. @@ -545,19 +542,19 @@ private Mono>> createWithResponseAsync(String resource * @return vCenter definition along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> createWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String vcenterName, AddVCenterRequest addVCenterRequest, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -576,7 +573,7 @@ private Mono>> createWithResponseAsync(String resource } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.create(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.create(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, vcenterName, addVCenterRequest, accept, context); } @@ -585,8 +582,8 @@ private Mono>> createWithResponseAsync(String resource * * The operation to create a vCenter object.. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param addVCenterRequest The input to the add vCenter operation. @@ -596,10 +593,10 @@ private Mono>> createWithResponseAsync(String resource * @return the {@link PollerFlux} for polling of vCenter definition. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, VCenterInner> beginCreateAsync(String resourceName, - String resourceGroupName, String fabricName, String vcenterName, AddVCenterRequest addVCenterRequest) { + private PollerFlux, VCenterInner> beginCreateAsync(String resourceGroupName, + String resourceName, String fabricName, String vcenterName, AddVCenterRequest addVCenterRequest) { Mono>> mono - = createWithResponseAsync(resourceName, resourceGroupName, fabricName, vcenterName, addVCenterRequest); + = createWithResponseAsync(resourceGroupName, resourceName, fabricName, vcenterName, addVCenterRequest); return this.client.getLroResult(mono, this.client.getHttpPipeline(), VCenterInner.class, VCenterInner.class, this.client.getContext()); } @@ -609,8 +606,8 @@ private PollerFlux, VCenterInner> beginCreateAsync(Stri * * The operation to create a vCenter object.. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param addVCenterRequest The input to the add vCenter operation. @@ -621,11 +618,11 @@ private PollerFlux, VCenterInner> beginCreateAsync(Stri * @return the {@link PollerFlux} for polling of vCenter definition. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, VCenterInner> beginCreateAsync(String resourceName, - String resourceGroupName, String fabricName, String vcenterName, AddVCenterRequest addVCenterRequest, + private PollerFlux, VCenterInner> beginCreateAsync(String resourceGroupName, + String resourceName, String fabricName, String vcenterName, AddVCenterRequest addVCenterRequest, Context context) { context = this.client.mergeContext(context); - Mono>> mono = createWithResponseAsync(resourceName, resourceGroupName, fabricName, + Mono>> mono = createWithResponseAsync(resourceGroupName, resourceName, fabricName, vcenterName, addVCenterRequest, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), VCenterInner.class, VCenterInner.class, context); @@ -636,8 +633,8 @@ private PollerFlux, VCenterInner> beginCreateAsync(Stri * * The operation to create a vCenter object.. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param addVCenterRequest The input to the add vCenter operation. @@ -647,9 +644,9 @@ private PollerFlux, VCenterInner> beginCreateAsync(Stri * @return the {@link SyncPoller} for polling of vCenter definition. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, VCenterInner> beginCreate(String resourceName, String resourceGroupName, + public SyncPoller, VCenterInner> beginCreate(String resourceGroupName, String resourceName, String fabricName, String vcenterName, AddVCenterRequest addVCenterRequest) { - return this.beginCreateAsync(resourceName, resourceGroupName, fabricName, vcenterName, addVCenterRequest) + return this.beginCreateAsync(resourceGroupName, resourceName, fabricName, vcenterName, addVCenterRequest) .getSyncPoller(); } @@ -658,8 +655,8 @@ public SyncPoller, VCenterInner> beginCreate(String res * * The operation to create a vCenter object.. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param addVCenterRequest The input to the add vCenter operation. @@ -670,10 +667,10 @@ public SyncPoller, VCenterInner> beginCreate(String res * @return the {@link SyncPoller} for polling of vCenter definition. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, VCenterInner> beginCreate(String resourceName, String resourceGroupName, + public SyncPoller, VCenterInner> beginCreate(String resourceGroupName, String resourceName, String fabricName, String vcenterName, AddVCenterRequest addVCenterRequest, Context context) { return this - .beginCreateAsync(resourceName, resourceGroupName, fabricName, vcenterName, addVCenterRequest, context) + .beginCreateAsync(resourceGroupName, resourceName, fabricName, vcenterName, addVCenterRequest, context) .getSyncPoller(); } @@ -682,8 +679,8 @@ public SyncPoller, VCenterInner> beginCreate(String res * * The operation to create a vCenter object.. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param addVCenterRequest The input to the add vCenter operation. @@ -693,9 +690,9 @@ public SyncPoller, VCenterInner> beginCreate(String res * @return vCenter definition on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono createAsync(String resourceGroupName, String resourceName, String fabricName, String vcenterName, AddVCenterRequest addVCenterRequest) { - return beginCreateAsync(resourceName, resourceGroupName, fabricName, vcenterName, addVCenterRequest).last() + return beginCreateAsync(resourceGroupName, resourceName, fabricName, vcenterName, addVCenterRequest).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -704,8 +701,8 @@ private Mono createAsync(String resourceName, String resourceGroup * * The operation to create a vCenter object.. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param addVCenterRequest The input to the add vCenter operation. @@ -716,9 +713,9 @@ private Mono createAsync(String resourceName, String resourceGroup * @return vCenter definition on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono createAsync(String resourceGroupName, String resourceName, String fabricName, String vcenterName, AddVCenterRequest addVCenterRequest, Context context) { - return beginCreateAsync(resourceName, resourceGroupName, fabricName, vcenterName, addVCenterRequest, context) + return beginCreateAsync(resourceGroupName, resourceName, fabricName, vcenterName, addVCenterRequest, context) .last() .flatMap(this.client::getLroFinalResultOrError); } @@ -728,8 +725,8 @@ private Mono createAsync(String resourceName, String resourceGroup * * The operation to create a vCenter object.. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param addVCenterRequest The input to the add vCenter operation. @@ -739,9 +736,9 @@ private Mono createAsync(String resourceName, String resourceGroup * @return vCenter definition. */ @ServiceMethod(returns = ReturnType.SINGLE) - public VCenterInner create(String resourceName, String resourceGroupName, String fabricName, String vcenterName, + public VCenterInner create(String resourceGroupName, String resourceName, String fabricName, String vcenterName, AddVCenterRequest addVCenterRequest) { - return createAsync(resourceName, resourceGroupName, fabricName, vcenterName, addVCenterRequest).block(); + return createAsync(resourceGroupName, resourceName, fabricName, vcenterName, addVCenterRequest).block(); } /** @@ -749,8 +746,8 @@ public VCenterInner create(String resourceName, String resourceGroupName, String * * The operation to create a vCenter object.. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param addVCenterRequest The input to the add vCenter operation. @@ -761,9 +758,9 @@ public VCenterInner create(String resourceName, String resourceGroupName, String * @return vCenter definition. */ @ServiceMethod(returns = ReturnType.SINGLE) - public VCenterInner create(String resourceName, String resourceGroupName, String fabricName, String vcenterName, + public VCenterInner create(String resourceGroupName, String resourceName, String fabricName, String vcenterName, AddVCenterRequest addVCenterRequest, Context context) { - return createAsync(resourceName, resourceGroupName, fabricName, vcenterName, addVCenterRequest, context) + return createAsync(resourceGroupName, resourceName, fabricName, vcenterName, addVCenterRequest, context) .block(); } @@ -772,8 +769,8 @@ public VCenterInner create(String resourceName, String resourceGroupName, String * * The operation to remove(unregister) a registered vCenter server from the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -782,19 +779,19 @@ public VCenterInner create(String resourceName, String resourceGroupName, String * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String vcenterName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -806,8 +803,8 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException("Parameter vcenterName is required and cannot be null.")); } return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, vcenterName, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, vcenterName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -816,8 +813,8 @@ private Mono>> deleteWithResponseAsync(String resource * * The operation to remove(unregister) a registered vCenter server from the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param context The context to associate with this operation. @@ -827,19 +824,19 @@ private Mono>> deleteWithResponseAsync(String resource * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String vcenterName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -851,7 +848,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException("Parameter vcenterName is required and cannot be null.")); } context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, vcenterName, context); } @@ -860,8 +857,8 @@ private Mono>> deleteWithResponseAsync(String resource * * The operation to remove(unregister) a registered vCenter server from the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -870,10 +867,10 @@ private Mono>> deleteWithResponseAsync(String resource * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceName, String resourceGroupName, + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, String fabricName, String vcenterName) { Mono>> mono - = deleteWithResponseAsync(resourceName, resourceGroupName, fabricName, vcenterName); + = deleteWithResponseAsync(resourceGroupName, resourceName, fabricName, vcenterName); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } @@ -883,8 +880,8 @@ private PollerFlux, Void> beginDeleteAsync(String resourceName, * * The operation to remove(unregister) a registered vCenter server from the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param context The context to associate with this operation. @@ -894,11 +891,11 @@ private PollerFlux, Void> beginDeleteAsync(String resourceName, * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceName, String resourceGroupName, + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, String fabricName, String vcenterName, Context context) { context = this.client.mergeContext(context); Mono>> mono - = deleteWithResponseAsync(resourceName, resourceGroupName, fabricName, vcenterName, context); + = deleteWithResponseAsync(resourceGroupName, resourceName, fabricName, vcenterName, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); } @@ -908,8 +905,8 @@ private PollerFlux, Void> beginDeleteAsync(String resourceName, * * The operation to remove(unregister) a registered vCenter server from the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -918,9 +915,9 @@ private PollerFlux, Void> beginDeleteAsync(String resourceName, * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceName, String resourceGroupName, + public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String fabricName, String vcenterName) { - return this.beginDeleteAsync(resourceName, resourceGroupName, fabricName, vcenterName).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, resourceName, fabricName, vcenterName).getSyncPoller(); } /** @@ -928,8 +925,8 @@ public SyncPoller, Void> beginDelete(String resourceName, Strin * * The operation to remove(unregister) a registered vCenter server from the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param context The context to associate with this operation. @@ -939,9 +936,9 @@ public SyncPoller, Void> beginDelete(String resourceName, Strin * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceName, String resourceGroupName, + public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String fabricName, String vcenterName, Context context) { - return this.beginDeleteAsync(resourceName, resourceGroupName, fabricName, vcenterName, context).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, resourceName, fabricName, vcenterName, context).getSyncPoller(); } /** @@ -949,8 +946,8 @@ public SyncPoller, Void> beginDelete(String resourceName, Strin * * The operation to remove(unregister) a registered vCenter server from the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -959,9 +956,9 @@ public SyncPoller, Void> beginDelete(String resourceName, Strin * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono deleteAsync(String resourceGroupName, String resourceName, String fabricName, String vcenterName) { - return beginDeleteAsync(resourceName, resourceGroupName, fabricName, vcenterName).last() + return beginDeleteAsync(resourceGroupName, resourceName, fabricName, vcenterName).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -970,8 +967,8 @@ private Mono deleteAsync(String resourceName, String resourceGroupName, St * * The operation to remove(unregister) a registered vCenter server from the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param context The context to associate with this operation. @@ -981,9 +978,9 @@ private Mono deleteAsync(String resourceName, String resourceGroupName, St * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceName, String resourceGroupName, String fabricName, String vcenterName, + private Mono deleteAsync(String resourceGroupName, String resourceName, String fabricName, String vcenterName, Context context) { - return beginDeleteAsync(resourceName, resourceGroupName, fabricName, vcenterName, context).last() + return beginDeleteAsync(resourceGroupName, resourceName, fabricName, vcenterName, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -992,8 +989,8 @@ private Mono deleteAsync(String resourceName, String resourceGroupName, St * * The operation to remove(unregister) a registered vCenter server from the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1001,8 +998,8 @@ private Mono deleteAsync(String resourceName, String resourceGroupName, St * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceName, String resourceGroupName, String fabricName, String vcenterName) { - deleteAsync(resourceName, resourceGroupName, fabricName, vcenterName).block(); + public void delete(String resourceGroupName, String resourceName, String fabricName, String vcenterName) { + deleteAsync(resourceGroupName, resourceName, fabricName, vcenterName).block(); } /** @@ -1010,8 +1007,8 @@ public void delete(String resourceName, String resourceGroupName, String fabricN * * The operation to remove(unregister) a registered vCenter server from the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param context The context to associate with this operation. @@ -1020,9 +1017,9 @@ public void delete(String resourceName, String resourceGroupName, String fabricN * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceName, String resourceGroupName, String fabricName, String vcenterName, + public void delete(String resourceGroupName, String resourceName, String fabricName, String vcenterName, Context context) { - deleteAsync(resourceName, resourceGroupName, fabricName, vcenterName, context).block(); + deleteAsync(resourceGroupName, resourceName, fabricName, vcenterName, context).block(); } /** @@ -1030,8 +1027,8 @@ public void delete(String resourceName, String resourceGroupName, String fabricN * * The operation to update a registered vCenter. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param updateVCenterRequest The input to the update vCenter operation. @@ -1041,19 +1038,19 @@ public void delete(String resourceName, String resourceGroupName, String fabricN * @return vCenter definition along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> updateWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String vcenterName, UpdateVCenterRequest updateVCenterRequest) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1072,9 +1069,9 @@ private Mono>> updateWithResponseAsync(String resource } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, vcenterName, updateVCenterRequest, - accept, context)) + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, vcenterName, + updateVCenterRequest, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1083,8 +1080,8 @@ private Mono>> updateWithResponseAsync(String resource * * The operation to update a registered vCenter. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param updateVCenterRequest The input to the update vCenter operation. @@ -1095,19 +1092,19 @@ private Mono>> updateWithResponseAsync(String resource * @return vCenter definition along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> updateWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String vcenterName, UpdateVCenterRequest updateVCenterRequest, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1126,7 +1123,7 @@ private Mono>> updateWithResponseAsync(String resource } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.update(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.update(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, vcenterName, updateVCenterRequest, accept, context); } @@ -1135,8 +1132,8 @@ private Mono>> updateWithResponseAsync(String resource * * The operation to update a registered vCenter. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param updateVCenterRequest The input to the update vCenter operation. @@ -1146,10 +1143,10 @@ private Mono>> updateWithResponseAsync(String resource * @return the {@link PollerFlux} for polling of vCenter definition. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, VCenterInner> beginUpdateAsync(String resourceName, - String resourceGroupName, String fabricName, String vcenterName, UpdateVCenterRequest updateVCenterRequest) { + private PollerFlux, VCenterInner> beginUpdateAsync(String resourceGroupName, + String resourceName, String fabricName, String vcenterName, UpdateVCenterRequest updateVCenterRequest) { Mono>> mono - = updateWithResponseAsync(resourceName, resourceGroupName, fabricName, vcenterName, updateVCenterRequest); + = updateWithResponseAsync(resourceGroupName, resourceName, fabricName, vcenterName, updateVCenterRequest); return this.client.getLroResult(mono, this.client.getHttpPipeline(), VCenterInner.class, VCenterInner.class, this.client.getContext()); } @@ -1159,8 +1156,8 @@ private PollerFlux, VCenterInner> beginUpdateAsync(Stri * * The operation to update a registered vCenter. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param updateVCenterRequest The input to the update vCenter operation. @@ -1171,11 +1168,11 @@ private PollerFlux, VCenterInner> beginUpdateAsync(Stri * @return the {@link PollerFlux} for polling of vCenter definition. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, VCenterInner> beginUpdateAsync(String resourceName, - String resourceGroupName, String fabricName, String vcenterName, UpdateVCenterRequest updateVCenterRequest, + private PollerFlux, VCenterInner> beginUpdateAsync(String resourceGroupName, + String resourceName, String fabricName, String vcenterName, UpdateVCenterRequest updateVCenterRequest, Context context) { context = this.client.mergeContext(context); - Mono>> mono = updateWithResponseAsync(resourceName, resourceGroupName, fabricName, + Mono>> mono = updateWithResponseAsync(resourceGroupName, resourceName, fabricName, vcenterName, updateVCenterRequest, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), VCenterInner.class, VCenterInner.class, context); @@ -1186,8 +1183,8 @@ private PollerFlux, VCenterInner> beginUpdateAsync(Stri * * The operation to update a registered vCenter. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param updateVCenterRequest The input to the update vCenter operation. @@ -1197,9 +1194,9 @@ private PollerFlux, VCenterInner> beginUpdateAsync(Stri * @return the {@link SyncPoller} for polling of vCenter definition. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, VCenterInner> beginUpdate(String resourceName, String resourceGroupName, + public SyncPoller, VCenterInner> beginUpdate(String resourceGroupName, String resourceName, String fabricName, String vcenterName, UpdateVCenterRequest updateVCenterRequest) { - return this.beginUpdateAsync(resourceName, resourceGroupName, fabricName, vcenterName, updateVCenterRequest) + return this.beginUpdateAsync(resourceGroupName, resourceName, fabricName, vcenterName, updateVCenterRequest) .getSyncPoller(); } @@ -1208,8 +1205,8 @@ public SyncPoller, VCenterInner> beginUpdate(String res * * The operation to update a registered vCenter. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param updateVCenterRequest The input to the update vCenter operation. @@ -1220,10 +1217,10 @@ public SyncPoller, VCenterInner> beginUpdate(String res * @return the {@link SyncPoller} for polling of vCenter definition. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, VCenterInner> beginUpdate(String resourceName, String resourceGroupName, + public SyncPoller, VCenterInner> beginUpdate(String resourceGroupName, String resourceName, String fabricName, String vcenterName, UpdateVCenterRequest updateVCenterRequest, Context context) { return this - .beginUpdateAsync(resourceName, resourceGroupName, fabricName, vcenterName, updateVCenterRequest, context) + .beginUpdateAsync(resourceGroupName, resourceName, fabricName, vcenterName, updateVCenterRequest, context) .getSyncPoller(); } @@ -1232,8 +1229,8 @@ public SyncPoller, VCenterInner> beginUpdate(String res * * The operation to update a registered vCenter. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param updateVCenterRequest The input to the update vCenter operation. @@ -1243,9 +1240,9 @@ public SyncPoller, VCenterInner> beginUpdate(String res * @return vCenter definition on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono updateAsync(String resourceGroupName, String resourceName, String fabricName, String vcenterName, UpdateVCenterRequest updateVCenterRequest) { - return beginUpdateAsync(resourceName, resourceGroupName, fabricName, vcenterName, updateVCenterRequest).last() + return beginUpdateAsync(resourceGroupName, resourceName, fabricName, vcenterName, updateVCenterRequest).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1254,8 +1251,8 @@ private Mono updateAsync(String resourceName, String resourceGroup * * The operation to update a registered vCenter. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param updateVCenterRequest The input to the update vCenter operation. @@ -1266,9 +1263,9 @@ private Mono updateAsync(String resourceName, String resourceGroup * @return vCenter definition on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono updateAsync(String resourceGroupName, String resourceName, String fabricName, String vcenterName, UpdateVCenterRequest updateVCenterRequest, Context context) { - return beginUpdateAsync(resourceName, resourceGroupName, fabricName, vcenterName, updateVCenterRequest, context) + return beginUpdateAsync(resourceGroupName, resourceName, fabricName, vcenterName, updateVCenterRequest, context) .last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1278,8 +1275,8 @@ private Mono updateAsync(String resourceName, String resourceGroup * * The operation to update a registered vCenter. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param updateVCenterRequest The input to the update vCenter operation. @@ -1289,9 +1286,9 @@ private Mono updateAsync(String resourceName, String resourceGroup * @return vCenter definition. */ @ServiceMethod(returns = ReturnType.SINGLE) - public VCenterInner update(String resourceName, String resourceGroupName, String fabricName, String vcenterName, + public VCenterInner update(String resourceGroupName, String resourceName, String fabricName, String vcenterName, UpdateVCenterRequest updateVCenterRequest) { - return updateAsync(resourceName, resourceGroupName, fabricName, vcenterName, updateVCenterRequest).block(); + return updateAsync(resourceGroupName, resourceName, fabricName, vcenterName, updateVCenterRequest).block(); } /** @@ -1299,8 +1296,8 @@ public VCenterInner update(String resourceName, String resourceGroupName, String * * The operation to update a registered vCenter. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param updateVCenterRequest The input to the update vCenter operation. @@ -1311,9 +1308,9 @@ public VCenterInner update(String resourceName, String resourceGroupName, String * @return vCenter definition. */ @ServiceMethod(returns = ReturnType.SINGLE) - public VCenterInner update(String resourceName, String resourceGroupName, String fabricName, String vcenterName, + public VCenterInner update(String resourceGroupName, String resourceName, String fabricName, String vcenterName, UpdateVCenterRequest updateVCenterRequest, Context context) { - return updateAsync(resourceName, resourceGroupName, fabricName, vcenterName, updateVCenterRequest, context) + return updateAsync(resourceGroupName, resourceName, fabricName, vcenterName, updateVCenterRequest, context) .block(); } @@ -1322,34 +1319,34 @@ public VCenterInner update(String resourceName, String resourceGroupName, String * * Lists the vCenter servers registered in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return collection of vCenter details along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceName, String resourceGroupName) { + private Mono> listSinglePageAsync(String resourceGroupName, String resourceName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1360,8 +1357,8 @@ private Mono> listSinglePageAsync(String resourceNam * * Lists the vCenter servers registered in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1369,19 +1366,19 @@ private Mono> listSinglePageAsync(String resourceNam * @return collection of vCenter details along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceName, String resourceGroupName, + private Mono> listSinglePageAsync(String resourceGroupName, String resourceName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1389,7 +1386,7 @@ private Mono> listSinglePageAsync(String resourceNam final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + .list(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); @@ -1400,16 +1397,16 @@ private Mono> listSinglePageAsync(String resourceNam * * Lists the vCenter servers registered in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return collection of vCenter details as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceName, String resourceGroupName) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceName, resourceGroupName), + private PagedFlux listAsync(String resourceGroupName, String resourceName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName), nextLink -> listNextSinglePageAsync(nextLink)); } @@ -1418,8 +1415,8 @@ private PagedFlux listAsync(String resourceName, String resourceGr * * Lists the vCenter servers registered in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1427,8 +1424,8 @@ private PagedFlux listAsync(String resourceName, String resourceGr * @return collection of vCenter details as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceName, String resourceGroupName, Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceName, resourceGroupName, context), + private PagedFlux listAsync(String resourceGroupName, String resourceName, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } @@ -1437,16 +1434,16 @@ private PagedFlux listAsync(String resourceName, String resourceGr * * Lists the vCenter servers registered in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return collection of vCenter details as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceName, String resourceGroupName) { - return new PagedIterable<>(listAsync(resourceName, resourceGroupName)); + public PagedIterable list(String resourceGroupName, String resourceName) { + return new PagedIterable<>(listAsync(resourceGroupName, resourceName)); } /** @@ -1454,8 +1451,8 @@ public PagedIterable list(String resourceName, String resourceGrou * * Lists the vCenter servers registered in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1463,8 +1460,8 @@ public PagedIterable list(String resourceName, String resourceGrou * @return collection of vCenter details as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceName, String resourceGroupName, Context context) { - return new PagedIterable<>(listAsync(resourceName, resourceGroupName, context)); + public PagedIterable list(String resourceGroupName, String resourceName, Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, resourceName, context)); } /** diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationvCentersImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationvCentersImpl.java index ddad51a15e54..07bfbd284a0c 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationvCentersImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationvCentersImpl.java @@ -27,24 +27,24 @@ public ReplicationvCentersImpl(ReplicationvCentersClient innerClient, this.serviceManager = serviceManager; } - public PagedIterable listByReplicationFabrics(String resourceName, String resourceGroupName, + public PagedIterable listByReplicationFabrics(String resourceGroupName, String resourceName, String fabricName) { PagedIterable inner - = this.serviceClient().listByReplicationFabrics(resourceName, resourceGroupName, fabricName); + = this.serviceClient().listByReplicationFabrics(resourceGroupName, resourceName, fabricName); return ResourceManagerUtils.mapPage(inner, inner1 -> new VCenterImpl(inner1, this.manager())); } - public PagedIterable listByReplicationFabrics(String resourceName, String resourceGroupName, + public PagedIterable listByReplicationFabrics(String resourceGroupName, String resourceName, String fabricName, Context context) { PagedIterable inner - = this.serviceClient().listByReplicationFabrics(resourceName, resourceGroupName, fabricName, context); + = this.serviceClient().listByReplicationFabrics(resourceGroupName, resourceName, fabricName, context); return ResourceManagerUtils.mapPage(inner, inner1 -> new VCenterImpl(inner1, this.manager())); } - public Response getWithResponse(String resourceName, String resourceGroupName, String fabricName, + public Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String vcenterName, Context context) { Response inner - = this.serviceClient().getWithResponse(resourceName, resourceGroupName, fabricName, vcenterName, context); + = this.serviceClient().getWithResponse(resourceGroupName, resourceName, fabricName, vcenterName, context); if (inner != null) { return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new VCenterImpl(inner.getValue(), this.manager())); @@ -53,8 +53,8 @@ public Response getWithResponse(String resourceName, String resourceGro } } - public VCenter get(String resourceName, String resourceGroupName, String fabricName, String vcenterName) { - VCenterInner inner = this.serviceClient().get(resourceName, resourceGroupName, fabricName, vcenterName); + public VCenter get(String resourceGroupName, String resourceName, String fabricName, String vcenterName) { + VCenterInner inner = this.serviceClient().get(resourceGroupName, resourceName, fabricName, vcenterName); if (inner != null) { return new VCenterImpl(inner, this.manager()); } else { @@ -62,36 +62,36 @@ public VCenter get(String resourceName, String resourceGroupName, String fabricN } } - public void delete(String resourceName, String resourceGroupName, String fabricName, String vcenterName) { - this.serviceClient().delete(resourceName, resourceGroupName, fabricName, vcenterName); + public void delete(String resourceGroupName, String resourceName, String fabricName, String vcenterName) { + this.serviceClient().delete(resourceGroupName, resourceName, fabricName, vcenterName); } - public void delete(String resourceName, String resourceGroupName, String fabricName, String vcenterName, + public void delete(String resourceGroupName, String resourceName, String fabricName, String vcenterName, Context context) { - this.serviceClient().delete(resourceName, resourceGroupName, fabricName, vcenterName, context); + this.serviceClient().delete(resourceGroupName, resourceName, fabricName, vcenterName, context); } - public PagedIterable list(String resourceName, String resourceGroupName) { - PagedIterable inner = this.serviceClient().list(resourceName, resourceGroupName); + public PagedIterable list(String resourceGroupName, String resourceName) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, resourceName); return ResourceManagerUtils.mapPage(inner, inner1 -> new VCenterImpl(inner1, this.manager())); } - public PagedIterable list(String resourceName, String resourceGroupName, Context context) { - PagedIterable inner = this.serviceClient().list(resourceName, resourceGroupName, context); + public PagedIterable list(String resourceGroupName, String resourceName, Context context) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, resourceName, context); return ResourceManagerUtils.mapPage(inner, inner1 -> new VCenterImpl(inner1, this.manager())); } public VCenter getById(String id) { - String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); - if (resourceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); - } String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); + if (resourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); + } String fabricName = ResourceManagerUtils.getValueFromIdByName(id, "replicationFabrics"); if (fabricName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( @@ -102,20 +102,20 @@ public VCenter getById(String id) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'replicationvCenters'.", id))); } - return this.getWithResponse(resourceName, resourceGroupName, fabricName, vcenterName, Context.NONE).getValue(); + return this.getWithResponse(resourceGroupName, resourceName, fabricName, vcenterName, Context.NONE).getValue(); } public Response getByIdWithResponse(String id, Context context) { - String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); - if (resourceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); - } String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); + if (resourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); + } String fabricName = ResourceManagerUtils.getValueFromIdByName(id, "replicationFabrics"); if (fabricName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( @@ -126,20 +126,20 @@ public Response getByIdWithResponse(String id, Context context) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'replicationvCenters'.", id))); } - return this.getWithResponse(resourceName, resourceGroupName, fabricName, vcenterName, context); + return this.getWithResponse(resourceGroupName, resourceName, fabricName, vcenterName, context); } public void deleteById(String id) { - String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); - if (resourceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); - } String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); + if (resourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); + } String fabricName = ResourceManagerUtils.getValueFromIdByName(id, "replicationFabrics"); if (fabricName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( @@ -150,20 +150,20 @@ public void deleteById(String id) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'replicationvCenters'.", id))); } - this.delete(resourceName, resourceGroupName, fabricName, vcenterName, Context.NONE); + this.delete(resourceGroupName, resourceName, fabricName, vcenterName, Context.NONE); } public void deleteByIdWithResponse(String id, Context context) { - String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); - if (resourceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); - } String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); + if (resourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); + } String fabricName = ResourceManagerUtils.getValueFromIdByName(id, "replicationFabrics"); if (fabricName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( @@ -174,7 +174,7 @@ public void deleteByIdWithResponse(String id, Context context) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'replicationvCenters'.", id))); } - this.delete(resourceName, resourceGroupName, fabricName, vcenterName, context); + this.delete(resourceGroupName, resourceName, fabricName, vcenterName, context); } private ReplicationvCentersClient serviceClient() { diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/SiteRecoveryManagementClientImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/SiteRecoveryManagementClientImpl.java index 280274cfd6aa..8b6edc413a45 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/SiteRecoveryManagementClientImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/SiteRecoveryManagementClientImpl.java @@ -23,6 +23,8 @@ import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.serializer.SerializerAdapter; import com.azure.core.util.serializer.SerializerEncoding; +import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.ClusterRecoveryPointOperationsClient; +import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.ClusterRecoveryPointsClient; import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.MigrationRecoveryPointsClient; import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.OperationsClient; import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.RecoveryPointsClient; @@ -39,6 +41,7 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.ReplicationPoliciesClient; import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.ReplicationProtectableItemsClient; import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.ReplicationProtectedItemsClient; +import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.ReplicationProtectionClustersClient; import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.ReplicationProtectionContainerMappingsClient; import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.ReplicationProtectionContainersClient; import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.ReplicationProtectionIntentsClient; @@ -374,6 +377,48 @@ public TargetComputeSizesClient getTargetComputeSizes() { return this.targetComputeSizes; } + /** + * The ReplicationProtectionClustersClient object to access its operations. + */ + private final ReplicationProtectionClustersClient replicationProtectionClusters; + + /** + * Gets the ReplicationProtectionClustersClient object to access its operations. + * + * @return the ReplicationProtectionClustersClient object. + */ + public ReplicationProtectionClustersClient getReplicationProtectionClusters() { + return this.replicationProtectionClusters; + } + + /** + * The ClusterRecoveryPointsClient object to access its operations. + */ + private final ClusterRecoveryPointsClient clusterRecoveryPoints; + + /** + * Gets the ClusterRecoveryPointsClient object to access its operations. + * + * @return the ClusterRecoveryPointsClient object. + */ + public ClusterRecoveryPointsClient getClusterRecoveryPoints() { + return this.clusterRecoveryPoints; + } + + /** + * The ClusterRecoveryPointOperationsClient object to access its operations. + */ + private final ClusterRecoveryPointOperationsClient clusterRecoveryPointOperations; + + /** + * Gets the ClusterRecoveryPointOperationsClient object to access its operations. + * + * @return the ClusterRecoveryPointOperationsClient object. + */ + public ClusterRecoveryPointOperationsClient getClusterRecoveryPointOperations() { + return this.clusterRecoveryPointOperations; + } + /** * The ReplicationProtectionContainerMappingsClient object to access its operations. */ @@ -559,7 +604,7 @@ public ReplicationVaultSettingsClient getReplicationVaultSettings() { this.defaultPollInterval = defaultPollInterval; this.subscriptionId = subscriptionId; this.endpoint = endpoint; - this.apiVersion = "2023-08-01"; + this.apiVersion = "2025-03-01"; this.operations = new OperationsClientImpl(this); this.replicationAlertSettings = new ReplicationAlertSettingsClientImpl(this); this.replicationAppliances = new ReplicationAppliancesClientImpl(this); @@ -576,6 +621,9 @@ public ReplicationVaultSettingsClient getReplicationVaultSettings() { this.replicationProtectedItems = new ReplicationProtectedItemsClientImpl(this); this.recoveryPoints = new RecoveryPointsClientImpl(this); this.targetComputeSizes = new TargetComputeSizesClientImpl(this); + this.replicationProtectionClusters = new ReplicationProtectionClustersClientImpl(this); + this.clusterRecoveryPoints = new ClusterRecoveryPointsClientImpl(this); + this.clusterRecoveryPointOperations = new ClusterRecoveryPointOperationsClientImpl(this); this.replicationProtectionContainerMappings = new ReplicationProtectionContainerMappingsClientImpl(this); this.replicationRecoveryServicesProviders = new ReplicationRecoveryServicesProvidersClientImpl(this); this.storageClassifications = new StorageClassificationsClientImpl(this); diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/StorageClassificationMappingImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/StorageClassificationMappingImpl.java index f936ccce20ea..0cac316a8c18 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/StorageClassificationMappingImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/StorageClassificationMappingImpl.java @@ -60,10 +60,10 @@ private com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManag return this.serviceManager; } - private String resourceName; - private String resourceGroupName; + private String resourceName; + private String fabricName; private String storageClassificationName; @@ -72,10 +72,10 @@ private com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManag private StorageClassificationMappingInput createPairingInput; - public StorageClassificationMappingImpl withExistingReplicationStorageClassification(String resourceName, - String resourceGroupName, String fabricName, String storageClassificationName) { - this.resourceName = resourceName; + public StorageClassificationMappingImpl withExistingReplicationStorageClassification(String resourceGroupName, + String resourceName, String fabricName, String storageClassificationName) { this.resourceGroupName = resourceGroupName; + this.resourceName = resourceName; this.fabricName = fabricName; this.storageClassificationName = storageClassificationName; return this; @@ -84,7 +84,7 @@ public StorageClassificationMappingImpl withExistingReplicationStorageClassifica public StorageClassificationMapping create() { this.innerObject = serviceManager.serviceClient() .getStorageClassificationMappings() - .create(resourceName, resourceGroupName, fabricName, storageClassificationName, + .create(resourceGroupName, resourceName, fabricName, storageClassificationName, storageClassificationMappingName, createPairingInput, Context.NONE); return this; } @@ -92,7 +92,7 @@ public StorageClassificationMapping create() { public StorageClassificationMapping create(Context context) { this.innerObject = serviceManager.serviceClient() .getStorageClassificationMappings() - .create(resourceName, resourceGroupName, fabricName, storageClassificationName, + .create(resourceGroupName, resourceName, fabricName, storageClassificationName, storageClassificationMappingName, createPairingInput, context); return this; } @@ -108,7 +108,7 @@ public StorageClassificationMapping create(Context context) { public StorageClassificationMapping refresh() { this.innerObject = serviceManager.serviceClient() .getStorageClassificationMappings() - .getWithResponse(resourceName, resourceGroupName, fabricName, storageClassificationName, + .getWithResponse(resourceGroupName, resourceName, fabricName, storageClassificationName, storageClassificationMappingName, Context.NONE) .getValue(); return this; @@ -117,7 +117,7 @@ public StorageClassificationMapping refresh() { public StorageClassificationMapping refresh(Context context) { this.innerObject = serviceManager.serviceClient() .getStorageClassificationMappings() - .getWithResponse(resourceName, resourceGroupName, fabricName, storageClassificationName, + .getWithResponse(resourceGroupName, resourceName, fabricName, storageClassificationName, storageClassificationMappingName, context) .getValue(); return this; diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/StorageClassificationMappingsClientImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/StorageClassificationMappingsClientImpl.java index 5977d2442b22..30abcfdbb774 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/StorageClassificationMappingsClientImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/StorageClassificationMappingsClientImpl.java @@ -77,7 +77,7 @@ public interface StorageClassificationMappingsService { @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByReplicationStorageClassifications( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("resourceName") String resourceName, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, @PathParam("storageClassificationName") String storageClassificationName, @HeaderParam("Accept") String accept, Context context); @@ -87,9 +87,9 @@ Mono> listByReplicationStorageC @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("storageClassificationName") String storageClassificationName, @PathParam("storageClassificationMappingName") String storageClassificationMappingName, @HeaderParam("Accept") String accept, Context context); @@ -99,9 +99,9 @@ Mono> get(@HostParam("$host") String @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> create(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("storageClassificationName") String storageClassificationName, @PathParam("storageClassificationMappingName") String storageClassificationMappingName, @BodyParam("application/json") StorageClassificationMappingInput pairingInput, @@ -112,9 +112,9 @@ Mono>> create(@HostParam("$host") String endpoint, @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> delete(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("storageClassificationName") String storageClassificationName, @PathParam("storageClassificationMappingName") String storageClassificationMappingName, Context context); @@ -123,9 +123,9 @@ Mono>> delete(@HostParam("$host") String endpoint, @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> list(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @@ -149,8 +149,8 @@ Mono> listNext( * * Lists the storage classification mappings for the fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -161,19 +161,19 @@ Mono> listNext( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> - listByReplicationStorageClassificationsSinglePageAsync(String resourceName, String resourceGroupName, + listByReplicationStorageClassificationsSinglePageAsync(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -188,7 +188,7 @@ Mono> listNext( final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByReplicationStorageClassifications(this.client.getEndpoint(), - this.client.getApiVersion(), resourceName, resourceGroupName, this.client.getSubscriptionId(), + this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, storageClassificationName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) @@ -200,8 +200,8 @@ Mono> listNext( * * Lists the storage classification mappings for the fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param context The context to associate with this operation. @@ -213,19 +213,19 @@ Mono> listNext( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> - listByReplicationStorageClassificationsSinglePageAsync(String resourceName, String resourceGroupName, + listByReplicationStorageClassificationsSinglePageAsync(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -241,7 +241,7 @@ Mono> listNext( context = this.client.mergeContext(context); return service .listByReplicationStorageClassifications(this.client.getEndpoint(), this.client.getApiVersion(), - resourceName, resourceGroupName, this.client.getSubscriptionId(), fabricName, storageClassificationName, + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, storageClassificationName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); @@ -252,8 +252,8 @@ Mono> listNext( * * Lists the storage classification mappings for the fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -263,9 +263,9 @@ Mono> listNext( */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByReplicationStorageClassificationsAsync( - String resourceName, String resourceGroupName, String fabricName, String storageClassificationName) { + String resourceGroupName, String resourceName, String fabricName, String storageClassificationName) { return new PagedFlux<>( - () -> listByReplicationStorageClassificationsSinglePageAsync(resourceName, resourceGroupName, fabricName, + () -> listByReplicationStorageClassificationsSinglePageAsync(resourceGroupName, resourceName, fabricName, storageClassificationName), nextLink -> listByReplicationStorageClassificationsNextSinglePageAsync(nextLink)); } @@ -275,8 +275,8 @@ private PagedFlux listByReplicationStorageCla * * Lists the storage classification mappings for the fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param context The context to associate with this operation. @@ -287,10 +287,10 @@ private PagedFlux listByReplicationStorageCla */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByReplicationStorageClassificationsAsync( - String resourceName, String resourceGroupName, String fabricName, String storageClassificationName, + String resourceGroupName, String resourceName, String fabricName, String storageClassificationName, Context context) { return new PagedFlux<>( - () -> listByReplicationStorageClassificationsSinglePageAsync(resourceName, resourceGroupName, fabricName, + () -> listByReplicationStorageClassificationsSinglePageAsync(resourceGroupName, resourceName, fabricName, storageClassificationName, context), nextLink -> listByReplicationStorageClassificationsNextSinglePageAsync(nextLink, context)); } @@ -300,8 +300,8 @@ private PagedFlux listByReplicationStorageCla * * Lists the storage classification mappings for the fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -310,9 +310,9 @@ private PagedFlux listByReplicationStorageCla * @return collection of storage mapping details as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByReplicationStorageClassifications(String resourceName, - String resourceGroupName, String fabricName, String storageClassificationName) { - return new PagedIterable<>(listByReplicationStorageClassificationsAsync(resourceName, resourceGroupName, + public PagedIterable listByReplicationStorageClassifications( + String resourceGroupName, String resourceName, String fabricName, String storageClassificationName) { + return new PagedIterable<>(listByReplicationStorageClassificationsAsync(resourceGroupName, resourceName, fabricName, storageClassificationName)); } @@ -321,8 +321,8 @@ public PagedIterable listByReplicationStorage * * Lists the storage classification mappings for the fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param context The context to associate with this operation. @@ -332,9 +332,10 @@ public PagedIterable listByReplicationStorage * @return collection of storage mapping details as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByReplicationStorageClassifications(String resourceName, - String resourceGroupName, String fabricName, String storageClassificationName, Context context) { - return new PagedIterable<>(listByReplicationStorageClassificationsAsync(resourceName, resourceGroupName, + public PagedIterable listByReplicationStorageClassifications( + String resourceGroupName, String resourceName, String fabricName, String storageClassificationName, + Context context) { + return new PagedIterable<>(listByReplicationStorageClassificationsAsync(resourceGroupName, resourceName, fabricName, storageClassificationName, context)); } @@ -343,8 +344,8 @@ public PagedIterable listByReplicationStorage * * Gets the details of the specified storage classification mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. @@ -355,20 +356,20 @@ public PagedIterable listByReplicationStorage * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, String storageClassificationName, + private Mono> getWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String storageClassificationName, String storageClassificationMappingName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -386,8 +387,8 @@ private Mono> getWithResponseAsync(S } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, storageClassificationName, + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, storageClassificationName, storageClassificationMappingName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -397,8 +398,8 @@ private Mono> getWithResponseAsync(S * * Gets the details of the specified storage classification mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. @@ -410,20 +411,20 @@ private Mono> getWithResponseAsync(S * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, String storageClassificationName, + private Mono> getWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String storageClassificationName, String storageClassificationMappingName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -441,7 +442,7 @@ private Mono> getWithResponseAsync(S } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, storageClassificationName, storageClassificationMappingName, accept, context); } @@ -451,8 +452,8 @@ private Mono> getWithResponseAsync(S * * Gets the details of the specified storage classification mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. @@ -462,9 +463,9 @@ private Mono> getWithResponseAsync(S * @return the details of the specified storage classification mapping on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceName, String resourceGroupName, + private Mono getAsync(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName, String storageClassificationMappingName) { - return getWithResponseAsync(resourceName, resourceGroupName, fabricName, storageClassificationName, + return getWithResponseAsync(resourceGroupName, resourceName, fabricName, storageClassificationName, storageClassificationMappingName).flatMap(res -> Mono.justOrEmpty(res.getValue())); } @@ -473,8 +474,8 @@ private Mono getAsync(String resourceName, St * * Gets the details of the specified storage classification mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. @@ -485,9 +486,9 @@ private Mono getAsync(String resourceName, St * @return the details of the specified storage classification mapping along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceName, String resourceGroupName, + public Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName, String storageClassificationMappingName, Context context) { - return getWithResponseAsync(resourceName, resourceGroupName, fabricName, storageClassificationName, + return getWithResponseAsync(resourceGroupName, resourceName, fabricName, storageClassificationName, storageClassificationMappingName, context).block(); } @@ -496,8 +497,8 @@ public Response getWithResponse(String resour * * Gets the details of the specified storage classification mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. @@ -507,9 +508,9 @@ public Response getWithResponse(String resour * @return the details of the specified storage classification mapping. */ @ServiceMethod(returns = ReturnType.SINGLE) - public StorageClassificationMappingInner get(String resourceName, String resourceGroupName, String fabricName, + public StorageClassificationMappingInner get(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName, String storageClassificationMappingName) { - return getWithResponse(resourceName, resourceGroupName, fabricName, storageClassificationName, + return getWithResponse(resourceGroupName, resourceName, fabricName, storageClassificationName, storageClassificationMappingName, Context.NONE).getValue(); } @@ -518,8 +519,8 @@ public StorageClassificationMappingInner get(String resourceName, String resourc * * The operation to create a storage classification mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. @@ -530,20 +531,20 @@ public StorageClassificationMappingInner get(String resourceName, String resourc * @return storage mapping object along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> createWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName, String storageClassificationMappingName, StorageClassificationMappingInput pairingInput) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -566,8 +567,8 @@ private Mono>> createWithResponseAsync(String resource } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, storageClassificationName, + .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, storageClassificationName, storageClassificationMappingName, pairingInput, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -577,8 +578,8 @@ private Mono>> createWithResponseAsync(String resource * * The operation to create a storage classification mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. @@ -590,20 +591,20 @@ private Mono>> createWithResponseAsync(String resource * @return storage mapping object along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> createWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName, String storageClassificationMappingName, StorageClassificationMappingInput pairingInput, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -626,7 +627,7 @@ private Mono>> createWithResponseAsync(String resource } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.create(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.create(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, storageClassificationName, storageClassificationMappingName, pairingInput, accept, context); } @@ -636,8 +637,8 @@ private Mono>> createWithResponseAsync(String resource * * The operation to create a storage classification mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. @@ -649,10 +650,10 @@ private Mono>> createWithResponseAsync(String resource */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, StorageClassificationMappingInner> - beginCreateAsync(String resourceName, String resourceGroupName, String fabricName, + beginCreateAsync(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName, String storageClassificationMappingName, StorageClassificationMappingInput pairingInput) { - Mono>> mono = createWithResponseAsync(resourceName, resourceGroupName, fabricName, + Mono>> mono = createWithResponseAsync(resourceGroupName, resourceName, fabricName, storageClassificationName, storageClassificationMappingName, pairingInput); return this.client.getLroResult(mono, this.client.getHttpPipeline(), StorageClassificationMappingInner.class, @@ -664,8 +665,8 @@ private Mono>> createWithResponseAsync(String resource * * The operation to create a storage classification mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. @@ -678,11 +679,11 @@ private Mono>> createWithResponseAsync(String resource */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, StorageClassificationMappingInner> - beginCreateAsync(String resourceName, String resourceGroupName, String fabricName, + beginCreateAsync(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName, String storageClassificationMappingName, StorageClassificationMappingInput pairingInput, Context context) { context = this.client.mergeContext(context); - Mono>> mono = createWithResponseAsync(resourceName, resourceGroupName, fabricName, + Mono>> mono = createWithResponseAsync(resourceGroupName, resourceName, fabricName, storageClassificationName, storageClassificationMappingName, pairingInput, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), StorageClassificationMappingInner.class, @@ -694,8 +695,8 @@ private Mono>> createWithResponseAsync(String resource * * The operation to create a storage classification mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. @@ -707,10 +708,10 @@ private Mono>> createWithResponseAsync(String resource */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, StorageClassificationMappingInner> beginCreate( - String resourceName, String resourceGroupName, String fabricName, String storageClassificationName, + String resourceGroupName, String resourceName, String fabricName, String storageClassificationName, String storageClassificationMappingName, StorageClassificationMappingInput pairingInput) { return this - .beginCreateAsync(resourceName, resourceGroupName, fabricName, storageClassificationName, + .beginCreateAsync(resourceGroupName, resourceName, fabricName, storageClassificationName, storageClassificationMappingName, pairingInput) .getSyncPoller(); } @@ -720,8 +721,8 @@ public SyncPoller, StorageClassifi * * The operation to create a storage classification mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. @@ -734,10 +735,10 @@ public SyncPoller, StorageClassifi */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, StorageClassificationMappingInner> beginCreate( - String resourceName, String resourceGroupName, String fabricName, String storageClassificationName, + String resourceGroupName, String resourceName, String fabricName, String storageClassificationName, String storageClassificationMappingName, StorageClassificationMappingInput pairingInput, Context context) { return this - .beginCreateAsync(resourceName, resourceGroupName, fabricName, storageClassificationName, + .beginCreateAsync(resourceGroupName, resourceName, fabricName, storageClassificationName, storageClassificationMappingName, pairingInput, context) .getSyncPoller(); } @@ -747,8 +748,8 @@ public SyncPoller, StorageClassifi * * The operation to create a storage classification mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. @@ -759,10 +760,10 @@ public SyncPoller, StorageClassifi * @return storage mapping object on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync(String resourceName, String resourceGroupName, + private Mono createAsync(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName, String storageClassificationMappingName, StorageClassificationMappingInput pairingInput) { - return beginCreateAsync(resourceName, resourceGroupName, fabricName, storageClassificationName, + return beginCreateAsync(resourceGroupName, resourceName, fabricName, storageClassificationName, storageClassificationMappingName, pairingInput).last().flatMap(this.client::getLroFinalResultOrError); } @@ -771,8 +772,8 @@ private Mono createAsync(String resourceName, * * The operation to create a storage classification mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. @@ -784,10 +785,10 @@ private Mono createAsync(String resourceName, * @return storage mapping object on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync(String resourceName, String resourceGroupName, + private Mono createAsync(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName, String storageClassificationMappingName, StorageClassificationMappingInput pairingInput, Context context) { - return beginCreateAsync(resourceName, resourceGroupName, fabricName, storageClassificationName, + return beginCreateAsync(resourceGroupName, resourceName, fabricName, storageClassificationName, storageClassificationMappingName, pairingInput, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -797,8 +798,8 @@ private Mono createAsync(String resourceName, * * The operation to create a storage classification mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. @@ -809,10 +810,10 @@ private Mono createAsync(String resourceName, * @return storage mapping object. */ @ServiceMethod(returns = ReturnType.SINGLE) - public StorageClassificationMappingInner create(String resourceName, String resourceGroupName, String fabricName, + public StorageClassificationMappingInner create(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName, String storageClassificationMappingName, StorageClassificationMappingInput pairingInput) { - return createAsync(resourceName, resourceGroupName, fabricName, storageClassificationName, + return createAsync(resourceGroupName, resourceName, fabricName, storageClassificationName, storageClassificationMappingName, pairingInput).block(); } @@ -821,8 +822,8 @@ public StorageClassificationMappingInner create(String resourceName, String reso * * The operation to create a storage classification mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. @@ -834,10 +835,10 @@ public StorageClassificationMappingInner create(String resourceName, String reso * @return storage mapping object. */ @ServiceMethod(returns = ReturnType.SINGLE) - public StorageClassificationMappingInner create(String resourceName, String resourceGroupName, String fabricName, + public StorageClassificationMappingInner create(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName, String storageClassificationMappingName, StorageClassificationMappingInput pairingInput, Context context) { - return createAsync(resourceName, resourceGroupName, fabricName, storageClassificationName, + return createAsync(resourceGroupName, resourceName, fabricName, storageClassificationName, storageClassificationMappingName, pairingInput, context).block(); } @@ -846,8 +847,8 @@ public StorageClassificationMappingInner create(String resourceName, String reso * * The operation to delete a storage classification mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. @@ -857,19 +858,19 @@ public StorageClassificationMappingInner create(String resourceName, String reso * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName, String storageClassificationMappingName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -886,8 +887,8 @@ private Mono>> deleteWithResponseAsync(String resource "Parameter storageClassificationMappingName is required and cannot be null.")); } return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, storageClassificationName, + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, storageClassificationName, storageClassificationMappingName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -897,8 +898,8 @@ private Mono>> deleteWithResponseAsync(String resource * * The operation to delete a storage classification mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. @@ -909,19 +910,19 @@ private Mono>> deleteWithResponseAsync(String resource * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceName, String resourceGroupName, + private Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName, String storageClassificationMappingName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -938,7 +939,7 @@ private Mono>> deleteWithResponseAsync(String resource "Parameter storageClassificationMappingName is required and cannot be null.")); } context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, storageClassificationName, storageClassificationMappingName, context); } @@ -948,8 +949,8 @@ private Mono>> deleteWithResponseAsync(String resource * * The operation to delete a storage classification mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. @@ -959,9 +960,9 @@ private Mono>> deleteWithResponseAsync(String resource * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceName, String resourceGroupName, + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName, String storageClassificationMappingName) { - Mono>> mono = deleteWithResponseAsync(resourceName, resourceGroupName, fabricName, + Mono>> mono = deleteWithResponseAsync(resourceGroupName, resourceName, fabricName, storageClassificationName, storageClassificationMappingName); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); @@ -972,8 +973,8 @@ private PollerFlux, Void> beginDeleteAsync(String resourceName, * * The operation to delete a storage classification mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. @@ -984,10 +985,10 @@ private PollerFlux, Void> beginDeleteAsync(String resourceName, * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceName, String resourceGroupName, + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName, String storageClassificationMappingName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = deleteWithResponseAsync(resourceName, resourceGroupName, fabricName, + Mono>> mono = deleteWithResponseAsync(resourceGroupName, resourceName, fabricName, storageClassificationName, storageClassificationMappingName, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); @@ -998,8 +999,8 @@ private PollerFlux, Void> beginDeleteAsync(String resourceName, * * The operation to delete a storage classification mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. @@ -1009,10 +1010,10 @@ private PollerFlux, Void> beginDeleteAsync(String resourceName, * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceName, String resourceGroupName, + public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName, String storageClassificationMappingName) { return this - .beginDeleteAsync(resourceName, resourceGroupName, fabricName, storageClassificationName, + .beginDeleteAsync(resourceGroupName, resourceName, fabricName, storageClassificationName, storageClassificationMappingName) .getSyncPoller(); } @@ -1022,8 +1023,8 @@ public SyncPoller, Void> beginDelete(String resourceName, Strin * * The operation to delete a storage classification mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. @@ -1034,10 +1035,10 @@ public SyncPoller, Void> beginDelete(String resourceName, Strin * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceName, String resourceGroupName, + public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName, String storageClassificationMappingName, Context context) { return this - .beginDeleteAsync(resourceName, resourceGroupName, fabricName, storageClassificationName, + .beginDeleteAsync(resourceGroupName, resourceName, fabricName, storageClassificationName, storageClassificationMappingName, context) .getSyncPoller(); } @@ -1047,8 +1048,8 @@ public SyncPoller, Void> beginDelete(String resourceName, Strin * * The operation to delete a storage classification mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. @@ -1058,9 +1059,9 @@ public SyncPoller, Void> beginDelete(String resourceName, Strin * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono deleteAsync(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName, String storageClassificationMappingName) { - return beginDeleteAsync(resourceName, resourceGroupName, fabricName, storageClassificationName, + return beginDeleteAsync(resourceGroupName, resourceName, fabricName, storageClassificationName, storageClassificationMappingName).last().flatMap(this.client::getLroFinalResultOrError); } @@ -1069,8 +1070,8 @@ private Mono deleteAsync(String resourceName, String resourceGroupName, St * * The operation to delete a storage classification mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. @@ -1081,9 +1082,9 @@ private Mono deleteAsync(String resourceName, String resourceGroupName, St * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono deleteAsync(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName, String storageClassificationMappingName, Context context) { - return beginDeleteAsync(resourceName, resourceGroupName, fabricName, storageClassificationName, + return beginDeleteAsync(resourceGroupName, resourceName, fabricName, storageClassificationName, storageClassificationMappingName, context).last().flatMap(this.client::getLroFinalResultOrError); } @@ -1092,8 +1093,8 @@ private Mono deleteAsync(String resourceName, String resourceGroupName, St * * The operation to delete a storage classification mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. @@ -1102,9 +1103,9 @@ private Mono deleteAsync(String resourceName, String resourceGroupName, St * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceName, String resourceGroupName, String fabricName, + public void delete(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName, String storageClassificationMappingName) { - deleteAsync(resourceName, resourceGroupName, fabricName, storageClassificationName, + deleteAsync(resourceGroupName, resourceName, fabricName, storageClassificationName, storageClassificationMappingName).block(); } @@ -1113,8 +1114,8 @@ public void delete(String resourceName, String resourceGroupName, String fabricN * * The operation to delete a storage classification mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. @@ -1124,9 +1125,9 @@ public void delete(String resourceName, String resourceGroupName, String fabricN * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceName, String resourceGroupName, String fabricName, + public void delete(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName, String storageClassificationMappingName, Context context) { - deleteAsync(resourceName, resourceGroupName, fabricName, storageClassificationName, + deleteAsync(resourceGroupName, resourceName, fabricName, storageClassificationName, storageClassificationMappingName, context).block(); } @@ -1135,8 +1136,8 @@ public void delete(String resourceName, String resourceGroupName, String fabricN * * Lists the storage classification mappings in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1144,27 +1145,27 @@ public void delete(String resourceName, String resourceGroupName, String fabricN * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceName, - String resourceGroupName) { + private Mono> listSinglePageAsync(String resourceGroupName, + String resourceName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1175,8 +1176,8 @@ private Mono> listSinglePageAsy * * Lists the storage classification mappings in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1185,19 +1186,19 @@ private Mono> listSinglePageAsy * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceName, - String resourceGroupName, Context context) { + private Mono> listSinglePageAsync(String resourceGroupName, + String resourceName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1205,7 +1206,7 @@ private Mono> listSinglePageAsy final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + .list(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); @@ -1216,16 +1217,16 @@ private Mono> listSinglePageAsy * * Lists the storage classification mappings in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return collection of storage mapping details as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceName, String resourceGroupName) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceName, resourceGroupName), + private PagedFlux listAsync(String resourceGroupName, String resourceName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName), nextLink -> listNextSinglePageAsync(nextLink)); } @@ -1234,8 +1235,8 @@ private PagedFlux listAsync(String resourceNa * * Lists the storage classification mappings in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1243,9 +1244,9 @@ private PagedFlux listAsync(String resourceNa * @return collection of storage mapping details as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceName, String resourceGroupName, + private PagedFlux listAsync(String resourceGroupName, String resourceName, Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceName, resourceGroupName, context), + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } @@ -1254,16 +1255,16 @@ private PagedFlux listAsync(String resourceNa * * Lists the storage classification mappings in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return collection of storage mapping details as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceName, String resourceGroupName) { - return new PagedIterable<>(listAsync(resourceName, resourceGroupName)); + public PagedIterable list(String resourceGroupName, String resourceName) { + return new PagedIterable<>(listAsync(resourceGroupName, resourceName)); } /** @@ -1271,8 +1272,8 @@ public PagedIterable list(String resourceName * * Lists the storage classification mappings in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1280,9 +1281,9 @@ public PagedIterable list(String resourceName * @return collection of storage mapping details as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceName, String resourceGroupName, + public PagedIterable list(String resourceGroupName, String resourceName, Context context) { - return new PagedIterable<>(listAsync(resourceName, resourceGroupName, context)); + return new PagedIterable<>(listAsync(resourceGroupName, resourceName, context)); } /** diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/StorageClassificationMappingsImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/StorageClassificationMappingsImpl.java index 57564a0ce5a1..2ee1e6c8c8e3 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/StorageClassificationMappingsImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/StorageClassificationMappingsImpl.java @@ -27,28 +27,28 @@ public StorageClassificationMappingsImpl(StorageClassificationMappingsClient inn this.serviceManager = serviceManager; } - public PagedIterable listByReplicationStorageClassifications(String resourceName, - String resourceGroupName, String fabricName, String storageClassificationName) { + public PagedIterable listByReplicationStorageClassifications(String resourceGroupName, + String resourceName, String fabricName, String storageClassificationName) { PagedIterable inner = this.serviceClient() - .listByReplicationStorageClassifications(resourceName, resourceGroupName, fabricName, + .listByReplicationStorageClassifications(resourceGroupName, resourceName, fabricName, storageClassificationName); return ResourceManagerUtils.mapPage(inner, inner1 -> new StorageClassificationMappingImpl(inner1, this.manager())); } - public PagedIterable listByReplicationStorageClassifications(String resourceName, - String resourceGroupName, String fabricName, String storageClassificationName, Context context) { + public PagedIterable listByReplicationStorageClassifications(String resourceGroupName, + String resourceName, String fabricName, String storageClassificationName, Context context) { PagedIterable inner = this.serviceClient() - .listByReplicationStorageClassifications(resourceName, resourceGroupName, fabricName, + .listByReplicationStorageClassifications(resourceGroupName, resourceName, fabricName, storageClassificationName, context); return ResourceManagerUtils.mapPage(inner, inner1 -> new StorageClassificationMappingImpl(inner1, this.manager())); } - public Response getWithResponse(String resourceName, String resourceGroupName, + public Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName, String storageClassificationMappingName, Context context) { Response inner = this.serviceClient() - .getWithResponse(resourceName, resourceGroupName, fabricName, storageClassificationName, + .getWithResponse(resourceGroupName, resourceName, fabricName, storageClassificationName, storageClassificationMappingName, context); if (inner != null) { return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), @@ -58,10 +58,10 @@ public Response getWithResponse(String resourceNam } } - public StorageClassificationMapping get(String resourceName, String resourceGroupName, String fabricName, + public StorageClassificationMapping get(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName, String storageClassificationMappingName) { StorageClassificationMappingInner inner = this.serviceClient() - .get(resourceName, resourceGroupName, fabricName, storageClassificationName, + .get(resourceGroupName, resourceName, fabricName, storageClassificationName, storageClassificationMappingName); if (inner != null) { return new StorageClassificationMappingImpl(inner, this.manager()); @@ -70,46 +70,46 @@ public StorageClassificationMapping get(String resourceName, String resourceGrou } } - public void delete(String resourceName, String resourceGroupName, String fabricName, + public void delete(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName, String storageClassificationMappingName) { this.serviceClient() - .delete(resourceName, resourceGroupName, fabricName, storageClassificationName, + .delete(resourceGroupName, resourceName, fabricName, storageClassificationName, storageClassificationMappingName); } - public void delete(String resourceName, String resourceGroupName, String fabricName, + public void delete(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName, String storageClassificationMappingName, Context context) { this.serviceClient() - .delete(resourceName, resourceGroupName, fabricName, storageClassificationName, + .delete(resourceGroupName, resourceName, fabricName, storageClassificationName, storageClassificationMappingName, context); } - public PagedIterable list(String resourceName, String resourceGroupName) { + public PagedIterable list(String resourceGroupName, String resourceName) { PagedIterable inner - = this.serviceClient().list(resourceName, resourceGroupName); + = this.serviceClient().list(resourceGroupName, resourceName); return ResourceManagerUtils.mapPage(inner, inner1 -> new StorageClassificationMappingImpl(inner1, this.manager())); } - public PagedIterable list(String resourceName, String resourceGroupName, + public PagedIterable list(String resourceGroupName, String resourceName, Context context) { PagedIterable inner - = this.serviceClient().list(resourceName, resourceGroupName, context); + = this.serviceClient().list(resourceGroupName, resourceName, context); return ResourceManagerUtils.mapPage(inner, inner1 -> new StorageClassificationMappingImpl(inner1, this.manager())); } public StorageClassificationMapping getById(String id) { - String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); - if (resourceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); - } String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); + if (resourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); + } String fabricName = ResourceManagerUtils.getValueFromIdByName(id, "replicationFabrics"); if (fabricName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( @@ -129,22 +129,22 @@ public StorageClassificationMapping getById(String id) { id))); } return this - .getWithResponse(resourceName, resourceGroupName, fabricName, storageClassificationName, + .getWithResponse(resourceGroupName, resourceName, fabricName, storageClassificationName, storageClassificationMappingName, Context.NONE) .getValue(); } public Response getByIdWithResponse(String id, Context context) { - String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); - if (resourceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); - } String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); + if (resourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); + } String fabricName = ResourceManagerUtils.getValueFromIdByName(id, "replicationFabrics"); if (fabricName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( @@ -163,21 +163,21 @@ public Response getByIdWithResponse(String id, Con "The resource ID '%s' is not valid. Missing path segment 'replicationStorageClassificationMappings'.", id))); } - return this.getWithResponse(resourceName, resourceGroupName, fabricName, storageClassificationName, + return this.getWithResponse(resourceGroupName, resourceName, fabricName, storageClassificationName, storageClassificationMappingName, context); } public void deleteById(String id) { - String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); - if (resourceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); - } String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); + if (resourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); + } String fabricName = ResourceManagerUtils.getValueFromIdByName(id, "replicationFabrics"); if (fabricName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( @@ -196,21 +196,21 @@ public void deleteById(String id) { "The resource ID '%s' is not valid. Missing path segment 'replicationStorageClassificationMappings'.", id))); } - this.delete(resourceName, resourceGroupName, fabricName, storageClassificationName, + this.delete(resourceGroupName, resourceName, fabricName, storageClassificationName, storageClassificationMappingName, Context.NONE); } public void deleteByIdWithResponse(String id, Context context) { - String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); - if (resourceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); - } String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "vaults"); + if (resourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id))); + } String fabricName = ResourceManagerUtils.getValueFromIdByName(id, "replicationFabrics"); if (fabricName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( @@ -229,7 +229,7 @@ public void deleteByIdWithResponse(String id, Context context) { "The resource ID '%s' is not valid. Missing path segment 'replicationStorageClassificationMappings'.", id))); } - this.delete(resourceName, resourceGroupName, fabricName, storageClassificationName, + this.delete(resourceGroupName, resourceName, fabricName, storageClassificationName, storageClassificationMappingName, context); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/StorageClassificationsClientImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/StorageClassificationsClientImpl.java index d37a8d0201c4..0f847f4bdefa 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/StorageClassificationsClientImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/StorageClassificationsClientImpl.java @@ -67,19 +67,18 @@ public interface StorageClassificationsService { @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByReplicationFabrics(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, - @HeaderParam("Accept") String accept, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationStorageClassifications/{storageClassificationName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("storageClassificationName") String storageClassificationName, @HeaderParam("Accept") String accept, Context context); @@ -88,9 +87,9 @@ Mono> get(@HostParam("$host") String endpoi @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> list(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @@ -114,8 +113,8 @@ Mono> listNext( * * Lists the storage classifications available in the specified fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Site name of interest. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -123,19 +122,19 @@ Mono> listNext( * @return collection of storage details along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByReplicationFabricsSinglePageAsync(String resourceName, - String resourceGroupName, String fabricName) { + private Mono> + listByReplicationFabricsSinglePageAsync(String resourceGroupName, String resourceName, String fabricName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -147,7 +146,7 @@ private Mono> listByReplicationFabrics return FluxUtil .withContext( context -> service.listByReplicationFabrics(this.client.getEndpoint(), this.client.getApiVersion(), - resourceName, resourceGroupName, this.client.getSubscriptionId(), fabricName, accept, context)) + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -158,8 +157,8 @@ private Mono> listByReplicationFabrics * * Lists the storage classifications available in the specified fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Site name of interest. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -168,19 +167,19 @@ private Mono> listByReplicationFabrics * @return collection of storage details along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByReplicationFabricsSinglePageAsync(String resourceName, - String resourceGroupName, String fabricName, Context context) { + private Mono> listByReplicationFabricsSinglePageAsync( + String resourceGroupName, String resourceName, String fabricName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -191,8 +190,8 @@ private Mono> listByReplicationFabrics final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByReplicationFabrics(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, accept, context) + .listByReplicationFabrics(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), fabricName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -202,8 +201,8 @@ private Mono> listByReplicationFabrics * * Lists the storage classifications available in the specified fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Site name of interest. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -211,10 +210,10 @@ private Mono> listByReplicationFabrics * @return collection of storage details as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByReplicationFabricsAsync(String resourceName, - String resourceGroupName, String fabricName) { + private PagedFlux listByReplicationFabricsAsync(String resourceGroupName, + String resourceName, String fabricName) { return new PagedFlux<>( - () -> listByReplicationFabricsSinglePageAsync(resourceName, resourceGroupName, fabricName), + () -> listByReplicationFabricsSinglePageAsync(resourceGroupName, resourceName, fabricName), nextLink -> listByReplicationFabricsNextSinglePageAsync(nextLink)); } @@ -223,8 +222,8 @@ private PagedFlux listByReplicationFabricsAsync(Stri * * Lists the storage classifications available in the specified fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Site name of interest. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -233,10 +232,10 @@ private PagedFlux listByReplicationFabricsAsync(Stri * @return collection of storage details as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByReplicationFabricsAsync(String resourceName, - String resourceGroupName, String fabricName, Context context) { + private PagedFlux listByReplicationFabricsAsync(String resourceGroupName, + String resourceName, String fabricName, Context context) { return new PagedFlux<>( - () -> listByReplicationFabricsSinglePageAsync(resourceName, resourceGroupName, fabricName, context), + () -> listByReplicationFabricsSinglePageAsync(resourceGroupName, resourceName, fabricName, context), nextLink -> listByReplicationFabricsNextSinglePageAsync(nextLink, context)); } @@ -245,8 +244,8 @@ private PagedFlux listByReplicationFabricsAsync(Stri * * Lists the storage classifications available in the specified fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Site name of interest. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -254,9 +253,9 @@ private PagedFlux listByReplicationFabricsAsync(Stri * @return collection of storage details as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByReplicationFabrics(String resourceName, - String resourceGroupName, String fabricName) { - return new PagedIterable<>(listByReplicationFabricsAsync(resourceName, resourceGroupName, fabricName)); + public PagedIterable listByReplicationFabrics(String resourceGroupName, + String resourceName, String fabricName) { + return new PagedIterable<>(listByReplicationFabricsAsync(resourceGroupName, resourceName, fabricName)); } /** @@ -264,8 +263,8 @@ public PagedIterable listByReplicationFabrics(String * * Lists the storage classifications available in the specified fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Site name of interest. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -274,9 +273,9 @@ public PagedIterable listByReplicationFabrics(String * @return collection of storage details as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByReplicationFabrics(String resourceName, - String resourceGroupName, String fabricName, Context context) { - return new PagedIterable<>(listByReplicationFabricsAsync(resourceName, resourceGroupName, fabricName, context)); + public PagedIterable listByReplicationFabrics(String resourceGroupName, + String resourceName, String fabricName, Context context) { + return new PagedIterable<>(listByReplicationFabricsAsync(resourceGroupName, resourceName, fabricName, context)); } /** @@ -284,8 +283,8 @@ public PagedIterable listByReplicationFabrics(String * * Gets the details of the specified storage classification. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -295,19 +294,19 @@ public PagedIterable listByReplicationFabrics(String * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, String storageClassificationName) { + private Mono> getWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String storageClassificationName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -321,9 +320,9 @@ private Mono> getWithResponseAsync(String r } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, storageClassificationName, accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, storageClassificationName, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -332,8 +331,8 @@ private Mono> getWithResponseAsync(String r * * Gets the details of the specified storage classification. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param context The context to associate with this operation. @@ -344,19 +343,19 @@ private Mono> getWithResponseAsync(String r * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceName, - String resourceGroupName, String fabricName, String storageClassificationName, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, + String resourceName, String fabricName, String storageClassificationName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -370,7 +369,7 @@ private Mono> getWithResponseAsync(String r } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, storageClassificationName, accept, context); } @@ -379,8 +378,8 @@ private Mono> getWithResponseAsync(String r * * Gets the details of the specified storage classification. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -389,9 +388,9 @@ private Mono> getWithResponseAsync(String r * @return the details of the specified storage classification on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceName, String resourceGroupName, String fabricName, + private Mono getAsync(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName) { - return getWithResponseAsync(resourceName, resourceGroupName, fabricName, storageClassificationName) + return getWithResponseAsync(resourceGroupName, resourceName, fabricName, storageClassificationName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } @@ -400,8 +399,8 @@ private Mono getAsync(String resourceName, String re * * Gets the details of the specified storage classification. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param context The context to associate with this operation. @@ -411,9 +410,9 @@ private Mono getAsync(String resourceName, String re * @return the details of the specified storage classification along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceName, String resourceGroupName, + public Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName, Context context) { - return getWithResponseAsync(resourceName, resourceGroupName, fabricName, storageClassificationName, context) + return getWithResponseAsync(resourceGroupName, resourceName, fabricName, storageClassificationName, context) .block(); } @@ -422,8 +421,8 @@ public Response getWithResponse(String resourceName, * * Gets the details of the specified storage classification. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -432,9 +431,9 @@ public Response getWithResponse(String resourceName, * @return the details of the specified storage classification. */ @ServiceMethod(returns = ReturnType.SINGLE) - public StorageClassificationInner get(String resourceName, String resourceGroupName, String fabricName, + public StorageClassificationInner get(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName) { - return getWithResponse(resourceName, resourceGroupName, fabricName, storageClassificationName, Context.NONE) + return getWithResponse(resourceGroupName, resourceName, fabricName, storageClassificationName, Context.NONE) .getValue(); } @@ -443,35 +442,35 @@ public StorageClassificationInner get(String resourceName, String resourceGroupN * * Lists the storage classifications in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return collection of storage details along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceName, - String resourceGroupName) { + private Mono> listSinglePageAsync(String resourceGroupName, + String resourceName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -482,8 +481,8 @@ private Mono> listSinglePageAsync(Stri * * Lists the storage classifications in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -491,19 +490,19 @@ private Mono> listSinglePageAsync(Stri * @return collection of storage details along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceName, - String resourceGroupName, Context context) { + private Mono> listSinglePageAsync(String resourceGroupName, + String resourceName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -511,7 +510,7 @@ private Mono> listSinglePageAsync(Stri final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + .list(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); @@ -522,16 +521,16 @@ private Mono> listSinglePageAsync(Stri * * Lists the storage classifications in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return collection of storage details as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceName, String resourceGroupName) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceName, resourceGroupName), + private PagedFlux listAsync(String resourceGroupName, String resourceName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName), nextLink -> listNextSinglePageAsync(nextLink)); } @@ -540,8 +539,8 @@ private PagedFlux listAsync(String resourceName, Str * * Lists the storage classifications in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -549,9 +548,9 @@ private PagedFlux listAsync(String resourceName, Str * @return collection of storage details as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceName, String resourceGroupName, + private PagedFlux listAsync(String resourceGroupName, String resourceName, Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceName, resourceGroupName, context), + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } @@ -560,16 +559,16 @@ private PagedFlux listAsync(String resourceName, Str * * Lists the storage classifications in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return collection of storage details as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceName, String resourceGroupName) { - return new PagedIterable<>(listAsync(resourceName, resourceGroupName)); + public PagedIterable list(String resourceGroupName, String resourceName) { + return new PagedIterable<>(listAsync(resourceGroupName, resourceName)); } /** @@ -577,8 +576,8 @@ public PagedIterable list(String resourceName, Strin * * Lists the storage classifications in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -586,9 +585,9 @@ public PagedIterable list(String resourceName, Strin * @return collection of storage details as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceName, String resourceGroupName, + public PagedIterable list(String resourceGroupName, String resourceName, Context context) { - return new PagedIterable<>(listAsync(resourceName, resourceGroupName, context)); + return new PagedIterable<>(listAsync(resourceGroupName, resourceName, context)); } /** diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/StorageClassificationsImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/StorageClassificationsImpl.java index 57934f0bf94d..4a94d8bcdf75 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/StorageClassificationsImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/StorageClassificationsImpl.java @@ -27,24 +27,24 @@ public StorageClassificationsImpl(StorageClassificationsClient innerClient, this.serviceManager = serviceManager; } - public PagedIterable listByReplicationFabrics(String resourceName, String resourceGroupName, + public PagedIterable listByReplicationFabrics(String resourceGroupName, String resourceName, String fabricName) { PagedIterable inner - = this.serviceClient().listByReplicationFabrics(resourceName, resourceGroupName, fabricName); + = this.serviceClient().listByReplicationFabrics(resourceGroupName, resourceName, fabricName); return ResourceManagerUtils.mapPage(inner, inner1 -> new StorageClassificationImpl(inner1, this.manager())); } - public PagedIterable listByReplicationFabrics(String resourceName, String resourceGroupName, + public PagedIterable listByReplicationFabrics(String resourceGroupName, String resourceName, String fabricName, Context context) { PagedIterable inner - = this.serviceClient().listByReplicationFabrics(resourceName, resourceGroupName, fabricName, context); + = this.serviceClient().listByReplicationFabrics(resourceGroupName, resourceName, fabricName, context); return ResourceManagerUtils.mapPage(inner, inner1 -> new StorageClassificationImpl(inner1, this.manager())); } - public Response getWithResponse(String resourceName, String resourceGroupName, + public Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName, Context context) { Response inner = this.serviceClient() - .getWithResponse(resourceName, resourceGroupName, fabricName, storageClassificationName, context); + .getWithResponse(resourceGroupName, resourceName, fabricName, storageClassificationName, context); if (inner != null) { return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new StorageClassificationImpl(inner.getValue(), this.manager())); @@ -53,10 +53,10 @@ public Response getWithResponse(String resourceName, Stri } } - public StorageClassification get(String resourceName, String resourceGroupName, String fabricName, + public StorageClassification get(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName) { StorageClassificationInner inner - = this.serviceClient().get(resourceName, resourceGroupName, fabricName, storageClassificationName); + = this.serviceClient().get(resourceGroupName, resourceName, fabricName, storageClassificationName); if (inner != null) { return new StorageClassificationImpl(inner, this.manager()); } else { @@ -64,14 +64,14 @@ public StorageClassification get(String resourceName, String resourceGroupName, } } - public PagedIterable list(String resourceName, String resourceGroupName) { - PagedIterable inner = this.serviceClient().list(resourceName, resourceGroupName); + public PagedIterable list(String resourceGroupName, String resourceName) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, resourceName); return ResourceManagerUtils.mapPage(inner, inner1 -> new StorageClassificationImpl(inner1, this.manager())); } - public PagedIterable list(String resourceName, String resourceGroupName, Context context) { + public PagedIterable list(String resourceGroupName, String resourceName, Context context) { PagedIterable inner - = this.serviceClient().list(resourceName, resourceGroupName, context); + = this.serviceClient().list(resourceGroupName, resourceName, context); return ResourceManagerUtils.mapPage(inner, inner1 -> new StorageClassificationImpl(inner1, this.manager())); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/SupportedOperatingSystemsOperationsClientImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/SupportedOperatingSystemsOperationsClientImpl.java index 735b9710a135..46f7276da71b 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/SupportedOperatingSystemsOperationsClientImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/SupportedOperatingSystemsOperationsClientImpl.java @@ -62,17 +62,16 @@ public interface SupportedOperatingSystemsOperationsService { @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("instanceType") String instanceType, - @HeaderParam("Accept") String accept, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @QueryParam("instanceType") String instanceType, @HeaderParam("Accept") String accept, Context context); } /** * Gets the data of supported operating systems by SRS. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param instanceType The instance type. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -81,35 +80,35 @@ Mono> get(@HostParam("$host") String en * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceName, - String resourceGroupName, String instanceType) { + private Mono> getWithResponseAsync(String resourceGroupName, + String resourceName, String instanceType) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), instanceType, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + resourceGroupName, resourceName, this.client.getSubscriptionId(), instanceType, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the data of supported operating systems by SRS. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param instanceType The instance type. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -119,51 +118,51 @@ private Mono> getWithResponseAsync(Stri * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceName, - String resourceGroupName, String instanceType, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, + String resourceName, String instanceType, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, resourceGroupName, + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), instanceType, accept, context); } /** * Gets the data of supported operating systems by SRS. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the data of supported operating systems by SRS on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceName, String resourceGroupName) { + private Mono getAsync(String resourceGroupName, String resourceName) { final String instanceType = null; - return getWithResponseAsync(resourceName, resourceGroupName, instanceType) + return getWithResponseAsync(resourceGroupName, resourceName, instanceType) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Gets the data of supported operating systems by SRS. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param instanceType The instance type. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -172,24 +171,24 @@ private Mono getAsync(String resourceName, Strin * @return the data of supported operating systems by SRS along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceName, String resourceGroupName, + public Response getWithResponse(String resourceGroupName, String resourceName, String instanceType, Context context) { - return getWithResponseAsync(resourceName, resourceGroupName, instanceType, context).block(); + return getWithResponseAsync(resourceGroupName, resourceName, instanceType, context).block(); } /** * Gets the data of supported operating systems by SRS. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the data of supported operating systems by SRS. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SupportedOperatingSystemsInner get(String resourceName, String resourceGroupName) { + public SupportedOperatingSystemsInner get(String resourceGroupName, String resourceName) { final String instanceType = null; - return getWithResponse(resourceName, resourceGroupName, instanceType, Context.NONE).getValue(); + return getWithResponse(resourceGroupName, resourceName, instanceType, Context.NONE).getValue(); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/SupportedOperatingSystemsOperationsImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/SupportedOperatingSystemsOperationsImpl.java index 17e0fe5620f7..cb013581aba5 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/SupportedOperatingSystemsOperationsImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/SupportedOperatingSystemsOperationsImpl.java @@ -26,10 +26,10 @@ public SupportedOperatingSystemsOperationsImpl(SupportedOperatingSystemsOperatio this.serviceManager = serviceManager; } - public Response getWithResponse(String resourceName, String resourceGroupName, + public Response getWithResponse(String resourceGroupName, String resourceName, String instanceType, Context context) { Response inner - = this.serviceClient().getWithResponse(resourceName, resourceGroupName, instanceType, context); + = this.serviceClient().getWithResponse(resourceGroupName, resourceName, instanceType, context); if (inner != null) { return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new SupportedOperatingSystemsImpl(inner.getValue(), this.manager())); @@ -38,8 +38,8 @@ public Response getWithResponse(String resourceName, } } - public SupportedOperatingSystems get(String resourceName, String resourceGroupName) { - SupportedOperatingSystemsInner inner = this.serviceClient().get(resourceName, resourceGroupName); + public SupportedOperatingSystems get(String resourceGroupName, String resourceName) { + SupportedOperatingSystemsInner inner = this.serviceClient().get(resourceGroupName, resourceName); if (inner != null) { return new SupportedOperatingSystemsImpl(inner, this.manager()); } else { diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/TargetComputeSizesClientImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/TargetComputeSizesClientImpl.java index a697f7b98a83..4dbaa36641e0 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/TargetComputeSizesClientImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/TargetComputeSizesClientImpl.java @@ -67,9 +67,9 @@ public interface TargetComputeSizesService { @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByReplicationProtectedItems(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceName") String resourceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("fabricName") String fabricName, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceName") String resourceName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("fabricName") String fabricName, @PathParam("protectionContainerName") String protectionContainerName, @PathParam("replicatedProtectedItemName") String replicatedProtectedItemName, @HeaderParam("Accept") String accept, Context context); @@ -88,8 +88,8 @@ Mono> listByReplicationProtectedItemsNext( * * Lists the available target compute sizes for a replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -100,19 +100,19 @@ Mono> listByReplicationProtectedItemsNext( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByReplicationProtectedItemsSinglePageAsync( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -131,7 +131,7 @@ private Mono> listByReplicationProtectedIt final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByReplicationProtectedItems(this.client.getEndpoint(), - this.client.getApiVersion(), resourceName, resourceGroupName, this.client.getSubscriptionId(), + this.client.getApiVersion(), resourceGroupName, resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, replicatedProtectedItemName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) @@ -143,8 +143,8 @@ private Mono> listByReplicationProtectedIt * * Lists the available target compute sizes for a replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -156,19 +156,19 @@ private Mono> listByReplicationProtectedIt */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByReplicationProtectedItemsSinglePageAsync( - String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -187,8 +187,8 @@ private Mono> listByReplicationProtectedIt final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByReplicationProtectedItems(this.client.getEndpoint(), this.client.getApiVersion(), resourceName, - resourceGroupName, this.client.getSubscriptionId(), fabricName, protectionContainerName, + .listByReplicationProtectedItems(this.client.getEndpoint(), this.client.getApiVersion(), resourceGroupName, + resourceName, this.client.getSubscriptionId(), fabricName, protectionContainerName, replicatedProtectedItemName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); @@ -199,8 +199,8 @@ private Mono> listByReplicationProtectedIt * * Lists the available target compute sizes for a replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -210,11 +210,10 @@ private Mono> listByReplicationProtectedIt * @return target compute size collection as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByReplicationProtectedItemsAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, - String replicatedProtectedItemName) { + private PagedFlux listByReplicationProtectedItemsAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName) { return new PagedFlux<>( - () -> listByReplicationProtectedItemsSinglePageAsync(resourceName, resourceGroupName, fabricName, + () -> listByReplicationProtectedItemsSinglePageAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName), nextLink -> listByReplicationProtectedItemsNextSinglePageAsync(nextLink)); } @@ -224,8 +223,8 @@ private PagedFlux listByReplicationProtectedItemsAsync(S * * Lists the available target compute sizes for a replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -236,11 +235,11 @@ private PagedFlux listByReplicationProtectedItemsAsync(S * @return target compute size collection as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByReplicationProtectedItemsAsync(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, + private PagedFlux listByReplicationProtectedItemsAsync(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context) { return new PagedFlux<>( - () -> listByReplicationProtectedItemsSinglePageAsync(resourceName, resourceGroupName, fabricName, + () -> listByReplicationProtectedItemsSinglePageAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, context), nextLink -> listByReplicationProtectedItemsNextSinglePageAsync(nextLink, context)); } @@ -250,8 +249,8 @@ private PagedFlux listByReplicationProtectedItemsAsync(S * * Lists the available target compute sizes for a replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -261,10 +260,9 @@ private PagedFlux listByReplicationProtectedItemsAsync(S * @return target compute size collection as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByReplicationProtectedItems(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, - String replicatedProtectedItemName) { - return new PagedIterable<>(listByReplicationProtectedItemsAsync(resourceName, resourceGroupName, fabricName, + public PagedIterable listByReplicationProtectedItems(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName) { + return new PagedIterable<>(listByReplicationProtectedItemsAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName)); } @@ -273,8 +271,8 @@ public PagedIterable listByReplicationProtectedItems(Str * * Lists the available target compute sizes for a replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -285,10 +283,10 @@ public PagedIterable listByReplicationProtectedItems(Str * @return target compute size collection as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByReplicationProtectedItems(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, + public PagedIterable listByReplicationProtectedItems(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context) { - return new PagedIterable<>(listByReplicationProtectedItemsAsync(resourceName, resourceGroupName, fabricName, + return new PagedIterable<>(listByReplicationProtectedItemsAsync(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, context)); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/TargetComputeSizesImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/TargetComputeSizesImpl.java index 2c3ba1b24044..559416426490 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/TargetComputeSizesImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/TargetComputeSizesImpl.java @@ -25,20 +25,19 @@ public TargetComputeSizesImpl(TargetComputeSizesClient innerClient, this.serviceManager = serviceManager; } - public PagedIterable listByReplicationProtectedItems(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, - String replicatedProtectedItemName) { + public PagedIterable listByReplicationProtectedItems(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName) { PagedIterable inner = this.serviceClient() - .listByReplicationProtectedItems(resourceName, resourceGroupName, fabricName, protectionContainerName, + .listByReplicationProtectedItems(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName); return ResourceManagerUtils.mapPage(inner, inner1 -> new TargetComputeSizeImpl(inner1, this.manager())); } - public PagedIterable listByReplicationProtectedItems(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, + public PagedIterable listByReplicationProtectedItems(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context) { PagedIterable inner = this.serviceClient() - .listByReplicationProtectedItems(resourceName, resourceGroupName, fabricName, protectionContainerName, + .listByReplicationProtectedItems(resourceGroupName, resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, context); return ResourceManagerUtils.mapPage(inner, inner1 -> new TargetComputeSizeImpl(inner1, this.manager())); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/VCenterImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/VCenterImpl.java index 07f274fc614b..d44d4432fe4b 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/VCenterImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/VCenterImpl.java @@ -59,10 +59,10 @@ private com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManag return this.serviceManager; } - private String resourceName; - private String resourceGroupName; + private String resourceName; + private String fabricName; private String vcenterName; @@ -71,9 +71,9 @@ private com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManag private UpdateVCenterRequest updateUpdateVCenterRequest; - public VCenterImpl withExistingReplicationFabric(String resourceName, String resourceGroupName, String fabricName) { - this.resourceName = resourceName; + public VCenterImpl withExistingReplicationFabric(String resourceGroupName, String resourceName, String fabricName) { this.resourceGroupName = resourceGroupName; + this.resourceName = resourceName; this.fabricName = fabricName; return this; } @@ -81,14 +81,14 @@ public VCenterImpl withExistingReplicationFabric(String resourceName, String res public VCenter create() { this.innerObject = serviceManager.serviceClient() .getReplicationvCenters() - .create(resourceName, resourceGroupName, fabricName, vcenterName, createAddVCenterRequest, Context.NONE); + .create(resourceGroupName, resourceName, fabricName, vcenterName, createAddVCenterRequest, Context.NONE); return this; } public VCenter create(Context context) { this.innerObject = serviceManager.serviceClient() .getReplicationvCenters() - .create(resourceName, resourceGroupName, fabricName, vcenterName, createAddVCenterRequest, context); + .create(resourceGroupName, resourceName, fabricName, vcenterName, createAddVCenterRequest, context); return this; } @@ -108,14 +108,14 @@ public VCenterImpl update() { public VCenter apply() { this.innerObject = serviceManager.serviceClient() .getReplicationvCenters() - .update(resourceName, resourceGroupName, fabricName, vcenterName, updateUpdateVCenterRequest, Context.NONE); + .update(resourceGroupName, resourceName, fabricName, vcenterName, updateUpdateVCenterRequest, Context.NONE); return this; } public VCenter apply(Context context) { this.innerObject = serviceManager.serviceClient() .getReplicationvCenters() - .update(resourceName, resourceGroupName, fabricName, vcenterName, updateUpdateVCenterRequest, context); + .update(resourceGroupName, resourceName, fabricName, vcenterName, updateUpdateVCenterRequest, context); return this; } @@ -123,8 +123,8 @@ public VCenter apply(Context context) { com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "vaults"); this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.resourceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "vaults"); this.fabricName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "replicationFabrics"); this.vcenterName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "replicationvCenters"); } @@ -132,7 +132,7 @@ public VCenter apply(Context context) { public VCenter refresh() { this.innerObject = serviceManager.serviceClient() .getReplicationvCenters() - .getWithResponse(resourceName, resourceGroupName, fabricName, vcenterName, Context.NONE) + .getWithResponse(resourceGroupName, resourceName, fabricName, vcenterName, Context.NONE) .getValue(); return this; } @@ -140,7 +140,7 @@ public VCenter refresh() { public VCenter refresh(Context context) { this.innerObject = serviceManager.serviceClient() .getReplicationvCenters() - .getWithResponse(resourceName, resourceGroupName, fabricName, vcenterName, context) + .getWithResponse(resourceGroupName, resourceName, fabricName, vcenterName, context) .getValue(); return this; } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/VaultSettingImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/VaultSettingImpl.java index 6509d32dbe7d..ee66a8daad17 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/VaultSettingImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/VaultSettingImpl.java @@ -59,31 +59,31 @@ private com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManag return this.serviceManager; } - private String resourceName; - private String resourceGroupName; + private String resourceName; + private String vaultSettingName; private VaultSettingCreationInput createInput; - public VaultSettingImpl withExistingVault(String resourceName, String resourceGroupName) { - this.resourceName = resourceName; + public VaultSettingImpl withExistingVault(String resourceGroupName, String resourceName) { this.resourceGroupName = resourceGroupName; + this.resourceName = resourceName; return this; } public VaultSetting create() { this.innerObject = serviceManager.serviceClient() .getReplicationVaultSettings() - .create(resourceName, resourceGroupName, vaultSettingName, createInput, Context.NONE); + .create(resourceGroupName, resourceName, vaultSettingName, createInput, Context.NONE); return this; } public VaultSetting create(Context context) { this.innerObject = serviceManager.serviceClient() .getReplicationVaultSettings() - .create(resourceName, resourceGroupName, vaultSettingName, createInput, context); + .create(resourceGroupName, resourceName, vaultSettingName, createInput, context); return this; } @@ -98,7 +98,7 @@ public VaultSetting create(Context context) { public VaultSetting refresh() { this.innerObject = serviceManager.serviceClient() .getReplicationVaultSettings() - .getWithResponse(resourceName, resourceGroupName, vaultSettingName, Context.NONE) + .getWithResponse(resourceGroupName, resourceName, vaultSettingName, Context.NONE) .getValue(); return this; } @@ -106,7 +106,7 @@ public VaultSetting refresh() { public VaultSetting refresh(Context context) { this.innerObject = serviceManager.serviceClient() .getReplicationVaultSettings() - .getWithResponse(resourceName, resourceGroupName, vaultSettingName, context) + .getWithResponse(resourceGroupName, resourceName, vaultSettingName, context) .getValue(); return this; } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/A2AApplyClusterRecoveryPointInput.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/A2AApplyClusterRecoveryPointInput.java new file mode 100644 index 000000000000..76afe3432d21 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/A2AApplyClusterRecoveryPointInput.java @@ -0,0 +1,84 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * A2A provider specific input for apply cluster recovery point. + */ +@Immutable +public final class A2AApplyClusterRecoveryPointInput extends ApplyClusterRecoveryPointProviderSpecificInput { + /* + * The class type. + */ + private String instanceType = "A2A"; + + /** + * Creates an instance of A2AApplyClusterRecoveryPointInput class. + */ + public A2AApplyClusterRecoveryPointInput() { + } + + /** + * Get the instanceType property: The class type. + * + * @return the instanceType value. + */ + @Override + public String instanceType() { + return this.instanceType; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("instanceType", this.instanceType); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of A2AApplyClusterRecoveryPointInput from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of A2AApplyClusterRecoveryPointInput if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the A2AApplyClusterRecoveryPointInput. + */ + public static A2AApplyClusterRecoveryPointInput fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + A2AApplyClusterRecoveryPointInput deserializedA2AApplyClusterRecoveryPointInput + = new A2AApplyClusterRecoveryPointInput(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("instanceType".equals(fieldName)) { + deserializedA2AApplyClusterRecoveryPointInput.instanceType = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedA2AApplyClusterRecoveryPointInput; + }); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/A2AClusterRecoveryPointDetails.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/A2AClusterRecoveryPointDetails.java new file mode 100644 index 000000000000..415550a000c6 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/A2AClusterRecoveryPointDetails.java @@ -0,0 +1,144 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * A2A provider specific cluster recovery point details. + */ +@Fluent +public final class A2AClusterRecoveryPointDetails extends ClusterProviderSpecificRecoveryPointDetails { + /* + * Gets the provider type. + */ + private String instanceType = "A2A"; + + /* + * A value indicating whether the recovery point is multi VM consistent. + */ + private RecoveryPointSyncType recoveryPointSyncType; + + /* + * The list of nodes representing the cluster. + */ + private List nodes; + + /** + * Creates an instance of A2AClusterRecoveryPointDetails class. + */ + public A2AClusterRecoveryPointDetails() { + } + + /** + * Get the instanceType property: Gets the provider type. + * + * @return the instanceType value. + */ + @Override + public String instanceType() { + return this.instanceType; + } + + /** + * Get the recoveryPointSyncType property: A value indicating whether the recovery point is multi VM consistent. + * + * @return the recoveryPointSyncType value. + */ + public RecoveryPointSyncType recoveryPointSyncType() { + return this.recoveryPointSyncType; + } + + /** + * Set the recoveryPointSyncType property: A value indicating whether the recovery point is multi VM consistent. + * + * @param recoveryPointSyncType the recoveryPointSyncType value to set. + * @return the A2AClusterRecoveryPointDetails object itself. + */ + public A2AClusterRecoveryPointDetails withRecoveryPointSyncType(RecoveryPointSyncType recoveryPointSyncType) { + this.recoveryPointSyncType = recoveryPointSyncType; + return this; + } + + /** + * Get the nodes property: The list of nodes representing the cluster. + * + * @return the nodes value. + */ + public List nodes() { + return this.nodes; + } + + /** + * Set the nodes property: The list of nodes representing the cluster. + * + * @param nodes the nodes value to set. + * @return the A2AClusterRecoveryPointDetails object itself. + */ + public A2AClusterRecoveryPointDetails withNodes(List nodes) { + this.nodes = nodes; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("instanceType", this.instanceType); + jsonWriter.writeStringField("recoveryPointSyncType", + this.recoveryPointSyncType == null ? null : this.recoveryPointSyncType.toString()); + jsonWriter.writeArrayField("nodes", this.nodes, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of A2AClusterRecoveryPointDetails from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of A2AClusterRecoveryPointDetails if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the A2AClusterRecoveryPointDetails. + */ + public static A2AClusterRecoveryPointDetails fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + A2AClusterRecoveryPointDetails deserializedA2AClusterRecoveryPointDetails + = new A2AClusterRecoveryPointDetails(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("instanceType".equals(fieldName)) { + deserializedA2AClusterRecoveryPointDetails.instanceType = reader.getString(); + } else if ("recoveryPointSyncType".equals(fieldName)) { + deserializedA2AClusterRecoveryPointDetails.recoveryPointSyncType + = RecoveryPointSyncType.fromString(reader.getString()); + } else if ("nodes".equals(fieldName)) { + List nodes = reader.readArray(reader1 -> reader1.getString()); + deserializedA2AClusterRecoveryPointDetails.nodes = nodes; + } else { + reader.skipChildren(); + } + } + + return deserializedA2AClusterRecoveryPointDetails; + }); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/A2AClusterTestFailoverInput.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/A2AClusterTestFailoverInput.java new file mode 100644 index 000000000000..89dccbff74e1 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/A2AClusterTestFailoverInput.java @@ -0,0 +1,144 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * A2A provider specific input for test cluster failover. + */ +@Fluent +public final class A2AClusterTestFailoverInput extends ClusterTestFailoverProviderSpecificInput { + /* + * The class type. + */ + private String instanceType = "A2A"; + + /* + * The cluster recovery point id to be passed to failover to a particular recovery point. + */ + private String clusterRecoveryPointId; + + /* + * The list of individual node recovery points. + */ + private List individualNodeRecoveryPoints; + + /** + * Creates an instance of A2AClusterTestFailoverInput class. + */ + public A2AClusterTestFailoverInput() { + } + + /** + * Get the instanceType property: The class type. + * + * @return the instanceType value. + */ + @Override + public String instanceType() { + return this.instanceType; + } + + /** + * Get the clusterRecoveryPointId property: The cluster recovery point id to be passed to failover to a particular + * recovery point. + * + * @return the clusterRecoveryPointId value. + */ + public String clusterRecoveryPointId() { + return this.clusterRecoveryPointId; + } + + /** + * Set the clusterRecoveryPointId property: The cluster recovery point id to be passed to failover to a particular + * recovery point. + * + * @param clusterRecoveryPointId the clusterRecoveryPointId value to set. + * @return the A2AClusterTestFailoverInput object itself. + */ + public A2AClusterTestFailoverInput withClusterRecoveryPointId(String clusterRecoveryPointId) { + this.clusterRecoveryPointId = clusterRecoveryPointId; + return this; + } + + /** + * Get the individualNodeRecoveryPoints property: The list of individual node recovery points. + * + * @return the individualNodeRecoveryPoints value. + */ + public List individualNodeRecoveryPoints() { + return this.individualNodeRecoveryPoints; + } + + /** + * Set the individualNodeRecoveryPoints property: The list of individual node recovery points. + * + * @param individualNodeRecoveryPoints the individualNodeRecoveryPoints value to set. + * @return the A2AClusterTestFailoverInput object itself. + */ + public A2AClusterTestFailoverInput withIndividualNodeRecoveryPoints(List individualNodeRecoveryPoints) { + this.individualNodeRecoveryPoints = individualNodeRecoveryPoints; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("instanceType", this.instanceType); + jsonWriter.writeStringField("clusterRecoveryPointId", this.clusterRecoveryPointId); + jsonWriter.writeArrayField("individualNodeRecoveryPoints", this.individualNodeRecoveryPoints, + (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of A2AClusterTestFailoverInput from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of A2AClusterTestFailoverInput if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the A2AClusterTestFailoverInput. + */ + public static A2AClusterTestFailoverInput fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + A2AClusterTestFailoverInput deserializedA2AClusterTestFailoverInput = new A2AClusterTestFailoverInput(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("instanceType".equals(fieldName)) { + deserializedA2AClusterTestFailoverInput.instanceType = reader.getString(); + } else if ("clusterRecoveryPointId".equals(fieldName)) { + deserializedA2AClusterTestFailoverInput.clusterRecoveryPointId = reader.getString(); + } else if ("individualNodeRecoveryPoints".equals(fieldName)) { + List individualNodeRecoveryPoints = reader.readArray(reader1 -> reader1.getString()); + deserializedA2AClusterTestFailoverInput.individualNodeRecoveryPoints = individualNodeRecoveryPoints; + } else { + reader.skipChildren(); + } + } + + return deserializedA2AClusterTestFailoverInput; + }); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/A2AClusterUnplannedFailoverInput.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/A2AClusterUnplannedFailoverInput.java new file mode 100644 index 000000000000..b5b47e2f872e --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/A2AClusterUnplannedFailoverInput.java @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * A2A provider specific input for unplanned cluster failover. + */ +@Fluent +public final class A2AClusterUnplannedFailoverInput extends ClusterUnplannedFailoverProviderSpecificInput { + /* + * The class type. + */ + private String instanceType = "A2A"; + + /* + * The cluster recovery point id to be passed to failover to a particular recovery point. + */ + private String clusterRecoveryPointId; + + /* + * The list of individual node recovery points. + */ + private List individualNodeRecoveryPoints; + + /** + * Creates an instance of A2AClusterUnplannedFailoverInput class. + */ + public A2AClusterUnplannedFailoverInput() { + } + + /** + * Get the instanceType property: The class type. + * + * @return the instanceType value. + */ + @Override + public String instanceType() { + return this.instanceType; + } + + /** + * Get the clusterRecoveryPointId property: The cluster recovery point id to be passed to failover to a particular + * recovery point. + * + * @return the clusterRecoveryPointId value. + */ + public String clusterRecoveryPointId() { + return this.clusterRecoveryPointId; + } + + /** + * Set the clusterRecoveryPointId property: The cluster recovery point id to be passed to failover to a particular + * recovery point. + * + * @param clusterRecoveryPointId the clusterRecoveryPointId value to set. + * @return the A2AClusterUnplannedFailoverInput object itself. + */ + public A2AClusterUnplannedFailoverInput withClusterRecoveryPointId(String clusterRecoveryPointId) { + this.clusterRecoveryPointId = clusterRecoveryPointId; + return this; + } + + /** + * Get the individualNodeRecoveryPoints property: The list of individual node recovery points. + * + * @return the individualNodeRecoveryPoints value. + */ + public List individualNodeRecoveryPoints() { + return this.individualNodeRecoveryPoints; + } + + /** + * Set the individualNodeRecoveryPoints property: The list of individual node recovery points. + * + * @param individualNodeRecoveryPoints the individualNodeRecoveryPoints value to set. + * @return the A2AClusterUnplannedFailoverInput object itself. + */ + public A2AClusterUnplannedFailoverInput + withIndividualNodeRecoveryPoints(List individualNodeRecoveryPoints) { + this.individualNodeRecoveryPoints = individualNodeRecoveryPoints; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("instanceType", this.instanceType); + jsonWriter.writeStringField("clusterRecoveryPointId", this.clusterRecoveryPointId); + jsonWriter.writeArrayField("individualNodeRecoveryPoints", this.individualNodeRecoveryPoints, + (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of A2AClusterUnplannedFailoverInput from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of A2AClusterUnplannedFailoverInput if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the A2AClusterUnplannedFailoverInput. + */ + public static A2AClusterUnplannedFailoverInput fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + A2AClusterUnplannedFailoverInput deserializedA2AClusterUnplannedFailoverInput + = new A2AClusterUnplannedFailoverInput(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("instanceType".equals(fieldName)) { + deserializedA2AClusterUnplannedFailoverInput.instanceType = reader.getString(); + } else if ("clusterRecoveryPointId".equals(fieldName)) { + deserializedA2AClusterUnplannedFailoverInput.clusterRecoveryPointId = reader.getString(); + } else if ("individualNodeRecoveryPoints".equals(fieldName)) { + List individualNodeRecoveryPoints = reader.readArray(reader1 -> reader1.getString()); + deserializedA2AClusterUnplannedFailoverInput.individualNodeRecoveryPoints + = individualNodeRecoveryPoints; + } else { + reader.skipChildren(); + } + } + + return deserializedA2AClusterUnplannedFailoverInput; + }); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/A2AEnableProtectionInput.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/A2AEnableProtectionInput.java index e490a1dbb051..0d3baa8daac4 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/A2AEnableProtectionInput.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/A2AEnableProtectionInput.java @@ -72,6 +72,11 @@ public final class A2AEnableProtectionInput extends EnableProtectionProviderSpec */ private String multiVmGroupId; + /* + * The replication protection cluster Id. + */ + private String protectionClusterId; + /* * The boot diagnostic storage account. */ @@ -333,6 +338,26 @@ public A2AEnableProtectionInput withMultiVmGroupId(String multiVmGroupId) { return this; } + /** + * Get the protectionClusterId property: The replication protection cluster Id. + * + * @return the protectionClusterId value. + */ + public String protectionClusterId() { + return this.protectionClusterId; + } + + /** + * Set the protectionClusterId property: The replication protection cluster Id. + * + * @param protectionClusterId the protectionClusterId value to set. + * @return the A2AEnableProtectionInput object itself. + */ + public A2AEnableProtectionInput withProtectionClusterId(String protectionClusterId) { + this.protectionClusterId = protectionClusterId; + return this; + } + /** * Get the recoveryBootDiagStorageAccountId property: The boot diagnostic storage account. * @@ -559,6 +584,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { (writer, element) -> writer.writeJson(element)); jsonWriter.writeStringField("multiVmGroupName", this.multiVmGroupName); jsonWriter.writeStringField("multiVmGroupId", this.multiVmGroupId); + jsonWriter.writeStringField("protectionClusterId", this.protectionClusterId); jsonWriter.writeStringField("recoveryBootDiagStorageAccountId", this.recoveryBootDiagStorageAccountId); jsonWriter.writeJsonField("diskEncryptionInfo", this.diskEncryptionInfo); jsonWriter.writeStringField("recoveryAvailabilityZone", this.recoveryAvailabilityZone); @@ -614,6 +640,8 @@ public static A2AEnableProtectionInput fromJson(JsonReader jsonReader) throws IO deserializedA2AEnableProtectionInput.multiVmGroupName = reader.getString(); } else if ("multiVmGroupId".equals(fieldName)) { deserializedA2AEnableProtectionInput.multiVmGroupId = reader.getString(); + } else if ("protectionClusterId".equals(fieldName)) { + deserializedA2AEnableProtectionInput.protectionClusterId = reader.getString(); } else if ("recoveryBootDiagStorageAccountId".equals(fieldName)) { deserializedA2AEnableProtectionInput.recoveryBootDiagStorageAccountId = reader.getString(); } else if ("diskEncryptionInfo".equals(fieldName)) { diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/A2AProtectedItemDetail.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/A2AProtectedItemDetail.java new file mode 100644 index 000000000000..ef7db7d60612 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/A2AProtectedItemDetail.java @@ -0,0 +1,355 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * A2A specific switch cluster protection input. + */ +@Fluent +public final class A2AProtectedItemDetail implements JsonSerializable { + /* + * The list of vm managed disk details. + */ + private List vmManagedDisks; + + /* + * The recovery resource group Id. + */ + private String recoveryResourceGroupId; + + /* + * The recovery availability set. + */ + private String recoveryAvailabilitySetId; + + /* + * The boot diagnostic storage account. + */ + private String recoveryBootDiagStorageAccountId; + + /* + * The recovery availability zone. + */ + private String recoveryAvailabilityZone; + + /* + * The recovery proximity placement group Id. + */ + private String recoveryProximityPlacementGroupId; + + /* + * The virtual machine scale set id. + */ + private String recoveryVirtualMachineScaleSetId; + + /* + * The recovery capacity reservation group Id. + */ + private String recoveryCapacityReservationGroupId; + + /* + * The recovery disk encryption information. + */ + private DiskEncryptionInfo diskEncryptionInfo; + + /* + * The Replication Protected item name. + */ + private String replicationProtectedItemName; + + /** + * Creates an instance of A2AProtectedItemDetail class. + */ + public A2AProtectedItemDetail() { + } + + /** + * Get the vmManagedDisks property: The list of vm managed disk details. + * + * @return the vmManagedDisks value. + */ + public List vmManagedDisks() { + return this.vmManagedDisks; + } + + /** + * Set the vmManagedDisks property: The list of vm managed disk details. + * + * @param vmManagedDisks the vmManagedDisks value to set. + * @return the A2AProtectedItemDetail object itself. + */ + public A2AProtectedItemDetail withVmManagedDisks(List vmManagedDisks) { + this.vmManagedDisks = vmManagedDisks; + return this; + } + + /** + * Get the recoveryResourceGroupId property: The recovery resource group Id. + * + * @return the recoveryResourceGroupId value. + */ + public String recoveryResourceGroupId() { + return this.recoveryResourceGroupId; + } + + /** + * Set the recoveryResourceGroupId property: The recovery resource group Id. + * + * @param recoveryResourceGroupId the recoveryResourceGroupId value to set. + * @return the A2AProtectedItemDetail object itself. + */ + public A2AProtectedItemDetail withRecoveryResourceGroupId(String recoveryResourceGroupId) { + this.recoveryResourceGroupId = recoveryResourceGroupId; + return this; + } + + /** + * Get the recoveryAvailabilitySetId property: The recovery availability set. + * + * @return the recoveryAvailabilitySetId value. + */ + public String recoveryAvailabilitySetId() { + return this.recoveryAvailabilitySetId; + } + + /** + * Set the recoveryAvailabilitySetId property: The recovery availability set. + * + * @param recoveryAvailabilitySetId the recoveryAvailabilitySetId value to set. + * @return the A2AProtectedItemDetail object itself. + */ + public A2AProtectedItemDetail withRecoveryAvailabilitySetId(String recoveryAvailabilitySetId) { + this.recoveryAvailabilitySetId = recoveryAvailabilitySetId; + return this; + } + + /** + * Get the recoveryBootDiagStorageAccountId property: The boot diagnostic storage account. + * + * @return the recoveryBootDiagStorageAccountId value. + */ + public String recoveryBootDiagStorageAccountId() { + return this.recoveryBootDiagStorageAccountId; + } + + /** + * Set the recoveryBootDiagStorageAccountId property: The boot diagnostic storage account. + * + * @param recoveryBootDiagStorageAccountId the recoveryBootDiagStorageAccountId value to set. + * @return the A2AProtectedItemDetail object itself. + */ + public A2AProtectedItemDetail withRecoveryBootDiagStorageAccountId(String recoveryBootDiagStorageAccountId) { + this.recoveryBootDiagStorageAccountId = recoveryBootDiagStorageAccountId; + return this; + } + + /** + * Get the recoveryAvailabilityZone property: The recovery availability zone. + * + * @return the recoveryAvailabilityZone value. + */ + public String recoveryAvailabilityZone() { + return this.recoveryAvailabilityZone; + } + + /** + * Set the recoveryAvailabilityZone property: The recovery availability zone. + * + * @param recoveryAvailabilityZone the recoveryAvailabilityZone value to set. + * @return the A2AProtectedItemDetail object itself. + */ + public A2AProtectedItemDetail withRecoveryAvailabilityZone(String recoveryAvailabilityZone) { + this.recoveryAvailabilityZone = recoveryAvailabilityZone; + return this; + } + + /** + * Get the recoveryProximityPlacementGroupId property: The recovery proximity placement group Id. + * + * @return the recoveryProximityPlacementGroupId value. + */ + public String recoveryProximityPlacementGroupId() { + return this.recoveryProximityPlacementGroupId; + } + + /** + * Set the recoveryProximityPlacementGroupId property: The recovery proximity placement group Id. + * + * @param recoveryProximityPlacementGroupId the recoveryProximityPlacementGroupId value to set. + * @return the A2AProtectedItemDetail object itself. + */ + public A2AProtectedItemDetail withRecoveryProximityPlacementGroupId(String recoveryProximityPlacementGroupId) { + this.recoveryProximityPlacementGroupId = recoveryProximityPlacementGroupId; + return this; + } + + /** + * Get the recoveryVirtualMachineScaleSetId property: The virtual machine scale set id. + * + * @return the recoveryVirtualMachineScaleSetId value. + */ + public String recoveryVirtualMachineScaleSetId() { + return this.recoveryVirtualMachineScaleSetId; + } + + /** + * Set the recoveryVirtualMachineScaleSetId property: The virtual machine scale set id. + * + * @param recoveryVirtualMachineScaleSetId the recoveryVirtualMachineScaleSetId value to set. + * @return the A2AProtectedItemDetail object itself. + */ + public A2AProtectedItemDetail withRecoveryVirtualMachineScaleSetId(String recoveryVirtualMachineScaleSetId) { + this.recoveryVirtualMachineScaleSetId = recoveryVirtualMachineScaleSetId; + return this; + } + + /** + * Get the recoveryCapacityReservationGroupId property: The recovery capacity reservation group Id. + * + * @return the recoveryCapacityReservationGroupId value. + */ + public String recoveryCapacityReservationGroupId() { + return this.recoveryCapacityReservationGroupId; + } + + /** + * Set the recoveryCapacityReservationGroupId property: The recovery capacity reservation group Id. + * + * @param recoveryCapacityReservationGroupId the recoveryCapacityReservationGroupId value to set. + * @return the A2AProtectedItemDetail object itself. + */ + public A2AProtectedItemDetail withRecoveryCapacityReservationGroupId(String recoveryCapacityReservationGroupId) { + this.recoveryCapacityReservationGroupId = recoveryCapacityReservationGroupId; + return this; + } + + /** + * Get the diskEncryptionInfo property: The recovery disk encryption information. + * + * @return the diskEncryptionInfo value. + */ + public DiskEncryptionInfo diskEncryptionInfo() { + return this.diskEncryptionInfo; + } + + /** + * Set the diskEncryptionInfo property: The recovery disk encryption information. + * + * @param diskEncryptionInfo the diskEncryptionInfo value to set. + * @return the A2AProtectedItemDetail object itself. + */ + public A2AProtectedItemDetail withDiskEncryptionInfo(DiskEncryptionInfo diskEncryptionInfo) { + this.diskEncryptionInfo = diskEncryptionInfo; + return this; + } + + /** + * Get the replicationProtectedItemName property: The Replication Protected item name. + * + * @return the replicationProtectedItemName value. + */ + public String replicationProtectedItemName() { + return this.replicationProtectedItemName; + } + + /** + * Set the replicationProtectedItemName property: The Replication Protected item name. + * + * @param replicationProtectedItemName the replicationProtectedItemName value to set. + * @return the A2AProtectedItemDetail object itself. + */ + public A2AProtectedItemDetail withReplicationProtectedItemName(String replicationProtectedItemName) { + this.replicationProtectedItemName = replicationProtectedItemName; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (vmManagedDisks() != null) { + vmManagedDisks().forEach(e -> e.validate()); + } + if (diskEncryptionInfo() != null) { + diskEncryptionInfo().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("vmManagedDisks", this.vmManagedDisks, + (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("recoveryResourceGroupId", this.recoveryResourceGroupId); + jsonWriter.writeStringField("recoveryAvailabilitySetId", this.recoveryAvailabilitySetId); + jsonWriter.writeStringField("recoveryBootDiagStorageAccountId", this.recoveryBootDiagStorageAccountId); + jsonWriter.writeStringField("recoveryAvailabilityZone", this.recoveryAvailabilityZone); + jsonWriter.writeStringField("recoveryProximityPlacementGroupId", this.recoveryProximityPlacementGroupId); + jsonWriter.writeStringField("recoveryVirtualMachineScaleSetId", this.recoveryVirtualMachineScaleSetId); + jsonWriter.writeStringField("recoveryCapacityReservationGroupId", this.recoveryCapacityReservationGroupId); + jsonWriter.writeJsonField("diskEncryptionInfo", this.diskEncryptionInfo); + jsonWriter.writeStringField("replicationProtectedItemName", this.replicationProtectedItemName); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of A2AProtectedItemDetail from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of A2AProtectedItemDetail if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the A2AProtectedItemDetail. + */ + public static A2AProtectedItemDetail fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + A2AProtectedItemDetail deserializedA2AProtectedItemDetail = new A2AProtectedItemDetail(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("vmManagedDisks".equals(fieldName)) { + List vmManagedDisks + = reader.readArray(reader1 -> A2AVmManagedDiskInputDetails.fromJson(reader1)); + deserializedA2AProtectedItemDetail.vmManagedDisks = vmManagedDisks; + } else if ("recoveryResourceGroupId".equals(fieldName)) { + deserializedA2AProtectedItemDetail.recoveryResourceGroupId = reader.getString(); + } else if ("recoveryAvailabilitySetId".equals(fieldName)) { + deserializedA2AProtectedItemDetail.recoveryAvailabilitySetId = reader.getString(); + } else if ("recoveryBootDiagStorageAccountId".equals(fieldName)) { + deserializedA2AProtectedItemDetail.recoveryBootDiagStorageAccountId = reader.getString(); + } else if ("recoveryAvailabilityZone".equals(fieldName)) { + deserializedA2AProtectedItemDetail.recoveryAvailabilityZone = reader.getString(); + } else if ("recoveryProximityPlacementGroupId".equals(fieldName)) { + deserializedA2AProtectedItemDetail.recoveryProximityPlacementGroupId = reader.getString(); + } else if ("recoveryVirtualMachineScaleSetId".equals(fieldName)) { + deserializedA2AProtectedItemDetail.recoveryVirtualMachineScaleSetId = reader.getString(); + } else if ("recoveryCapacityReservationGroupId".equals(fieldName)) { + deserializedA2AProtectedItemDetail.recoveryCapacityReservationGroupId = reader.getString(); + } else if ("diskEncryptionInfo".equals(fieldName)) { + deserializedA2AProtectedItemDetail.diskEncryptionInfo = DiskEncryptionInfo.fromJson(reader); + } else if ("replicationProtectedItemName".equals(fieldName)) { + deserializedA2AProtectedItemDetail.replicationProtectedItemName = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedA2AProtectedItemDetail; + }); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/A2AReplicationDetails.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/A2AReplicationDetails.java index 7c9e6cf412df..8895afff6bd5 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/A2AReplicationDetails.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/A2AReplicationDetails.java @@ -79,6 +79,16 @@ public final class A2AReplicationDetails extends ReplicationProviderSpecificSett */ private String managementId; + /* + * The replication protection cluster Id. + */ + private String protectionClusterId; + + /* + * A value indicating if the cluster infra is ready or not. + */ + private Boolean isClusterInfraReady; + /* * The list of protected disks. */ @@ -488,6 +498,46 @@ public A2AReplicationDetails withManagementId(String managementId) { return this; } + /** + * Get the protectionClusterId property: The replication protection cluster Id. + * + * @return the protectionClusterId value. + */ + public String protectionClusterId() { + return this.protectionClusterId; + } + + /** + * Set the protectionClusterId property: The replication protection cluster Id. + * + * @param protectionClusterId the protectionClusterId value to set. + * @return the A2AReplicationDetails object itself. + */ + public A2AReplicationDetails withProtectionClusterId(String protectionClusterId) { + this.protectionClusterId = protectionClusterId; + return this; + } + + /** + * Get the isClusterInfraReady property: A value indicating if the cluster infra is ready or not. + * + * @return the isClusterInfraReady value. + */ + public Boolean isClusterInfraReady() { + return this.isClusterInfraReady; + } + + /** + * Set the isClusterInfraReady property: A value indicating if the cluster infra is ready or not. + * + * @param isClusterInfraReady the isClusterInfraReady value to set. + * @return the A2AReplicationDetails object itself. + */ + public A2AReplicationDetails withIsClusterInfraReady(Boolean isClusterInfraReady) { + this.isClusterInfraReady = isClusterInfraReady; + return this; + } + /** * Get the protectedDisks property: The list of protected disks. * @@ -1372,6 +1422,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("multiVmGroupCreateOption", this.multiVmGroupCreateOption == null ? null : this.multiVmGroupCreateOption.toString()); jsonWriter.writeStringField("managementId", this.managementId); + jsonWriter.writeStringField("protectionClusterId", this.protectionClusterId); + jsonWriter.writeBooleanField("isClusterInfraReady", this.isClusterInfraReady); jsonWriter.writeArrayField("protectedDisks", this.protectedDisks, (writer, element) -> writer.writeJson(element)); jsonWriter.writeArrayField("unprotectedDisks", this.unprotectedDisks, @@ -1466,6 +1518,10 @@ public static A2AReplicationDetails fromJson(JsonReader jsonReader) throws IOExc = MultiVmGroupCreateOption.fromString(reader.getString()); } else if ("managementId".equals(fieldName)) { deserializedA2AReplicationDetails.managementId = reader.getString(); + } else if ("protectionClusterId".equals(fieldName)) { + deserializedA2AReplicationDetails.protectionClusterId = reader.getString(); + } else if ("isClusterInfraReady".equals(fieldName)) { + deserializedA2AReplicationDetails.isClusterInfraReady = reader.getNullable(JsonReader::getBoolean); } else if ("protectedDisks".equals(fieldName)) { List protectedDisks = reader.readArray(reader1 -> A2AProtectedDiskDetails.fromJson(reader1)); diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/A2AReplicationProtectionClusterDetails.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/A2AReplicationProtectionClusterDetails.java new file mode 100644 index 000000000000..fcb2c13e82df --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/A2AReplicationProtectionClusterDetails.java @@ -0,0 +1,687 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.CoreUtils; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.time.format.DateTimeFormatter; + +/** + * A2A provider specific settings. + */ +@Fluent +public final class A2AReplicationProtectionClusterDetails extends ReplicationClusterProviderSpecificSettings { + /* + * Gets the Instance type. + */ + private String instanceType = "A2A"; + + /* + * The multi vm group Id. + */ + private String multiVmGroupId; + + /* + * The multi vm group name. + */ + private String multiVmGroupName; + + /* + * Whether Multi VM group is auto created or specified by user. + */ + private MultiVmGroupCreateOption multiVmGroupCreateOption; + + /* + * Primary fabric location. + */ + private String primaryFabricLocation; + + /* + * The recovery fabric location. + */ + private String recoveryFabricLocation; + + /* + * The recovery point Id to which the cluster was failed over. + */ + private String failoverRecoveryPointId; + + /* + * The cluster management Id. + */ + private String clusterManagementId; + + /* + * The last RPO value in seconds. + */ + private Long rpoInSeconds; + + /* + * The time (in UTC) when the last RPO value was calculated by Protection Service. + */ + private OffsetDateTime lastRpoCalculatedTime; + + /* + * The initial primary availability zone. + */ + private String initialPrimaryZone; + + /* + * The initial primary fabric location. + */ + private String initialPrimaryFabricLocation; + + /* + * The initial recovery availability zone. + */ + private String initialRecoveryZone; + + /* + * The initial recovery fabric location. + */ + private String initialRecoveryFabricLocation; + + /* + * The initial primary extended location. + */ + private ExtendedLocation initialPrimaryExtendedLocation; + + /* + * The initial recovery extended location. + */ + private ExtendedLocation initialRecoveryExtendedLocation; + + /* + * The primary availability zone. + */ + private String primaryAvailabilityZone; + + /* + * The recovery availability zone. + */ + private String recoveryAvailabilityZone; + + /* + * The primary Extended Location. + */ + private ExtendedLocation primaryExtendedLocation; + + /* + * The recovery Extended Location. + */ + private ExtendedLocation recoveryExtendedLocation; + + /* + * An id that survives actions like switch protection which change the backing PE/CPE objects internally.The + * lifecycle id gets carried forward to have a link/continuity in being able to have an Id that denotes the "same" + * protected cluster even though other internal Ids/ARM Id might be changing. + */ + private String lifecycleId; + + /** + * Creates an instance of A2AReplicationProtectionClusterDetails class. + */ + public A2AReplicationProtectionClusterDetails() { + } + + /** + * Get the instanceType property: Gets the Instance type. + * + * @return the instanceType value. + */ + @Override + public String instanceType() { + return this.instanceType; + } + + /** + * Get the multiVmGroupId property: The multi vm group Id. + * + * @return the multiVmGroupId value. + */ + public String multiVmGroupId() { + return this.multiVmGroupId; + } + + /** + * Set the multiVmGroupId property: The multi vm group Id. + * + * @param multiVmGroupId the multiVmGroupId value to set. + * @return the A2AReplicationProtectionClusterDetails object itself. + */ + public A2AReplicationProtectionClusterDetails withMultiVmGroupId(String multiVmGroupId) { + this.multiVmGroupId = multiVmGroupId; + return this; + } + + /** + * Get the multiVmGroupName property: The multi vm group name. + * + * @return the multiVmGroupName value. + */ + public String multiVmGroupName() { + return this.multiVmGroupName; + } + + /** + * Set the multiVmGroupName property: The multi vm group name. + * + * @param multiVmGroupName the multiVmGroupName value to set. + * @return the A2AReplicationProtectionClusterDetails object itself. + */ + public A2AReplicationProtectionClusterDetails withMultiVmGroupName(String multiVmGroupName) { + this.multiVmGroupName = multiVmGroupName; + return this; + } + + /** + * Get the multiVmGroupCreateOption property: Whether Multi VM group is auto created or specified by user. + * + * @return the multiVmGroupCreateOption value. + */ + public MultiVmGroupCreateOption multiVmGroupCreateOption() { + return this.multiVmGroupCreateOption; + } + + /** + * Set the multiVmGroupCreateOption property: Whether Multi VM group is auto created or specified by user. + * + * @param multiVmGroupCreateOption the multiVmGroupCreateOption value to set. + * @return the A2AReplicationProtectionClusterDetails object itself. + */ + public A2AReplicationProtectionClusterDetails + withMultiVmGroupCreateOption(MultiVmGroupCreateOption multiVmGroupCreateOption) { + this.multiVmGroupCreateOption = multiVmGroupCreateOption; + return this; + } + + /** + * Get the primaryFabricLocation property: Primary fabric location. + * + * @return the primaryFabricLocation value. + */ + public String primaryFabricLocation() { + return this.primaryFabricLocation; + } + + /** + * Set the primaryFabricLocation property: Primary fabric location. + * + * @param primaryFabricLocation the primaryFabricLocation value to set. + * @return the A2AReplicationProtectionClusterDetails object itself. + */ + public A2AReplicationProtectionClusterDetails withPrimaryFabricLocation(String primaryFabricLocation) { + this.primaryFabricLocation = primaryFabricLocation; + return this; + } + + /** + * Get the recoveryFabricLocation property: The recovery fabric location. + * + * @return the recoveryFabricLocation value. + */ + public String recoveryFabricLocation() { + return this.recoveryFabricLocation; + } + + /** + * Set the recoveryFabricLocation property: The recovery fabric location. + * + * @param recoveryFabricLocation the recoveryFabricLocation value to set. + * @return the A2AReplicationProtectionClusterDetails object itself. + */ + public A2AReplicationProtectionClusterDetails withRecoveryFabricLocation(String recoveryFabricLocation) { + this.recoveryFabricLocation = recoveryFabricLocation; + return this; + } + + /** + * Get the failoverRecoveryPointId property: The recovery point Id to which the cluster was failed over. + * + * @return the failoverRecoveryPointId value. + */ + public String failoverRecoveryPointId() { + return this.failoverRecoveryPointId; + } + + /** + * Set the failoverRecoveryPointId property: The recovery point Id to which the cluster was failed over. + * + * @param failoverRecoveryPointId the failoverRecoveryPointId value to set. + * @return the A2AReplicationProtectionClusterDetails object itself. + */ + public A2AReplicationProtectionClusterDetails withFailoverRecoveryPointId(String failoverRecoveryPointId) { + this.failoverRecoveryPointId = failoverRecoveryPointId; + return this; + } + + /** + * Get the clusterManagementId property: The cluster management Id. + * + * @return the clusterManagementId value. + */ + public String clusterManagementId() { + return this.clusterManagementId; + } + + /** + * Set the clusterManagementId property: The cluster management Id. + * + * @param clusterManagementId the clusterManagementId value to set. + * @return the A2AReplicationProtectionClusterDetails object itself. + */ + public A2AReplicationProtectionClusterDetails withClusterManagementId(String clusterManagementId) { + this.clusterManagementId = clusterManagementId; + return this; + } + + /** + * Get the rpoInSeconds property: The last RPO value in seconds. + * + * @return the rpoInSeconds value. + */ + public Long rpoInSeconds() { + return this.rpoInSeconds; + } + + /** + * Set the rpoInSeconds property: The last RPO value in seconds. + * + * @param rpoInSeconds the rpoInSeconds value to set. + * @return the A2AReplicationProtectionClusterDetails object itself. + */ + public A2AReplicationProtectionClusterDetails withRpoInSeconds(Long rpoInSeconds) { + this.rpoInSeconds = rpoInSeconds; + return this; + } + + /** + * Get the lastRpoCalculatedTime property: The time (in UTC) when the last RPO value was calculated by Protection + * Service. + * + * @return the lastRpoCalculatedTime value. + */ + public OffsetDateTime lastRpoCalculatedTime() { + return this.lastRpoCalculatedTime; + } + + /** + * Set the lastRpoCalculatedTime property: The time (in UTC) when the last RPO value was calculated by Protection + * Service. + * + * @param lastRpoCalculatedTime the lastRpoCalculatedTime value to set. + * @return the A2AReplicationProtectionClusterDetails object itself. + */ + public A2AReplicationProtectionClusterDetails withLastRpoCalculatedTime(OffsetDateTime lastRpoCalculatedTime) { + this.lastRpoCalculatedTime = lastRpoCalculatedTime; + return this; + } + + /** + * Get the initialPrimaryZone property: The initial primary availability zone. + * + * @return the initialPrimaryZone value. + */ + public String initialPrimaryZone() { + return this.initialPrimaryZone; + } + + /** + * Set the initialPrimaryZone property: The initial primary availability zone. + * + * @param initialPrimaryZone the initialPrimaryZone value to set. + * @return the A2AReplicationProtectionClusterDetails object itself. + */ + public A2AReplicationProtectionClusterDetails withInitialPrimaryZone(String initialPrimaryZone) { + this.initialPrimaryZone = initialPrimaryZone; + return this; + } + + /** + * Get the initialPrimaryFabricLocation property: The initial primary fabric location. + * + * @return the initialPrimaryFabricLocation value. + */ + public String initialPrimaryFabricLocation() { + return this.initialPrimaryFabricLocation; + } + + /** + * Set the initialPrimaryFabricLocation property: The initial primary fabric location. + * + * @param initialPrimaryFabricLocation the initialPrimaryFabricLocation value to set. + * @return the A2AReplicationProtectionClusterDetails object itself. + */ + public A2AReplicationProtectionClusterDetails + withInitialPrimaryFabricLocation(String initialPrimaryFabricLocation) { + this.initialPrimaryFabricLocation = initialPrimaryFabricLocation; + return this; + } + + /** + * Get the initialRecoveryZone property: The initial recovery availability zone. + * + * @return the initialRecoveryZone value. + */ + public String initialRecoveryZone() { + return this.initialRecoveryZone; + } + + /** + * Set the initialRecoveryZone property: The initial recovery availability zone. + * + * @param initialRecoveryZone the initialRecoveryZone value to set. + * @return the A2AReplicationProtectionClusterDetails object itself. + */ + public A2AReplicationProtectionClusterDetails withInitialRecoveryZone(String initialRecoveryZone) { + this.initialRecoveryZone = initialRecoveryZone; + return this; + } + + /** + * Get the initialRecoveryFabricLocation property: The initial recovery fabric location. + * + * @return the initialRecoveryFabricLocation value. + */ + public String initialRecoveryFabricLocation() { + return this.initialRecoveryFabricLocation; + } + + /** + * Set the initialRecoveryFabricLocation property: The initial recovery fabric location. + * + * @param initialRecoveryFabricLocation the initialRecoveryFabricLocation value to set. + * @return the A2AReplicationProtectionClusterDetails object itself. + */ + public A2AReplicationProtectionClusterDetails + withInitialRecoveryFabricLocation(String initialRecoveryFabricLocation) { + this.initialRecoveryFabricLocation = initialRecoveryFabricLocation; + return this; + } + + /** + * Get the initialPrimaryExtendedLocation property: The initial primary extended location. + * + * @return the initialPrimaryExtendedLocation value. + */ + public ExtendedLocation initialPrimaryExtendedLocation() { + return this.initialPrimaryExtendedLocation; + } + + /** + * Set the initialPrimaryExtendedLocation property: The initial primary extended location. + * + * @param initialPrimaryExtendedLocation the initialPrimaryExtendedLocation value to set. + * @return the A2AReplicationProtectionClusterDetails object itself. + */ + public A2AReplicationProtectionClusterDetails + withInitialPrimaryExtendedLocation(ExtendedLocation initialPrimaryExtendedLocation) { + this.initialPrimaryExtendedLocation = initialPrimaryExtendedLocation; + return this; + } + + /** + * Get the initialRecoveryExtendedLocation property: The initial recovery extended location. + * + * @return the initialRecoveryExtendedLocation value. + */ + public ExtendedLocation initialRecoveryExtendedLocation() { + return this.initialRecoveryExtendedLocation; + } + + /** + * Set the initialRecoveryExtendedLocation property: The initial recovery extended location. + * + * @param initialRecoveryExtendedLocation the initialRecoveryExtendedLocation value to set. + * @return the A2AReplicationProtectionClusterDetails object itself. + */ + public A2AReplicationProtectionClusterDetails + withInitialRecoveryExtendedLocation(ExtendedLocation initialRecoveryExtendedLocation) { + this.initialRecoveryExtendedLocation = initialRecoveryExtendedLocation; + return this; + } + + /** + * Get the primaryAvailabilityZone property: The primary availability zone. + * + * @return the primaryAvailabilityZone value. + */ + public String primaryAvailabilityZone() { + return this.primaryAvailabilityZone; + } + + /** + * Set the primaryAvailabilityZone property: The primary availability zone. + * + * @param primaryAvailabilityZone the primaryAvailabilityZone value to set. + * @return the A2AReplicationProtectionClusterDetails object itself. + */ + public A2AReplicationProtectionClusterDetails withPrimaryAvailabilityZone(String primaryAvailabilityZone) { + this.primaryAvailabilityZone = primaryAvailabilityZone; + return this; + } + + /** + * Get the recoveryAvailabilityZone property: The recovery availability zone. + * + * @return the recoveryAvailabilityZone value. + */ + public String recoveryAvailabilityZone() { + return this.recoveryAvailabilityZone; + } + + /** + * Set the recoveryAvailabilityZone property: The recovery availability zone. + * + * @param recoveryAvailabilityZone the recoveryAvailabilityZone value to set. + * @return the A2AReplicationProtectionClusterDetails object itself. + */ + public A2AReplicationProtectionClusterDetails withRecoveryAvailabilityZone(String recoveryAvailabilityZone) { + this.recoveryAvailabilityZone = recoveryAvailabilityZone; + return this; + } + + /** + * Get the primaryExtendedLocation property: The primary Extended Location. + * + * @return the primaryExtendedLocation value. + */ + public ExtendedLocation primaryExtendedLocation() { + return this.primaryExtendedLocation; + } + + /** + * Set the primaryExtendedLocation property: The primary Extended Location. + * + * @param primaryExtendedLocation the primaryExtendedLocation value to set. + * @return the A2AReplicationProtectionClusterDetails object itself. + */ + public A2AReplicationProtectionClusterDetails + withPrimaryExtendedLocation(ExtendedLocation primaryExtendedLocation) { + this.primaryExtendedLocation = primaryExtendedLocation; + return this; + } + + /** + * Get the recoveryExtendedLocation property: The recovery Extended Location. + * + * @return the recoveryExtendedLocation value. + */ + public ExtendedLocation recoveryExtendedLocation() { + return this.recoveryExtendedLocation; + } + + /** + * Set the recoveryExtendedLocation property: The recovery Extended Location. + * + * @param recoveryExtendedLocation the recoveryExtendedLocation value to set. + * @return the A2AReplicationProtectionClusterDetails object itself. + */ + public A2AReplicationProtectionClusterDetails + withRecoveryExtendedLocation(ExtendedLocation recoveryExtendedLocation) { + this.recoveryExtendedLocation = recoveryExtendedLocation; + return this; + } + + /** + * Get the lifecycleId property: An id that survives actions like switch protection which change the backing PE/CPE + * objects internally.The lifecycle id gets carried forward to have a link/continuity in being able to have an Id + * that denotes the "same" protected cluster even though other internal Ids/ARM Id might be changing. + * + * @return the lifecycleId value. + */ + public String lifecycleId() { + return this.lifecycleId; + } + + /** + * Set the lifecycleId property: An id that survives actions like switch protection which change the backing PE/CPE + * objects internally.The lifecycle id gets carried forward to have a link/continuity in being able to have an Id + * that denotes the "same" protected cluster even though other internal Ids/ARM Id might be changing. + * + * @param lifecycleId the lifecycleId value to set. + * @return the A2AReplicationProtectionClusterDetails object itself. + */ + public A2AReplicationProtectionClusterDetails withLifecycleId(String lifecycleId) { + this.lifecycleId = lifecycleId; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + if (initialPrimaryExtendedLocation() != null) { + initialPrimaryExtendedLocation().validate(); + } + if (initialRecoveryExtendedLocation() != null) { + initialRecoveryExtendedLocation().validate(); + } + if (primaryExtendedLocation() != null) { + primaryExtendedLocation().validate(); + } + if (recoveryExtendedLocation() != null) { + recoveryExtendedLocation().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("instanceType", this.instanceType); + jsonWriter.writeStringField("multiVmGroupId", this.multiVmGroupId); + jsonWriter.writeStringField("multiVmGroupName", this.multiVmGroupName); + jsonWriter.writeStringField("multiVmGroupCreateOption", + this.multiVmGroupCreateOption == null ? null : this.multiVmGroupCreateOption.toString()); + jsonWriter.writeStringField("primaryFabricLocation", this.primaryFabricLocation); + jsonWriter.writeStringField("recoveryFabricLocation", this.recoveryFabricLocation); + jsonWriter.writeStringField("failoverRecoveryPointId", this.failoverRecoveryPointId); + jsonWriter.writeStringField("clusterManagementId", this.clusterManagementId); + jsonWriter.writeNumberField("rpoInSeconds", this.rpoInSeconds); + jsonWriter.writeStringField("lastRpoCalculatedTime", + this.lastRpoCalculatedTime == null + ? null + : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.lastRpoCalculatedTime)); + jsonWriter.writeStringField("initialPrimaryZone", this.initialPrimaryZone); + jsonWriter.writeStringField("initialPrimaryFabricLocation", this.initialPrimaryFabricLocation); + jsonWriter.writeStringField("initialRecoveryZone", this.initialRecoveryZone); + jsonWriter.writeStringField("initialRecoveryFabricLocation", this.initialRecoveryFabricLocation); + jsonWriter.writeJsonField("initialPrimaryExtendedLocation", this.initialPrimaryExtendedLocation); + jsonWriter.writeJsonField("initialRecoveryExtendedLocation", this.initialRecoveryExtendedLocation); + jsonWriter.writeStringField("primaryAvailabilityZone", this.primaryAvailabilityZone); + jsonWriter.writeStringField("recoveryAvailabilityZone", this.recoveryAvailabilityZone); + jsonWriter.writeJsonField("primaryExtendedLocation", this.primaryExtendedLocation); + jsonWriter.writeJsonField("recoveryExtendedLocation", this.recoveryExtendedLocation); + jsonWriter.writeStringField("lifecycleId", this.lifecycleId); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of A2AReplicationProtectionClusterDetails from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of A2AReplicationProtectionClusterDetails if the JsonReader was pointing to an instance of + * it, or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the A2AReplicationProtectionClusterDetails. + */ + public static A2AReplicationProtectionClusterDetails fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + A2AReplicationProtectionClusterDetails deserializedA2AReplicationProtectionClusterDetails + = new A2AReplicationProtectionClusterDetails(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("instanceType".equals(fieldName)) { + deserializedA2AReplicationProtectionClusterDetails.instanceType = reader.getString(); + } else if ("multiVmGroupId".equals(fieldName)) { + deserializedA2AReplicationProtectionClusterDetails.multiVmGroupId = reader.getString(); + } else if ("multiVmGroupName".equals(fieldName)) { + deserializedA2AReplicationProtectionClusterDetails.multiVmGroupName = reader.getString(); + } else if ("multiVmGroupCreateOption".equals(fieldName)) { + deserializedA2AReplicationProtectionClusterDetails.multiVmGroupCreateOption + = MultiVmGroupCreateOption.fromString(reader.getString()); + } else if ("primaryFabricLocation".equals(fieldName)) { + deserializedA2AReplicationProtectionClusterDetails.primaryFabricLocation = reader.getString(); + } else if ("recoveryFabricLocation".equals(fieldName)) { + deserializedA2AReplicationProtectionClusterDetails.recoveryFabricLocation = reader.getString(); + } else if ("failoverRecoveryPointId".equals(fieldName)) { + deserializedA2AReplicationProtectionClusterDetails.failoverRecoveryPointId = reader.getString(); + } else if ("clusterManagementId".equals(fieldName)) { + deserializedA2AReplicationProtectionClusterDetails.clusterManagementId = reader.getString(); + } else if ("rpoInSeconds".equals(fieldName)) { + deserializedA2AReplicationProtectionClusterDetails.rpoInSeconds + = reader.getNullable(JsonReader::getLong); + } else if ("lastRpoCalculatedTime".equals(fieldName)) { + deserializedA2AReplicationProtectionClusterDetails.lastRpoCalculatedTime = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("initialPrimaryZone".equals(fieldName)) { + deserializedA2AReplicationProtectionClusterDetails.initialPrimaryZone = reader.getString(); + } else if ("initialPrimaryFabricLocation".equals(fieldName)) { + deserializedA2AReplicationProtectionClusterDetails.initialPrimaryFabricLocation + = reader.getString(); + } else if ("initialRecoveryZone".equals(fieldName)) { + deserializedA2AReplicationProtectionClusterDetails.initialRecoveryZone = reader.getString(); + } else if ("initialRecoveryFabricLocation".equals(fieldName)) { + deserializedA2AReplicationProtectionClusterDetails.initialRecoveryFabricLocation + = reader.getString(); + } else if ("initialPrimaryExtendedLocation".equals(fieldName)) { + deserializedA2AReplicationProtectionClusterDetails.initialPrimaryExtendedLocation + = ExtendedLocation.fromJson(reader); + } else if ("initialRecoveryExtendedLocation".equals(fieldName)) { + deserializedA2AReplicationProtectionClusterDetails.initialRecoveryExtendedLocation + = ExtendedLocation.fromJson(reader); + } else if ("primaryAvailabilityZone".equals(fieldName)) { + deserializedA2AReplicationProtectionClusterDetails.primaryAvailabilityZone = reader.getString(); + } else if ("recoveryAvailabilityZone".equals(fieldName)) { + deserializedA2AReplicationProtectionClusterDetails.recoveryAvailabilityZone = reader.getString(); + } else if ("primaryExtendedLocation".equals(fieldName)) { + deserializedA2AReplicationProtectionClusterDetails.primaryExtendedLocation + = ExtendedLocation.fromJson(reader); + } else if ("recoveryExtendedLocation".equals(fieldName)) { + deserializedA2AReplicationProtectionClusterDetails.recoveryExtendedLocation + = ExtendedLocation.fromJson(reader); + } else if ("lifecycleId".equals(fieldName)) { + deserializedA2AReplicationProtectionClusterDetails.lifecycleId = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedA2AReplicationProtectionClusterDetails; + }); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/A2ASharedDiskIRErrorDetails.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/A2ASharedDiskIRErrorDetails.java new file mode 100644 index 000000000000..41569ecfe6b2 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/A2ASharedDiskIRErrorDetails.java @@ -0,0 +1,145 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Extended location of the resource. + */ +@Immutable +public final class A2ASharedDiskIRErrorDetails implements JsonSerializable { + /* + * The error code. + */ + private String errorCode; + + /* + * The error code enum. + */ + private String errorCodeEnum; + + /* + * The error message. + */ + private String errorMessage; + + /* + * The possible causes. + */ + private String possibleCauses; + + /* + * The recommended action. + */ + private String recommendedAction; + + /** + * Creates an instance of A2ASharedDiskIRErrorDetails class. + */ + public A2ASharedDiskIRErrorDetails() { + } + + /** + * Get the errorCode property: The error code. + * + * @return the errorCode value. + */ + public String errorCode() { + return this.errorCode; + } + + /** + * Get the errorCodeEnum property: The error code enum. + * + * @return the errorCodeEnum value. + */ + public String errorCodeEnum() { + return this.errorCodeEnum; + } + + /** + * Get the errorMessage property: The error message. + * + * @return the errorMessage value. + */ + public String errorMessage() { + return this.errorMessage; + } + + /** + * Get the possibleCauses property: The possible causes. + * + * @return the possibleCauses value. + */ + public String possibleCauses() { + return this.possibleCauses; + } + + /** + * Get the recommendedAction property: The recommended action. + * + * @return the recommendedAction value. + */ + public String recommendedAction() { + return this.recommendedAction; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of A2ASharedDiskIRErrorDetails from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of A2ASharedDiskIRErrorDetails if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the A2ASharedDiskIRErrorDetails. + */ + public static A2ASharedDiskIRErrorDetails fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + A2ASharedDiskIRErrorDetails deserializedA2ASharedDiskIRErrorDetails = new A2ASharedDiskIRErrorDetails(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("errorCode".equals(fieldName)) { + deserializedA2ASharedDiskIRErrorDetails.errorCode = reader.getString(); + } else if ("errorCodeEnum".equals(fieldName)) { + deserializedA2ASharedDiskIRErrorDetails.errorCodeEnum = reader.getString(); + } else if ("errorMessage".equals(fieldName)) { + deserializedA2ASharedDiskIRErrorDetails.errorMessage = reader.getString(); + } else if ("possibleCauses".equals(fieldName)) { + deserializedA2ASharedDiskIRErrorDetails.possibleCauses = reader.getString(); + } else if ("recommendedAction".equals(fieldName)) { + deserializedA2ASharedDiskIRErrorDetails.recommendedAction = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedA2ASharedDiskIRErrorDetails; + }); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/A2ASharedDiskReplicationDetails.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/A2ASharedDiskReplicationDetails.java new file mode 100644 index 000000000000..4bafe1ea0927 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/A2ASharedDiskReplicationDetails.java @@ -0,0 +1,427 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.CoreUtils; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.time.format.DateTimeFormatter; +import java.util.List; + +/** + * A2A provider specific settings. + */ +@Fluent +public final class A2ASharedDiskReplicationDetails extends SharedDiskReplicationProviderSpecificSettings { + /* + * Gets the Instance type. + */ + private String instanceType = "A2A"; + + /* + * The management Id. + */ + private String managementId; + + /* + * The list of unprotected disks. + */ + private List unprotectedDisks; + + /* + * The list of protected managed disks. + */ + private List protectedManagedDisks; + + /* + * Primary fabric location. + */ + private String primaryFabricLocation; + + /* + * The recovery fabric location. + */ + private String recoveryFabricLocation; + + /* + * The recovery point id to which the Virtual node was failed over. + */ + private String failoverRecoveryPointId; + + /* + * The percentage of the monitoring job. The type of the monitoring job is defined by MonitoringJobType property. + */ + private Integer monitoringPercentageCompletion; + + /* + * The type of the monitoring job. The progress is contained in MonitoringPercentageCompletion property. + */ + private String monitoringJobType; + + /* + * The last RPO value in seconds. + */ + private Long rpoInSeconds; + + /* + * The time (in UTC) when the last RPO value was calculated by Protection Service. + */ + private OffsetDateTime lastRpoCalculatedTime; + + /* + * The IR Errors. + */ + private List sharedDiskIRErrors; + + /** + * Creates an instance of A2ASharedDiskReplicationDetails class. + */ + public A2ASharedDiskReplicationDetails() { + } + + /** + * Get the instanceType property: Gets the Instance type. + * + * @return the instanceType value. + */ + @Override + public String instanceType() { + return this.instanceType; + } + + /** + * Get the managementId property: The management Id. + * + * @return the managementId value. + */ + public String managementId() { + return this.managementId; + } + + /** + * Set the managementId property: The management Id. + * + * @param managementId the managementId value to set. + * @return the A2ASharedDiskReplicationDetails object itself. + */ + public A2ASharedDiskReplicationDetails withManagementId(String managementId) { + this.managementId = managementId; + return this; + } + + /** + * Get the unprotectedDisks property: The list of unprotected disks. + * + * @return the unprotectedDisks value. + */ + public List unprotectedDisks() { + return this.unprotectedDisks; + } + + /** + * Set the unprotectedDisks property: The list of unprotected disks. + * + * @param unprotectedDisks the unprotectedDisks value to set. + * @return the A2ASharedDiskReplicationDetails object itself. + */ + public A2ASharedDiskReplicationDetails withUnprotectedDisks(List unprotectedDisks) { + this.unprotectedDisks = unprotectedDisks; + return this; + } + + /** + * Get the protectedManagedDisks property: The list of protected managed disks. + * + * @return the protectedManagedDisks value. + */ + public List protectedManagedDisks() { + return this.protectedManagedDisks; + } + + /** + * Set the protectedManagedDisks property: The list of protected managed disks. + * + * @param protectedManagedDisks the protectedManagedDisks value to set. + * @return the A2ASharedDiskReplicationDetails object itself. + */ + public A2ASharedDiskReplicationDetails + withProtectedManagedDisks(List protectedManagedDisks) { + this.protectedManagedDisks = protectedManagedDisks; + return this; + } + + /** + * Get the primaryFabricLocation property: Primary fabric location. + * + * @return the primaryFabricLocation value. + */ + public String primaryFabricLocation() { + return this.primaryFabricLocation; + } + + /** + * Set the primaryFabricLocation property: Primary fabric location. + * + * @param primaryFabricLocation the primaryFabricLocation value to set. + * @return the A2ASharedDiskReplicationDetails object itself. + */ + public A2ASharedDiskReplicationDetails withPrimaryFabricLocation(String primaryFabricLocation) { + this.primaryFabricLocation = primaryFabricLocation; + return this; + } + + /** + * Get the recoveryFabricLocation property: The recovery fabric location. + * + * @return the recoveryFabricLocation value. + */ + public String recoveryFabricLocation() { + return this.recoveryFabricLocation; + } + + /** + * Set the recoveryFabricLocation property: The recovery fabric location. + * + * @param recoveryFabricLocation the recoveryFabricLocation value to set. + * @return the A2ASharedDiskReplicationDetails object itself. + */ + public A2ASharedDiskReplicationDetails withRecoveryFabricLocation(String recoveryFabricLocation) { + this.recoveryFabricLocation = recoveryFabricLocation; + return this; + } + + /** + * Get the failoverRecoveryPointId property: The recovery point id to which the Virtual node was failed over. + * + * @return the failoverRecoveryPointId value. + */ + public String failoverRecoveryPointId() { + return this.failoverRecoveryPointId; + } + + /** + * Set the failoverRecoveryPointId property: The recovery point id to which the Virtual node was failed over. + * + * @param failoverRecoveryPointId the failoverRecoveryPointId value to set. + * @return the A2ASharedDiskReplicationDetails object itself. + */ + public A2ASharedDiskReplicationDetails withFailoverRecoveryPointId(String failoverRecoveryPointId) { + this.failoverRecoveryPointId = failoverRecoveryPointId; + return this; + } + + /** + * Get the monitoringPercentageCompletion property: The percentage of the monitoring job. The type of the monitoring + * job is defined by MonitoringJobType property. + * + * @return the monitoringPercentageCompletion value. + */ + public Integer monitoringPercentageCompletion() { + return this.monitoringPercentageCompletion; + } + + /** + * Set the monitoringPercentageCompletion property: The percentage of the monitoring job. The type of the monitoring + * job is defined by MonitoringJobType property. + * + * @param monitoringPercentageCompletion the monitoringPercentageCompletion value to set. + * @return the A2ASharedDiskReplicationDetails object itself. + */ + public A2ASharedDiskReplicationDetails withMonitoringPercentageCompletion(Integer monitoringPercentageCompletion) { + this.monitoringPercentageCompletion = monitoringPercentageCompletion; + return this; + } + + /** + * Get the monitoringJobType property: The type of the monitoring job. The progress is contained in + * MonitoringPercentageCompletion property. + * + * @return the monitoringJobType value. + */ + public String monitoringJobType() { + return this.monitoringJobType; + } + + /** + * Set the monitoringJobType property: The type of the monitoring job. The progress is contained in + * MonitoringPercentageCompletion property. + * + * @param monitoringJobType the monitoringJobType value to set. + * @return the A2ASharedDiskReplicationDetails object itself. + */ + public A2ASharedDiskReplicationDetails withMonitoringJobType(String monitoringJobType) { + this.monitoringJobType = monitoringJobType; + return this; + } + + /** + * Get the rpoInSeconds property: The last RPO value in seconds. + * + * @return the rpoInSeconds value. + */ + public Long rpoInSeconds() { + return this.rpoInSeconds; + } + + /** + * Set the rpoInSeconds property: The last RPO value in seconds. + * + * @param rpoInSeconds the rpoInSeconds value to set. + * @return the A2ASharedDiskReplicationDetails object itself. + */ + public A2ASharedDiskReplicationDetails withRpoInSeconds(Long rpoInSeconds) { + this.rpoInSeconds = rpoInSeconds; + return this; + } + + /** + * Get the lastRpoCalculatedTime property: The time (in UTC) when the last RPO value was calculated by Protection + * Service. + * + * @return the lastRpoCalculatedTime value. + */ + public OffsetDateTime lastRpoCalculatedTime() { + return this.lastRpoCalculatedTime; + } + + /** + * Set the lastRpoCalculatedTime property: The time (in UTC) when the last RPO value was calculated by Protection + * Service. + * + * @param lastRpoCalculatedTime the lastRpoCalculatedTime value to set. + * @return the A2ASharedDiskReplicationDetails object itself. + */ + public A2ASharedDiskReplicationDetails withLastRpoCalculatedTime(OffsetDateTime lastRpoCalculatedTime) { + this.lastRpoCalculatedTime = lastRpoCalculatedTime; + return this; + } + + /** + * Get the sharedDiskIRErrors property: The IR Errors. + * + * @return the sharedDiskIRErrors value. + */ + public List sharedDiskIRErrors() { + return this.sharedDiskIRErrors; + } + + /** + * Set the sharedDiskIRErrors property: The IR Errors. + * + * @param sharedDiskIRErrors the sharedDiskIRErrors value to set. + * @return the A2ASharedDiskReplicationDetails object itself. + */ + public A2ASharedDiskReplicationDetails + withSharedDiskIRErrors(List sharedDiskIRErrors) { + this.sharedDiskIRErrors = sharedDiskIRErrors; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + if (unprotectedDisks() != null) { + unprotectedDisks().forEach(e -> e.validate()); + } + if (protectedManagedDisks() != null) { + protectedManagedDisks().forEach(e -> e.validate()); + } + if (sharedDiskIRErrors() != null) { + sharedDiskIRErrors().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("instanceType", this.instanceType); + jsonWriter.writeStringField("managementId", this.managementId); + jsonWriter.writeArrayField("unprotectedDisks", this.unprotectedDisks, + (writer, element) -> writer.writeJson(element)); + jsonWriter.writeArrayField("protectedManagedDisks", this.protectedManagedDisks, + (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("primaryFabricLocation", this.primaryFabricLocation); + jsonWriter.writeStringField("recoveryFabricLocation", this.recoveryFabricLocation); + jsonWriter.writeStringField("failoverRecoveryPointId", this.failoverRecoveryPointId); + jsonWriter.writeNumberField("monitoringPercentageCompletion", this.monitoringPercentageCompletion); + jsonWriter.writeStringField("monitoringJobType", this.monitoringJobType); + jsonWriter.writeNumberField("rpoInSeconds", this.rpoInSeconds); + jsonWriter.writeStringField("lastRpoCalculatedTime", + this.lastRpoCalculatedTime == null + ? null + : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.lastRpoCalculatedTime)); + jsonWriter.writeArrayField("sharedDiskIRErrors", this.sharedDiskIRErrors, + (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of A2ASharedDiskReplicationDetails from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of A2ASharedDiskReplicationDetails if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the A2ASharedDiskReplicationDetails. + */ + public static A2ASharedDiskReplicationDetails fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + A2ASharedDiskReplicationDetails deserializedA2ASharedDiskReplicationDetails + = new A2ASharedDiskReplicationDetails(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("instanceType".equals(fieldName)) { + deserializedA2ASharedDiskReplicationDetails.instanceType = reader.getString(); + } else if ("managementId".equals(fieldName)) { + deserializedA2ASharedDiskReplicationDetails.managementId = reader.getString(); + } else if ("unprotectedDisks".equals(fieldName)) { + List unprotectedDisks + = reader.readArray(reader1 -> A2AUnprotectedDiskDetails.fromJson(reader1)); + deserializedA2ASharedDiskReplicationDetails.unprotectedDisks = unprotectedDisks; + } else if ("protectedManagedDisks".equals(fieldName)) { + List protectedManagedDisks + = reader.readArray(reader1 -> A2AProtectedManagedDiskDetails.fromJson(reader1)); + deserializedA2ASharedDiskReplicationDetails.protectedManagedDisks = protectedManagedDisks; + } else if ("primaryFabricLocation".equals(fieldName)) { + deserializedA2ASharedDiskReplicationDetails.primaryFabricLocation = reader.getString(); + } else if ("recoveryFabricLocation".equals(fieldName)) { + deserializedA2ASharedDiskReplicationDetails.recoveryFabricLocation = reader.getString(); + } else if ("failoverRecoveryPointId".equals(fieldName)) { + deserializedA2ASharedDiskReplicationDetails.failoverRecoveryPointId = reader.getString(); + } else if ("monitoringPercentageCompletion".equals(fieldName)) { + deserializedA2ASharedDiskReplicationDetails.monitoringPercentageCompletion + = reader.getNullable(JsonReader::getInt); + } else if ("monitoringJobType".equals(fieldName)) { + deserializedA2ASharedDiskReplicationDetails.monitoringJobType = reader.getString(); + } else if ("rpoInSeconds".equals(fieldName)) { + deserializedA2ASharedDiskReplicationDetails.rpoInSeconds = reader.getNullable(JsonReader::getLong); + } else if ("lastRpoCalculatedTime".equals(fieldName)) { + deserializedA2ASharedDiskReplicationDetails.lastRpoCalculatedTime = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("sharedDiskIRErrors".equals(fieldName)) { + List sharedDiskIRErrors + = reader.readArray(reader1 -> A2ASharedDiskIRErrorDetails.fromJson(reader1)); + deserializedA2ASharedDiskReplicationDetails.sharedDiskIRErrors = sharedDiskIRErrors; + } else { + reader.skipChildren(); + } + } + + return deserializedA2ASharedDiskReplicationDetails; + }); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/A2ASwitchClusterProtectionInput.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/A2ASwitchClusterProtectionInput.java new file mode 100644 index 000000000000..32bae2cd11b6 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/A2ASwitchClusterProtectionInput.java @@ -0,0 +1,175 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * A2A specific switch cluster protection input. + */ +@Fluent +public final class A2ASwitchClusterProtectionInput extends SwitchClusterProtectionProviderSpecificInput { + /* + * Gets the Instance type. + */ + private String instanceType = "A2A"; + + /* + * The recovery container Id. + */ + private String recoveryContainerId; + + /* + * The Policy Id. + */ + private String policyId; + + /* + * The protectedItemsDetail property. + */ + private List protectedItemsDetail; + + /** + * Creates an instance of A2ASwitchClusterProtectionInput class. + */ + public A2ASwitchClusterProtectionInput() { + } + + /** + * Get the instanceType property: Gets the Instance type. + * + * @return the instanceType value. + */ + @Override + public String instanceType() { + return this.instanceType; + } + + /** + * Get the recoveryContainerId property: The recovery container Id. + * + * @return the recoveryContainerId value. + */ + public String recoveryContainerId() { + return this.recoveryContainerId; + } + + /** + * Set the recoveryContainerId property: The recovery container Id. + * + * @param recoveryContainerId the recoveryContainerId value to set. + * @return the A2ASwitchClusterProtectionInput object itself. + */ + public A2ASwitchClusterProtectionInput withRecoveryContainerId(String recoveryContainerId) { + this.recoveryContainerId = recoveryContainerId; + return this; + } + + /** + * Get the policyId property: The Policy Id. + * + * @return the policyId value. + */ + public String policyId() { + return this.policyId; + } + + /** + * Set the policyId property: The Policy Id. + * + * @param policyId the policyId value to set. + * @return the A2ASwitchClusterProtectionInput object itself. + */ + public A2ASwitchClusterProtectionInput withPolicyId(String policyId) { + this.policyId = policyId; + return this; + } + + /** + * Get the protectedItemsDetail property: The protectedItemsDetail property. + * + * @return the protectedItemsDetail value. + */ + public List protectedItemsDetail() { + return this.protectedItemsDetail; + } + + /** + * Set the protectedItemsDetail property: The protectedItemsDetail property. + * + * @param protectedItemsDetail the protectedItemsDetail value to set. + * @return the A2ASwitchClusterProtectionInput object itself. + */ + public A2ASwitchClusterProtectionInput withProtectedItemsDetail(List protectedItemsDetail) { + this.protectedItemsDetail = protectedItemsDetail; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + if (protectedItemsDetail() != null) { + protectedItemsDetail().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("instanceType", this.instanceType); + jsonWriter.writeStringField("recoveryContainerId", this.recoveryContainerId); + jsonWriter.writeStringField("policyId", this.policyId); + jsonWriter.writeArrayField("protectedItemsDetail", this.protectedItemsDetail, + (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of A2ASwitchClusterProtectionInput from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of A2ASwitchClusterProtectionInput if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the A2ASwitchClusterProtectionInput. + */ + public static A2ASwitchClusterProtectionInput fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + A2ASwitchClusterProtectionInput deserializedA2ASwitchClusterProtectionInput + = new A2ASwitchClusterProtectionInput(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("instanceType".equals(fieldName)) { + deserializedA2ASwitchClusterProtectionInput.instanceType = reader.getString(); + } else if ("recoveryContainerId".equals(fieldName)) { + deserializedA2ASwitchClusterProtectionInput.recoveryContainerId = reader.getString(); + } else if ("policyId".equals(fieldName)) { + deserializedA2ASwitchClusterProtectionInput.policyId = reader.getString(); + } else if ("protectedItemsDetail".equals(fieldName)) { + List protectedItemsDetail + = reader.readArray(reader1 -> A2AProtectedItemDetail.fromJson(reader1)); + deserializedA2ASwitchClusterProtectionInput.protectedItemsDetail = protectedItemsDetail; + } else { + reader.skipChildren(); + } + } + + return deserializedA2ASwitchClusterProtectionInput; + }); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/AddDisksProviderSpecificInput.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/AddDisksProviderSpecificInput.java index ff0356db51a3..b7e0846498cc 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/AddDisksProviderSpecificInput.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/AddDisksProviderSpecificInput.java @@ -80,6 +80,8 @@ public static AddDisksProviderSpecificInput fromJson(JsonReader jsonReader) thro // Use the discriminator value to determine which subtype should be deserialized. if ("A2A".equals(discriminatorValue)) { return A2AAddDisksInput.fromJson(readerToUse.reset()); + } else if ("InMageRcm".equals(discriminatorValue)) { + return InMageRcmAddDisksInput.fromJson(readerToUse.reset()); } else { return fromJsonKnownDiscriminator(readerToUse.reset()); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/Alert.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/Alert.java index 1ce468e4e0b7..c38ec1f1a313 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/Alert.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/Alert.java @@ -90,13 +90,13 @@ interface Blank extends WithParentResource { */ interface WithParentResource { /** - * Specifies resourceName, resourceGroupName. + * Specifies resourceGroupName, resourceName. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @return the next definition stage. */ - WithCreate withExistingVault(String resourceName, String resourceGroupName); + WithCreate withExistingVault(String resourceGroupName, String resourceName); } /** diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ApplyClusterRecoveryPointInput.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ApplyClusterRecoveryPointInput.java new file mode 100644 index 000000000000..1cd35dc2a955 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ApplyClusterRecoveryPointInput.java @@ -0,0 +1,106 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Input definition for apply cluster recovery point. + */ +@Fluent +public final class ApplyClusterRecoveryPointInput implements JsonSerializable { + /* + * The properties to apply cluster recovery point input. + */ + private ApplyClusterRecoveryPointInputProperties properties; + + /** + * Creates an instance of ApplyClusterRecoveryPointInput class. + */ + public ApplyClusterRecoveryPointInput() { + } + + /** + * Get the properties property: The properties to apply cluster recovery point input. + * + * @return the properties value. + */ + public ApplyClusterRecoveryPointInputProperties properties() { + return this.properties; + } + + /** + * Set the properties property: The properties to apply cluster recovery point input. + * + * @param properties the properties value to set. + * @return the ApplyClusterRecoveryPointInput object itself. + */ + public ApplyClusterRecoveryPointInput withProperties(ApplyClusterRecoveryPointInputProperties properties) { + this.properties = properties; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (properties() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property properties in model ApplyClusterRecoveryPointInput")); + } else { + properties().validate(); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(ApplyClusterRecoveryPointInput.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ApplyClusterRecoveryPointInput from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ApplyClusterRecoveryPointInput if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the ApplyClusterRecoveryPointInput. + */ + public static ApplyClusterRecoveryPointInput fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ApplyClusterRecoveryPointInput deserializedApplyClusterRecoveryPointInput + = new ApplyClusterRecoveryPointInput(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("properties".equals(fieldName)) { + deserializedApplyClusterRecoveryPointInput.properties + = ApplyClusterRecoveryPointInputProperties.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedApplyClusterRecoveryPointInput; + }); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ApplyClusterRecoveryPointInputProperties.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ApplyClusterRecoveryPointInputProperties.java new file mode 100644 index 000000000000..671701e9cb33 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ApplyClusterRecoveryPointInputProperties.java @@ -0,0 +1,171 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * Input definition for apply cluster recovery point properties. + */ +@Fluent +public final class ApplyClusterRecoveryPointInputProperties + implements JsonSerializable { + /* + * The cluster recovery point id to be passed to failover to a particular recovery point. + */ + private String clusterRecoveryPointId; + + /* + * The list of individual node recovery points. + */ + private List individualNodeRecoveryPoints; + + /* + * The provider specific input for applying cluster recovery point. + */ + private ApplyClusterRecoveryPointProviderSpecificInput providerSpecificDetails; + + /** + * Creates an instance of ApplyClusterRecoveryPointInputProperties class. + */ + public ApplyClusterRecoveryPointInputProperties() { + } + + /** + * Get the clusterRecoveryPointId property: The cluster recovery point id to be passed to failover to a particular + * recovery point. + * + * @return the clusterRecoveryPointId value. + */ + public String clusterRecoveryPointId() { + return this.clusterRecoveryPointId; + } + + /** + * Set the clusterRecoveryPointId property: The cluster recovery point id to be passed to failover to a particular + * recovery point. + * + * @param clusterRecoveryPointId the clusterRecoveryPointId value to set. + * @return the ApplyClusterRecoveryPointInputProperties object itself. + */ + public ApplyClusterRecoveryPointInputProperties withClusterRecoveryPointId(String clusterRecoveryPointId) { + this.clusterRecoveryPointId = clusterRecoveryPointId; + return this; + } + + /** + * Get the individualNodeRecoveryPoints property: The list of individual node recovery points. + * + * @return the individualNodeRecoveryPoints value. + */ + public List individualNodeRecoveryPoints() { + return this.individualNodeRecoveryPoints; + } + + /** + * Set the individualNodeRecoveryPoints property: The list of individual node recovery points. + * + * @param individualNodeRecoveryPoints the individualNodeRecoveryPoints value to set. + * @return the ApplyClusterRecoveryPointInputProperties object itself. + */ + public ApplyClusterRecoveryPointInputProperties + withIndividualNodeRecoveryPoints(List individualNodeRecoveryPoints) { + this.individualNodeRecoveryPoints = individualNodeRecoveryPoints; + return this; + } + + /** + * Get the providerSpecificDetails property: The provider specific input for applying cluster recovery point. + * + * @return the providerSpecificDetails value. + */ + public ApplyClusterRecoveryPointProviderSpecificInput providerSpecificDetails() { + return this.providerSpecificDetails; + } + + /** + * Set the providerSpecificDetails property: The provider specific input for applying cluster recovery point. + * + * @param providerSpecificDetails the providerSpecificDetails value to set. + * @return the ApplyClusterRecoveryPointInputProperties object itself. + */ + public ApplyClusterRecoveryPointInputProperties + withProviderSpecificDetails(ApplyClusterRecoveryPointProviderSpecificInput providerSpecificDetails) { + this.providerSpecificDetails = providerSpecificDetails; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (providerSpecificDetails() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property providerSpecificDetails in model ApplyClusterRecoveryPointInputProperties")); + } else { + providerSpecificDetails().validate(); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(ApplyClusterRecoveryPointInputProperties.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("providerSpecificDetails", this.providerSpecificDetails); + jsonWriter.writeStringField("clusterRecoveryPointId", this.clusterRecoveryPointId); + jsonWriter.writeArrayField("individualNodeRecoveryPoints", this.individualNodeRecoveryPoints, + (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ApplyClusterRecoveryPointInputProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ApplyClusterRecoveryPointInputProperties if the JsonReader was pointing to an instance of + * it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the ApplyClusterRecoveryPointInputProperties. + */ + public static ApplyClusterRecoveryPointInputProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ApplyClusterRecoveryPointInputProperties deserializedApplyClusterRecoveryPointInputProperties + = new ApplyClusterRecoveryPointInputProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("providerSpecificDetails".equals(fieldName)) { + deserializedApplyClusterRecoveryPointInputProperties.providerSpecificDetails + = ApplyClusterRecoveryPointProviderSpecificInput.fromJson(reader); + } else if ("clusterRecoveryPointId".equals(fieldName)) { + deserializedApplyClusterRecoveryPointInputProperties.clusterRecoveryPointId = reader.getString(); + } else if ("individualNodeRecoveryPoints".equals(fieldName)) { + List individualNodeRecoveryPoints = reader.readArray(reader1 -> reader1.getString()); + deserializedApplyClusterRecoveryPointInputProperties.individualNodeRecoveryPoints + = individualNodeRecoveryPoints; + } else { + reader.skipChildren(); + } + } + + return deserializedApplyClusterRecoveryPointInputProperties; + }); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ApplyClusterRecoveryPointProviderSpecificInput.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ApplyClusterRecoveryPointProviderSpecificInput.java new file mode 100644 index 000000000000..89713d55a236 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ApplyClusterRecoveryPointProviderSpecificInput.java @@ -0,0 +1,110 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Provider specific input for apply cluster recovery point. + */ +@Immutable +public class ApplyClusterRecoveryPointProviderSpecificInput + implements JsonSerializable { + /* + * The class type. + */ + private String instanceType = "ApplyClusterRecoveryPointProviderSpecificInput"; + + /** + * Creates an instance of ApplyClusterRecoveryPointProviderSpecificInput class. + */ + public ApplyClusterRecoveryPointProviderSpecificInput() { + } + + /** + * Get the instanceType property: The class type. + * + * @return the instanceType value. + */ + public String instanceType() { + return this.instanceType; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("instanceType", this.instanceType); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ApplyClusterRecoveryPointProviderSpecificInput from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ApplyClusterRecoveryPointProviderSpecificInput if the JsonReader was pointing to an + * instance of it, or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ApplyClusterRecoveryPointProviderSpecificInput. + */ + public static ApplyClusterRecoveryPointProviderSpecificInput fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + String discriminatorValue = null; + try (JsonReader readerToUse = reader.bufferObject()) { + readerToUse.nextToken(); // Prepare for reading + while (readerToUse.nextToken() != JsonToken.END_OBJECT) { + String fieldName = readerToUse.getFieldName(); + readerToUse.nextToken(); + if ("instanceType".equals(fieldName)) { + discriminatorValue = readerToUse.getString(); + break; + } else { + readerToUse.skipChildren(); + } + } + // Use the discriminator value to determine which subtype should be deserialized. + if ("A2A".equals(discriminatorValue)) { + return A2AApplyClusterRecoveryPointInput.fromJson(readerToUse.reset()); + } else { + return fromJsonKnownDiscriminator(readerToUse.reset()); + } + } + }); + } + + static ApplyClusterRecoveryPointProviderSpecificInput fromJsonKnownDiscriminator(JsonReader jsonReader) + throws IOException { + return jsonReader.readObject(reader -> { + ApplyClusterRecoveryPointProviderSpecificInput deserializedApplyClusterRecoveryPointProviderSpecificInput + = new ApplyClusterRecoveryPointProviderSpecificInput(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("instanceType".equals(fieldName)) { + deserializedApplyClusterRecoveryPointProviderSpecificInput.instanceType = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedApplyClusterRecoveryPointProviderSpecificInput; + }); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterFailoverJobDetails.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterFailoverJobDetails.java new file mode 100644 index 000000000000..684761e23e3c --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterFailoverJobDetails.java @@ -0,0 +1,134 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; +import java.util.Map; + +/** + * This class represents the details for a failover job of cluster. + */ +@Fluent +public final class ClusterFailoverJobDetails extends JobDetails { + /* + * Gets the type of job details (see JobDetailsTypes enum for possible values). + */ + private String instanceType = "ClusterFailoverJobDetails"; + + /* + * The test VM details. + */ + private List protectedItemDetails; + + /** + * Creates an instance of ClusterFailoverJobDetails class. + */ + public ClusterFailoverJobDetails() { + } + + /** + * Get the instanceType property: Gets the type of job details (see JobDetailsTypes enum for possible values). + * + * @return the instanceType value. + */ + @Override + public String instanceType() { + return this.instanceType; + } + + /** + * Get the protectedItemDetails property: The test VM details. + * + * @return the protectedItemDetails value. + */ + public List protectedItemDetails() { + return this.protectedItemDetails; + } + + /** + * Set the protectedItemDetails property: The test VM details. + * + * @param protectedItemDetails the protectedItemDetails value to set. + * @return the ClusterFailoverJobDetails object itself. + */ + public ClusterFailoverJobDetails + withProtectedItemDetails(List protectedItemDetails) { + this.protectedItemDetails = protectedItemDetails; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public ClusterFailoverJobDetails withAffectedObjectDetails(Map affectedObjectDetails) { + super.withAffectedObjectDetails(affectedObjectDetails); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + if (protectedItemDetails() != null) { + protectedItemDetails().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeMapField("affectedObjectDetails", affectedObjectDetails(), + (writer, element) -> writer.writeString(element)); + jsonWriter.writeStringField("instanceType", this.instanceType); + jsonWriter.writeArrayField("protectedItemDetails", this.protectedItemDetails, + (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterFailoverJobDetails from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterFailoverJobDetails if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ClusterFailoverJobDetails. + */ + public static ClusterFailoverJobDetails fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterFailoverJobDetails deserializedClusterFailoverJobDetails = new ClusterFailoverJobDetails(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("affectedObjectDetails".equals(fieldName)) { + Map affectedObjectDetails = reader.readMap(reader1 -> reader1.getString()); + deserializedClusterFailoverJobDetails.withAffectedObjectDetails(affectedObjectDetails); + } else if ("instanceType".equals(fieldName)) { + deserializedClusterFailoverJobDetails.instanceType = reader.getString(); + } else if ("protectedItemDetails".equals(fieldName)) { + List protectedItemDetails + = reader.readArray(reader1 -> FailoverReplicationProtectedItemDetails.fromJson(reader1)); + deserializedClusterFailoverJobDetails.protectedItemDetails = protectedItemDetails; + } else { + reader.skipChildren(); + } + } + + return deserializedClusterFailoverJobDetails; + }); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterProviderSpecificRecoveryPointDetails.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterProviderSpecificRecoveryPointDetails.java new file mode 100644 index 000000000000..c2e188d4b933 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterProviderSpecificRecoveryPointDetails.java @@ -0,0 +1,110 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Replication provider specific cluster recovery point details. + */ +@Immutable +public class ClusterProviderSpecificRecoveryPointDetails + implements JsonSerializable { + /* + * Gets the provider type. + */ + private String instanceType = "ClusterProviderSpecificRecoveryPointDetails"; + + /** + * Creates an instance of ClusterProviderSpecificRecoveryPointDetails class. + */ + public ClusterProviderSpecificRecoveryPointDetails() { + } + + /** + * Get the instanceType property: Gets the provider type. + * + * @return the instanceType value. + */ + public String instanceType() { + return this.instanceType; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("instanceType", this.instanceType); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterProviderSpecificRecoveryPointDetails from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterProviderSpecificRecoveryPointDetails if the JsonReader was pointing to an instance + * of it, or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ClusterProviderSpecificRecoveryPointDetails. + */ + public static ClusterProviderSpecificRecoveryPointDetails fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + String discriminatorValue = null; + try (JsonReader readerToUse = reader.bufferObject()) { + readerToUse.nextToken(); // Prepare for reading + while (readerToUse.nextToken() != JsonToken.END_OBJECT) { + String fieldName = readerToUse.getFieldName(); + readerToUse.nextToken(); + if ("instanceType".equals(fieldName)) { + discriminatorValue = readerToUse.getString(); + break; + } else { + readerToUse.skipChildren(); + } + } + // Use the discriminator value to determine which subtype should be deserialized. + if ("A2A".equals(discriminatorValue)) { + return A2AClusterRecoveryPointDetails.fromJson(readerToUse.reset()); + } else { + return fromJsonKnownDiscriminator(readerToUse.reset()); + } + } + }); + } + + static ClusterProviderSpecificRecoveryPointDetails fromJsonKnownDiscriminator(JsonReader jsonReader) + throws IOException { + return jsonReader.readObject(reader -> { + ClusterProviderSpecificRecoveryPointDetails deserializedClusterProviderSpecificRecoveryPointDetails + = new ClusterProviderSpecificRecoveryPointDetails(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("instanceType".equals(fieldName)) { + deserializedClusterProviderSpecificRecoveryPointDetails.instanceType = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedClusterProviderSpecificRecoveryPointDetails; + }); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterRecoveryPoint.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterRecoveryPoint.java new file mode 100644 index 000000000000..2a75f31b8b9b --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterRecoveryPoint.java @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.ClusterRecoveryPointInner; + +/** + * An immutable client-side representation of ClusterRecoveryPoint. + */ +public interface ClusterRecoveryPoint { + /** + * Gets the id property: The recovery point Id. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the recovery point. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The resource type. + * + * @return the type value. + */ + String type(); + + /** + * Gets the properties property: The recovery point properties. + * + * @return the properties value. + */ + ClusterRecoveryPointProperties properties(); + + /** + * Gets the inner com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.ClusterRecoveryPointInner + * object. + * + * @return the inner object. + */ + ClusterRecoveryPointInner innerModel(); +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterRecoveryPointCollection.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterRecoveryPointCollection.java new file mode 100644 index 000000000000..7b612770d3c6 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterRecoveryPointCollection.java @@ -0,0 +1,129 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.ClusterRecoveryPointInner; +import java.io.IOException; +import java.util.List; + +/** + * Collection of cluster recovery point details. + */ +@Fluent +public final class ClusterRecoveryPointCollection implements JsonSerializable { + /* + * The cluster recovery point details. + */ + private List value; + + /* + * The value of next link. + */ + private String nextLink; + + /** + * Creates an instance of ClusterRecoveryPointCollection class. + */ + public ClusterRecoveryPointCollection() { + } + + /** + * Get the value property: The cluster recovery point details. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Set the value property: The cluster recovery point details. + * + * @param value the value value to set. + * @return the ClusterRecoveryPointCollection object itself. + */ + public ClusterRecoveryPointCollection withValue(List value) { + this.value = value; + return this; + } + + /** + * Get the nextLink property: The value of next link. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Set the nextLink property: The value of next link. + * + * @param nextLink the nextLink value to set. + * @return the ClusterRecoveryPointCollection object itself. + */ + public ClusterRecoveryPointCollection withNextLink(String nextLink) { + this.nextLink = nextLink; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() != null) { + value().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterRecoveryPointCollection from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterRecoveryPointCollection if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ClusterRecoveryPointCollection. + */ + public static ClusterRecoveryPointCollection fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterRecoveryPointCollection deserializedClusterRecoveryPointCollection + = new ClusterRecoveryPointCollection(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> ClusterRecoveryPointInner.fromJson(reader1)); + deserializedClusterRecoveryPointCollection.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedClusterRecoveryPointCollection.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedClusterRecoveryPointCollection; + }); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterRecoveryPointOperations.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterRecoveryPointOperations.java new file mode 100644 index 000000000000..2154ed943dff --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterRecoveryPointOperations.java @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of ClusterRecoveryPointOperations. + */ +public interface ClusterRecoveryPointOperations { + /** + * Gets a recovery point. + * + * Get the details of specified recovery point. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param recoveryPointName The recovery point name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the details of specified recovery point along with {@link Response}. + */ + Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, String recoveryPointName, + Context context); + + /** + * Gets a recovery point. + * + * Get the details of specified recovery point. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param recoveryPointName The recovery point name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the details of specified recovery point. + */ + ClusterRecoveryPoint get(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, String recoveryPointName); +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterRecoveryPointProperties.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterRecoveryPointProperties.java new file mode 100644 index 000000000000..8f712db1bb3c --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterRecoveryPointProperties.java @@ -0,0 +1,164 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.CoreUtils; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.time.format.DateTimeFormatter; + +/** + * Cluster recovery point properties. + */ +@Fluent +public final class ClusterRecoveryPointProperties implements JsonSerializable { + /* + * The recovery point time. + */ + private OffsetDateTime recoveryPointTime; + + /* + * The recovery point type. + */ + private ClusterRecoveryPointType recoveryPointType; + + /* + * The provider specific details for the recovery point. + */ + private ClusterProviderSpecificRecoveryPointDetails providerSpecificDetails; + + /** + * Creates an instance of ClusterRecoveryPointProperties class. + */ + public ClusterRecoveryPointProperties() { + } + + /** + * Get the recoveryPointTime property: The recovery point time. + * + * @return the recoveryPointTime value. + */ + public OffsetDateTime recoveryPointTime() { + return this.recoveryPointTime; + } + + /** + * Set the recoveryPointTime property: The recovery point time. + * + * @param recoveryPointTime the recoveryPointTime value to set. + * @return the ClusterRecoveryPointProperties object itself. + */ + public ClusterRecoveryPointProperties withRecoveryPointTime(OffsetDateTime recoveryPointTime) { + this.recoveryPointTime = recoveryPointTime; + return this; + } + + /** + * Get the recoveryPointType property: The recovery point type. + * + * @return the recoveryPointType value. + */ + public ClusterRecoveryPointType recoveryPointType() { + return this.recoveryPointType; + } + + /** + * Set the recoveryPointType property: The recovery point type. + * + * @param recoveryPointType the recoveryPointType value to set. + * @return the ClusterRecoveryPointProperties object itself. + */ + public ClusterRecoveryPointProperties withRecoveryPointType(ClusterRecoveryPointType recoveryPointType) { + this.recoveryPointType = recoveryPointType; + return this; + } + + /** + * Get the providerSpecificDetails property: The provider specific details for the recovery point. + * + * @return the providerSpecificDetails value. + */ + public ClusterProviderSpecificRecoveryPointDetails providerSpecificDetails() { + return this.providerSpecificDetails; + } + + /** + * Set the providerSpecificDetails property: The provider specific details for the recovery point. + * + * @param providerSpecificDetails the providerSpecificDetails value to set. + * @return the ClusterRecoveryPointProperties object itself. + */ + public ClusterRecoveryPointProperties + withProviderSpecificDetails(ClusterProviderSpecificRecoveryPointDetails providerSpecificDetails) { + this.providerSpecificDetails = providerSpecificDetails; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (providerSpecificDetails() != null) { + providerSpecificDetails().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("recoveryPointTime", + this.recoveryPointTime == null + ? null + : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.recoveryPointTime)); + jsonWriter.writeStringField("recoveryPointType", + this.recoveryPointType == null ? null : this.recoveryPointType.toString()); + jsonWriter.writeJsonField("providerSpecificDetails", this.providerSpecificDetails); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterRecoveryPointProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterRecoveryPointProperties if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ClusterRecoveryPointProperties. + */ + public static ClusterRecoveryPointProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterRecoveryPointProperties deserializedClusterRecoveryPointProperties + = new ClusterRecoveryPointProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("recoveryPointTime".equals(fieldName)) { + deserializedClusterRecoveryPointProperties.recoveryPointTime = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("recoveryPointType".equals(fieldName)) { + deserializedClusterRecoveryPointProperties.recoveryPointType + = ClusterRecoveryPointType.fromString(reader.getString()); + } else if ("providerSpecificDetails".equals(fieldName)) { + deserializedClusterRecoveryPointProperties.providerSpecificDetails + = ClusterProviderSpecificRecoveryPointDetails.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedClusterRecoveryPointProperties; + }); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterRecoveryPointType.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterRecoveryPointType.java new file mode 100644 index 000000000000..6d1839adc62a --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterRecoveryPointType.java @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The recovery point type. + */ +public final class ClusterRecoveryPointType extends ExpandableStringEnum { + /** + * Static value NotSpecified for ClusterRecoveryPointType. + */ + public static final ClusterRecoveryPointType NOT_SPECIFIED = fromString("NotSpecified"); + + /** + * Static value ApplicationConsistent for ClusterRecoveryPointType. + */ + public static final ClusterRecoveryPointType APPLICATION_CONSISTENT = fromString("ApplicationConsistent"); + + /** + * Static value CrashConsistent for ClusterRecoveryPointType. + */ + public static final ClusterRecoveryPointType CRASH_CONSISTENT = fromString("CrashConsistent"); + + /** + * Creates a new instance of ClusterRecoveryPointType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ClusterRecoveryPointType() { + } + + /** + * Creates or finds a ClusterRecoveryPointType from its string representation. + * + * @param name a name to look for. + * @return the corresponding ClusterRecoveryPointType. + */ + public static ClusterRecoveryPointType fromString(String name) { + return fromString(name, ClusterRecoveryPointType.class); + } + + /** + * Gets known ClusterRecoveryPointType values. + * + * @return known ClusterRecoveryPointType values. + */ + public static Collection values() { + return values(ClusterRecoveryPointType.class); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterRecoveryPoints.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterRecoveryPoints.java new file mode 100644 index 000000000000..8ed50cd9dfb5 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterRecoveryPoints.java @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.util.Context; + +/** + * Resource collection API of ClusterRecoveryPoints. + */ +public interface ClusterRecoveryPoints { + /** + * Gets the list of cluster recovery points. + * + * The list of cluster recovery points. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return collection of cluster recovery point details as paginated response with {@link PagedIterable}. + */ + PagedIterable listByReplicationProtectionCluster(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, + String replicationProtectionClusterName); + + /** + * Gets the list of cluster recovery points. + * + * The list of cluster recovery points. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return collection of cluster recovery point details as paginated response with {@link PagedIterable}. + */ + PagedIterable listByReplicationProtectionCluster(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicationProtectionClusterName, + Context context); +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterSwitchProtectionJobDetails.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterSwitchProtectionJobDetails.java new file mode 100644 index 000000000000..06b628b214cc --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterSwitchProtectionJobDetails.java @@ -0,0 +1,129 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.Map; + +/** + * This class represents details for switch cluster protection job. + */ +@Fluent +public final class ClusterSwitchProtectionJobDetails extends JobDetails { + /* + * Gets the type of job details (see JobDetailsTypes enum for possible values). + */ + private String instanceType = "ClusterSwitchProtectionJobDetails"; + + /* + * ARM Id of the new replication protection cluster. + */ + private String newReplicationProtectionClusterId; + + /** + * Creates an instance of ClusterSwitchProtectionJobDetails class. + */ + public ClusterSwitchProtectionJobDetails() { + } + + /** + * Get the instanceType property: Gets the type of job details (see JobDetailsTypes enum for possible values). + * + * @return the instanceType value. + */ + @Override + public String instanceType() { + return this.instanceType; + } + + /** + * Get the newReplicationProtectionClusterId property: ARM Id of the new replication protection cluster. + * + * @return the newReplicationProtectionClusterId value. + */ + public String newReplicationProtectionClusterId() { + return this.newReplicationProtectionClusterId; + } + + /** + * Set the newReplicationProtectionClusterId property: ARM Id of the new replication protection cluster. + * + * @param newReplicationProtectionClusterId the newReplicationProtectionClusterId value to set. + * @return the ClusterSwitchProtectionJobDetails object itself. + */ + public ClusterSwitchProtectionJobDetails + withNewReplicationProtectionClusterId(String newReplicationProtectionClusterId) { + this.newReplicationProtectionClusterId = newReplicationProtectionClusterId; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public ClusterSwitchProtectionJobDetails withAffectedObjectDetails(Map affectedObjectDetails) { + super.withAffectedObjectDetails(affectedObjectDetails); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeMapField("affectedObjectDetails", affectedObjectDetails(), + (writer, element) -> writer.writeString(element)); + jsonWriter.writeStringField("instanceType", this.instanceType); + jsonWriter.writeStringField("newReplicationProtectionClusterId", this.newReplicationProtectionClusterId); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterSwitchProtectionJobDetails from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterSwitchProtectionJobDetails if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ClusterSwitchProtectionJobDetails. + */ + public static ClusterSwitchProtectionJobDetails fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterSwitchProtectionJobDetails deserializedClusterSwitchProtectionJobDetails + = new ClusterSwitchProtectionJobDetails(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("affectedObjectDetails".equals(fieldName)) { + Map affectedObjectDetails = reader.readMap(reader1 -> reader1.getString()); + deserializedClusterSwitchProtectionJobDetails.withAffectedObjectDetails(affectedObjectDetails); + } else if ("instanceType".equals(fieldName)) { + deserializedClusterSwitchProtectionJobDetails.instanceType = reader.getString(); + } else if ("newReplicationProtectionClusterId".equals(fieldName)) { + deserializedClusterSwitchProtectionJobDetails.newReplicationProtectionClusterId + = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedClusterSwitchProtectionJobDetails; + }); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterTestFailoverCleanupInput.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterTestFailoverCleanupInput.java new file mode 100644 index 000000000000..4c3256a99d22 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterTestFailoverCleanupInput.java @@ -0,0 +1,106 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Input definition for test failover cleanup for cluster. + */ +@Fluent +public final class ClusterTestFailoverCleanupInput implements JsonSerializable { + /* + * Test failover cleanup input properties. + */ + private ClusterTestFailoverCleanupInputProperties properties; + + /** + * Creates an instance of ClusterTestFailoverCleanupInput class. + */ + public ClusterTestFailoverCleanupInput() { + } + + /** + * Get the properties property: Test failover cleanup input properties. + * + * @return the properties value. + */ + public ClusterTestFailoverCleanupInputProperties properties() { + return this.properties; + } + + /** + * Set the properties property: Test failover cleanup input properties. + * + * @param properties the properties value to set. + * @return the ClusterTestFailoverCleanupInput object itself. + */ + public ClusterTestFailoverCleanupInput withProperties(ClusterTestFailoverCleanupInputProperties properties) { + this.properties = properties; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (properties() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property properties in model ClusterTestFailoverCleanupInput")); + } else { + properties().validate(); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(ClusterTestFailoverCleanupInput.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterTestFailoverCleanupInput from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterTestFailoverCleanupInput if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the ClusterTestFailoverCleanupInput. + */ + public static ClusterTestFailoverCleanupInput fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterTestFailoverCleanupInput deserializedClusterTestFailoverCleanupInput + = new ClusterTestFailoverCleanupInput(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("properties".equals(fieldName)) { + deserializedClusterTestFailoverCleanupInput.properties + = ClusterTestFailoverCleanupInputProperties.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedClusterTestFailoverCleanupInput; + }); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterTestFailoverCleanupInputProperties.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterTestFailoverCleanupInputProperties.java new file mode 100644 index 000000000000..57ffb62a586e --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterTestFailoverCleanupInputProperties.java @@ -0,0 +1,95 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Input definition for test failover cleanup input properties. + */ +@Fluent +public final class ClusterTestFailoverCleanupInputProperties + implements JsonSerializable { + /* + * Test failover cleanup comments. + */ + private String comments; + + /** + * Creates an instance of ClusterTestFailoverCleanupInputProperties class. + */ + public ClusterTestFailoverCleanupInputProperties() { + } + + /** + * Get the comments property: Test failover cleanup comments. + * + * @return the comments value. + */ + public String comments() { + return this.comments; + } + + /** + * Set the comments property: Test failover cleanup comments. + * + * @param comments the comments value to set. + * @return the ClusterTestFailoverCleanupInputProperties object itself. + */ + public ClusterTestFailoverCleanupInputProperties withComments(String comments) { + this.comments = comments; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("comments", this.comments); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterTestFailoverCleanupInputProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterTestFailoverCleanupInputProperties if the JsonReader was pointing to an instance of + * it, or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ClusterTestFailoverCleanupInputProperties. + */ + public static ClusterTestFailoverCleanupInputProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterTestFailoverCleanupInputProperties deserializedClusterTestFailoverCleanupInputProperties + = new ClusterTestFailoverCleanupInputProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("comments".equals(fieldName)) { + deserializedClusterTestFailoverCleanupInputProperties.comments = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedClusterTestFailoverCleanupInputProperties; + }); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterTestFailoverInput.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterTestFailoverInput.java new file mode 100644 index 000000000000..a767804e0b6e --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterTestFailoverInput.java @@ -0,0 +1,105 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Input definition for test cluster failover. + */ +@Fluent +public final class ClusterTestFailoverInput implements JsonSerializable { + /* + * Test failover input properties. + */ + private ClusterTestFailoverInputProperties properties; + + /** + * Creates an instance of ClusterTestFailoverInput class. + */ + public ClusterTestFailoverInput() { + } + + /** + * Get the properties property: Test failover input properties. + * + * @return the properties value. + */ + public ClusterTestFailoverInputProperties properties() { + return this.properties; + } + + /** + * Set the properties property: Test failover input properties. + * + * @param properties the properties value to set. + * @return the ClusterTestFailoverInput object itself. + */ + public ClusterTestFailoverInput withProperties(ClusterTestFailoverInputProperties properties) { + this.properties = properties; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (properties() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property properties in model ClusterTestFailoverInput")); + } else { + properties().validate(); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(ClusterTestFailoverInput.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterTestFailoverInput from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterTestFailoverInput if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the ClusterTestFailoverInput. + */ + public static ClusterTestFailoverInput fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterTestFailoverInput deserializedClusterTestFailoverInput = new ClusterTestFailoverInput(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("properties".equals(fieldName)) { + deserializedClusterTestFailoverInput.properties + = ClusterTestFailoverInputProperties.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedClusterTestFailoverInput; + }); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterTestFailoverInputProperties.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterTestFailoverInputProperties.java new file mode 100644 index 000000000000..6cd066b06707 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterTestFailoverInputProperties.java @@ -0,0 +1,185 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Input definition for test failover input properties. + */ +@Fluent +public final class ClusterTestFailoverInputProperties implements JsonSerializable { + /* + * Failover direction. + */ + private FailoverDirection failoverDirection; + + /* + * Network type to be used for test failover. + */ + private String networkType; + + /* + * The id of the network to be used for test failover. + */ + private String networkId; + + /* + * Provider specific settings. + */ + private ClusterTestFailoverProviderSpecificInput providerSpecificDetails; + + /** + * Creates an instance of ClusterTestFailoverInputProperties class. + */ + public ClusterTestFailoverInputProperties() { + } + + /** + * Get the failoverDirection property: Failover direction. + * + * @return the failoverDirection value. + */ + public FailoverDirection failoverDirection() { + return this.failoverDirection; + } + + /** + * Set the failoverDirection property: Failover direction. + * + * @param failoverDirection the failoverDirection value to set. + * @return the ClusterTestFailoverInputProperties object itself. + */ + public ClusterTestFailoverInputProperties withFailoverDirection(FailoverDirection failoverDirection) { + this.failoverDirection = failoverDirection; + return this; + } + + /** + * Get the networkType property: Network type to be used for test failover. + * + * @return the networkType value. + */ + public String networkType() { + return this.networkType; + } + + /** + * Set the networkType property: Network type to be used for test failover. + * + * @param networkType the networkType value to set. + * @return the ClusterTestFailoverInputProperties object itself. + */ + public ClusterTestFailoverInputProperties withNetworkType(String networkType) { + this.networkType = networkType; + return this; + } + + /** + * Get the networkId property: The id of the network to be used for test failover. + * + * @return the networkId value. + */ + public String networkId() { + return this.networkId; + } + + /** + * Set the networkId property: The id of the network to be used for test failover. + * + * @param networkId the networkId value to set. + * @return the ClusterTestFailoverInputProperties object itself. + */ + public ClusterTestFailoverInputProperties withNetworkId(String networkId) { + this.networkId = networkId; + return this; + } + + /** + * Get the providerSpecificDetails property: Provider specific settings. + * + * @return the providerSpecificDetails value. + */ + public ClusterTestFailoverProviderSpecificInput providerSpecificDetails() { + return this.providerSpecificDetails; + } + + /** + * Set the providerSpecificDetails property: Provider specific settings. + * + * @param providerSpecificDetails the providerSpecificDetails value to set. + * @return the ClusterTestFailoverInputProperties object itself. + */ + public ClusterTestFailoverInputProperties + withProviderSpecificDetails(ClusterTestFailoverProviderSpecificInput providerSpecificDetails) { + this.providerSpecificDetails = providerSpecificDetails; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (providerSpecificDetails() != null) { + providerSpecificDetails().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("failoverDirection", + this.failoverDirection == null ? null : this.failoverDirection.toString()); + jsonWriter.writeStringField("networkType", this.networkType); + jsonWriter.writeStringField("networkId", this.networkId); + jsonWriter.writeJsonField("providerSpecificDetails", this.providerSpecificDetails); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterTestFailoverInputProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterTestFailoverInputProperties if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ClusterTestFailoverInputProperties. + */ + public static ClusterTestFailoverInputProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterTestFailoverInputProperties deserializedClusterTestFailoverInputProperties + = new ClusterTestFailoverInputProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("failoverDirection".equals(fieldName)) { + deserializedClusterTestFailoverInputProperties.failoverDirection + = FailoverDirection.fromString(reader.getString()); + } else if ("networkType".equals(fieldName)) { + deserializedClusterTestFailoverInputProperties.networkType = reader.getString(); + } else if ("networkId".equals(fieldName)) { + deserializedClusterTestFailoverInputProperties.networkId = reader.getString(); + } else if ("providerSpecificDetails".equals(fieldName)) { + deserializedClusterTestFailoverInputProperties.providerSpecificDetails + = ClusterTestFailoverProviderSpecificInput.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedClusterTestFailoverInputProperties; + }); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterTestFailoverJobDetails.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterTestFailoverJobDetails.java new file mode 100644 index 000000000000..5abd122995fb --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterTestFailoverJobDetails.java @@ -0,0 +1,275 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; +import java.util.Map; + +/** + * This class represents the details for a test failover job of cluster. + */ +@Fluent +public final class ClusterTestFailoverJobDetails extends JobDetails { + /* + * Gets the type of job details (see JobDetailsTypes enum for possible values). + */ + private String instanceType = "ClusterTestFailoverJobDetails"; + + /* + * The test failover status. + */ + private String testFailoverStatus; + + /* + * The test failover comments. + */ + private String comments; + + /* + * The test network name. + */ + private String networkName; + + /* + * The test network friendly name. + */ + private String networkFriendlyName; + + /* + * The test network type (see TestFailoverInput enum for possible values). + */ + private String networkType; + + /* + * The test VM details. + */ + private List protectedItemDetails; + + /** + * Creates an instance of ClusterTestFailoverJobDetails class. + */ + public ClusterTestFailoverJobDetails() { + } + + /** + * Get the instanceType property: Gets the type of job details (see JobDetailsTypes enum for possible values). + * + * @return the instanceType value. + */ + @Override + public String instanceType() { + return this.instanceType; + } + + /** + * Get the testFailoverStatus property: The test failover status. + * + * @return the testFailoverStatus value. + */ + public String testFailoverStatus() { + return this.testFailoverStatus; + } + + /** + * Set the testFailoverStatus property: The test failover status. + * + * @param testFailoverStatus the testFailoverStatus value to set. + * @return the ClusterTestFailoverJobDetails object itself. + */ + public ClusterTestFailoverJobDetails withTestFailoverStatus(String testFailoverStatus) { + this.testFailoverStatus = testFailoverStatus; + return this; + } + + /** + * Get the comments property: The test failover comments. + * + * @return the comments value. + */ + public String comments() { + return this.comments; + } + + /** + * Set the comments property: The test failover comments. + * + * @param comments the comments value to set. + * @return the ClusterTestFailoverJobDetails object itself. + */ + public ClusterTestFailoverJobDetails withComments(String comments) { + this.comments = comments; + return this; + } + + /** + * Get the networkName property: The test network name. + * + * @return the networkName value. + */ + public String networkName() { + return this.networkName; + } + + /** + * Set the networkName property: The test network name. + * + * @param networkName the networkName value to set. + * @return the ClusterTestFailoverJobDetails object itself. + */ + public ClusterTestFailoverJobDetails withNetworkName(String networkName) { + this.networkName = networkName; + return this; + } + + /** + * Get the networkFriendlyName property: The test network friendly name. + * + * @return the networkFriendlyName value. + */ + public String networkFriendlyName() { + return this.networkFriendlyName; + } + + /** + * Set the networkFriendlyName property: The test network friendly name. + * + * @param networkFriendlyName the networkFriendlyName value to set. + * @return the ClusterTestFailoverJobDetails object itself. + */ + public ClusterTestFailoverJobDetails withNetworkFriendlyName(String networkFriendlyName) { + this.networkFriendlyName = networkFriendlyName; + return this; + } + + /** + * Get the networkType property: The test network type (see TestFailoverInput enum for possible values). + * + * @return the networkType value. + */ + public String networkType() { + return this.networkType; + } + + /** + * Set the networkType property: The test network type (see TestFailoverInput enum for possible values). + * + * @param networkType the networkType value to set. + * @return the ClusterTestFailoverJobDetails object itself. + */ + public ClusterTestFailoverJobDetails withNetworkType(String networkType) { + this.networkType = networkType; + return this; + } + + /** + * Get the protectedItemDetails property: The test VM details. + * + * @return the protectedItemDetails value. + */ + public List protectedItemDetails() { + return this.protectedItemDetails; + } + + /** + * Set the protectedItemDetails property: The test VM details. + * + * @param protectedItemDetails the protectedItemDetails value to set. + * @return the ClusterTestFailoverJobDetails object itself. + */ + public ClusterTestFailoverJobDetails + withProtectedItemDetails(List protectedItemDetails) { + this.protectedItemDetails = protectedItemDetails; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public ClusterTestFailoverJobDetails withAffectedObjectDetails(Map affectedObjectDetails) { + super.withAffectedObjectDetails(affectedObjectDetails); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + if (protectedItemDetails() != null) { + protectedItemDetails().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeMapField("affectedObjectDetails", affectedObjectDetails(), + (writer, element) -> writer.writeString(element)); + jsonWriter.writeStringField("instanceType", this.instanceType); + jsonWriter.writeStringField("testFailoverStatus", this.testFailoverStatus); + jsonWriter.writeStringField("comments", this.comments); + jsonWriter.writeStringField("networkName", this.networkName); + jsonWriter.writeStringField("networkFriendlyName", this.networkFriendlyName); + jsonWriter.writeStringField("networkType", this.networkType); + jsonWriter.writeArrayField("protectedItemDetails", this.protectedItemDetails, + (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterTestFailoverJobDetails from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterTestFailoverJobDetails if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ClusterTestFailoverJobDetails. + */ + public static ClusterTestFailoverJobDetails fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterTestFailoverJobDetails deserializedClusterTestFailoverJobDetails + = new ClusterTestFailoverJobDetails(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("affectedObjectDetails".equals(fieldName)) { + Map affectedObjectDetails = reader.readMap(reader1 -> reader1.getString()); + deserializedClusterTestFailoverJobDetails.withAffectedObjectDetails(affectedObjectDetails); + } else if ("instanceType".equals(fieldName)) { + deserializedClusterTestFailoverJobDetails.instanceType = reader.getString(); + } else if ("testFailoverStatus".equals(fieldName)) { + deserializedClusterTestFailoverJobDetails.testFailoverStatus = reader.getString(); + } else if ("comments".equals(fieldName)) { + deserializedClusterTestFailoverJobDetails.comments = reader.getString(); + } else if ("networkName".equals(fieldName)) { + deserializedClusterTestFailoverJobDetails.networkName = reader.getString(); + } else if ("networkFriendlyName".equals(fieldName)) { + deserializedClusterTestFailoverJobDetails.networkFriendlyName = reader.getString(); + } else if ("networkType".equals(fieldName)) { + deserializedClusterTestFailoverJobDetails.networkType = reader.getString(); + } else if ("protectedItemDetails".equals(fieldName)) { + List protectedItemDetails + = reader.readArray(reader1 -> FailoverReplicationProtectedItemDetails.fromJson(reader1)); + deserializedClusterTestFailoverJobDetails.protectedItemDetails = protectedItemDetails; + } else { + reader.skipChildren(); + } + } + + return deserializedClusterTestFailoverJobDetails; + }); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterTestFailoverProviderSpecificInput.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterTestFailoverProviderSpecificInput.java new file mode 100644 index 000000000000..8bae24b6ce45 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterTestFailoverProviderSpecificInput.java @@ -0,0 +1,110 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Provider specific test cluster failover input. + */ +@Immutable +public class ClusterTestFailoverProviderSpecificInput + implements JsonSerializable { + /* + * The class type. + */ + private String instanceType = "ClusterTestFailoverProviderSpecificInput"; + + /** + * Creates an instance of ClusterTestFailoverProviderSpecificInput class. + */ + public ClusterTestFailoverProviderSpecificInput() { + } + + /** + * Get the instanceType property: The class type. + * + * @return the instanceType value. + */ + public String instanceType() { + return this.instanceType; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("instanceType", this.instanceType); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterTestFailoverProviderSpecificInput from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterTestFailoverProviderSpecificInput if the JsonReader was pointing to an instance of + * it, or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ClusterTestFailoverProviderSpecificInput. + */ + public static ClusterTestFailoverProviderSpecificInput fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + String discriminatorValue = null; + try (JsonReader readerToUse = reader.bufferObject()) { + readerToUse.nextToken(); // Prepare for reading + while (readerToUse.nextToken() != JsonToken.END_OBJECT) { + String fieldName = readerToUse.getFieldName(); + readerToUse.nextToken(); + if ("instanceType".equals(fieldName)) { + discriminatorValue = readerToUse.getString(); + break; + } else { + readerToUse.skipChildren(); + } + } + // Use the discriminator value to determine which subtype should be deserialized. + if ("A2A".equals(discriminatorValue)) { + return A2AClusterTestFailoverInput.fromJson(readerToUse.reset()); + } else { + return fromJsonKnownDiscriminator(readerToUse.reset()); + } + } + }); + } + + static ClusterTestFailoverProviderSpecificInput fromJsonKnownDiscriminator(JsonReader jsonReader) + throws IOException { + return jsonReader.readObject(reader -> { + ClusterTestFailoverProviderSpecificInput deserializedClusterTestFailoverProviderSpecificInput + = new ClusterTestFailoverProviderSpecificInput(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("instanceType".equals(fieldName)) { + deserializedClusterTestFailoverProviderSpecificInput.instanceType = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedClusterTestFailoverProviderSpecificInput; + }); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterUnplannedFailoverInput.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterUnplannedFailoverInput.java new file mode 100644 index 000000000000..f26bdf1c00d4 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterUnplannedFailoverInput.java @@ -0,0 +1,106 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Input definition for unplanned cluster failover. + */ +@Fluent +public final class ClusterUnplannedFailoverInput implements JsonSerializable { + /* + * Unplanned failover input properties. + */ + private ClusterUnplannedFailoverInputProperties properties; + + /** + * Creates an instance of ClusterUnplannedFailoverInput class. + */ + public ClusterUnplannedFailoverInput() { + } + + /** + * Get the properties property: Unplanned failover input properties. + * + * @return the properties value. + */ + public ClusterUnplannedFailoverInputProperties properties() { + return this.properties; + } + + /** + * Set the properties property: Unplanned failover input properties. + * + * @param properties the properties value to set. + * @return the ClusterUnplannedFailoverInput object itself. + */ + public ClusterUnplannedFailoverInput withProperties(ClusterUnplannedFailoverInputProperties properties) { + this.properties = properties; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (properties() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property properties in model ClusterUnplannedFailoverInput")); + } else { + properties().validate(); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(ClusterUnplannedFailoverInput.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterUnplannedFailoverInput from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterUnplannedFailoverInput if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the ClusterUnplannedFailoverInput. + */ + public static ClusterUnplannedFailoverInput fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterUnplannedFailoverInput deserializedClusterUnplannedFailoverInput + = new ClusterUnplannedFailoverInput(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("properties".equals(fieldName)) { + deserializedClusterUnplannedFailoverInput.properties + = ClusterUnplannedFailoverInputProperties.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedClusterUnplannedFailoverInput; + }); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterUnplannedFailoverInputProperties.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterUnplannedFailoverInputProperties.java new file mode 100644 index 000000000000..f525409f33f5 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterUnplannedFailoverInputProperties.java @@ -0,0 +1,156 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Input definition for unplanned failover input properties. + */ +@Fluent +public final class ClusterUnplannedFailoverInputProperties + implements JsonSerializable { + /* + * Failover direction. + */ + private String failoverDirection; + + /* + * Source site operations status. + */ + private String sourceSiteOperations; + + /* + * Provider specific settings. + */ + private ClusterUnplannedFailoverProviderSpecificInput providerSpecificDetails; + + /** + * Creates an instance of ClusterUnplannedFailoverInputProperties class. + */ + public ClusterUnplannedFailoverInputProperties() { + } + + /** + * Get the failoverDirection property: Failover direction. + * + * @return the failoverDirection value. + */ + public String failoverDirection() { + return this.failoverDirection; + } + + /** + * Set the failoverDirection property: Failover direction. + * + * @param failoverDirection the failoverDirection value to set. + * @return the ClusterUnplannedFailoverInputProperties object itself. + */ + public ClusterUnplannedFailoverInputProperties withFailoverDirection(String failoverDirection) { + this.failoverDirection = failoverDirection; + return this; + } + + /** + * Get the sourceSiteOperations property: Source site operations status. + * + * @return the sourceSiteOperations value. + */ + public String sourceSiteOperations() { + return this.sourceSiteOperations; + } + + /** + * Set the sourceSiteOperations property: Source site operations status. + * + * @param sourceSiteOperations the sourceSiteOperations value to set. + * @return the ClusterUnplannedFailoverInputProperties object itself. + */ + public ClusterUnplannedFailoverInputProperties withSourceSiteOperations(String sourceSiteOperations) { + this.sourceSiteOperations = sourceSiteOperations; + return this; + } + + /** + * Get the providerSpecificDetails property: Provider specific settings. + * + * @return the providerSpecificDetails value. + */ + public ClusterUnplannedFailoverProviderSpecificInput providerSpecificDetails() { + return this.providerSpecificDetails; + } + + /** + * Set the providerSpecificDetails property: Provider specific settings. + * + * @param providerSpecificDetails the providerSpecificDetails value to set. + * @return the ClusterUnplannedFailoverInputProperties object itself. + */ + public ClusterUnplannedFailoverInputProperties + withProviderSpecificDetails(ClusterUnplannedFailoverProviderSpecificInput providerSpecificDetails) { + this.providerSpecificDetails = providerSpecificDetails; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (providerSpecificDetails() != null) { + providerSpecificDetails().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("failoverDirection", this.failoverDirection); + jsonWriter.writeStringField("sourceSiteOperations", this.sourceSiteOperations); + jsonWriter.writeJsonField("providerSpecificDetails", this.providerSpecificDetails); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterUnplannedFailoverInputProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterUnplannedFailoverInputProperties if the JsonReader was pointing to an instance of + * it, or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ClusterUnplannedFailoverInputProperties. + */ + public static ClusterUnplannedFailoverInputProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterUnplannedFailoverInputProperties deserializedClusterUnplannedFailoverInputProperties + = new ClusterUnplannedFailoverInputProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("failoverDirection".equals(fieldName)) { + deserializedClusterUnplannedFailoverInputProperties.failoverDirection = reader.getString(); + } else if ("sourceSiteOperations".equals(fieldName)) { + deserializedClusterUnplannedFailoverInputProperties.sourceSiteOperations = reader.getString(); + } else if ("providerSpecificDetails".equals(fieldName)) { + deserializedClusterUnplannedFailoverInputProperties.providerSpecificDetails + = ClusterUnplannedFailoverProviderSpecificInput.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedClusterUnplannedFailoverInputProperties; + }); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterUnplannedFailoverProviderSpecificInput.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterUnplannedFailoverProviderSpecificInput.java new file mode 100644 index 000000000000..69d621a36371 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ClusterUnplannedFailoverProviderSpecificInput.java @@ -0,0 +1,110 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Provider specific unplanned cluster failover input. + */ +@Immutable +public class ClusterUnplannedFailoverProviderSpecificInput + implements JsonSerializable { + /* + * The class type. + */ + private String instanceType = "ClusterUnplannedFailoverProviderSpecificInput"; + + /** + * Creates an instance of ClusterUnplannedFailoverProviderSpecificInput class. + */ + public ClusterUnplannedFailoverProviderSpecificInput() { + } + + /** + * Get the instanceType property: The class type. + * + * @return the instanceType value. + */ + public String instanceType() { + return this.instanceType; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("instanceType", this.instanceType); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterUnplannedFailoverProviderSpecificInput from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterUnplannedFailoverProviderSpecificInput if the JsonReader was pointing to an + * instance of it, or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ClusterUnplannedFailoverProviderSpecificInput. + */ + public static ClusterUnplannedFailoverProviderSpecificInput fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + String discriminatorValue = null; + try (JsonReader readerToUse = reader.bufferObject()) { + readerToUse.nextToken(); // Prepare for reading + while (readerToUse.nextToken() != JsonToken.END_OBJECT) { + String fieldName = readerToUse.getFieldName(); + readerToUse.nextToken(); + if ("instanceType".equals(fieldName)) { + discriminatorValue = readerToUse.getString(); + break; + } else { + readerToUse.skipChildren(); + } + } + // Use the discriminator value to determine which subtype should be deserialized. + if ("A2A".equals(discriminatorValue)) { + return A2AClusterUnplannedFailoverInput.fromJson(readerToUse.reset()); + } else { + return fromJsonKnownDiscriminator(readerToUse.reset()); + } + } + }); + } + + static ClusterUnplannedFailoverProviderSpecificInput fromJsonKnownDiscriminator(JsonReader jsonReader) + throws IOException { + return jsonReader.readObject(reader -> { + ClusterUnplannedFailoverProviderSpecificInput deserializedClusterUnplannedFailoverProviderSpecificInput + = new ClusterUnplannedFailoverProviderSpecificInput(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("instanceType".equals(fieldName)) { + deserializedClusterUnplannedFailoverProviderSpecificInput.instanceType = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedClusterUnplannedFailoverProviderSpecificInput; + }); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/DiskAccountType.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/DiskAccountType.java index e4234b8505dc..7f6431ea1f57 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/DiskAccountType.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/DiskAccountType.java @@ -8,7 +8,7 @@ import java.util.Collection; /** - * The DiskType. + * The disk type. */ public final class DiskAccountType extends ExpandableStringEnum { /** @@ -26,6 +26,26 @@ public final class DiskAccountType extends ExpandableStringEnum */ public static final DiskAccountType STANDARD_SSD_LRS = fromString("StandardSSD_LRS"); + /** + * Static value PremiumV2_LRS for DiskAccountType. + */ + public static final DiskAccountType PREMIUM_V2_LRS = fromString("PremiumV2_LRS"); + + /** + * Static value UltraSSD_LRS for DiskAccountType. + */ + public static final DiskAccountType ULTRA_SSD_LRS = fromString("UltraSSD_LRS"); + + /** + * Static value StandardSSD_ZRS for DiskAccountType. + */ + public static final DiskAccountType STANDARD_SSD_ZRS = fromString("StandardSSD_ZRS"); + + /** + * Static value Premium_ZRS for DiskAccountType. + */ + public static final DiskAccountType PREMIUM_ZRS = fromString("Premium_ZRS"); + /** * Creates a new instance of DiskAccountType value. * diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/DiskState.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/DiskState.java new file mode 100644 index 000000000000..080750014595 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/DiskState.java @@ -0,0 +1,61 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The disk state. + */ +public final class DiskState extends ExpandableStringEnum { + /** + * Static value Unavailable for DiskState. + */ + public static final DiskState UNAVAILABLE = fromString("Unavailable"); + + /** + * Static value InitialReplicationPending for DiskState. + */ + public static final DiskState INITIAL_REPLICATION_PENDING = fromString("InitialReplicationPending"); + + /** + * Static value InitialReplicationFailed for DiskState. + */ + public static final DiskState INITIAL_REPLICATION_FAILED = fromString("InitialReplicationFailed"); + + /** + * Static value Protected for DiskState. + */ + public static final DiskState PROTECTED = fromString("Protected"); + + /** + * Creates a new instance of DiskState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public DiskState() { + } + + /** + * Creates or finds a DiskState from its string representation. + * + * @param name a name to look for. + * @return the corresponding DiskState. + */ + public static DiskState fromString(String name) { + return fromString(name, DiskState.class); + } + + /** + * Gets known DiskState values. + * + * @return known DiskState values. + */ + public static Collection values() { + return values(DiskState.class); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/Fabric.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/Fabric.java index 0f62fe1152a4..114e97ce86b5 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/Fabric.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/Fabric.java @@ -90,13 +90,13 @@ interface Blank extends WithParentResource { */ interface WithParentResource { /** - * Specifies resourceName, resourceGroupName. + * Specifies resourceGroupName, resourceName. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @return the next definition stage. */ - WithCreate withExistingVault(String resourceName, String resourceGroupName); + WithCreate withExistingVault(String resourceGroupName, String resourceName); } /** diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/FailoverDirection.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/FailoverDirection.java new file mode 100644 index 000000000000..5ceab2bd38f5 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/FailoverDirection.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Failover direction. + */ +public final class FailoverDirection extends ExpandableStringEnum { + /** + * Static value PrimaryToRecovery for FailoverDirection. + */ + public static final FailoverDirection PRIMARY_TO_RECOVERY = fromString("PrimaryToRecovery"); + + /** + * Static value RecoveryToPrimary for FailoverDirection. + */ + public static final FailoverDirection RECOVERY_TO_PRIMARY = fromString("RecoveryToPrimary"); + + /** + * Creates a new instance of FailoverDirection value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public FailoverDirection() { + } + + /** + * Creates or finds a FailoverDirection from its string representation. + * + * @param name a name to look for. + * @return the corresponding FailoverDirection. + */ + public static FailoverDirection fromString(String name) { + return fromString(name, FailoverDirection.class); + } + + /** + * Gets known FailoverDirection values. + * + * @return known FailoverDirection values. + */ + public static Collection values() { + return values(FailoverDirection.class); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/HyperVReplicaAzureDiskInputDetails.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/HyperVReplicaAzureDiskInputDetails.java index a9cd9ca64457..aa101f52caba 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/HyperVReplicaAzureDiskInputDetails.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/HyperVReplicaAzureDiskInputDetails.java @@ -27,7 +27,7 @@ public final class HyperVReplicaAzureDiskInputDetails implements JsonSerializabl private String logStorageAccountId; /* - * The DiskType. + * The disk type. */ private DiskAccountType diskType; @@ -36,6 +36,26 @@ public final class HyperVReplicaAzureDiskInputDetails implements JsonSerializabl */ private String diskEncryptionSetId; + /* + * The logical sector size (in bytes), 512 by default. + */ + private Integer sectorSizeInBytes; + + /* + * The number of IOPS allowed for Premium V2 and Ultra disks. + */ + private Long iops; + + /* + * The total throughput in Mbps for Premium V2 and Ultra disks. + */ + private Long throughputInMbps; + + /* + * The target disk size in GB. + */ + private Long diskSizeInGB; + /** * Creates an instance of HyperVReplicaAzureDiskInputDetails class. */ @@ -83,7 +103,7 @@ public HyperVReplicaAzureDiskInputDetails withLogStorageAccountId(String logStor } /** - * Get the diskType property: The DiskType. + * Get the diskType property: The disk type. * * @return the diskType value. */ @@ -92,7 +112,7 @@ public DiskAccountType diskType() { } /** - * Set the diskType property: The DiskType. + * Set the diskType property: The disk type. * * @param diskType the diskType value to set. * @return the HyperVReplicaAzureDiskInputDetails object itself. @@ -122,6 +142,86 @@ public HyperVReplicaAzureDiskInputDetails withDiskEncryptionSetId(String diskEnc return this; } + /** + * Get the sectorSizeInBytes property: The logical sector size (in bytes), 512 by default. + * + * @return the sectorSizeInBytes value. + */ + public Integer sectorSizeInBytes() { + return this.sectorSizeInBytes; + } + + /** + * Set the sectorSizeInBytes property: The logical sector size (in bytes), 512 by default. + * + * @param sectorSizeInBytes the sectorSizeInBytes value to set. + * @return the HyperVReplicaAzureDiskInputDetails object itself. + */ + public HyperVReplicaAzureDiskInputDetails withSectorSizeInBytes(Integer sectorSizeInBytes) { + this.sectorSizeInBytes = sectorSizeInBytes; + return this; + } + + /** + * Get the iops property: The number of IOPS allowed for Premium V2 and Ultra disks. + * + * @return the iops value. + */ + public Long iops() { + return this.iops; + } + + /** + * Set the iops property: The number of IOPS allowed for Premium V2 and Ultra disks. + * + * @param iops the iops value to set. + * @return the HyperVReplicaAzureDiskInputDetails object itself. + */ + public HyperVReplicaAzureDiskInputDetails withIops(Long iops) { + this.iops = iops; + return this; + } + + /** + * Get the throughputInMbps property: The total throughput in Mbps for Premium V2 and Ultra disks. + * + * @return the throughputInMbps value. + */ + public Long throughputInMbps() { + return this.throughputInMbps; + } + + /** + * Set the throughputInMbps property: The total throughput in Mbps for Premium V2 and Ultra disks. + * + * @param throughputInMbps the throughputInMbps value to set. + * @return the HyperVReplicaAzureDiskInputDetails object itself. + */ + public HyperVReplicaAzureDiskInputDetails withThroughputInMbps(Long throughputInMbps) { + this.throughputInMbps = throughputInMbps; + return this; + } + + /** + * Get the diskSizeInGB property: The target disk size in GB. + * + * @return the diskSizeInGB value. + */ + public Long diskSizeInGB() { + return this.diskSizeInGB; + } + + /** + * Set the diskSizeInGB property: The target disk size in GB. + * + * @param diskSizeInGB the diskSizeInGB value to set. + * @return the HyperVReplicaAzureDiskInputDetails object itself. + */ + public HyperVReplicaAzureDiskInputDetails withDiskSizeInGB(Long diskSizeInGB) { + this.diskSizeInGB = diskSizeInGB; + return this; + } + /** * Validates the instance. * @@ -140,6 +240,10 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("logStorageAccountId", this.logStorageAccountId); jsonWriter.writeStringField("diskType", this.diskType == null ? null : this.diskType.toString()); jsonWriter.writeStringField("diskEncryptionSetId", this.diskEncryptionSetId); + jsonWriter.writeNumberField("sectorSizeInBytes", this.sectorSizeInBytes); + jsonWriter.writeNumberField("iops", this.iops); + jsonWriter.writeNumberField("throughputInMbps", this.throughputInMbps); + jsonWriter.writeNumberField("diskSizeInGB", this.diskSizeInGB); return jsonWriter.writeEndObject(); } @@ -168,6 +272,17 @@ public static HyperVReplicaAzureDiskInputDetails fromJson(JsonReader jsonReader) = DiskAccountType.fromString(reader.getString()); } else if ("diskEncryptionSetId".equals(fieldName)) { deserializedHyperVReplicaAzureDiskInputDetails.diskEncryptionSetId = reader.getString(); + } else if ("sectorSizeInBytes".equals(fieldName)) { + deserializedHyperVReplicaAzureDiskInputDetails.sectorSizeInBytes + = reader.getNullable(JsonReader::getInt); + } else if ("iops".equals(fieldName)) { + deserializedHyperVReplicaAzureDiskInputDetails.iops = reader.getNullable(JsonReader::getLong); + } else if ("throughputInMbps".equals(fieldName)) { + deserializedHyperVReplicaAzureDiskInputDetails.throughputInMbps + = reader.getNullable(JsonReader::getLong); + } else if ("diskSizeInGB".equals(fieldName)) { + deserializedHyperVReplicaAzureDiskInputDetails.diskSizeInGB + = reader.getNullable(JsonReader::getLong); } else { reader.skipChildren(); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/HyperVReplicaAzureEnableProtectionInput.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/HyperVReplicaAzureEnableProtectionInput.java index a53875e25aa7..9604e82efd21 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/HyperVReplicaAzureEnableProtectionInput.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/HyperVReplicaAzureEnableProtectionInput.java @@ -37,6 +37,11 @@ public final class HyperVReplicaAzureEnableProtectionInput extends EnableProtect */ private String osType; + /* + * The OS name selected by user. + */ + private String userSelectedOSName; + /* * The OS disk VHD id associated with VM. */ @@ -113,6 +118,16 @@ public final class HyperVReplicaAzureEnableProtectionInput extends EnableProtect */ private SqlServerLicenseType sqlServerLicenseType; + /* + * The license type for Linux VM's. + */ + private LinuxLicenseType linuxLicenseType; + + /* + * The target VM security profile. + */ + private SecurityProfileProperties targetVmSecurityProfile; + /* * The target VM size. */ @@ -129,7 +144,7 @@ public final class HyperVReplicaAzureEnableProtectionInput extends EnableProtect private String useManagedDisksForReplication; /* - * The DiskType. + * The disk type. */ private DiskAccountType diskType; @@ -239,6 +254,26 @@ public HyperVReplicaAzureEnableProtectionInput withOsType(String osType) { return this; } + /** + * Get the userSelectedOSName property: The OS name selected by user. + * + * @return the userSelectedOSName value. + */ + public String userSelectedOSName() { + return this.userSelectedOSName; + } + + /** + * Set the userSelectedOSName property: The OS name selected by user. + * + * @param userSelectedOSName the userSelectedOSName value to set. + * @return the HyperVReplicaAzureEnableProtectionInput object itself. + */ + public HyperVReplicaAzureEnableProtectionInput withUserSelectedOSName(String userSelectedOSName) { + this.userSelectedOSName = userSelectedOSName; + return this; + } + /** * Get the vhdId property: The OS disk VHD id associated with VM. * @@ -547,6 +582,47 @@ public HyperVReplicaAzureEnableProtectionInput withSqlServerLicenseType(SqlServe return this; } + /** + * Get the linuxLicenseType property: The license type for Linux VM's. + * + * @return the linuxLicenseType value. + */ + public LinuxLicenseType linuxLicenseType() { + return this.linuxLicenseType; + } + + /** + * Set the linuxLicenseType property: The license type for Linux VM's. + * + * @param linuxLicenseType the linuxLicenseType value to set. + * @return the HyperVReplicaAzureEnableProtectionInput object itself. + */ + public HyperVReplicaAzureEnableProtectionInput withLinuxLicenseType(LinuxLicenseType linuxLicenseType) { + this.linuxLicenseType = linuxLicenseType; + return this; + } + + /** + * Get the targetVmSecurityProfile property: The target VM security profile. + * + * @return the targetVmSecurityProfile value. + */ + public SecurityProfileProperties targetVmSecurityProfile() { + return this.targetVmSecurityProfile; + } + + /** + * Set the targetVmSecurityProfile property: The target VM security profile. + * + * @param targetVmSecurityProfile the targetVmSecurityProfile value to set. + * @return the HyperVReplicaAzureEnableProtectionInput object itself. + */ + public HyperVReplicaAzureEnableProtectionInput + withTargetVmSecurityProfile(SecurityProfileProperties targetVmSecurityProfile) { + this.targetVmSecurityProfile = targetVmSecurityProfile; + return this; + } + /** * Get the targetVmSize property: The target VM size. * @@ -612,7 +688,7 @@ public String useManagedDisksForReplication() { } /** - * Get the diskType property: The DiskType. + * Get the diskType property: The disk type. * * @return the diskType value. */ @@ -621,7 +697,7 @@ public DiskAccountType diskType() { } /** - * Set the diskType property: The DiskType. + * Set the diskType property: The disk type. * * @param diskType the diskType value to set. * @return the HyperVReplicaAzureEnableProtectionInput object itself. @@ -760,6 +836,9 @@ public HyperVReplicaAzureEnableProtectionInput withTargetNicTags(Map e.validate()); } @@ -775,6 +854,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("hvHostVmId", this.hvHostVmId); jsonWriter.writeStringField("vmName", this.vmName); jsonWriter.writeStringField("osType", this.osType); + jsonWriter.writeStringField("userSelectedOSName", this.userSelectedOSName); jsonWriter.writeStringField("vhdId", this.vhdId); jsonWriter.writeStringField("targetStorageAccountId", this.targetStorageAccountId); jsonWriter.writeStringField("targetAzureNetworkId", this.targetAzureNetworkId); @@ -792,6 +872,9 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("licenseType", this.licenseType == null ? null : this.licenseType.toString()); jsonWriter.writeStringField("sqlServerLicenseType", this.sqlServerLicenseType == null ? null : this.sqlServerLicenseType.toString()); + jsonWriter.writeStringField("linuxLicenseType", + this.linuxLicenseType == null ? null : this.linuxLicenseType.toString()); + jsonWriter.writeJsonField("targetVmSecurityProfile", this.targetVmSecurityProfile); jsonWriter.writeStringField("targetVmSize", this.targetVmSize); jsonWriter.writeStringField("targetProximityPlacementGroupId", this.targetProximityPlacementGroupId); jsonWriter.writeStringField("useManagedDisksForReplication", this.useManagedDisksForReplication); @@ -832,6 +915,8 @@ public static HyperVReplicaAzureEnableProtectionInput fromJson(JsonReader jsonRe deserializedHyperVReplicaAzureEnableProtectionInput.vmName = reader.getString(); } else if ("osType".equals(fieldName)) { deserializedHyperVReplicaAzureEnableProtectionInput.osType = reader.getString(); + } else if ("userSelectedOSName".equals(fieldName)) { + deserializedHyperVReplicaAzureEnableProtectionInput.userSelectedOSName = reader.getString(); } else if ("vhdId".equals(fieldName)) { deserializedHyperVReplicaAzureEnableProtectionInput.vhdId = reader.getString(); } else if ("targetStorageAccountId".equals(fieldName)) { @@ -867,6 +952,12 @@ public static HyperVReplicaAzureEnableProtectionInput fromJson(JsonReader jsonRe } else if ("sqlServerLicenseType".equals(fieldName)) { deserializedHyperVReplicaAzureEnableProtectionInput.sqlServerLicenseType = SqlServerLicenseType.fromString(reader.getString()); + } else if ("linuxLicenseType".equals(fieldName)) { + deserializedHyperVReplicaAzureEnableProtectionInput.linuxLicenseType + = LinuxLicenseType.fromString(reader.getString()); + } else if ("targetVmSecurityProfile".equals(fieldName)) { + deserializedHyperVReplicaAzureEnableProtectionInput.targetVmSecurityProfile + = SecurityProfileProperties.fromJson(reader); } else if ("targetVmSize".equals(fieldName)) { deserializedHyperVReplicaAzureEnableProtectionInput.targetVmSize = reader.getString(); } else if ("targetProximityPlacementGroupId".equals(fieldName)) { diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/HyperVReplicaAzureManagedDiskDetails.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/HyperVReplicaAzureManagedDiskDetails.java index eb0a19bec8b2..5e4acffbd8ca 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/HyperVReplicaAzureManagedDiskDetails.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/HyperVReplicaAzureManagedDiskDetails.java @@ -37,6 +37,31 @@ public final class HyperVReplicaAzureManagedDiskDetails */ private String diskEncryptionSetId; + /* + * The disk type. + */ + private DiskAccountType targetDiskAccountType; + + /* + * The logical sector size (in bytes), 512 by default. + */ + private Integer sectorSizeInBytes; + + /* + * The number of IOPS allowed for Premium V2 and Ultra disks. + */ + private Long iops; + + /* + * The total throughput in Mbps for Premium V2 and Ultra disks. + */ + private Long throughputInMbps; + + /* + * The target disk size in GB. + */ + private Long diskSizeInGB; + /** * Creates an instance of HyperVReplicaAzureManagedDiskDetails class. */ @@ -123,6 +148,106 @@ public HyperVReplicaAzureManagedDiskDetails withDiskEncryptionSetId(String diskE return this; } + /** + * Get the targetDiskAccountType property: The disk type. + * + * @return the targetDiskAccountType value. + */ + public DiskAccountType targetDiskAccountType() { + return this.targetDiskAccountType; + } + + /** + * Set the targetDiskAccountType property: The disk type. + * + * @param targetDiskAccountType the targetDiskAccountType value to set. + * @return the HyperVReplicaAzureManagedDiskDetails object itself. + */ + public HyperVReplicaAzureManagedDiskDetails withTargetDiskAccountType(DiskAccountType targetDiskAccountType) { + this.targetDiskAccountType = targetDiskAccountType; + return this; + } + + /** + * Get the sectorSizeInBytes property: The logical sector size (in bytes), 512 by default. + * + * @return the sectorSizeInBytes value. + */ + public Integer sectorSizeInBytes() { + return this.sectorSizeInBytes; + } + + /** + * Set the sectorSizeInBytes property: The logical sector size (in bytes), 512 by default. + * + * @param sectorSizeInBytes the sectorSizeInBytes value to set. + * @return the HyperVReplicaAzureManagedDiskDetails object itself. + */ + public HyperVReplicaAzureManagedDiskDetails withSectorSizeInBytes(Integer sectorSizeInBytes) { + this.sectorSizeInBytes = sectorSizeInBytes; + return this; + } + + /** + * Get the iops property: The number of IOPS allowed for Premium V2 and Ultra disks. + * + * @return the iops value. + */ + public Long iops() { + return this.iops; + } + + /** + * Set the iops property: The number of IOPS allowed for Premium V2 and Ultra disks. + * + * @param iops the iops value to set. + * @return the HyperVReplicaAzureManagedDiskDetails object itself. + */ + public HyperVReplicaAzureManagedDiskDetails withIops(Long iops) { + this.iops = iops; + return this; + } + + /** + * Get the throughputInMbps property: The total throughput in Mbps for Premium V2 and Ultra disks. + * + * @return the throughputInMbps value. + */ + public Long throughputInMbps() { + return this.throughputInMbps; + } + + /** + * Set the throughputInMbps property: The total throughput in Mbps for Premium V2 and Ultra disks. + * + * @param throughputInMbps the throughputInMbps value to set. + * @return the HyperVReplicaAzureManagedDiskDetails object itself. + */ + public HyperVReplicaAzureManagedDiskDetails withThroughputInMbps(Long throughputInMbps) { + this.throughputInMbps = throughputInMbps; + return this; + } + + /** + * Get the diskSizeInGB property: The target disk size in GB. + * + * @return the diskSizeInGB value. + */ + public Long diskSizeInGB() { + return this.diskSizeInGB; + } + + /** + * Set the diskSizeInGB property: The target disk size in GB. + * + * @param diskSizeInGB the diskSizeInGB value to set. + * @return the HyperVReplicaAzureManagedDiskDetails object itself. + */ + public HyperVReplicaAzureManagedDiskDetails withDiskSizeInGB(Long diskSizeInGB) { + this.diskSizeInGB = diskSizeInGB; + return this; + } + /** * Validates the instance. * @@ -141,6 +266,12 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("seedManagedDiskId", this.seedManagedDiskId); jsonWriter.writeStringField("replicaDiskType", this.replicaDiskType); jsonWriter.writeStringField("diskEncryptionSetId", this.diskEncryptionSetId); + jsonWriter.writeStringField("targetDiskAccountType", + this.targetDiskAccountType == null ? null : this.targetDiskAccountType.toString()); + jsonWriter.writeNumberField("sectorSizeInBytes", this.sectorSizeInBytes); + jsonWriter.writeNumberField("iops", this.iops); + jsonWriter.writeNumberField("throughputInMbps", this.throughputInMbps); + jsonWriter.writeNumberField("diskSizeInGB", this.diskSizeInGB); return jsonWriter.writeEndObject(); } @@ -168,6 +299,20 @@ public static HyperVReplicaAzureManagedDiskDetails fromJson(JsonReader jsonReade deserializedHyperVReplicaAzureManagedDiskDetails.replicaDiskType = reader.getString(); } else if ("diskEncryptionSetId".equals(fieldName)) { deserializedHyperVReplicaAzureManagedDiskDetails.diskEncryptionSetId = reader.getString(); + } else if ("targetDiskAccountType".equals(fieldName)) { + deserializedHyperVReplicaAzureManagedDiskDetails.targetDiskAccountType + = DiskAccountType.fromString(reader.getString()); + } else if ("sectorSizeInBytes".equals(fieldName)) { + deserializedHyperVReplicaAzureManagedDiskDetails.sectorSizeInBytes + = reader.getNullable(JsonReader::getInt); + } else if ("iops".equals(fieldName)) { + deserializedHyperVReplicaAzureManagedDiskDetails.iops = reader.getNullable(JsonReader::getLong); + } else if ("throughputInMbps".equals(fieldName)) { + deserializedHyperVReplicaAzureManagedDiskDetails.throughputInMbps + = reader.getNullable(JsonReader::getLong); + } else if ("diskSizeInGB".equals(fieldName)) { + deserializedHyperVReplicaAzureManagedDiskDetails.diskSizeInGB + = reader.getNullable(JsonReader::getLong); } else { reader.skipChildren(); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/HyperVReplicaAzureReplicationDetails.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/HyperVReplicaAzureReplicationDetails.java index 43b4915b64e4..baf2a57c85d0 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/HyperVReplicaAzureReplicationDetails.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/HyperVReplicaAzureReplicationDetails.java @@ -162,6 +162,11 @@ public final class HyperVReplicaAzureReplicationDetails extends ReplicationProvi */ private String sqlServerLicenseType; + /* + * The license type for Linux VM's. + */ + private LinuxLicenseType linuxLicenseType; + /* * The last recovery point received time. */ @@ -197,6 +202,11 @@ public final class HyperVReplicaAzureReplicationDetails extends ReplicationProvi */ private List allAvailableOSUpgradeConfigurations; + /* + * The target VM security profile. + */ + private SecurityProfileProperties targetVmSecurityProfile; + /** * Creates an instance of HyperVReplicaAzureReplicationDetails class. */ @@ -763,6 +773,26 @@ public HyperVReplicaAzureReplicationDetails withSqlServerLicenseType(String sqlS return this; } + /** + * Get the linuxLicenseType property: The license type for Linux VM's. + * + * @return the linuxLicenseType value. + */ + public LinuxLicenseType linuxLicenseType() { + return this.linuxLicenseType; + } + + /** + * Set the linuxLicenseType property: The license type for Linux VM's. + * + * @param linuxLicenseType the linuxLicenseType value to set. + * @return the HyperVReplicaAzureReplicationDetails object itself. + */ + public HyperVReplicaAzureReplicationDetails withLinuxLicenseType(LinuxLicenseType linuxLicenseType) { + this.linuxLicenseType = linuxLicenseType; + return this; + } + /** * Get the lastRecoveryPointReceived property: The last recovery point received time. * @@ -896,6 +926,27 @@ public List allAvailableOSUpgradeConfigurations() { return this; } + /** + * Get the targetVmSecurityProfile property: The target VM security profile. + * + * @return the targetVmSecurityProfile value. + */ + public SecurityProfileProperties targetVmSecurityProfile() { + return this.targetVmSecurityProfile; + } + + /** + * Set the targetVmSecurityProfile property: The target VM security profile. + * + * @param targetVmSecurityProfile the targetVmSecurityProfile value to set. + * @return the HyperVReplicaAzureReplicationDetails object itself. + */ + public HyperVReplicaAzureReplicationDetails + withTargetVmSecurityProfile(SecurityProfileProperties targetVmSecurityProfile) { + this.targetVmSecurityProfile = targetVmSecurityProfile; + return this; + } + /** * Validates the instance. * @@ -921,6 +972,9 @@ public void validate() { if (allAvailableOSUpgradeConfigurations() != null) { allAvailableOSUpgradeConfigurations().forEach(e -> e.validate()); } + if (targetVmSecurityProfile() != null) { + targetVmSecurityProfile().validate(); + } } /** @@ -964,6 +1018,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("useManagedDisks", this.useManagedDisks); jsonWriter.writeStringField("licenseType", this.licenseType); jsonWriter.writeStringField("sqlServerLicenseType", this.sqlServerLicenseType); + jsonWriter.writeStringField("linuxLicenseType", + this.linuxLicenseType == null ? null : this.linuxLicenseType.toString()); jsonWriter.writeMapField("targetVmTags", this.targetVmTags, (writer, element) -> writer.writeString(element)); jsonWriter.writeMapField("seedManagedDiskTags", this.seedManagedDiskTags, (writer, element) -> writer.writeString(element)); @@ -974,6 +1030,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { (writer, element) -> writer.writeJson(element)); jsonWriter.writeArrayField("allAvailableOSUpgradeConfigurations", this.allAvailableOSUpgradeConfigurations, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeJsonField("targetVmSecurityProfile", this.targetVmSecurityProfile); return jsonWriter.writeEndObject(); } @@ -1061,6 +1118,9 @@ public static HyperVReplicaAzureReplicationDetails fromJson(JsonReader jsonReade deserializedHyperVReplicaAzureReplicationDetails.licenseType = reader.getString(); } else if ("sqlServerLicenseType".equals(fieldName)) { deserializedHyperVReplicaAzureReplicationDetails.sqlServerLicenseType = reader.getString(); + } else if ("linuxLicenseType".equals(fieldName)) { + deserializedHyperVReplicaAzureReplicationDetails.linuxLicenseType + = LinuxLicenseType.fromString(reader.getString()); } else if ("lastRecoveryPointReceived".equals(fieldName)) { deserializedHyperVReplicaAzureReplicationDetails.lastRecoveryPointReceived = reader .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); @@ -1085,6 +1145,9 @@ public static HyperVReplicaAzureReplicationDetails fromJson(JsonReader jsonReade = reader.readArray(reader1 -> OSUpgradeSupportedVersions.fromJson(reader1)); deserializedHyperVReplicaAzureReplicationDetails.allAvailableOSUpgradeConfigurations = allAvailableOSUpgradeConfigurations; + } else if ("targetVmSecurityProfile".equals(fieldName)) { + deserializedHyperVReplicaAzureReplicationDetails.targetVmSecurityProfile + = SecurityProfileProperties.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/HyperVReplicaAzureUpdateReplicationProtectedItemInput.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/HyperVReplicaAzureUpdateReplicationProtectedItemInput.java index 2241e7c8107f..4cae3c35e593 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/HyperVReplicaAzureUpdateReplicationProtectedItemInput.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/HyperVReplicaAzureUpdateReplicationProtectedItemInput.java @@ -73,6 +73,16 @@ public final class HyperVReplicaAzureUpdateReplicationProtectedItemInput */ private SqlServerLicenseType sqlServerLicenseType; + /* + * The license type for Linux VM's. + */ + private LinuxLicenseType linuxLicenseType; + + /* + * The OS name selected by user. + */ + private String userSelectedOSName; + /* * The list of disk update properties. */ @@ -303,6 +313,47 @@ public SqlServerLicenseType sqlServerLicenseType() { return this; } + /** + * Get the linuxLicenseType property: The license type for Linux VM's. + * + * @return the linuxLicenseType value. + */ + public LinuxLicenseType linuxLicenseType() { + return this.linuxLicenseType; + } + + /** + * Set the linuxLicenseType property: The license type for Linux VM's. + * + * @param linuxLicenseType the linuxLicenseType value to set. + * @return the HyperVReplicaAzureUpdateReplicationProtectedItemInput object itself. + */ + public HyperVReplicaAzureUpdateReplicationProtectedItemInput + withLinuxLicenseType(LinuxLicenseType linuxLicenseType) { + this.linuxLicenseType = linuxLicenseType; + return this; + } + + /** + * Get the userSelectedOSName property: The OS name selected by user. + * + * @return the userSelectedOSName value. + */ + public String userSelectedOSName() { + return this.userSelectedOSName; + } + + /** + * Set the userSelectedOSName property: The OS name selected by user. + * + * @param userSelectedOSName the userSelectedOSName value to set. + * @return the HyperVReplicaAzureUpdateReplicationProtectedItemInput object itself. + */ + public HyperVReplicaAzureUpdateReplicationProtectedItemInput withUserSelectedOSName(String userSelectedOSName) { + this.userSelectedOSName = userSelectedOSName; + return this; + } + /** * Get the vmDisks property: The list of disk update properties. * @@ -355,6 +406,9 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeMapField("targetNicTags", this.targetNicTags, (writer, element) -> writer.writeString(element)); jsonWriter.writeStringField("sqlServerLicenseType", this.sqlServerLicenseType == null ? null : this.sqlServerLicenseType.toString()); + jsonWriter.writeStringField("linuxLicenseType", + this.linuxLicenseType == null ? null : this.linuxLicenseType.toString()); + jsonWriter.writeStringField("userSelectedOSName", this.userSelectedOSName); jsonWriter.writeArrayField("vmDisks", this.vmDisks, (writer, element) -> writer.writeJson(element)); return jsonWriter.writeEndObject(); } @@ -410,6 +464,12 @@ public static HyperVReplicaAzureUpdateReplicationProtectedItemInput fromJson(Jso } else if ("sqlServerLicenseType".equals(fieldName)) { deserializedHyperVReplicaAzureUpdateReplicationProtectedItemInput.sqlServerLicenseType = SqlServerLicenseType.fromString(reader.getString()); + } else if ("linuxLicenseType".equals(fieldName)) { + deserializedHyperVReplicaAzureUpdateReplicationProtectedItemInput.linuxLicenseType + = LinuxLicenseType.fromString(reader.getString()); + } else if ("userSelectedOSName".equals(fieldName)) { + deserializedHyperVReplicaAzureUpdateReplicationProtectedItemInput.userSelectedOSName + = reader.getString(); } else if ("vmDisks".equals(fieldName)) { List vmDisks = reader.readArray(reader1 -> UpdateDiskInput.fromJson(reader1)); deserializedHyperVReplicaAzureUpdateReplicationProtectedItemInput.vmDisks = vmDisks; diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/InMageAzureV2DiskInputDetails.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/InMageAzureV2DiskInputDetails.java index e7e7860691f4..381102a52db7 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/InMageAzureV2DiskInputDetails.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/InMageAzureV2DiskInputDetails.java @@ -27,7 +27,7 @@ public final class InMageAzureV2DiskInputDetails implements JsonSerializable disks; + + /** + * Creates an instance of InMageRcmAddDisksInput class. + */ + public InMageRcmAddDisksInput() { + } + + /** + * Get the instanceType property: The class type. + * + * @return the instanceType value. + */ + @Override + public String instanceType() { + return this.instanceType; + } + + /** + * Get the disks property: The list of disk details. + * + * @return the disks value. + */ + public List disks() { + return this.disks; + } + + /** + * Set the disks property: The list of disk details. + * + * @param disks the disks value to set. + * @return the InMageRcmAddDisksInput object itself. + */ + public InMageRcmAddDisksInput withDisks(List disks) { + this.disks = disks; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + if (disks() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property disks in model InMageRcmAddDisksInput")); + } else { + disks().forEach(e -> e.validate()); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(InMageRcmAddDisksInput.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("disks", this.disks, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("instanceType", this.instanceType); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of InMageRcmAddDisksInput from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of InMageRcmAddDisksInput if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the InMageRcmAddDisksInput. + */ + public static InMageRcmAddDisksInput fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + InMageRcmAddDisksInput deserializedInMageRcmAddDisksInput = new InMageRcmAddDisksInput(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("disks".equals(fieldName)) { + List disks = reader.readArray(reader1 -> InMageRcmDiskInput.fromJson(reader1)); + deserializedInMageRcmAddDisksInput.disks = disks; + } else if ("instanceType".equals(fieldName)) { + deserializedInMageRcmAddDisksInput.instanceType = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedInMageRcmAddDisksInput; + }); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/InMageRcmDiskInput.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/InMageRcmDiskInput.java index b20f9bddaa72..d2a13789db5e 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/InMageRcmDiskInput.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/InMageRcmDiskInput.java @@ -37,6 +37,26 @@ public final class InMageRcmDiskInput implements JsonSerializable targetVmTags; + + /* + * The tags for the seed managed disks. + */ + private List seedManagedDiskTags; + + /* + * The tags for the target managed disks. + */ + private List targetManagedDiskTags; + + /* + * The tags for the target NICs. + */ + private List targetNicTags; + + /* + * The OS name selected by user. + */ + private String userSelectedOSName; + + /* + * The target VM security profile. + */ + private SecurityProfileProperties targetVmSecurityProfile; + /** * Creates an instance of InMageRcmEnableProtectionInput class. */ @@ -489,6 +529,168 @@ public InMageRcmEnableProtectionInput withMultiVmGroupName(String multiVmGroupNa return this; } + /** + * Get the sqlServerLicenseType property: The SQL Server license type. + * + * @return the sqlServerLicenseType value. + */ + public SqlServerLicenseType sqlServerLicenseType() { + return this.sqlServerLicenseType; + } + + /** + * Set the sqlServerLicenseType property: The SQL Server license type. + * + * @param sqlServerLicenseType the sqlServerLicenseType value to set. + * @return the InMageRcmEnableProtectionInput object itself. + */ + public InMageRcmEnableProtectionInput withSqlServerLicenseType(SqlServerLicenseType sqlServerLicenseType) { + this.sqlServerLicenseType = sqlServerLicenseType; + return this; + } + + /** + * Get the linuxLicenseType property: The license type for Linux VM's. + * + * @return the linuxLicenseType value. + */ + public LinuxLicenseType linuxLicenseType() { + return this.linuxLicenseType; + } + + /** + * Set the linuxLicenseType property: The license type for Linux VM's. + * + * @param linuxLicenseType the linuxLicenseType value to set. + * @return the InMageRcmEnableProtectionInput object itself. + */ + public InMageRcmEnableProtectionInput withLinuxLicenseType(LinuxLicenseType linuxLicenseType) { + this.linuxLicenseType = linuxLicenseType; + return this; + } + + /** + * Get the targetVmTags property: The target VM tags. + * + * @return the targetVmTags value. + */ + public List targetVmTags() { + return this.targetVmTags; + } + + /** + * Set the targetVmTags property: The target VM tags. + * + * @param targetVmTags the targetVmTags value to set. + * @return the InMageRcmEnableProtectionInput object itself. + */ + public InMageRcmEnableProtectionInput withTargetVmTags(List targetVmTags) { + this.targetVmTags = targetVmTags; + return this; + } + + /** + * Get the seedManagedDiskTags property: The tags for the seed managed disks. + * + * @return the seedManagedDiskTags value. + */ + public List seedManagedDiskTags() { + return this.seedManagedDiskTags; + } + + /** + * Set the seedManagedDiskTags property: The tags for the seed managed disks. + * + * @param seedManagedDiskTags the seedManagedDiskTags value to set. + * @return the InMageRcmEnableProtectionInput object itself. + */ + public InMageRcmEnableProtectionInput withSeedManagedDiskTags(List seedManagedDiskTags) { + this.seedManagedDiskTags = seedManagedDiskTags; + return this; + } + + /** + * Get the targetManagedDiskTags property: The tags for the target managed disks. + * + * @return the targetManagedDiskTags value. + */ + public List targetManagedDiskTags() { + return this.targetManagedDiskTags; + } + + /** + * Set the targetManagedDiskTags property: The tags for the target managed disks. + * + * @param targetManagedDiskTags the targetManagedDiskTags value to set. + * @return the InMageRcmEnableProtectionInput object itself. + */ + public InMageRcmEnableProtectionInput + withTargetManagedDiskTags(List targetManagedDiskTags) { + this.targetManagedDiskTags = targetManagedDiskTags; + return this; + } + + /** + * Get the targetNicTags property: The tags for the target NICs. + * + * @return the targetNicTags value. + */ + public List targetNicTags() { + return this.targetNicTags; + } + + /** + * Set the targetNicTags property: The tags for the target NICs. + * + * @param targetNicTags the targetNicTags value to set. + * @return the InMageRcmEnableProtectionInput object itself. + */ + public InMageRcmEnableProtectionInput withTargetNicTags(List targetNicTags) { + this.targetNicTags = targetNicTags; + return this; + } + + /** + * Get the userSelectedOSName property: The OS name selected by user. + * + * @return the userSelectedOSName value. + */ + public String userSelectedOSName() { + return this.userSelectedOSName; + } + + /** + * Set the userSelectedOSName property: The OS name selected by user. + * + * @param userSelectedOSName the userSelectedOSName value to set. + * @return the InMageRcmEnableProtectionInput object itself. + */ + public InMageRcmEnableProtectionInput withUserSelectedOSName(String userSelectedOSName) { + this.userSelectedOSName = userSelectedOSName; + return this; + } + + /** + * Get the targetVmSecurityProfile property: The target VM security profile. + * + * @return the targetVmSecurityProfile value. + */ + public SecurityProfileProperties targetVmSecurityProfile() { + return this.targetVmSecurityProfile; + } + + /** + * Set the targetVmSecurityProfile property: The target VM security profile. + * + * @param targetVmSecurityProfile the targetVmSecurityProfile value to set. + * @return the InMageRcmEnableProtectionInput object itself. + */ + public InMageRcmEnableProtectionInput + withTargetVmSecurityProfile(SecurityProfileProperties targetVmSecurityProfile) { + this.targetVmSecurityProfile = targetVmSecurityProfile; + return this; + } + /** * Validates the instance. * @@ -517,6 +719,21 @@ public void validate() { .log(new IllegalArgumentException( "Missing required property processServerId in model InMageRcmEnableProtectionInput")); } + if (targetVmTags() != null) { + targetVmTags().forEach(e -> e.validate()); + } + if (seedManagedDiskTags() != null) { + seedManagedDiskTags().forEach(e -> e.validate()); + } + if (targetManagedDiskTags() != null) { + targetManagedDiskTags().forEach(e -> e.validate()); + } + if (targetNicTags() != null) { + targetNicTags().forEach(e -> e.validate()); + } + if (targetVmSecurityProfile() != null) { + targetVmSecurityProfile().validate(); + } } private static final ClientLogger LOGGER = new ClientLogger(InMageRcmEnableProtectionInput.class); @@ -548,6 +765,18 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { this.targetBootDiagnosticsStorageAccountId); jsonWriter.writeStringField("runAsAccountId", this.runAsAccountId); jsonWriter.writeStringField("multiVmGroupName", this.multiVmGroupName); + jsonWriter.writeStringField("sqlServerLicenseType", + this.sqlServerLicenseType == null ? null : this.sqlServerLicenseType.toString()); + jsonWriter.writeStringField("linuxLicenseType", + this.linuxLicenseType == null ? null : this.linuxLicenseType.toString()); + jsonWriter.writeArrayField("targetVmTags", this.targetVmTags, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeArrayField("seedManagedDiskTags", this.seedManagedDiskTags, + (writer, element) -> writer.writeJson(element)); + jsonWriter.writeArrayField("targetManagedDiskTags", this.targetManagedDiskTags, + (writer, element) -> writer.writeJson(element)); + jsonWriter.writeArrayField("targetNicTags", this.targetNicTags, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("userSelectedOSName", this.userSelectedOSName); + jsonWriter.writeJsonField("targetVmSecurityProfile", this.targetVmSecurityProfile); return jsonWriter.writeEndObject(); } @@ -610,6 +839,33 @@ public static InMageRcmEnableProtectionInput fromJson(JsonReader jsonReader) thr deserializedInMageRcmEnableProtectionInput.runAsAccountId = reader.getString(); } else if ("multiVmGroupName".equals(fieldName)) { deserializedInMageRcmEnableProtectionInput.multiVmGroupName = reader.getString(); + } else if ("sqlServerLicenseType".equals(fieldName)) { + deserializedInMageRcmEnableProtectionInput.sqlServerLicenseType + = SqlServerLicenseType.fromString(reader.getString()); + } else if ("linuxLicenseType".equals(fieldName)) { + deserializedInMageRcmEnableProtectionInput.linuxLicenseType + = LinuxLicenseType.fromString(reader.getString()); + } else if ("targetVmTags".equals(fieldName)) { + List targetVmTags + = reader.readArray(reader1 -> UserCreatedResourceTag.fromJson(reader1)); + deserializedInMageRcmEnableProtectionInput.targetVmTags = targetVmTags; + } else if ("seedManagedDiskTags".equals(fieldName)) { + List seedManagedDiskTags + = reader.readArray(reader1 -> UserCreatedResourceTag.fromJson(reader1)); + deserializedInMageRcmEnableProtectionInput.seedManagedDiskTags = seedManagedDiskTags; + } else if ("targetManagedDiskTags".equals(fieldName)) { + List targetManagedDiskTags + = reader.readArray(reader1 -> UserCreatedResourceTag.fromJson(reader1)); + deserializedInMageRcmEnableProtectionInput.targetManagedDiskTags = targetManagedDiskTags; + } else if ("targetNicTags".equals(fieldName)) { + List targetNicTags + = reader.readArray(reader1 -> UserCreatedResourceTag.fromJson(reader1)); + deserializedInMageRcmEnableProtectionInput.targetNicTags = targetNicTags; + } else if ("userSelectedOSName".equals(fieldName)) { + deserializedInMageRcmEnableProtectionInput.userSelectedOSName = reader.getString(); + } else if ("targetVmSecurityProfile".equals(fieldName)) { + deserializedInMageRcmEnableProtectionInput.targetVmSecurityProfile + = SecurityProfileProperties.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/InMageRcmNicDetails.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/InMageRcmNicDetails.java index 52ea37a31cbe..d82e5b07f933 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/InMageRcmNicDetails.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/InMageRcmNicDetails.java @@ -81,6 +81,11 @@ public final class InMageRcmNicDetails implements JsonSerializable protectedDisks; + /* + * The list of unprotected disks. + */ + private List unprotectedDisks; + /* * A value indicating whether last agent upgrade was successful or not. */ @@ -286,6 +296,46 @@ public final class InMageRcmReplicationDetails extends ReplicationProviderSpecif */ private InMageRcmDiscoveredProtectedVmDetails discoveredVmDetails; + /* + * The target VM tags. + */ + private List targetVmTags; + + /* + * The tags for the seed managed disks. + */ + private List seedManagedDiskTags; + + /* + * The tags for the target managed disks. + */ + private List targetManagedDiskTags; + + /* + * The tags for the target NICs. + */ + private List targetNicTags; + + /* + * The SQL Server license type. + */ + private String sqlServerLicenseType; + + /* + * A value indicating the inplace OS Upgrade version. + */ + private List supportedOSVersions; + + /* + * The OS name associated with VM. + */ + private String osName; + + /* + * The target VM security profile. + */ + private SecurityProfileProperties targetVmSecurityProfile; + /** * Creates an instance of InMageRcmReplicationDetails class. */ @@ -439,6 +489,26 @@ public InMageRcmReplicationDetails withLicenseType(String licenseType) { return this; } + /** + * Get the linuxLicenseType property: The license type for Linux VM's. + * + * @return the linuxLicenseType value. + */ + public LinuxLicenseType linuxLicenseType() { + return this.linuxLicenseType; + } + + /** + * Set the linuxLicenseType property: The license type for Linux VM's. + * + * @param linuxLicenseType the linuxLicenseType value to set. + * @return the InMageRcmReplicationDetails object itself. + */ + public InMageRcmReplicationDetails withLinuxLicenseType(LinuxLicenseType linuxLicenseType) { + this.linuxLicenseType = linuxLicenseType; + return this; + } + /** * Get the storageAccountId property: The replication storage account ARM Id. This is applicable only for the blob * based replication test hook. @@ -847,6 +917,26 @@ public InMageRcmReplicationDetails withProtectedDisks(List unprotectedDisks() { + return this.unprotectedDisks; + } + + /** + * Set the unprotectedDisks property: The list of unprotected disks. + * + * @param unprotectedDisks the unprotectedDisks value to set. + * @return the InMageRcmReplicationDetails object itself. + */ + public InMageRcmReplicationDetails withUnprotectedDisks(List unprotectedDisks) { + this.unprotectedDisks = unprotectedDisks; + return this; + } + /** * Get the isLastUpgradeSuccessful property: A value indicating whether last agent upgrade was successful or not. * @@ -969,6 +1059,166 @@ public InMageRcmDiscoveredProtectedVmDetails discoveredVmDetails() { return this; } + /** + * Get the targetVmTags property: The target VM tags. + * + * @return the targetVmTags value. + */ + public List targetVmTags() { + return this.targetVmTags; + } + + /** + * Set the targetVmTags property: The target VM tags. + * + * @param targetVmTags the targetVmTags value to set. + * @return the InMageRcmReplicationDetails object itself. + */ + public InMageRcmReplicationDetails withTargetVmTags(List targetVmTags) { + this.targetVmTags = targetVmTags; + return this; + } + + /** + * Get the seedManagedDiskTags property: The tags for the seed managed disks. + * + * @return the seedManagedDiskTags value. + */ + public List seedManagedDiskTags() { + return this.seedManagedDiskTags; + } + + /** + * Set the seedManagedDiskTags property: The tags for the seed managed disks. + * + * @param seedManagedDiskTags the seedManagedDiskTags value to set. + * @return the InMageRcmReplicationDetails object itself. + */ + public InMageRcmReplicationDetails withSeedManagedDiskTags(List seedManagedDiskTags) { + this.seedManagedDiskTags = seedManagedDiskTags; + return this; + } + + /** + * Get the targetManagedDiskTags property: The tags for the target managed disks. + * + * @return the targetManagedDiskTags value. + */ + public List targetManagedDiskTags() { + return this.targetManagedDiskTags; + } + + /** + * Set the targetManagedDiskTags property: The tags for the target managed disks. + * + * @param targetManagedDiskTags the targetManagedDiskTags value to set. + * @return the InMageRcmReplicationDetails object itself. + */ + public InMageRcmReplicationDetails withTargetManagedDiskTags(List targetManagedDiskTags) { + this.targetManagedDiskTags = targetManagedDiskTags; + return this; + } + + /** + * Get the targetNicTags property: The tags for the target NICs. + * + * @return the targetNicTags value. + */ + public List targetNicTags() { + return this.targetNicTags; + } + + /** + * Set the targetNicTags property: The tags for the target NICs. + * + * @param targetNicTags the targetNicTags value to set. + * @return the InMageRcmReplicationDetails object itself. + */ + public InMageRcmReplicationDetails withTargetNicTags(List targetNicTags) { + this.targetNicTags = targetNicTags; + return this; + } + + /** + * Get the sqlServerLicenseType property: The SQL Server license type. + * + * @return the sqlServerLicenseType value. + */ + public String sqlServerLicenseType() { + return this.sqlServerLicenseType; + } + + /** + * Set the sqlServerLicenseType property: The SQL Server license type. + * + * @param sqlServerLicenseType the sqlServerLicenseType value to set. + * @return the InMageRcmReplicationDetails object itself. + */ + public InMageRcmReplicationDetails withSqlServerLicenseType(String sqlServerLicenseType) { + this.sqlServerLicenseType = sqlServerLicenseType; + return this; + } + + /** + * Get the supportedOSVersions property: A value indicating the inplace OS Upgrade version. + * + * @return the supportedOSVersions value. + */ + public List supportedOSVersions() { + return this.supportedOSVersions; + } + + /** + * Set the supportedOSVersions property: A value indicating the inplace OS Upgrade version. + * + * @param supportedOSVersions the supportedOSVersions value to set. + * @return the InMageRcmReplicationDetails object itself. + */ + public InMageRcmReplicationDetails withSupportedOSVersions(List supportedOSVersions) { + this.supportedOSVersions = supportedOSVersions; + return this; + } + + /** + * Get the osName property: The OS name associated with VM. + * + * @return the osName value. + */ + public String osName() { + return this.osName; + } + + /** + * Set the osName property: The OS name associated with VM. + * + * @param osName the osName value to set. + * @return the InMageRcmReplicationDetails object itself. + */ + public InMageRcmReplicationDetails withOsName(String osName) { + this.osName = osName; + return this; + } + + /** + * Get the targetVmSecurityProfile property: The target VM security profile. + * + * @return the targetVmSecurityProfile value. + */ + public SecurityProfileProperties targetVmSecurityProfile() { + return this.targetVmSecurityProfile; + } + + /** + * Set the targetVmSecurityProfile property: The target VM security profile. + * + * @param targetVmSecurityProfile the targetVmSecurityProfile value to set. + * @return the InMageRcmReplicationDetails object itself. + */ + public InMageRcmReplicationDetails withTargetVmSecurityProfile(SecurityProfileProperties targetVmSecurityProfile) { + this.targetVmSecurityProfile = targetVmSecurityProfile; + return this; + } + /** * Validates the instance. * @@ -979,6 +1229,9 @@ public void validate() { if (protectedDisks() != null) { protectedDisks().forEach(e -> e.validate()); } + if (unprotectedDisks() != null) { + unprotectedDisks().forEach(e -> e.validate()); + } if (mobilityAgentDetails() != null) { mobilityAgentDetails().validate(); } @@ -994,6 +1247,21 @@ public void validate() { if (discoveredVmDetails() != null) { discoveredVmDetails().validate(); } + if (targetVmTags() != null) { + targetVmTags().forEach(e -> e.validate()); + } + if (seedManagedDiskTags() != null) { + seedManagedDiskTags().forEach(e -> e.validate()); + } + if (targetManagedDiskTags() != null) { + targetManagedDiskTags().forEach(e -> e.validate()); + } + if (targetNicTags() != null) { + targetNicTags().forEach(e -> e.validate()); + } + if (targetVmSecurityProfile() != null) { + targetVmSecurityProfile().validate(); + } } /** @@ -1004,6 +1272,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("instanceType", this.instanceType); jsonWriter.writeStringField("licenseType", this.licenseType); + jsonWriter.writeStringField("linuxLicenseType", + this.linuxLicenseType == null ? null : this.linuxLicenseType.toString()); jsonWriter.writeStringField("targetVmName", this.targetVmName); jsonWriter.writeStringField("targetVmSize", this.targetVmSize); jsonWriter.writeStringField("targetResourceGroupId", this.targetResourceGroupId); @@ -1017,6 +1287,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("testNetworkId", this.testNetworkId); jsonWriter.writeArrayField("protectedDisks", this.protectedDisks, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeArrayField("unprotectedDisks", this.unprotectedDisks, + (writer, element) -> writer.writeJson(element)); jsonWriter.writeJsonField("mobilityAgentDetails", this.mobilityAgentDetails); jsonWriter.writeArrayField("lastAgentUpgradeErrorDetails", this.lastAgentUpgradeErrorDetails, (writer, element) -> writer.writeJson(element)); @@ -1024,6 +1296,17 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { (writer, element) -> writer.writeJson(element)); jsonWriter.writeArrayField("vmNics", this.vmNics, (writer, element) -> writer.writeJson(element)); jsonWriter.writeJsonField("discoveredVmDetails", this.discoveredVmDetails); + jsonWriter.writeArrayField("targetVmTags", this.targetVmTags, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeArrayField("seedManagedDiskTags", this.seedManagedDiskTags, + (writer, element) -> writer.writeJson(element)); + jsonWriter.writeArrayField("targetManagedDiskTags", this.targetManagedDiskTags, + (writer, element) -> writer.writeJson(element)); + jsonWriter.writeArrayField("targetNicTags", this.targetNicTags, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("sqlServerLicenseType", this.sqlServerLicenseType); + jsonWriter.writeArrayField("supportedOSVersions", this.supportedOSVersions, + (writer, element) -> writer.writeString(element)); + jsonWriter.writeStringField("osName", this.osName); + jsonWriter.writeJsonField("targetVmSecurityProfile", this.targetVmSecurityProfile); return jsonWriter.writeEndObject(); } @@ -1073,6 +1356,9 @@ public static InMageRcmReplicationDetails fromJson(JsonReader jsonReader) throws deserializedInMageRcmReplicationDetails.targetGeneration = reader.getString(); } else if ("licenseType".equals(fieldName)) { deserializedInMageRcmReplicationDetails.licenseType = reader.getString(); + } else if ("linuxLicenseType".equals(fieldName)) { + deserializedInMageRcmReplicationDetails.linuxLicenseType + = LinuxLicenseType.fromString(reader.getString()); } else if ("storageAccountId".equals(fieldName)) { deserializedInMageRcmReplicationDetails.storageAccountId = reader.getString(); } else if ("targetVmName".equals(fieldName)) { @@ -1148,6 +1434,10 @@ public static InMageRcmReplicationDetails fromJson(JsonReader jsonReader) throws List protectedDisks = reader.readArray(reader1 -> InMageRcmProtectedDiskDetails.fromJson(reader1)); deserializedInMageRcmReplicationDetails.protectedDisks = protectedDisks; + } else if ("unprotectedDisks".equals(fieldName)) { + List unprotectedDisks + = reader.readArray(reader1 -> InMageRcmUnProtectedDiskDetails.fromJson(reader1)); + deserializedInMageRcmReplicationDetails.unprotectedDisks = unprotectedDisks; } else if ("isLastUpgradeSuccessful".equals(fieldName)) { deserializedInMageRcmReplicationDetails.isLastUpgradeSuccessful = reader.getString(); } else if ("isAgentRegistrationSuccessfulAfterFailover".equals(fieldName)) { @@ -1172,6 +1462,32 @@ public static InMageRcmReplicationDetails fromJson(JsonReader jsonReader) throws } else if ("discoveredVmDetails".equals(fieldName)) { deserializedInMageRcmReplicationDetails.discoveredVmDetails = InMageRcmDiscoveredProtectedVmDetails.fromJson(reader); + } else if ("targetVmTags".equals(fieldName)) { + List targetVmTags + = reader.readArray(reader1 -> UserCreatedResourceTag.fromJson(reader1)); + deserializedInMageRcmReplicationDetails.targetVmTags = targetVmTags; + } else if ("seedManagedDiskTags".equals(fieldName)) { + List seedManagedDiskTags + = reader.readArray(reader1 -> UserCreatedResourceTag.fromJson(reader1)); + deserializedInMageRcmReplicationDetails.seedManagedDiskTags = seedManagedDiskTags; + } else if ("targetManagedDiskTags".equals(fieldName)) { + List targetManagedDiskTags + = reader.readArray(reader1 -> UserCreatedResourceTag.fromJson(reader1)); + deserializedInMageRcmReplicationDetails.targetManagedDiskTags = targetManagedDiskTags; + } else if ("targetNicTags".equals(fieldName)) { + List targetNicTags + = reader.readArray(reader1 -> UserCreatedResourceTag.fromJson(reader1)); + deserializedInMageRcmReplicationDetails.targetNicTags = targetNicTags; + } else if ("sqlServerLicenseType".equals(fieldName)) { + deserializedInMageRcmReplicationDetails.sqlServerLicenseType = reader.getString(); + } else if ("supportedOSVersions".equals(fieldName)) { + List supportedOSVersions = reader.readArray(reader1 -> reader1.getString()); + deserializedInMageRcmReplicationDetails.supportedOSVersions = supportedOSVersions; + } else if ("osName".equals(fieldName)) { + deserializedInMageRcmReplicationDetails.osName = reader.getString(); + } else if ("targetVmSecurityProfile".equals(fieldName)) { + deserializedInMageRcmReplicationDetails.targetVmSecurityProfile + = SecurityProfileProperties.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/InMageRcmTestFailoverInput.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/InMageRcmTestFailoverInput.java index a70d5b3267de..b2fb00193dbe 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/InMageRcmTestFailoverInput.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/InMageRcmTestFailoverInput.java @@ -31,6 +31,11 @@ public final class InMageRcmTestFailoverInput extends TestFailoverProviderSpecif */ private String recoveryPointId; + /* + * A value indicating the inplace OS Upgrade version. + */ + private String osUpgradeVersion; + /** * Creates an instance of InMageRcmTestFailoverInput class. */ @@ -89,6 +94,26 @@ public InMageRcmTestFailoverInput withRecoveryPointId(String recoveryPointId) { return this; } + /** + * Get the osUpgradeVersion property: A value indicating the inplace OS Upgrade version. + * + * @return the osUpgradeVersion value. + */ + public String osUpgradeVersion() { + return this.osUpgradeVersion; + } + + /** + * Set the osUpgradeVersion property: A value indicating the inplace OS Upgrade version. + * + * @param osUpgradeVersion the osUpgradeVersion value to set. + * @return the InMageRcmTestFailoverInput object itself. + */ + public InMageRcmTestFailoverInput withOsUpgradeVersion(String osUpgradeVersion) { + this.osUpgradeVersion = osUpgradeVersion; + return this; + } + /** * Validates the instance. * @@ -107,6 +132,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("instanceType", this.instanceType); jsonWriter.writeStringField("networkId", this.networkId); jsonWriter.writeStringField("recoveryPointId", this.recoveryPointId); + jsonWriter.writeStringField("osUpgradeVersion", this.osUpgradeVersion); return jsonWriter.writeEndObject(); } @@ -131,6 +157,8 @@ public static InMageRcmTestFailoverInput fromJson(JsonReader jsonReader) throws deserializedInMageRcmTestFailoverInput.networkId = reader.getString(); } else if ("recoveryPointId".equals(fieldName)) { deserializedInMageRcmTestFailoverInput.recoveryPointId = reader.getString(); + } else if ("osUpgradeVersion".equals(fieldName)) { + deserializedInMageRcmTestFailoverInput.osUpgradeVersion = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/InMageRcmUnProtectedDiskDetails.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/InMageRcmUnProtectedDiskDetails.java new file mode 100644 index 000000000000..70fd9da5ac27 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/InMageRcmUnProtectedDiskDetails.java @@ -0,0 +1,115 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * InMageRcm un-protected disk details. + */ +@Immutable +public final class InMageRcmUnProtectedDiskDetails implements JsonSerializable { + /* + * The disk Id. + */ + private String diskId; + + /* + * The disk name. + */ + private String diskName; + + /* + * The disk capacity in bytes. + */ + private Long capacityInBytes; + + /** + * Creates an instance of InMageRcmUnProtectedDiskDetails class. + */ + public InMageRcmUnProtectedDiskDetails() { + } + + /** + * Get the diskId property: The disk Id. + * + * @return the diskId value. + */ + public String diskId() { + return this.diskId; + } + + /** + * Get the diskName property: The disk name. + * + * @return the diskName value. + */ + public String diskName() { + return this.diskName; + } + + /** + * Get the capacityInBytes property: The disk capacity in bytes. + * + * @return the capacityInBytes value. + */ + public Long capacityInBytes() { + return this.capacityInBytes; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of InMageRcmUnProtectedDiskDetails from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of InMageRcmUnProtectedDiskDetails if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the InMageRcmUnProtectedDiskDetails. + */ + public static InMageRcmUnProtectedDiskDetails fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + InMageRcmUnProtectedDiskDetails deserializedInMageRcmUnProtectedDiskDetails + = new InMageRcmUnProtectedDiskDetails(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("diskId".equals(fieldName)) { + deserializedInMageRcmUnProtectedDiskDetails.diskId = reader.getString(); + } else if ("diskName".equals(fieldName)) { + deserializedInMageRcmUnProtectedDiskDetails.diskName = reader.getString(); + } else if ("capacityInBytes".equals(fieldName)) { + deserializedInMageRcmUnProtectedDiskDetails.capacityInBytes + = reader.getNullable(JsonReader::getLong); + } else { + reader.skipChildren(); + } + } + + return deserializedInMageRcmUnProtectedDiskDetails; + }); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/InMageRcmUnplannedFailoverInput.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/InMageRcmUnplannedFailoverInput.java index 51536b9e08f8..21d70817e34f 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/InMageRcmUnplannedFailoverInput.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/InMageRcmUnplannedFailoverInput.java @@ -32,6 +32,11 @@ public final class InMageRcmUnplannedFailoverInput extends UnplannedFailoverProv */ private String recoveryPointId; + /* + * A value indicating the inplace OS Upgrade version. + */ + private String osUpgradeVersion; + /** * Creates an instance of InMageRcmUnplannedFailoverInput class. */ @@ -90,6 +95,26 @@ public InMageRcmUnplannedFailoverInput withRecoveryPointId(String recoveryPointI return this; } + /** + * Get the osUpgradeVersion property: A value indicating the inplace OS Upgrade version. + * + * @return the osUpgradeVersion value. + */ + public String osUpgradeVersion() { + return this.osUpgradeVersion; + } + + /** + * Set the osUpgradeVersion property: A value indicating the inplace OS Upgrade version. + * + * @param osUpgradeVersion the osUpgradeVersion value to set. + * @return the InMageRcmUnplannedFailoverInput object itself. + */ + public InMageRcmUnplannedFailoverInput withOsUpgradeVersion(String osUpgradeVersion) { + this.osUpgradeVersion = osUpgradeVersion; + return this; + } + /** * Validates the instance. * @@ -115,6 +140,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("performShutdown", this.performShutdown); jsonWriter.writeStringField("instanceType", this.instanceType); jsonWriter.writeStringField("recoveryPointId", this.recoveryPointId); + jsonWriter.writeStringField("osUpgradeVersion", this.osUpgradeVersion); return jsonWriter.writeEndObject(); } @@ -141,6 +167,8 @@ public static InMageRcmUnplannedFailoverInput fromJson(JsonReader jsonReader) th deserializedInMageRcmUnplannedFailoverInput.instanceType = reader.getString(); } else if ("recoveryPointId".equals(fieldName)) { deserializedInMageRcmUnplannedFailoverInput.recoveryPointId = reader.getString(); + } else if ("osUpgradeVersion".equals(fieldName)) { + deserializedInMageRcmUnplannedFailoverInput.osUpgradeVersion = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/InMageRcmUpdateReplicationProtectedItemInput.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/InMageRcmUpdateReplicationProtectedItemInput.java index 603c3e37c646..b5beb66974ce 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/InMageRcmUpdateReplicationProtectedItemInput.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/InMageRcmUpdateReplicationProtectedItemInput.java @@ -76,6 +76,36 @@ public final class InMageRcmUpdateReplicationProtectedItemInput extends UpdateRe */ private LicenseType licenseType; + /* + * The SQL Server license type. + */ + private SqlServerLicenseType sqlServerLicenseType; + + /* + * The license type for Linux VM's. + */ + private LinuxLicenseType linuxLicenseType; + + /* + * The OS name selected by user. + */ + private String userSelectedOSName; + + /* + * The target VM tags. + */ + private List targetVmTags; + + /* + * The tags for the target managed disks. + */ + private List targetManagedDiskTags; + + /* + * The tags for the target NICs. + */ + private List targetNicTags; + /** * Creates an instance of InMageRcmUpdateReplicationProtectedItemInput class. */ @@ -314,6 +344,128 @@ public InMageRcmUpdateReplicationProtectedItemInput withLicenseType(LicenseType return this; } + /** + * Get the sqlServerLicenseType property: The SQL Server license type. + * + * @return the sqlServerLicenseType value. + */ + public SqlServerLicenseType sqlServerLicenseType() { + return this.sqlServerLicenseType; + } + + /** + * Set the sqlServerLicenseType property: The SQL Server license type. + * + * @param sqlServerLicenseType the sqlServerLicenseType value to set. + * @return the InMageRcmUpdateReplicationProtectedItemInput object itself. + */ + public InMageRcmUpdateReplicationProtectedItemInput + withSqlServerLicenseType(SqlServerLicenseType sqlServerLicenseType) { + this.sqlServerLicenseType = sqlServerLicenseType; + return this; + } + + /** + * Get the linuxLicenseType property: The license type for Linux VM's. + * + * @return the linuxLicenseType value. + */ + public LinuxLicenseType linuxLicenseType() { + return this.linuxLicenseType; + } + + /** + * Set the linuxLicenseType property: The license type for Linux VM's. + * + * @param linuxLicenseType the linuxLicenseType value to set. + * @return the InMageRcmUpdateReplicationProtectedItemInput object itself. + */ + public InMageRcmUpdateReplicationProtectedItemInput withLinuxLicenseType(LinuxLicenseType linuxLicenseType) { + this.linuxLicenseType = linuxLicenseType; + return this; + } + + /** + * Get the userSelectedOSName property: The OS name selected by user. + * + * @return the userSelectedOSName value. + */ + public String userSelectedOSName() { + return this.userSelectedOSName; + } + + /** + * Set the userSelectedOSName property: The OS name selected by user. + * + * @param userSelectedOSName the userSelectedOSName value to set. + * @return the InMageRcmUpdateReplicationProtectedItemInput object itself. + */ + public InMageRcmUpdateReplicationProtectedItemInput withUserSelectedOSName(String userSelectedOSName) { + this.userSelectedOSName = userSelectedOSName; + return this; + } + + /** + * Get the targetVmTags property: The target VM tags. + * + * @return the targetVmTags value. + */ + public List targetVmTags() { + return this.targetVmTags; + } + + /** + * Set the targetVmTags property: The target VM tags. + * + * @param targetVmTags the targetVmTags value to set. + * @return the InMageRcmUpdateReplicationProtectedItemInput object itself. + */ + public InMageRcmUpdateReplicationProtectedItemInput withTargetVmTags(List targetVmTags) { + this.targetVmTags = targetVmTags; + return this; + } + + /** + * Get the targetManagedDiskTags property: The tags for the target managed disks. + * + * @return the targetManagedDiskTags value. + */ + public List targetManagedDiskTags() { + return this.targetManagedDiskTags; + } + + /** + * Set the targetManagedDiskTags property: The tags for the target managed disks. + * + * @param targetManagedDiskTags the targetManagedDiskTags value to set. + * @return the InMageRcmUpdateReplicationProtectedItemInput object itself. + */ + public InMageRcmUpdateReplicationProtectedItemInput + withTargetManagedDiskTags(List targetManagedDiskTags) { + this.targetManagedDiskTags = targetManagedDiskTags; + return this; + } + + /** + * Get the targetNicTags property: The tags for the target NICs. + * + * @return the targetNicTags value. + */ + public List targetNicTags() { + return this.targetNicTags; + } + + /** + * Set the targetNicTags property: The tags for the target NICs. + * + * @param targetNicTags the targetNicTags value to set. + * @return the InMageRcmUpdateReplicationProtectedItemInput object itself. + */ + public InMageRcmUpdateReplicationProtectedItemInput withTargetNicTags(List targetNicTags) { + this.targetNicTags = targetNicTags; + return this; + } + /** * Validates the instance. * @@ -324,6 +476,15 @@ public void validate() { if (vmNics() != null) { vmNics().forEach(e -> e.validate()); } + if (targetVmTags() != null) { + targetVmTags().forEach(e -> e.validate()); + } + if (targetManagedDiskTags() != null) { + targetManagedDiskTags().forEach(e -> e.validate()); + } + if (targetNicTags() != null) { + targetNicTags().forEach(e -> e.validate()); + } } /** @@ -345,6 +506,15 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("testNetworkId", this.testNetworkId); jsonWriter.writeArrayField("vmNics", this.vmNics, (writer, element) -> writer.writeJson(element)); jsonWriter.writeStringField("licenseType", this.licenseType == null ? null : this.licenseType.toString()); + jsonWriter.writeStringField("sqlServerLicenseType", + this.sqlServerLicenseType == null ? null : this.sqlServerLicenseType.toString()); + jsonWriter.writeStringField("linuxLicenseType", + this.linuxLicenseType == null ? null : this.linuxLicenseType.toString()); + jsonWriter.writeStringField("userSelectedOSName", this.userSelectedOSName); + jsonWriter.writeArrayField("targetVmTags", this.targetVmTags, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeArrayField("targetManagedDiskTags", this.targetManagedDiskTags, + (writer, element) -> writer.writeJson(element)); + jsonWriter.writeArrayField("targetNicTags", this.targetNicTags, (writer, element) -> writer.writeJson(element)); return jsonWriter.writeEndObject(); } @@ -394,6 +564,27 @@ public static InMageRcmUpdateReplicationProtectedItemInput fromJson(JsonReader j } else if ("licenseType".equals(fieldName)) { deserializedInMageRcmUpdateReplicationProtectedItemInput.licenseType = LicenseType.fromString(reader.getString()); + } else if ("sqlServerLicenseType".equals(fieldName)) { + deserializedInMageRcmUpdateReplicationProtectedItemInput.sqlServerLicenseType + = SqlServerLicenseType.fromString(reader.getString()); + } else if ("linuxLicenseType".equals(fieldName)) { + deserializedInMageRcmUpdateReplicationProtectedItemInput.linuxLicenseType + = LinuxLicenseType.fromString(reader.getString()); + } else if ("userSelectedOSName".equals(fieldName)) { + deserializedInMageRcmUpdateReplicationProtectedItemInput.userSelectedOSName = reader.getString(); + } else if ("targetVmTags".equals(fieldName)) { + List targetVmTags + = reader.readArray(reader1 -> UserCreatedResourceTag.fromJson(reader1)); + deserializedInMageRcmUpdateReplicationProtectedItemInput.targetVmTags = targetVmTags; + } else if ("targetManagedDiskTags".equals(fieldName)) { + List targetManagedDiskTags + = reader.readArray(reader1 -> UserCreatedResourceTag.fromJson(reader1)); + deserializedInMageRcmUpdateReplicationProtectedItemInput.targetManagedDiskTags + = targetManagedDiskTags; + } else if ("targetNicTags".equals(fieldName)) { + List targetNicTags + = reader.readArray(reader1 -> UserCreatedResourceTag.fromJson(reader1)); + deserializedInMageRcmUpdateReplicationProtectedItemInput.targetNicTags = targetNicTags; } else { reader.skipChildren(); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/JobDetails.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/JobDetails.java index 4df01f39f47c..21b1b30480b0 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/JobDetails.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/JobDetails.java @@ -111,6 +111,12 @@ public static JobDetails fromJson(JsonReader jsonReader) throws IOException { // Use the discriminator value to determine which subtype should be deserialized. if ("AsrJobDetails".equals(discriminatorValue)) { return AsrJobDetails.fromJson(readerToUse.reset()); + } else if ("ClusterFailoverJobDetails".equals(discriminatorValue)) { + return ClusterFailoverJobDetails.fromJson(readerToUse.reset()); + } else if ("ClusterSwitchProtectionJobDetails".equals(discriminatorValue)) { + return ClusterSwitchProtectionJobDetails.fromJson(readerToUse.reset()); + } else if ("ClusterTestFailoverJobDetails".equals(discriminatorValue)) { + return ClusterTestFailoverJobDetails.fromJson(readerToUse.reset()); } else if ("ExportJobDetails".equals(discriminatorValue)) { return ExportJobDetails.fromJson(readerToUse.reset()); } else if ("FailoverJobDetails".equals(discriminatorValue)) { diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/LinuxLicenseType.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/LinuxLicenseType.java new file mode 100644 index 000000000000..95ec449a3964 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/LinuxLicenseType.java @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The license type for Linux VM's. + */ +public final class LinuxLicenseType extends ExpandableStringEnum { + /** + * Static value NotSpecified for LinuxLicenseType. + */ + public static final LinuxLicenseType NOT_SPECIFIED = fromString("NotSpecified"); + + /** + * Static value NoLicenseType for LinuxLicenseType. + */ + public static final LinuxLicenseType NO_LICENSE_TYPE = fromString("NoLicenseType"); + + /** + * Static value LinuxServer for LinuxLicenseType. + */ + public static final LinuxLicenseType LINUX_SERVER = fromString("LinuxServer"); + + /** + * Creates a new instance of LinuxLicenseType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public LinuxLicenseType() { + } + + /** + * Creates or finds a LinuxLicenseType from its string representation. + * + * @param name a name to look for. + * @return the corresponding LinuxLicenseType. + */ + public static LinuxLicenseType fromString(String name) { + return fromString(name, LinuxLicenseType.class); + } + + /** + * Gets known LinuxLicenseType values. + * + * @return known LinuxLicenseType values. + */ + public static Collection values() { + return values(LinuxLicenseType.class); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ManagedRunCommandScriptInput.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ManagedRunCommandScriptInput.java new file mode 100644 index 000000000000..98a850fb8f71 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ManagedRunCommandScriptInput.java @@ -0,0 +1,168 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Managed RunCommand script input. + */ +@Fluent +public final class ManagedRunCommandScriptInput implements JsonSerializable { + /* + * The step name. + */ + private String stepName; + + /* + * The script url. + */ + private String scriptUrl; + + /* + * The script parameters. + */ + private String scriptParameters; + + /** + * Creates an instance of ManagedRunCommandScriptInput class. + */ + public ManagedRunCommandScriptInput() { + } + + /** + * Get the stepName property: The step name. + * + * @return the stepName value. + */ + public String stepName() { + return this.stepName; + } + + /** + * Set the stepName property: The step name. + * + * @param stepName the stepName value to set. + * @return the ManagedRunCommandScriptInput object itself. + */ + public ManagedRunCommandScriptInput withStepName(String stepName) { + this.stepName = stepName; + return this; + } + + /** + * Get the scriptUrl property: The script url. + * + * @return the scriptUrl value. + */ + public String scriptUrl() { + return this.scriptUrl; + } + + /** + * Set the scriptUrl property: The script url. + * + * @param scriptUrl the scriptUrl value to set. + * @return the ManagedRunCommandScriptInput object itself. + */ + public ManagedRunCommandScriptInput withScriptUrl(String scriptUrl) { + this.scriptUrl = scriptUrl; + return this; + } + + /** + * Get the scriptParameters property: The script parameters. + * + * @return the scriptParameters value. + */ + public String scriptParameters() { + return this.scriptParameters; + } + + /** + * Set the scriptParameters property: The script parameters. + * + * @param scriptParameters the scriptParameters value to set. + * @return the ManagedRunCommandScriptInput object itself. + */ + public ManagedRunCommandScriptInput withScriptParameters(String scriptParameters) { + this.scriptParameters = scriptParameters; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (stepName() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property stepName in model ManagedRunCommandScriptInput")); + } + if (scriptUrl() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property scriptUrl in model ManagedRunCommandScriptInput")); + } + if (scriptParameters() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property scriptParameters in model ManagedRunCommandScriptInput")); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(ManagedRunCommandScriptInput.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("stepName", this.stepName); + jsonWriter.writeStringField("scriptUrl", this.scriptUrl); + jsonWriter.writeStringField("scriptParameters", this.scriptParameters); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ManagedRunCommandScriptInput from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ManagedRunCommandScriptInput if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the ManagedRunCommandScriptInput. + */ + public static ManagedRunCommandScriptInput fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ManagedRunCommandScriptInput deserializedManagedRunCommandScriptInput = new ManagedRunCommandScriptInput(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("stepName".equals(fieldName)) { + deserializedManagedRunCommandScriptInput.stepName = reader.getString(); + } else if ("scriptUrl".equals(fieldName)) { + deserializedManagedRunCommandScriptInput.scriptUrl = reader.getString(); + } else if ("scriptParameters".equals(fieldName)) { + deserializedManagedRunCommandScriptInput.scriptParameters = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedManagedRunCommandScriptInput; + }); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/MigrationItem.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/MigrationItem.java index 3de8085df97f..3e8870cd2db6 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/MigrationItem.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/MigrationItem.java @@ -97,15 +97,15 @@ interface Blank extends WithParentResource { */ interface WithParentResource { /** - * Specifies resourceName, resourceGroupName, fabricName, protectionContainerName. + * Specifies resourceGroupName, resourceName, fabricName, protectionContainerName. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @return the next definition stage. */ - WithProperties withExistingReplicationProtectionContainer(String resourceName, String resourceGroupName, + WithProperties withExistingReplicationProtectionContainer(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/MigrationRecoveryPoints.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/MigrationRecoveryPoints.java index 7e82c618c9fe..d4737b155aa5 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/MigrationRecoveryPoints.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/MigrationRecoveryPoints.java @@ -15,8 +15,8 @@ public interface MigrationRecoveryPoints { /** * Gets the recovery points for a migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric unique name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -25,14 +25,14 @@ public interface MigrationRecoveryPoints { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the recovery points for a migration item as paginated response with {@link PagedIterable}. */ - PagedIterable listByReplicationMigrationItems(String resourceName, String resourceGroupName, + PagedIterable listByReplicationMigrationItems(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName); /** * Gets the recovery points for a migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric unique name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -42,14 +42,14 @@ PagedIterable listByReplicationMigrationItems(String res * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the recovery points for a migration item as paginated response with {@link PagedIterable}. */ - PagedIterable listByReplicationMigrationItems(String resourceName, String resourceGroupName, + PagedIterable listByReplicationMigrationItems(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, Context context); /** * Gets a recovery point for a migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric unique name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -60,14 +60,14 @@ PagedIterable listByReplicationMigrationItems(String res * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a recovery point for a migration item along with {@link Response}. */ - Response getWithResponse(String resourceName, String resourceGroupName, String fabricName, + Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, String migrationRecoveryPointName, Context context); /** * Gets a recovery point for a migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric unique name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -77,6 +77,6 @@ Response getWithResponse(String resourceName, String res * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a recovery point for a migration item. */ - MigrationRecoveryPoint get(String resourceName, String resourceGroupName, String fabricName, + MigrationRecoveryPoint get(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, String migrationRecoveryPointName); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/NetworkMapping.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/NetworkMapping.java index a38333bc6927..de87fb4ca278 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/NetworkMapping.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/NetworkMapping.java @@ -97,15 +97,15 @@ interface Blank extends WithParentResource { */ interface WithParentResource { /** - * Specifies resourceName, resourceGroupName, fabricName, networkName. + * Specifies resourceGroupName, resourceName, fabricName, networkName. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @return the next definition stage. */ - WithProperties withExistingReplicationNetwork(String resourceName, String resourceGroupName, + WithProperties withExistingReplicationNetwork(String resourceGroupName, String resourceName, String fabricName, String networkName); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/OSDetails.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/OSDetails.java index a859e5eeb62a..fa98537c2b9f 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/OSDetails.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/OSDetails.java @@ -46,6 +46,11 @@ public final class OSDetails implements JsonSerializable { */ private String oSMinorVersion; + /* + * The OS name selected by user. + */ + private String userSelectedOSName; + /** * Creates an instance of OSDetails class. */ @@ -172,6 +177,26 @@ public OSDetails withOSMinorVersion(String oSMinorVersion) { return this; } + /** + * Get the userSelectedOSName property: The OS name selected by user. + * + * @return the userSelectedOSName value. + */ + public String userSelectedOSName() { + return this.userSelectedOSName; + } + + /** + * Set the userSelectedOSName property: The OS name selected by user. + * + * @param userSelectedOSName the userSelectedOSName value to set. + * @return the OSDetails object itself. + */ + public OSDetails withUserSelectedOSName(String userSelectedOSName) { + this.userSelectedOSName = userSelectedOSName; + return this; + } + /** * Validates the instance. * @@ -192,6 +217,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("oSVersion", this.oSVersion); jsonWriter.writeStringField("oSMajorVersion", this.oSMajorVersion); jsonWriter.writeStringField("oSMinorVersion", this.oSMinorVersion); + jsonWriter.writeStringField("userSelectedOSName", this.userSelectedOSName); return jsonWriter.writeEndObject(); } @@ -222,6 +248,8 @@ public static OSDetails fromJson(JsonReader jsonReader) throws IOException { deserializedOSDetails.oSMajorVersion = reader.getString(); } else if ("oSMinorVersion".equals(fieldName)) { deserializedOSDetails.oSMinorVersion = reader.getString(); + } else if ("userSelectedOSName".equals(fieldName)) { + deserializedOSDetails.userSelectedOSName = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/Policy.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/Policy.java index f4577ad2eb8b..1afd9a9ecb44 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/Policy.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/Policy.java @@ -97,13 +97,13 @@ interface Blank extends WithParentResource { */ interface WithParentResource { /** - * Specifies resourceName, resourceGroupName. + * Specifies resourceGroupName, resourceName. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @return the next definition stage. */ - WithCreate withExistingVault(String resourceName, String resourceGroupName); + WithCreate withExistingVault(String resourceGroupName, String resourceName); } /** diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ProtectionContainer.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ProtectionContainer.java index 68a50c00825b..0737957ef17b 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ProtectionContainer.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ProtectionContainer.java @@ -91,14 +91,14 @@ interface Blank extends WithParentResource { */ interface WithParentResource { /** - * Specifies resourceName, resourceGroupName, fabricName. + * Specifies resourceGroupName, resourceName, fabricName. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric ARM name. * @return the next definition stage. */ - WithCreate withExistingReplicationFabric(String resourceName, String resourceGroupName, String fabricName); + WithCreate withExistingReplicationFabric(String resourceGroupName, String resourceName, String fabricName); } /** @@ -201,6 +201,33 @@ ProtectionContainer discoverProtectableItem(DiscoverProtectableItemRequest disco */ void delete(Context context); + /** + * Switches protection from one container to another. + * + * Operation to switch protection from one container to another. + * + * @param switchInput Switch protection input. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return protection container details. + */ + ProtectionContainer switchClusterProtection(SwitchClusterProtectionInput switchInput); + + /** + * Switches protection from one container to another. + * + * Operation to switch protection from one container to another. + * + * @param switchInput Switch protection input. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return protection container details. + */ + ProtectionContainer switchClusterProtection(SwitchClusterProtectionInput switchInput, Context context); + /** * Switches protection from one container to another or one replication provider to another. * diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ProtectionContainerMapping.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ProtectionContainerMapping.java index da54b2fd7ff5..67fed39ce2db 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ProtectionContainerMapping.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ProtectionContainerMapping.java @@ -98,15 +98,15 @@ interface Blank extends WithParentResource { */ interface WithParentResource { /** - * Specifies resourceName, resourceGroupName, fabricName, protectionContainerName. + * Specifies resourceGroupName, resourceName, fabricName, protectionContainerName. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @return the next definition stage. */ - WithCreate withExistingReplicationProtectionContainer(String resourceName, String resourceGroupName, + WithCreate withExistingReplicationProtectionContainer(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/RecoveryPlan.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/RecoveryPlan.java index 15fe596a8a64..a76aa22e0592 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/RecoveryPlan.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/RecoveryPlan.java @@ -97,13 +97,13 @@ interface Blank extends WithParentResource { */ interface WithParentResource { /** - * Specifies resourceName, resourceGroupName. + * Specifies resourceGroupName, resourceName. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @return the next definition stage. */ - WithProperties withExistingVault(String resourceName, String resourceGroupName); + WithProperties withExistingVault(String resourceGroupName, String resourceName); } /** @@ -279,7 +279,8 @@ interface WithProperties { /** * Execute reprotect of the recovery plan. * - * The operation to reprotect(reverse replicate) a recovery plan. + * The operation to reprotect(reverse replicate) a recovery plan. This api is for deprecated scenarios and no longer + * works. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -290,7 +291,8 @@ interface WithProperties { /** * Execute reprotect of the recovery plan. * - * The operation to reprotect(reverse replicate) a recovery plan. + * The operation to reprotect(reverse replicate) a recovery plan. This api is for deprecated scenarios and no longer + * works. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/RecoveryPoints.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/RecoveryPoints.java index 3c949a1aef99..49d49bf2f44a 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/RecoveryPoints.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/RecoveryPoints.java @@ -17,8 +17,8 @@ public interface RecoveryPoints { * * Lists the available recovery points for a replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The fabric name. * @param protectionContainerName The protection container name. * @param replicatedProtectedItemName The replication protected item name. @@ -27,7 +27,7 @@ public interface RecoveryPoints { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return collection of recovery point details as paginated response with {@link PagedIterable}. */ - PagedIterable listByReplicationProtectedItems(String resourceName, String resourceGroupName, + PagedIterable listByReplicationProtectedItems(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName); /** @@ -35,8 +35,8 @@ PagedIterable listByReplicationProtectedItems(String resourceName * * Lists the available recovery points for a replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The fabric name. * @param protectionContainerName The protection container name. * @param replicatedProtectedItemName The replication protected item name. @@ -46,7 +46,7 @@ PagedIterable listByReplicationProtectedItems(String resourceName * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return collection of recovery point details as paginated response with {@link PagedIterable}. */ - PagedIterable listByReplicationProtectedItems(String resourceName, String resourceGroupName, + PagedIterable listByReplicationProtectedItems(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context); /** @@ -54,8 +54,8 @@ PagedIterable listByReplicationProtectedItems(String resourceName * * Get the details of specified recovery point. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The fabric name. * @param protectionContainerName The protection container name. * @param replicatedProtectedItemName The replication protected item name. @@ -66,7 +66,7 @@ PagedIterable listByReplicationProtectedItems(String resourceName * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the details of specified recovery point along with {@link Response}. */ - Response getWithResponse(String resourceName, String resourceGroupName, String fabricName, + Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, String recoveryPointName, Context context); /** @@ -74,8 +74,8 @@ Response getWithResponse(String resourceName, String resourceGrou * * Get the details of specified recovery point. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The fabric name. * @param protectionContainerName The protection container name. * @param replicatedProtectedItemName The replication protected item name. @@ -85,6 +85,6 @@ Response getWithResponse(String resourceName, String resourceGrou * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the details of specified recovery point. */ - RecoveryPoint get(String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + RecoveryPoint get(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, String recoveryPointName); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/RecoveryServicesProvider.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/RecoveryServicesProvider.java index ef2beab8d9f8..c0361a97087f 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/RecoveryServicesProvider.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/RecoveryServicesProvider.java @@ -91,14 +91,14 @@ interface Blank extends WithParentResource { */ interface WithParentResource { /** - * Specifies resourceName, resourceGroupName, fabricName. + * Specifies resourceGroupName, resourceName, fabricName. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @return the next definition stage. */ - WithProperties withExistingReplicationFabric(String resourceName, String resourceGroupName, + WithProperties withExistingReplicationFabric(String resourceGroupName, String resourceName, String fabricName); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/RegisteredClusterNodes.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/RegisteredClusterNodes.java new file mode 100644 index 000000000000..7a26d1ac0b02 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/RegisteredClusterNodes.java @@ -0,0 +1,180 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Extended location of the resource. + */ +@Fluent +public final class RegisteredClusterNodes implements JsonSerializable { + /* + * The cluster node name. + */ + private String clusterNodeFqdn; + + /* + * The machine ID. + */ + private String machineId; + + /* + * The BIOS ID. + */ + private String biosId; + + /* + * A value indicating whether this represents virtual entity hosting all the shared disks. + */ + private Boolean isSharedDiskVirtualNode; + + /** + * Creates an instance of RegisteredClusterNodes class. + */ + public RegisteredClusterNodes() { + } + + /** + * Get the clusterNodeFqdn property: The cluster node name. + * + * @return the clusterNodeFqdn value. + */ + public String clusterNodeFqdn() { + return this.clusterNodeFqdn; + } + + /** + * Set the clusterNodeFqdn property: The cluster node name. + * + * @param clusterNodeFqdn the clusterNodeFqdn value to set. + * @return the RegisteredClusterNodes object itself. + */ + public RegisteredClusterNodes withClusterNodeFqdn(String clusterNodeFqdn) { + this.clusterNodeFqdn = clusterNodeFqdn; + return this; + } + + /** + * Get the machineId property: The machine ID. + * + * @return the machineId value. + */ + public String machineId() { + return this.machineId; + } + + /** + * Set the machineId property: The machine ID. + * + * @param machineId the machineId value to set. + * @return the RegisteredClusterNodes object itself. + */ + public RegisteredClusterNodes withMachineId(String machineId) { + this.machineId = machineId; + return this; + } + + /** + * Get the biosId property: The BIOS ID. + * + * @return the biosId value. + */ + public String biosId() { + return this.biosId; + } + + /** + * Set the biosId property: The BIOS ID. + * + * @param biosId the biosId value to set. + * @return the RegisteredClusterNodes object itself. + */ + public RegisteredClusterNodes withBiosId(String biosId) { + this.biosId = biosId; + return this; + } + + /** + * Get the isSharedDiskVirtualNode property: A value indicating whether this represents virtual entity hosting all + * the shared disks. + * + * @return the isSharedDiskVirtualNode value. + */ + public Boolean isSharedDiskVirtualNode() { + return this.isSharedDiskVirtualNode; + } + + /** + * Set the isSharedDiskVirtualNode property: A value indicating whether this represents virtual entity hosting all + * the shared disks. + * + * @param isSharedDiskVirtualNode the isSharedDiskVirtualNode value to set. + * @return the RegisteredClusterNodes object itself. + */ + public RegisteredClusterNodes withIsSharedDiskVirtualNode(Boolean isSharedDiskVirtualNode) { + this.isSharedDiskVirtualNode = isSharedDiskVirtualNode; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("clusterNodeFqdn", this.clusterNodeFqdn); + jsonWriter.writeStringField("machineId", this.machineId); + jsonWriter.writeStringField("biosId", this.biosId); + jsonWriter.writeBooleanField("isSharedDiskVirtualNode", this.isSharedDiskVirtualNode); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of RegisteredClusterNodes from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of RegisteredClusterNodes if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the RegisteredClusterNodes. + */ + public static RegisteredClusterNodes fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + RegisteredClusterNodes deserializedRegisteredClusterNodes = new RegisteredClusterNodes(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("clusterNodeFqdn".equals(fieldName)) { + deserializedRegisteredClusterNodes.clusterNodeFqdn = reader.getString(); + } else if ("machineId".equals(fieldName)) { + deserializedRegisteredClusterNodes.machineId = reader.getString(); + } else if ("biosId".equals(fieldName)) { + deserializedRegisteredClusterNodes.biosId = reader.getString(); + } else if ("isSharedDiskVirtualNode".equals(fieldName)) { + deserializedRegisteredClusterNodes.isSharedDiskVirtualNode + = reader.getNullable(JsonReader::getBoolean); + } else { + reader.skipChildren(); + } + } + + return deserializedRegisteredClusterNodes; + }); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationAlertSettings.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationAlertSettings.java index f24915f5fd22..e2f07fda9cc8 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationAlertSettings.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationAlertSettings.java @@ -17,23 +17,23 @@ public interface ReplicationAlertSettings { * * Gets the list of email notification(alert) configurations for the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of email notification(alert) configurations for the vault as paginated response with * {@link PagedIterable}. */ - PagedIterable list(String resourceName, String resourceGroupName); + PagedIterable list(String resourceGroupName, String resourceName); /** * Gets the list of configured email notification(alert) configurations. * * Gets the list of email notification(alert) configurations for the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -41,15 +41,15 @@ public interface ReplicationAlertSettings { * @return the list of email notification(alert) configurations for the vault as paginated response with * {@link PagedIterable}. */ - PagedIterable list(String resourceName, String resourceGroupName, Context context); + PagedIterable list(String resourceGroupName, String resourceName, Context context); /** * Gets an email notification(alert) configuration. * * Gets the details of the specified email notification(alert) configuration. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param alertSettingName The name of the email notification configuration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -57,7 +57,7 @@ public interface ReplicationAlertSettings { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the details of the specified email notification(alert) configuration along with {@link Response}. */ - Response getWithResponse(String resourceName, String resourceGroupName, String alertSettingName, + Response getWithResponse(String resourceGroupName, String resourceName, String alertSettingName, Context context); /** @@ -65,15 +65,15 @@ Response getWithResponse(String resourceName, String resourceGroupName, S * * Gets the details of the specified email notification(alert) configuration. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param alertSettingName The name of the email notification configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the details of the specified email notification(alert) configuration. */ - Alert get(String resourceName, String resourceGroupName, String alertSettingName); + Alert get(String resourceGroupName, String resourceName, String alertSettingName); /** * Gets an email notification(alert) configuration. diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationAppliances.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationAppliances.java index 020d2a42457b..f21d1bc6d6eb 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationAppliances.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationAppliances.java @@ -16,23 +16,23 @@ public interface ReplicationAppliances { * * Gets the list of Azure Site Recovery appliances for the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of Azure Site Recovery appliances for the vault as paginated response with * {@link PagedIterable}. */ - PagedIterable list(String resourceName, String resourceGroupName); + PagedIterable list(String resourceGroupName, String resourceName); /** * Gets the list of appliances. * * Gets the list of Azure Site Recovery appliances for the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param filter OData filter options. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -41,6 +41,6 @@ public interface ReplicationAppliances { * @return the list of Azure Site Recovery appliances for the vault as paginated response with * {@link PagedIterable}. */ - PagedIterable list(String resourceName, String resourceGroupName, String filter, + PagedIterable list(String resourceGroupName, String resourceName, String filter, Context context); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationClusterProviderSpecificSettings.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationClusterProviderSpecificSettings.java new file mode 100644 index 000000000000..76e5d71a678c --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationClusterProviderSpecificSettings.java @@ -0,0 +1,110 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Replication cluster provider specific settings. + */ +@Immutable +public class ReplicationClusterProviderSpecificSettings + implements JsonSerializable { + /* + * Gets the Instance type. + */ + private String instanceType = "ReplicationClusterProviderSpecificSettings"; + + /** + * Creates an instance of ReplicationClusterProviderSpecificSettings class. + */ + public ReplicationClusterProviderSpecificSettings() { + } + + /** + * Get the instanceType property: Gets the Instance type. + * + * @return the instanceType value. + */ + public String instanceType() { + return this.instanceType; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("instanceType", this.instanceType); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ReplicationClusterProviderSpecificSettings from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ReplicationClusterProviderSpecificSettings if the JsonReader was pointing to an instance + * of it, or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ReplicationClusterProviderSpecificSettings. + */ + public static ReplicationClusterProviderSpecificSettings fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + String discriminatorValue = null; + try (JsonReader readerToUse = reader.bufferObject()) { + readerToUse.nextToken(); // Prepare for reading + while (readerToUse.nextToken() != JsonToken.END_OBJECT) { + String fieldName = readerToUse.getFieldName(); + readerToUse.nextToken(); + if ("instanceType".equals(fieldName)) { + discriminatorValue = readerToUse.getString(); + break; + } else { + readerToUse.skipChildren(); + } + } + // Use the discriminator value to determine which subtype should be deserialized. + if ("A2A".equals(discriminatorValue)) { + return A2AReplicationProtectionClusterDetails.fromJson(readerToUse.reset()); + } else { + return fromJsonKnownDiscriminator(readerToUse.reset()); + } + } + }); + } + + static ReplicationClusterProviderSpecificSettings fromJsonKnownDiscriminator(JsonReader jsonReader) + throws IOException { + return jsonReader.readObject(reader -> { + ReplicationClusterProviderSpecificSettings deserializedReplicationClusterProviderSpecificSettings + = new ReplicationClusterProviderSpecificSettings(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("instanceType".equals(fieldName)) { + deserializedReplicationClusterProviderSpecificSettings.instanceType = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedReplicationClusterProviderSpecificSettings; + }); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationEvents.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationEvents.java index 469577f95270..a7450d106fa0 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationEvents.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationEvents.java @@ -17,22 +17,22 @@ public interface ReplicationEvents { * * Gets the list of Azure Site Recovery events for the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of Azure Site Recovery events for the vault as paginated response with {@link PagedIterable}. */ - PagedIterable list(String resourceName, String resourceGroupName); + PagedIterable list(String resourceGroupName, String resourceName); /** * Gets the list of Azure Site Recovery events. * * Gets the list of Azure Site Recovery events for the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param filter OData filter options. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -40,15 +40,15 @@ public interface ReplicationEvents { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of Azure Site Recovery events for the vault as paginated response with {@link PagedIterable}. */ - PagedIterable list(String resourceName, String resourceGroupName, String filter, Context context); + PagedIterable list(String resourceGroupName, String resourceName, String filter, Context context); /** * Get the details of an Azure Site recovery event. * * The operation to get the details of an Azure Site recovery event. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param eventName The name of the Azure Site Recovery event. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -56,20 +56,20 @@ public interface ReplicationEvents { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return implements the Event class along with {@link Response}. */ - Response getWithResponse(String resourceName, String resourceGroupName, String eventName, Context context); + Response getWithResponse(String resourceGroupName, String resourceName, String eventName, Context context); /** * Get the details of an Azure Site recovery event. * * The operation to get the details of an Azure Site recovery event. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param eventName The name of the Azure Site Recovery event. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return implements the Event class. */ - Event get(String resourceName, String resourceGroupName, String eventName); + Event get(String resourceGroupName, String resourceName, String eventName); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationFabrics.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationFabrics.java index 9ba25a9ffcfe..627eba3fbcdf 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationFabrics.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationFabrics.java @@ -17,37 +17,37 @@ public interface ReplicationFabrics { * * Gets a list of the Azure Site Recovery fabrics in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of the Azure Site Recovery fabrics in the vault as paginated response with {@link PagedIterable}. */ - PagedIterable list(String resourceName, String resourceGroupName); + PagedIterable list(String resourceGroupName, String resourceName); /** * Gets the list of ASR fabrics. * * Gets a list of the Azure Site Recovery fabrics in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of the Azure Site Recovery fabrics in the vault as paginated response with {@link PagedIterable}. */ - PagedIterable list(String resourceName, String resourceGroupName, Context context); + PagedIterable list(String resourceGroupName, String resourceName, Context context); /** * Gets the details of an ASR fabric. * * Gets the details of an Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param filter OData filter options. * @param context The context to associate with this operation. @@ -56,7 +56,7 @@ public interface ReplicationFabrics { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the details of an Azure Site Recovery fabric along with {@link Response}. */ - Response getWithResponse(String resourceName, String resourceGroupName, String fabricName, String filter, + Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String filter, Context context); /** @@ -64,67 +64,67 @@ Response getWithResponse(String resourceName, String resourceGroupName, * * Gets the details of an Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the details of an Azure Site Recovery fabric. */ - Fabric get(String resourceName, String resourceGroupName, String fabricName); + Fabric get(String resourceGroupName, String resourceName, String fabricName); /** * Purges the site. * * The operation to purge(force delete) an Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to purge. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void purge(String resourceName, String resourceGroupName, String fabricName); + void purge(String resourceGroupName, String resourceName, String fabricName); /** * Purges the site. * * The operation to purge(force delete) an Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to purge. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void purge(String resourceName, String resourceGroupName, String fabricName, Context context); + void purge(String resourceGroupName, String resourceName, String fabricName, Context context); /** * Checks the consistency of the ASR fabric. * * The operation to perform a consistency check on the fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return fabric definition. */ - Fabric checkConsistency(String resourceName, String resourceGroupName, String fabricName); + Fabric checkConsistency(String resourceGroupName, String resourceName, String fabricName); /** * Checks the consistency of the ASR fabric. * * The operation to perform a consistency check on the fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -132,44 +132,44 @@ Response getWithResponse(String resourceName, String resourceGroupName, * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return fabric definition. */ - Fabric checkConsistency(String resourceName, String resourceGroupName, String fabricName, Context context); + Fabric checkConsistency(String resourceGroupName, String resourceName, String fabricName, Context context); /** * Migrates the site to AAD. * * The operation to migrate an Azure Site Recovery fabric to AAD. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to migrate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void migrateToAad(String resourceName, String resourceGroupName, String fabricName); + void migrateToAad(String resourceGroupName, String resourceName, String fabricName); /** * Migrates the site to AAD. * * The operation to migrate an Azure Site Recovery fabric to AAD. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to migrate. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void migrateToAad(String resourceName, String resourceGroupName, String fabricName, Context context); + void migrateToAad(String resourceGroupName, String resourceName, String fabricName, Context context); /** * Perform failover of the process server. * * The operation to move replications from a process server to another process server. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric containing the process server. * @param failoverProcessServerRequest The input to the failover process server operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -177,7 +177,7 @@ Response getWithResponse(String resourceName, String resourceGroupName, * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return fabric definition. */ - Fabric reassociateGateway(String resourceName, String resourceGroupName, String fabricName, + Fabric reassociateGateway(String resourceGroupName, String resourceName, String fabricName, FailoverProcessServerRequest failoverProcessServerRequest); /** @@ -185,8 +185,8 @@ Fabric reassociateGateway(String resourceName, String resourceGroupName, String * * The operation to move replications from a process server to another process server. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric containing the process server. * @param failoverProcessServerRequest The input to the failover process server operation. * @param context The context to associate with this operation. @@ -195,7 +195,7 @@ Fabric reassociateGateway(String resourceName, String resourceGroupName, String * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return fabric definition. */ - Fabric reassociateGateway(String resourceName, String resourceGroupName, String fabricName, + Fabric reassociateGateway(String resourceGroupName, String resourceName, String fabricName, FailoverProcessServerRequest failoverProcessServerRequest, Context context); /** @@ -203,37 +203,37 @@ Fabric reassociateGateway(String resourceName, String resourceGroupName, String * * The operation to delete or remove an Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to delete. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete(String resourceName, String resourceGroupName, String fabricName); + void delete(String resourceGroupName, String resourceName, String fabricName); /** * Deletes the site. * * The operation to delete or remove an Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to delete. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete(String resourceName, String resourceGroupName, String fabricName, Context context); + void delete(String resourceGroupName, String resourceName, String fabricName, Context context); /** * Renews certificate for the fabric. * * Renews the connection certificate for the ASR replication fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName fabric name to renew certs for. * @param renewCertificate Renew certificate input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -241,7 +241,7 @@ Fabric reassociateGateway(String resourceName, String resourceGroupName, String * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return fabric definition. */ - Fabric renewCertificate(String resourceName, String resourceGroupName, String fabricName, + Fabric renewCertificate(String resourceGroupName, String resourceName, String fabricName, RenewCertificateInput renewCertificate); /** @@ -249,8 +249,8 @@ Fabric renewCertificate(String resourceName, String resourceGroupName, String fa * * Renews the connection certificate for the ASR replication fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName fabric name to renew certs for. * @param renewCertificate Renew certificate input. * @param context The context to associate with this operation. @@ -259,7 +259,7 @@ Fabric renewCertificate(String resourceName, String resourceGroupName, String fa * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return fabric definition. */ - Fabric renewCertificate(String resourceName, String resourceGroupName, String fabricName, + Fabric renewCertificate(String resourceGroupName, String resourceName, String fabricName, RenewCertificateInput renewCertificate, Context context); /** diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationJobs.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationJobs.java index 25c9eb722fb4..5cfd94f71826 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationJobs.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationJobs.java @@ -17,22 +17,22 @@ public interface ReplicationJobs { * * Gets the list of Azure Site Recovery Jobs for the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of Azure Site Recovery Jobs for the vault as paginated response with {@link PagedIterable}. */ - PagedIterable list(String resourceName, String resourceGroupName); + PagedIterable list(String resourceGroupName, String resourceName); /** * Gets the list of jobs. * * Gets the list of Azure Site Recovery Jobs for the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param filter OData filter options. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -40,15 +40,15 @@ public interface ReplicationJobs { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of Azure Site Recovery Jobs for the vault as paginated response with {@link PagedIterable}. */ - PagedIterable list(String resourceName, String resourceGroupName, String filter, Context context); + PagedIterable list(String resourceGroupName, String resourceName, String filter, Context context); /** * Gets the job details. * * Get the details of an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -56,45 +56,45 @@ public interface ReplicationJobs { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the details of an Azure Site Recovery job along with {@link Response}. */ - Response getWithResponse(String resourceName, String resourceGroupName, String jobName, Context context); + Response getWithResponse(String resourceGroupName, String resourceName, String jobName, Context context); /** * Gets the job details. * * Get the details of an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the details of an Azure Site Recovery job. */ - Job get(String resourceName, String resourceGroupName, String jobName); + Job get(String resourceGroupName, String resourceName, String jobName); /** * Cancels the specified job. * * The operation to cancel an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return job details. */ - Job cancel(String resourceName, String resourceGroupName, String jobName); + Job cancel(String resourceGroupName, String resourceName, String jobName); /** * Cancels the specified job. * * The operation to cancel an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -102,30 +102,30 @@ public interface ReplicationJobs { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return job details. */ - Job cancel(String resourceName, String resourceGroupName, String jobName, Context context); + Job cancel(String resourceGroupName, String resourceName, String jobName, Context context); /** * Restarts the specified job. * * The operation to restart an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return job details. */ - Job restart(String resourceName, String resourceGroupName, String jobName); + Job restart(String resourceGroupName, String resourceName, String jobName); /** * Restarts the specified job. * * The operation to restart an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -133,15 +133,15 @@ public interface ReplicationJobs { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return job details. */ - Job restart(String resourceName, String resourceGroupName, String jobName, Context context); + Job restart(String resourceGroupName, String resourceName, String jobName, Context context); /** * Resumes the specified job. * * The operation to resume an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param resumeJobParams Resume rob comments. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -149,15 +149,15 @@ public interface ReplicationJobs { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return job details. */ - Job resume(String resourceName, String resourceGroupName, String jobName, ResumeJobParams resumeJobParams); + Job resume(String resourceGroupName, String resourceName, String jobName, ResumeJobParams resumeJobParams); /** * Resumes the specified job. * * The operation to resume an Azure Site Recovery job. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param resumeJobParams Resume rob comments. * @param context The context to associate with this operation. @@ -166,7 +166,7 @@ public interface ReplicationJobs { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return job details. */ - Job resume(String resourceName, String resourceGroupName, String jobName, ResumeJobParams resumeJobParams, + Job resume(String resourceGroupName, String resourceName, String jobName, ResumeJobParams resumeJobParams, Context context); /** @@ -174,23 +174,23 @@ Job resume(String resourceName, String resourceGroupName, String jobName, Resume * * The operation to export the details of the Azure Site Recovery jobs of the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobQueryParameter job query filter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return job details. */ - Job export(String resourceName, String resourceGroupName, JobQueryParameter jobQueryParameter); + Job export(String resourceGroupName, String resourceName, JobQueryParameter jobQueryParameter); /** * Exports the details of the Azure Site Recovery jobs of the vault. * * The operation to export the details of the Azure Site Recovery jobs of the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param jobQueryParameter job query filter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -198,5 +198,5 @@ Job resume(String resourceName, String resourceGroupName, String jobName, Resume * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return job details. */ - Job export(String resourceName, String resourceGroupName, JobQueryParameter jobQueryParameter, Context context); + Job export(String resourceGroupName, String resourceName, JobQueryParameter jobQueryParameter, Context context); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationLogicalNetworks.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationLogicalNetworks.java index 7265c3113c38..b6f26c34b75b 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationLogicalNetworks.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationLogicalNetworks.java @@ -17,15 +17,15 @@ public interface ReplicationLogicalNetworks { * * Lists all the logical networks of the Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Server Id. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return list of logical networks as paginated response with {@link PagedIterable}. */ - PagedIterable listByReplicationFabrics(String resourceName, String resourceGroupName, + PagedIterable listByReplicationFabrics(String resourceGroupName, String resourceName, String fabricName); /** @@ -33,8 +33,8 @@ PagedIterable listByReplicationFabrics(String resourceName, Stri * * Lists all the logical networks of the Azure Site Recovery fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Server Id. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -42,7 +42,7 @@ PagedIterable listByReplicationFabrics(String resourceName, Stri * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return list of logical networks as paginated response with {@link PagedIterable}. */ - PagedIterable listByReplicationFabrics(String resourceName, String resourceGroupName, + PagedIterable listByReplicationFabrics(String resourceGroupName, String resourceName, String fabricName, Context context); /** @@ -50,8 +50,8 @@ PagedIterable listByReplicationFabrics(String resourceName, Stri * * Gets the details of a logical network. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Server Id. * @param logicalNetworkName Logical network name. * @param context The context to associate with this operation. @@ -60,7 +60,7 @@ PagedIterable listByReplicationFabrics(String resourceName, Stri * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the details of a logical network along with {@link Response}. */ - Response getWithResponse(String resourceName, String resourceGroupName, String fabricName, + Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String logicalNetworkName, Context context); /** @@ -68,8 +68,8 @@ Response getWithResponse(String resourceName, String resourceGro * * Gets the details of a logical network. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Server Id. * @param logicalNetworkName Logical network name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -77,5 +77,5 @@ Response getWithResponse(String resourceName, String resourceGro * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the details of a logical network. */ - LogicalNetwork get(String resourceName, String resourceGroupName, String fabricName, String logicalNetworkName); + LogicalNetwork get(String resourceGroupName, String resourceName, String fabricName, String logicalNetworkName); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationMigrationItems.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationMigrationItems.java index b9b5365a5f4d..72e6edbb077e 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationMigrationItems.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationMigrationItems.java @@ -17,8 +17,8 @@ public interface ReplicationMigrationItems { * * Gets the list of ASR migration items in the protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -27,7 +27,7 @@ public interface ReplicationMigrationItems { * @return the list of ASR migration items in the protection container as paginated response with * {@link PagedIterable}. */ - PagedIterable listByReplicationProtectionContainers(String resourceName, String resourceGroupName, + PagedIterable listByReplicationProtectionContainers(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName); /** @@ -35,8 +35,8 @@ PagedIterable listByReplicationProtectionContainers(String resour * * Gets the list of ASR migration items in the protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param skipToken The pagination token. @@ -49,15 +49,15 @@ PagedIterable listByReplicationProtectionContainers(String resour * @return the list of ASR migration items in the protection container as paginated response with * {@link PagedIterable}. */ - PagedIterable listByReplicationProtectionContainers(String resourceName, String resourceGroupName, + PagedIterable listByReplicationProtectionContainers(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String skipToken, String takeToken, String filter, Context context); /** * Gets the details of a migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric unique name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -67,14 +67,14 @@ PagedIterable listByReplicationProtectionContainers(String resour * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the details of a migration item along with {@link Response}. */ - Response getWithResponse(String resourceName, String resourceGroupName, String fabricName, + Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, Context context); /** * Gets the details of a migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric unique name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -83,7 +83,7 @@ Response getWithResponse(String resourceName, String resourceGrou * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the details of a migration item. */ - MigrationItem get(String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + MigrationItem get(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName); /** @@ -91,8 +91,8 @@ MigrationItem get(String resourceName, String resourceGroupName, String fabricNa * * The operation to delete an ASR migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -100,7 +100,7 @@ MigrationItem get(String resourceName, String resourceGroupName, String fabricNa * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete(String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + void delete(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName); /** @@ -108,8 +108,8 @@ void delete(String resourceName, String resourceGroupName, String fabricName, St * * The operation to delete an ASR migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -119,7 +119,7 @@ void delete(String resourceName, String resourceGroupName, String fabricName, St * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete(String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + void delete(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, String deleteOption, Context context); /** @@ -127,8 +127,8 @@ void delete(String resourceName, String resourceGroupName, String fabricName, St * * The operation to initiate migration of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -138,7 +138,7 @@ void delete(String resourceName, String resourceGroupName, String fabricName, St * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return migration item. */ - MigrationItem migrate(String resourceName, String resourceGroupName, String fabricName, + MigrationItem migrate(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, MigrateInput migrateInput); /** @@ -146,8 +146,8 @@ MigrationItem migrate(String resourceName, String resourceGroupName, String fabr * * The operation to initiate migration of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -158,7 +158,7 @@ MigrationItem migrate(String resourceName, String resourceGroupName, String fabr * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return migration item. */ - MigrationItem migrate(String resourceName, String resourceGroupName, String fabricName, + MigrationItem migrate(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, MigrateInput migrateInput, Context context); /** @@ -166,8 +166,8 @@ MigrationItem migrate(String resourceName, String resourceGroupName, String fabr * * The operation to initiate pause replication of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -177,7 +177,7 @@ MigrationItem migrate(String resourceName, String resourceGroupName, String fabr * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return migration item. */ - MigrationItem pauseReplication(String resourceName, String resourceGroupName, String fabricName, + MigrationItem pauseReplication(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, PauseReplicationInput pauseReplicationInput); /** @@ -185,8 +185,8 @@ MigrationItem pauseReplication(String resourceName, String resourceGroupName, St * * The operation to initiate pause replication of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -197,7 +197,7 @@ MigrationItem pauseReplication(String resourceName, String resourceGroupName, St * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return migration item. */ - MigrationItem pauseReplication(String resourceName, String resourceGroupName, String fabricName, + MigrationItem pauseReplication(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, PauseReplicationInput pauseReplicationInput, Context context); @@ -206,8 +206,8 @@ MigrationItem pauseReplication(String resourceName, String resourceGroupName, St * * The operation to initiate resume replication of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -217,7 +217,7 @@ MigrationItem pauseReplication(String resourceName, String resourceGroupName, St * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return migration item. */ - MigrationItem resumeReplication(String resourceName, String resourceGroupName, String fabricName, + MigrationItem resumeReplication(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, ResumeReplicationInput resumeReplicationInput); /** @@ -225,8 +225,8 @@ MigrationItem resumeReplication(String resourceName, String resourceGroupName, S * * The operation to initiate resume replication of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -237,7 +237,7 @@ MigrationItem resumeReplication(String resourceName, String resourceGroupName, S * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return migration item. */ - MigrationItem resumeReplication(String resourceName, String resourceGroupName, String fabricName, + MigrationItem resumeReplication(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, ResumeReplicationInput resumeReplicationInput, Context context); @@ -246,8 +246,8 @@ MigrationItem resumeReplication(String resourceName, String resourceGroupName, S * * The operation to resynchronize replication of an ASR migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -257,7 +257,7 @@ MigrationItem resumeReplication(String resourceName, String resourceGroupName, S * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return migration item. */ - MigrationItem resync(String resourceName, String resourceGroupName, String fabricName, + MigrationItem resync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, ResyncInput input); /** @@ -265,8 +265,8 @@ MigrationItem resync(String resourceName, String resourceGroupName, String fabri * * The operation to resynchronize replication of an ASR migration item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -277,7 +277,7 @@ MigrationItem resync(String resourceName, String resourceGroupName, String fabri * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return migration item. */ - MigrationItem resync(String resourceName, String resourceGroupName, String fabricName, + MigrationItem resync(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, ResyncInput input, Context context); /** @@ -285,8 +285,8 @@ MigrationItem resync(String resourceName, String resourceGroupName, String fabri * * The operation to initiate test migration of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -296,7 +296,7 @@ MigrationItem resync(String resourceName, String resourceGroupName, String fabri * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return migration item. */ - MigrationItem testMigrate(String resourceName, String resourceGroupName, String fabricName, + MigrationItem testMigrate(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, TestMigrateInput testMigrateInput); /** @@ -304,8 +304,8 @@ MigrationItem testMigrate(String resourceName, String resourceGroupName, String * * The operation to initiate test migration of the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -316,7 +316,7 @@ MigrationItem testMigrate(String resourceName, String resourceGroupName, String * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return migration item. */ - MigrationItem testMigrate(String resourceName, String resourceGroupName, String fabricName, + MigrationItem testMigrate(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, TestMigrateInput testMigrateInput, Context context); /** @@ -324,8 +324,8 @@ MigrationItem testMigrate(String resourceName, String resourceGroupName, String * * The operation to initiate test migrate cleanup. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -335,7 +335,7 @@ MigrationItem testMigrate(String resourceName, String resourceGroupName, String * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return migration item. */ - MigrationItem testMigrateCleanup(String resourceName, String resourceGroupName, String fabricName, + MigrationItem testMigrateCleanup(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, TestMigrateCleanupInput testMigrateCleanupInput); /** @@ -343,8 +343,8 @@ MigrationItem testMigrateCleanup(String resourceName, String resourceGroupName, * * The operation to initiate test migrate cleanup. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -355,27 +355,27 @@ MigrationItem testMigrateCleanup(String resourceName, String resourceGroupName, * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return migration item. */ - MigrationItem testMigrateCleanup(String resourceName, String resourceGroupName, String fabricName, + MigrationItem testMigrateCleanup(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String migrationItemName, TestMigrateCleanupInput testMigrateCleanupInput, Context context); /** * Gets the list of migration items in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of migration items in the vault as paginated response with {@link PagedIterable}. */ - PagedIterable list(String resourceName, String resourceGroupName); + PagedIterable list(String resourceGroupName, String resourceName); /** * Gets the list of migration items in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param skipToken The pagination token. * @param takeToken The page size. * @param filter OData filter options. @@ -385,7 +385,7 @@ MigrationItem testMigrateCleanup(String resourceName, String resourceGroupName, * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of migration items in the vault as paginated response with {@link PagedIterable}. */ - PagedIterable list(String resourceName, String resourceGroupName, String skipToken, String takeToken, + PagedIterable list(String resourceGroupName, String resourceName, String skipToken, String takeToken, String filter, Context context); /** diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationNetworkMappings.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationNetworkMappings.java index 92799a973a7d..199144fe5acd 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationNetworkMappings.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationNetworkMappings.java @@ -17,8 +17,8 @@ public interface ReplicationNetworkMappings { * * Lists all ASR network mappings for the specified network. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -26,7 +26,7 @@ public interface ReplicationNetworkMappings { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return list of network mappings as paginated response with {@link PagedIterable}. */ - PagedIterable listByReplicationNetworks(String resourceName, String resourceGroupName, + PagedIterable listByReplicationNetworks(String resourceGroupName, String resourceName, String fabricName, String networkName); /** @@ -34,8 +34,8 @@ PagedIterable listByReplicationNetworks(String resourceName, Str * * Lists all ASR network mappings for the specified network. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param context The context to associate with this operation. @@ -44,7 +44,7 @@ PagedIterable listByReplicationNetworks(String resourceName, Str * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return list of network mappings as paginated response with {@link PagedIterable}. */ - PagedIterable listByReplicationNetworks(String resourceName, String resourceGroupName, + PagedIterable listByReplicationNetworks(String resourceGroupName, String resourceName, String fabricName, String networkName, Context context); /** @@ -52,8 +52,8 @@ PagedIterable listByReplicationNetworks(String resourceName, Str * * Gets the details of an ASR network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName Network mapping name. @@ -63,7 +63,7 @@ PagedIterable listByReplicationNetworks(String resourceName, Str * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the details of an ASR network mapping along with {@link Response}. */ - Response getWithResponse(String resourceName, String resourceGroupName, String fabricName, + Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String networkName, String networkMappingName, Context context); /** @@ -71,8 +71,8 @@ Response getWithResponse(String resourceName, String resourceGro * * Gets the details of an ASR network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName Network mapping name. @@ -81,7 +81,7 @@ Response getWithResponse(String resourceName, String resourceGro * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the details of an ASR network mapping. */ - NetworkMapping get(String resourceName, String resourceGroupName, String fabricName, String networkName, + NetworkMapping get(String resourceGroupName, String resourceName, String fabricName, String networkName, String networkMappingName); /** @@ -89,8 +89,8 @@ NetworkMapping get(String resourceName, String resourceGroupName, String fabricN * * The operation to delete a network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName ARM Resource Name for network mapping. @@ -98,7 +98,7 @@ NetworkMapping get(String resourceName, String resourceGroupName, String fabricN * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete(String resourceName, String resourceGroupName, String fabricName, String networkName, + void delete(String resourceGroupName, String resourceName, String fabricName, String networkName, String networkMappingName); /** @@ -106,8 +106,8 @@ void delete(String resourceName, String resourceGroupName, String fabricName, St * * The operation to delete a network mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName ARM Resource Name for network mapping. @@ -116,7 +116,7 @@ void delete(String resourceName, String resourceGroupName, String fabricName, St * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete(String resourceName, String resourceGroupName, String fabricName, String networkName, + void delete(String resourceGroupName, String resourceName, String fabricName, String networkName, String networkMappingName, Context context); /** @@ -124,29 +124,29 @@ void delete(String resourceName, String resourceGroupName, String fabricName, St * * Lists all ASR network mappings in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return list of network mappings as paginated response with {@link PagedIterable}. */ - PagedIterable list(String resourceName, String resourceGroupName); + PagedIterable list(String resourceGroupName, String resourceName); /** * Gets all the network mappings under a vault. * * Lists all ASR network mappings in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return list of network mappings as paginated response with {@link PagedIterable}. */ - PagedIterable list(String resourceName, String resourceGroupName, Context context); + PagedIterable list(String resourceGroupName, String resourceName, Context context); /** * Gets network mapping by name. diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationNetworks.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationNetworks.java index cad393ab57c9..3d38cfac7380 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationNetworks.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationNetworks.java @@ -17,23 +17,23 @@ public interface ReplicationNetworks { * * Lists the networks available for a fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return list of networks as paginated response with {@link PagedIterable}. */ - PagedIterable listByReplicationFabrics(String resourceName, String resourceGroupName, String fabricName); + PagedIterable listByReplicationFabrics(String resourceGroupName, String resourceName, String fabricName); /** * Gets the list of networks under a fabric. * * Lists the networks available for a fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -41,7 +41,7 @@ public interface ReplicationNetworks { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return list of networks as paginated response with {@link PagedIterable}. */ - PagedIterable listByReplicationFabrics(String resourceName, String resourceGroupName, String fabricName, + PagedIterable listByReplicationFabrics(String resourceGroupName, String resourceName, String fabricName, Context context); /** @@ -49,8 +49,8 @@ PagedIterable listByReplicationFabrics(String resourceName, String reso * * Gets the details of a network. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Server Id. * @param networkName Primary network name. * @param context The context to associate with this operation. @@ -59,7 +59,7 @@ PagedIterable listByReplicationFabrics(String resourceName, String reso * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the details of a network along with {@link Response}. */ - Response getWithResponse(String resourceName, String resourceGroupName, String fabricName, + Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String networkName, Context context); /** @@ -67,8 +67,8 @@ Response getWithResponse(String resourceName, String resourceGroupName, * * Gets the details of a network. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Server Id. * @param networkName Primary network name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -76,34 +76,34 @@ Response getWithResponse(String resourceName, String resourceGroupName, * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the details of a network. */ - Network get(String resourceName, String resourceGroupName, String fabricName, String networkName); + Network get(String resourceGroupName, String resourceName, String fabricName, String networkName); /** * Gets the list of networks. View-only API. * * Lists the networks available in a vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return list of networks as paginated response with {@link PagedIterable}. */ - PagedIterable list(String resourceName, String resourceGroupName); + PagedIterable list(String resourceGroupName, String resourceName); /** * Gets the list of networks. View-only API. * * Lists the networks available in a vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return list of networks as paginated response with {@link PagedIterable}. */ - PagedIterable list(String resourceName, String resourceGroupName, Context context); + PagedIterable list(String resourceGroupName, String resourceName, Context context); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationPolicies.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationPolicies.java index 4e2e0aa8d06d..380f254db32f 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationPolicies.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationPolicies.java @@ -17,37 +17,37 @@ public interface ReplicationPolicies { * * Lists the replication policies for a vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return protection Profile Collection details as paginated response with {@link PagedIterable}. */ - PagedIterable list(String resourceName, String resourceGroupName); + PagedIterable list(String resourceGroupName, String resourceName); /** * Gets the list of replication policies. * * Lists the replication policies for a vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return protection Profile Collection details as paginated response with {@link PagedIterable}. */ - PagedIterable list(String resourceName, String resourceGroupName, Context context); + PagedIterable list(String resourceGroupName, String resourceName, Context context); /** * Gets the requested policy. * * Gets the details of a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -55,51 +55,51 @@ public interface ReplicationPolicies { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the details of a replication policy along with {@link Response}. */ - Response getWithResponse(String resourceName, String resourceGroupName, String policyName, Context context); + Response getWithResponse(String resourceGroupName, String resourceName, String policyName, Context context); /** * Gets the requested policy. * * Gets the details of a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the details of a replication policy. */ - Policy get(String resourceName, String resourceGroupName, String policyName); + Policy get(String resourceGroupName, String resourceName, String policyName); /** * Delete the policy. * * The operation to delete a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete(String resourceName, String resourceGroupName, String policyName); + void delete(String resourceGroupName, String resourceName, String policyName); /** * Delete the policy. * * The operation to delete a replication policy. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete(String resourceName, String resourceGroupName, String policyName, Context context); + void delete(String resourceGroupName, String resourceName, String policyName, Context context); /** * Gets the requested policy. diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationProtectableItems.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationProtectableItems.java index 733be9e2acf6..d8a51c8c7284 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationProtectableItems.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationProtectableItems.java @@ -17,8 +17,8 @@ public interface ReplicationProtectableItems { * * Lists the protectable items in a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -26,7 +26,7 @@ public interface ReplicationProtectableItems { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return protectable item collection as paginated response with {@link PagedIterable}. */ - PagedIterable listByReplicationProtectionContainers(String resourceName, String resourceGroupName, + PagedIterable listByReplicationProtectionContainers(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName); /** @@ -34,8 +34,8 @@ PagedIterable listByReplicationProtectionContainers(String reso * * Lists the protectable items in a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param filter OData filter options. @@ -47,7 +47,7 @@ PagedIterable listByReplicationProtectionContainers(String reso * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return protectable item collection as paginated response with {@link PagedIterable}. */ - PagedIterable listByReplicationProtectionContainers(String resourceName, String resourceGroupName, + PagedIterable listByReplicationProtectionContainers(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String filter, String take, String skipToken, Context context); @@ -56,8 +56,8 @@ PagedIterable listByReplicationProtectionContainers(String reso * * The operation to get the details of a protectable item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param protectableItemName Protectable item name. @@ -67,7 +67,7 @@ PagedIterable listByReplicationProtectionContainers(String reso * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return replication protected item along with {@link Response}. */ - Response getWithResponse(String resourceName, String resourceGroupName, String fabricName, + Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String protectableItemName, Context context); /** @@ -75,8 +75,8 @@ Response getWithResponse(String resourceName, String resourceGr * * The operation to get the details of a protectable item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param protectableItemName Protectable item name. @@ -85,6 +85,6 @@ Response getWithResponse(String resourceName, String resourceGr * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return replication protected item. */ - ProtectableItem get(String resourceName, String resourceGroupName, String fabricName, + ProtectableItem get(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String protectableItemName); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationProtectedItem.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationProtectedItem.java index 54093aa9a8a2..19d9f9e24eb3 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationProtectedItem.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationProtectedItem.java @@ -98,15 +98,15 @@ interface Blank extends WithParentResource { */ interface WithParentResource { /** - * Specifies resourceName, resourceGroupName, fabricName, protectionContainerName. + * Specifies resourceGroupName, resourceName, fabricName, protectionContainerName. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Name of the fabric. * @param protectionContainerName Protection container name. * @return the next definition stage. */ - WithCreate withExistingReplicationProtectionContainer(String resourceName, String resourceGroupName, + WithCreate withExistingReplicationProtectionContainer(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationProtectedItems.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationProtectedItems.java index d5ae741166a0..75838d7c8280 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationProtectedItems.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationProtectedItems.java @@ -17,8 +17,8 @@ public interface ReplicationProtectedItems { * * Gets the list of ASR replication protected items in the protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -27,16 +27,16 @@ public interface ReplicationProtectedItems { * @return the list of ASR replication protected items in the protection container as paginated response with * {@link PagedIterable}. */ - PagedIterable listByReplicationProtectionContainers(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName); + PagedIterable listByReplicationProtectionContainers(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName); /** * Gets the list of Replication protected items. * * Gets the list of ASR replication protected items in the protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param context The context to associate with this operation. @@ -46,16 +46,16 @@ PagedIterable listByReplicationProtectionContainers(St * @return the list of ASR replication protected items in the protection container as paginated response with * {@link PagedIterable}. */ - PagedIterable listByReplicationProtectionContainers(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, Context context); + PagedIterable listByReplicationProtectionContainers(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, Context context); /** * Gets the details of a Replication protected item. * * Gets the details of an ASR replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric unique name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -65,7 +65,7 @@ PagedIterable listByReplicationProtectionContainers(St * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the details of an ASR replication protected item along with {@link Response}. */ - Response getWithResponse(String resourceName, String resourceGroupName, String fabricName, + Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context); /** @@ -73,8 +73,8 @@ Response getWithResponse(String resourceName, String r * * Gets the details of an ASR replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric unique name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -83,7 +83,7 @@ Response getWithResponse(String resourceName, String r * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the details of an ASR replication protected item. */ - ReplicationProtectedItem get(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItem get(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName); /** @@ -93,8 +93,8 @@ ReplicationProtectedItem get(String resourceName, String resourceGroupName, Stri * protected item. Use the remove operation on replication protected item to perform a clean disable replication for * the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -102,7 +102,7 @@ ReplicationProtectedItem get(String resourceName, String resourceGroupName, Stri * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void purge(String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + void purge(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName); /** @@ -112,8 +112,8 @@ void purge(String resourceName, String resourceGroupName, String fabricName, Str * protected item. Use the remove operation on replication protected item to perform a clean disable replication for * the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -122,7 +122,7 @@ void purge(String resourceName, String resourceGroupName, String fabricName, Str * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void purge(String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + void purge(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context); /** @@ -130,8 +130,8 @@ void purge(String resourceName, String resourceGroupName, String fabricName, Str * * Operation to add disks(s) to the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -141,7 +141,7 @@ void purge(String resourceName, String resourceGroupName, String fabricName, Str * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return replication protected item. */ - ReplicationProtectedItem addDisks(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItem addDisks(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, AddDisksInput addDisksInput); /** @@ -149,8 +149,8 @@ ReplicationProtectedItem addDisks(String resourceName, String resourceGroupName, * * Operation to add disks(s) to the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -161,7 +161,7 @@ ReplicationProtectedItem addDisks(String resourceName, String resourceGroupName, * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return replication protected item. */ - ReplicationProtectedItem addDisks(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItem addDisks(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, AddDisksInput addDisksInput, Context context); @@ -170,8 +170,8 @@ ReplicationProtectedItem addDisks(String resourceName, String resourceGroupName, * * The operation to change the recovery point of a failed over replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The ARM fabric name. * @param protectionContainerName The protection container name. * @param replicatedProtectedItemName The replicated protected item name. @@ -181,7 +181,7 @@ ReplicationProtectedItem addDisks(String resourceName, String resourceGroupName, * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return replication protected item. */ - ReplicationProtectedItem applyRecoveryPoint(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItem applyRecoveryPoint(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ApplyRecoveryPointInput applyRecoveryPointInput); @@ -190,8 +190,8 @@ ReplicationProtectedItem applyRecoveryPoint(String resourceName, String resource * * The operation to change the recovery point of a failed over replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The ARM fabric name. * @param protectionContainerName The protection container name. * @param replicatedProtectedItemName The replicated protected item name. @@ -202,7 +202,7 @@ ReplicationProtectedItem applyRecoveryPoint(String resourceName, String resource * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return replication protected item. */ - ReplicationProtectedItem applyRecoveryPoint(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItem applyRecoveryPoint(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ApplyRecoveryPointInput applyRecoveryPointInput, Context context); @@ -211,8 +211,8 @@ ReplicationProtectedItem applyRecoveryPoint(String resourceName, String resource * * Operation to cancel the failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -221,7 +221,7 @@ ReplicationProtectedItem applyRecoveryPoint(String resourceName, String resource * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return replication protected item. */ - ReplicationProtectedItem failoverCancel(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItem failoverCancel(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName); /** @@ -229,8 +229,8 @@ ReplicationProtectedItem failoverCancel(String resourceName, String resourceGrou * * Operation to cancel the failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -240,7 +240,7 @@ ReplicationProtectedItem failoverCancel(String resourceName, String resourceGrou * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return replication protected item. */ - ReplicationProtectedItem failoverCancel(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItem failoverCancel(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context); /** @@ -248,8 +248,8 @@ ReplicationProtectedItem failoverCancel(String resourceName, String resourceGrou * * Operation to commit the failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -258,7 +258,7 @@ ReplicationProtectedItem failoverCancel(String resourceName, String resourceGrou * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return replication protected item. */ - ReplicationProtectedItem failoverCommit(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItem failoverCommit(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName); /** @@ -266,8 +266,8 @@ ReplicationProtectedItem failoverCommit(String resourceName, String resourceGrou * * Operation to commit the failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -277,7 +277,7 @@ ReplicationProtectedItem failoverCommit(String resourceName, String resourceGrou * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return replication protected item. */ - ReplicationProtectedItem failoverCommit(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItem failoverCommit(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context); /** @@ -285,8 +285,8 @@ ReplicationProtectedItem failoverCommit(String resourceName, String resourceGrou * * Operation to initiate a planned failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -296,7 +296,7 @@ ReplicationProtectedItem failoverCommit(String resourceName, String resourceGrou * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return replication protected item. */ - ReplicationProtectedItem plannedFailover(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItem plannedFailover(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, PlannedFailoverInput failoverInput); /** @@ -304,8 +304,8 @@ ReplicationProtectedItem plannedFailover(String resourceName, String resourceGro * * Operation to initiate a planned failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -316,7 +316,7 @@ ReplicationProtectedItem plannedFailover(String resourceName, String resourceGro * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return replication protected item. */ - ReplicationProtectedItem plannedFailover(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItem plannedFailover(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, PlannedFailoverInput failoverInput, Context context); @@ -325,8 +325,8 @@ ReplicationProtectedItem plannedFailover(String resourceName, String resourceGro * * The operation to disable replication on a replication protected item. This will also remove the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -335,7 +335,7 @@ ReplicationProtectedItem plannedFailover(String resourceName, String resourceGro * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete(String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + void delete(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, DisableProtectionInput disableProtectionInput); /** @@ -343,8 +343,8 @@ void delete(String resourceName, String resourceGroupName, String fabricName, St * * The operation to disable replication on a replication protected item. This will also remove the item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -354,7 +354,7 @@ void delete(String resourceName, String resourceGroupName, String fabricName, St * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete(String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + void delete(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, DisableProtectionInput disableProtectionInput, Context context); /** @@ -362,8 +362,8 @@ void delete(String resourceName, String resourceGroupName, String fabricName, St * * Operation to remove disk(s) from the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -373,7 +373,7 @@ void delete(String resourceName, String resourceGroupName, String fabricName, St * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return replication protected item. */ - ReplicationProtectedItem removeDisks(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItem removeDisks(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, RemoveDisksInput removeDisksInput); /** @@ -381,8 +381,8 @@ ReplicationProtectedItem removeDisks(String resourceName, String resourceGroupNa * * Operation to remove disk(s) from the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -393,7 +393,7 @@ ReplicationProtectedItem removeDisks(String resourceName, String resourceGroupNa * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return replication protected item. */ - ReplicationProtectedItem removeDisks(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItem removeDisks(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, RemoveDisksInput removeDisksInput, Context context); @@ -403,8 +403,8 @@ ReplicationProtectedItem removeDisks(String resourceName, String resourceGroupNa * The operation to start resynchronize/repair replication for a replication protected item requiring * resynchronization. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric. * @param protectionContainerName The name of the container. * @param replicatedProtectedItemName The name of the replication protected item. @@ -413,7 +413,7 @@ ReplicationProtectedItem removeDisks(String resourceName, String resourceGroupNa * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return replication protected item. */ - ReplicationProtectedItem repairReplication(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItem repairReplication(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName); /** @@ -422,8 +422,8 @@ ReplicationProtectedItem repairReplication(String resourceName, String resourceG * The operation to start resynchronize/repair replication for a replication protected item requiring * resynchronization. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric. * @param protectionContainerName The name of the container. * @param replicatedProtectedItemName The name of the replication protected item. @@ -433,7 +433,7 @@ ReplicationProtectedItem repairReplication(String resourceName, String resourceG * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return replication protected item. */ - ReplicationProtectedItem repairReplication(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItem repairReplication(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context); /** @@ -441,8 +441,8 @@ ReplicationProtectedItem repairReplication(String resourceName, String resourceG * * Operation to reprotect or reverse replicate a failed over replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -452,7 +452,7 @@ ReplicationProtectedItem repairReplication(String resourceName, String resourceG * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return replication protected item. */ - ReplicationProtectedItem reprotect(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItem reprotect(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ReverseReplicationInput reprotectInput); /** @@ -460,8 +460,8 @@ ReplicationProtectedItem reprotect(String resourceName, String resourceGroupName * * Operation to reprotect or reverse replicate a failed over replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -472,7 +472,7 @@ ReplicationProtectedItem reprotect(String resourceName, String resourceGroupName * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return replication protected item. */ - ReplicationProtectedItem reprotect(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItem reprotect(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ReverseReplicationInput reprotectInput, Context context); @@ -481,8 +481,8 @@ ReplicationProtectedItem reprotect(String resourceName, String resourceGroupName * * Operation to resolve health issues of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -492,7 +492,7 @@ ReplicationProtectedItem reprotect(String resourceName, String resourceGroupName * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return replication protected item. */ - ReplicationProtectedItem resolveHealthErrors(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItem resolveHealthErrors(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ResolveHealthInput resolveHealthInput); /** @@ -500,8 +500,8 @@ ReplicationProtectedItem resolveHealthErrors(String resourceName, String resourc * * Operation to resolve health issues of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -512,7 +512,7 @@ ReplicationProtectedItem resolveHealthErrors(String resourceName, String resourc * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return replication protected item. */ - ReplicationProtectedItem resolveHealthErrors(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItem resolveHealthErrors(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, ResolveHealthInput resolveHealthInput, Context context); @@ -521,8 +521,8 @@ ReplicationProtectedItem resolveHealthErrors(String resourceName, String resourc * * Operation to initiate a switch provider of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -532,7 +532,7 @@ ReplicationProtectedItem resolveHealthErrors(String resourceName, String resourc * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return replication protected item. */ - ReplicationProtectedItem switchProvider(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItem switchProvider(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, SwitchProviderInput switchProviderInput); /** @@ -540,8 +540,8 @@ ReplicationProtectedItem switchProvider(String resourceName, String resourceGrou * * Operation to initiate a switch provider of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -552,7 +552,7 @@ ReplicationProtectedItem switchProvider(String resourceName, String resourceGrou * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return replication protected item. */ - ReplicationProtectedItem switchProvider(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItem switchProvider(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, SwitchProviderInput switchProviderInput, Context context); @@ -561,8 +561,8 @@ ReplicationProtectedItem switchProvider(String resourceName, String resourceGrou * * Operation to perform a test failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -572,7 +572,7 @@ ReplicationProtectedItem switchProvider(String resourceName, String resourceGrou * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return replication protected item. */ - ReplicationProtectedItem testFailover(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItem testFailover(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, TestFailoverInput testfailoverInput); /** @@ -580,8 +580,8 @@ ReplicationProtectedItem testFailover(String resourceName, String resourceGroupN * * Operation to perform a test failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -592,7 +592,7 @@ ReplicationProtectedItem testFailover(String resourceName, String resourceGroupN * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return replication protected item. */ - ReplicationProtectedItem testFailover(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItem testFailover(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, TestFailoverInput testfailoverInput, Context context); @@ -601,8 +601,8 @@ ReplicationProtectedItem testFailover(String resourceName, String resourceGroupN * * Operation to clean up the test failover of a replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -612,7 +612,7 @@ ReplicationProtectedItem testFailover(String resourceName, String resourceGroupN * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return replication protected item. */ - ReplicationProtectedItem testFailoverCleanup(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItem testFailoverCleanup(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, TestFailoverCleanupInput cleanupInput); /** @@ -620,8 +620,8 @@ ReplicationProtectedItem testFailoverCleanup(String resourceName, String resourc * * Operation to clean up the test failover of a replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -632,7 +632,7 @@ ReplicationProtectedItem testFailoverCleanup(String resourceName, String resourc * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return replication protected item. */ - ReplicationProtectedItem testFailoverCleanup(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItem testFailoverCleanup(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, TestFailoverCleanupInput cleanupInput, Context context); @@ -641,8 +641,8 @@ ReplicationProtectedItem testFailoverCleanup(String resourceName, String resourc * * Operation to initiate a failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -652,7 +652,7 @@ ReplicationProtectedItem testFailoverCleanup(String resourceName, String resourc * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return replication protected item. */ - ReplicationProtectedItem unplannedFailover(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItem unplannedFailover(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UnplannedFailoverInput failoverInput); /** @@ -660,8 +660,8 @@ ReplicationProtectedItem unplannedFailover(String resourceName, String resourceG * * Operation to initiate a failover of the replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -672,7 +672,7 @@ ReplicationProtectedItem unplannedFailover(String resourceName, String resourceG * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return replication protected item. */ - ReplicationProtectedItem unplannedFailover(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItem unplannedFailover(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UnplannedFailoverInput failoverInput, Context context); @@ -681,8 +681,8 @@ ReplicationProtectedItem unplannedFailover(String resourceName, String resourceG * * The operation to update appliance of an ASR replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -692,7 +692,7 @@ ReplicationProtectedItem unplannedFailover(String resourceName, String resourceG * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return replication protected item. */ - ReplicationProtectedItem updateAppliance(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItem updateAppliance(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateApplianceForReplicationProtectedItemInput applianceUpdateInput); @@ -701,8 +701,8 @@ ReplicationProtectedItem updateAppliance(String resourceName, String resourceGro * * The operation to update appliance of an ASR replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -713,7 +713,7 @@ ReplicationProtectedItem updateAppliance(String resourceName, String resourceGro * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return replication protected item. */ - ReplicationProtectedItem updateAppliance(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItem updateAppliance(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateApplianceForReplicationProtectedItemInput applianceUpdateInput, Context context); @@ -723,8 +723,8 @@ ReplicationProtectedItem updateAppliance(String resourceName, String resourceGro * The operation to update(push update) the installed mobility service software on a replication protected item to * the latest available version. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric containing the protected item. * @param protectionContainerName The name of the container containing the protected item. * @param replicatedProtectedItemName The name of the protected item on which the agent is to be updated. @@ -734,7 +734,7 @@ ReplicationProtectedItem updateAppliance(String resourceName, String resourceGro * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return replication protected item. */ - ReplicationProtectedItem updateMobilityService(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItem updateMobilityService(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateMobilityServiceRequest updateMobilityServiceRequest); @@ -744,8 +744,8 @@ ReplicationProtectedItem updateMobilityService(String resourceName, String resou * The operation to update(push update) the installed mobility service software on a replication protected item to * the latest available version. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric containing the protected item. * @param protectionContainerName The name of the container containing the protected item. * @param replicatedProtectedItemName The name of the protected item on which the agent is to be updated. @@ -756,7 +756,7 @@ ReplicationProtectedItem updateMobilityService(String resourceName, String resou * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return replication protected item. */ - ReplicationProtectedItem updateMobilityService(String resourceName, String resourceGroupName, String fabricName, + ReplicationProtectedItem updateMobilityService(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, UpdateMobilityServiceRequest updateMobilityServiceRequest, Context context); @@ -765,23 +765,23 @@ ReplicationProtectedItem updateMobilityService(String resourceName, String resou * * Gets the list of ASR replication protected items in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of ASR replication protected items in the vault as paginated response with * {@link PagedIterable}. */ - PagedIterable list(String resourceName, String resourceGroupName); + PagedIterable list(String resourceGroupName, String resourceName); /** * Gets the list of replication protected items. * * Gets the list of ASR replication protected items in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param skipToken The pagination token. Possible values: "FabricId" or "FabricId_CloudId" or null. * @param filter OData filter options. * @param context The context to associate with this operation. @@ -791,7 +791,7 @@ ReplicationProtectedItem updateMobilityService(String resourceName, String resou * @return the list of ASR replication protected items in the vault as paginated response with * {@link PagedIterable}. */ - PagedIterable list(String resourceName, String resourceGroupName, String skipToken, + PagedIterable list(String resourceGroupName, String resourceName, String skipToken, String filter, Context context); /** diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationProtectionCluster.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationProtectionCluster.java new file mode 100644 index 000000000000..d2f819aa4560 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationProtectionCluster.java @@ -0,0 +1,290 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.core.util.Context; +import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.ReplicationProtectionClusterInner; + +/** + * An immutable client-side representation of ReplicationProtectionCluster. + */ +public interface ReplicationProtectionCluster { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the properties property: The custom data. + * + * @return the properties value. + */ + ReplicationProtectionClusterProperties properties(); + + /** + * Gets the inner + * com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.ReplicationProtectionClusterInner object. + * + * @return the inner object. + */ + ReplicationProtectionClusterInner innerModel(); + + /** + * The entirety of the ReplicationProtectionCluster definition. + */ + interface Definition + extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { + } + + /** + * The ReplicationProtectionCluster definition stages. + */ + interface DefinitionStages { + /** + * The first stage of the ReplicationProtectionCluster definition. + */ + interface Blank extends WithParentResource { + } + + /** + * The stage of the ReplicationProtectionCluster definition allowing to specify parent resource. + */ + interface WithParentResource { + /** + * Specifies resourceGroupName, resourceName, fabricName, protectionContainerName. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @return the next definition stage. + */ + WithCreate withExistingReplicationProtectionContainer(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName); + } + + /** + * The stage of the ReplicationProtectionCluster definition which contains all the minimum required properties + * for the resource to be created, but also allows for any other optional properties to be specified. + */ + interface WithCreate extends DefinitionStages.WithProperties { + /** + * Executes the create request. + * + * @return the created resource. + */ + ReplicationProtectionCluster create(); + + /** + * Executes the create request. + * + * @param context The context to associate with this operation. + * @return the created resource. + */ + ReplicationProtectionCluster create(Context context); + } + + /** + * The stage of the ReplicationProtectionCluster definition allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: The custom data.. + * + * @param properties The custom data. + * @return the next definition stage. + */ + WithCreate withProperties(ReplicationProtectionClusterProperties properties); + } + } + + /** + * Refreshes the resource to sync with Azure. + * + * @return the refreshed resource. + */ + ReplicationProtectionCluster refresh(); + + /** + * Refreshes the resource to sync with Azure. + * + * @param context The context to associate with this operation. + * @return the refreshed resource. + */ + ReplicationProtectionCluster refresh(Context context); + + /** + * Execute the change recovery point operation for cluster. + * + * Operation to apply a new cluster recovery point on the Protection cluster. + * + * @param applyClusterRecoveryPointInput Apply recovery point input. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + ReplicationProtectionCluster applyRecoveryPoint(ApplyClusterRecoveryPointInput applyClusterRecoveryPointInput); + + /** + * Execute the change recovery point operation for cluster. + * + * Operation to apply a new cluster recovery point on the Protection cluster. + * + * @param applyClusterRecoveryPointInput Apply recovery point input. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + ReplicationProtectionCluster applyRecoveryPoint(ApplyClusterRecoveryPointInput applyClusterRecoveryPointInput, + Context context); + + /** + * Execute commit failover for cluster. + * + * Operation to initiate commit failover of the replication protection cluster. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + ReplicationProtectionCluster failoverCommit(); + + /** + * Execute commit failover for cluster. + * + * Operation to initiate commit failover of the replication protection cluster. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + ReplicationProtectionCluster failoverCommit(Context context); + + /** + * Resynchronize or repair replication of protection cluster. + * + * The operation to repair replication protection cluster. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + ReplicationProtectionCluster repairReplication(); + + /** + * Resynchronize or repair replication of protection cluster. + * + * The operation to repair replication protection cluster. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + ReplicationProtectionCluster repairReplication(Context context); + + /** + * Execute test failover for cluster. + * + * Operation to initiate a failover of the replication protection cluster. + * + * @param failoverInput Cluster test failover input body. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + ReplicationProtectionCluster testFailover(ClusterTestFailoverInput failoverInput); + + /** + * Execute test failover for cluster. + * + * Operation to initiate a failover of the replication protection cluster. + * + * @param failoverInput Cluster test failover input body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + ReplicationProtectionCluster testFailover(ClusterTestFailoverInput failoverInput, Context context); + + /** + * Execute test failover cleanup for cluster. + * + * Operation to clean up the test failover of a replication protected cluster. + * + * @param cleanupInput Test failover cleanup input. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + ReplicationProtectionCluster testFailoverCleanup(ClusterTestFailoverCleanupInput cleanupInput); + + /** + * Execute test failover cleanup for cluster. + * + * Operation to clean up the test failover of a replication protected cluster. + * + * @param cleanupInput Test failover cleanup input. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + ReplicationProtectionCluster testFailoverCleanup(ClusterTestFailoverCleanupInput cleanupInput, Context context); + + /** + * Execute unplanned cluster failover. + * + * Operation to initiate a failover of the replication protection cluster. + * + * @param failoverInput Failover input. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + ReplicationProtectionCluster unplannedFailover(ClusterUnplannedFailoverInput failoverInput); + + /** + * Execute unplanned cluster failover. + * + * Operation to initiate a failover of the replication protection cluster. + * + * @param failoverInput Failover input. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + ReplicationProtectionCluster unplannedFailover(ClusterUnplannedFailoverInput failoverInput, Context context); +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationProtectionClusterCollection.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationProtectionClusterCollection.java new file mode 100644 index 000000000000..2acfad31b626 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationProtectionClusterCollection.java @@ -0,0 +1,130 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.ReplicationProtectionClusterInner; +import java.io.IOException; +import java.util.List; + +/** + * Replication protected item collection. + */ +@Fluent +public final class ReplicationProtectionClusterCollection + implements JsonSerializable { + /* + * The Replication protection cluster details. + */ + private List value; + + /* + * The value of next link. + */ + private String nextLink; + + /** + * Creates an instance of ReplicationProtectionClusterCollection class. + */ + public ReplicationProtectionClusterCollection() { + } + + /** + * Get the value property: The Replication protection cluster details. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Set the value property: The Replication protection cluster details. + * + * @param value the value value to set. + * @return the ReplicationProtectionClusterCollection object itself. + */ + public ReplicationProtectionClusterCollection withValue(List value) { + this.value = value; + return this; + } + + /** + * Get the nextLink property: The value of next link. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Set the nextLink property: The value of next link. + * + * @param nextLink the nextLink value to set. + * @return the ReplicationProtectionClusterCollection object itself. + */ + public ReplicationProtectionClusterCollection withNextLink(String nextLink) { + this.nextLink = nextLink; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() != null) { + value().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ReplicationProtectionClusterCollection from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ReplicationProtectionClusterCollection if the JsonReader was pointing to an instance of + * it, or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ReplicationProtectionClusterCollection. + */ + public static ReplicationProtectionClusterCollection fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ReplicationProtectionClusterCollection deserializedReplicationProtectionClusterCollection + = new ReplicationProtectionClusterCollection(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> ReplicationProtectionClusterInner.fromJson(reader1)); + deserializedReplicationProtectionClusterCollection.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedReplicationProtectionClusterCollection.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedReplicationProtectionClusterCollection; + }); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationProtectionClusterProperties.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationProtectionClusterProperties.java new file mode 100644 index 000000000000..d4915067db60 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationProtectionClusterProperties.java @@ -0,0 +1,959 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.CoreUtils; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.time.format.DateTimeFormatter; +import java.util.List; + +/** + * Replication protection cluster custom data details. + */ +@Fluent +public final class ReplicationProtectionClusterProperties + implements JsonSerializable { + /* + * The type of protection cluster type. + */ + private String protectionClusterType; + + /* + * The friendly name of the primary fabric. + */ + private String primaryFabricFriendlyName; + + /* + * The fabric provider of the primary fabric. + */ + private String primaryFabricProvider; + + /* + * The friendly name of recovery fabric. + */ + private String recoveryFabricFriendlyName; + + /* + * The Arm Id of recovery fabric. + */ + private String recoveryFabricId; + + /* + * The name of primary protection container friendly name. + */ + private String primaryProtectionContainerFriendlyName; + + /* + * The name of recovery container friendly name. + */ + private String recoveryProtectionContainerFriendlyName; + + /* + * The protection status. + */ + private String protectionState; + + /* + * The protection state description. + */ + private String protectionStateDescription; + + /* + * The Current active location of the Protection cluster. + */ + private String activeLocation; + + /* + * The Test failover state. + */ + private String testFailoverState; + + /* + * The Test failover state description. + */ + private String testFailoverStateDescription; + + /* + * The allowed operations on the Replication protection cluster. + */ + private List allowedOperations; + + /* + * The consolidated protection health for the VM taking any issues with SRS as well as all the replication units + * associated with the VM's replication group into account. This is a string representation of the ProtectionHealth + * enumeration. + */ + private String replicationHealth; + + /* + * List of health errors. + */ + private List healthErrors; + + /* + * The last successful failover time. + */ + private OffsetDateTime lastSuccessfulFailoverTime; + + /* + * The last successful test failover time. + */ + private OffsetDateTime lastSuccessfulTestFailoverTime; + + /* + * The name of Policy governing this PE. + */ + private String policyFriendlyName; + + /* + * The current scenario. + */ + private CurrentScenarioDetails currentScenario; + + /* + * The recovery container Id. + */ + private String recoveryContainerId; + + /* + * The Agent cluster Id. + */ + private String agentClusterId; + + /* + * The cluster FQDN. + */ + private String clusterFqdn; + + /* + * The List of cluster Node FQDNs. + */ + private List clusterNodeFqdns; + + /* + * The List of Protected Item Id's. + */ + private List clusterProtectedItemIds; + + /* + * The provisioning state of the cluster. + */ + private String provisioningState; + + /* + * A value indicating whether all nodes of the cluster are registered or not. + */ + private Boolean areAllClusterNodesRegistered; + + /* + * The registered node details. + */ + private List clusterRegisteredNodes; + + /* + * The Replication cluster provider custom settings. + */ + private ReplicationClusterProviderSpecificSettings providerSpecificDetails; + + /* + * The shared disk properties. + */ + private SharedDiskReplicationItemProperties sharedDiskProperties; + + /* + * The Policy Id. + */ + private String policyId; + + /** + * Creates an instance of ReplicationProtectionClusterProperties class. + */ + public ReplicationProtectionClusterProperties() { + } + + /** + * Get the protectionClusterType property: The type of protection cluster type. + * + * @return the protectionClusterType value. + */ + public String protectionClusterType() { + return this.protectionClusterType; + } + + /** + * Set the protectionClusterType property: The type of protection cluster type. + * + * @param protectionClusterType the protectionClusterType value to set. + * @return the ReplicationProtectionClusterProperties object itself. + */ + public ReplicationProtectionClusterProperties withProtectionClusterType(String protectionClusterType) { + this.protectionClusterType = protectionClusterType; + return this; + } + + /** + * Get the primaryFabricFriendlyName property: The friendly name of the primary fabric. + * + * @return the primaryFabricFriendlyName value. + */ + public String primaryFabricFriendlyName() { + return this.primaryFabricFriendlyName; + } + + /** + * Set the primaryFabricFriendlyName property: The friendly name of the primary fabric. + * + * @param primaryFabricFriendlyName the primaryFabricFriendlyName value to set. + * @return the ReplicationProtectionClusterProperties object itself. + */ + public ReplicationProtectionClusterProperties withPrimaryFabricFriendlyName(String primaryFabricFriendlyName) { + this.primaryFabricFriendlyName = primaryFabricFriendlyName; + return this; + } + + /** + * Get the primaryFabricProvider property: The fabric provider of the primary fabric. + * + * @return the primaryFabricProvider value. + */ + public String primaryFabricProvider() { + return this.primaryFabricProvider; + } + + /** + * Set the primaryFabricProvider property: The fabric provider of the primary fabric. + * + * @param primaryFabricProvider the primaryFabricProvider value to set. + * @return the ReplicationProtectionClusterProperties object itself. + */ + public ReplicationProtectionClusterProperties withPrimaryFabricProvider(String primaryFabricProvider) { + this.primaryFabricProvider = primaryFabricProvider; + return this; + } + + /** + * Get the recoveryFabricFriendlyName property: The friendly name of recovery fabric. + * + * @return the recoveryFabricFriendlyName value. + */ + public String recoveryFabricFriendlyName() { + return this.recoveryFabricFriendlyName; + } + + /** + * Set the recoveryFabricFriendlyName property: The friendly name of recovery fabric. + * + * @param recoveryFabricFriendlyName the recoveryFabricFriendlyName value to set. + * @return the ReplicationProtectionClusterProperties object itself. + */ + public ReplicationProtectionClusterProperties withRecoveryFabricFriendlyName(String recoveryFabricFriendlyName) { + this.recoveryFabricFriendlyName = recoveryFabricFriendlyName; + return this; + } + + /** + * Get the recoveryFabricId property: The Arm Id of recovery fabric. + * + * @return the recoveryFabricId value. + */ + public String recoveryFabricId() { + return this.recoveryFabricId; + } + + /** + * Set the recoveryFabricId property: The Arm Id of recovery fabric. + * + * @param recoveryFabricId the recoveryFabricId value to set. + * @return the ReplicationProtectionClusterProperties object itself. + */ + public ReplicationProtectionClusterProperties withRecoveryFabricId(String recoveryFabricId) { + this.recoveryFabricId = recoveryFabricId; + return this; + } + + /** + * Get the primaryProtectionContainerFriendlyName property: The name of primary protection container friendly name. + * + * @return the primaryProtectionContainerFriendlyName value. + */ + public String primaryProtectionContainerFriendlyName() { + return this.primaryProtectionContainerFriendlyName; + } + + /** + * Set the primaryProtectionContainerFriendlyName property: The name of primary protection container friendly name. + * + * @param primaryProtectionContainerFriendlyName the primaryProtectionContainerFriendlyName value to set. + * @return the ReplicationProtectionClusterProperties object itself. + */ + public ReplicationProtectionClusterProperties + withPrimaryProtectionContainerFriendlyName(String primaryProtectionContainerFriendlyName) { + this.primaryProtectionContainerFriendlyName = primaryProtectionContainerFriendlyName; + return this; + } + + /** + * Get the recoveryProtectionContainerFriendlyName property: The name of recovery container friendly name. + * + * @return the recoveryProtectionContainerFriendlyName value. + */ + public String recoveryProtectionContainerFriendlyName() { + return this.recoveryProtectionContainerFriendlyName; + } + + /** + * Set the recoveryProtectionContainerFriendlyName property: The name of recovery container friendly name. + * + * @param recoveryProtectionContainerFriendlyName the recoveryProtectionContainerFriendlyName value to set. + * @return the ReplicationProtectionClusterProperties object itself. + */ + public ReplicationProtectionClusterProperties + withRecoveryProtectionContainerFriendlyName(String recoveryProtectionContainerFriendlyName) { + this.recoveryProtectionContainerFriendlyName = recoveryProtectionContainerFriendlyName; + return this; + } + + /** + * Get the protectionState property: The protection status. + * + * @return the protectionState value. + */ + public String protectionState() { + return this.protectionState; + } + + /** + * Set the protectionState property: The protection status. + * + * @param protectionState the protectionState value to set. + * @return the ReplicationProtectionClusterProperties object itself. + */ + public ReplicationProtectionClusterProperties withProtectionState(String protectionState) { + this.protectionState = protectionState; + return this; + } + + /** + * Get the protectionStateDescription property: The protection state description. + * + * @return the protectionStateDescription value. + */ + public String protectionStateDescription() { + return this.protectionStateDescription; + } + + /** + * Set the protectionStateDescription property: The protection state description. + * + * @param protectionStateDescription the protectionStateDescription value to set. + * @return the ReplicationProtectionClusterProperties object itself. + */ + public ReplicationProtectionClusterProperties withProtectionStateDescription(String protectionStateDescription) { + this.protectionStateDescription = protectionStateDescription; + return this; + } + + /** + * Get the activeLocation property: The Current active location of the Protection cluster. + * + * @return the activeLocation value. + */ + public String activeLocation() { + return this.activeLocation; + } + + /** + * Set the activeLocation property: The Current active location of the Protection cluster. + * + * @param activeLocation the activeLocation value to set. + * @return the ReplicationProtectionClusterProperties object itself. + */ + public ReplicationProtectionClusterProperties withActiveLocation(String activeLocation) { + this.activeLocation = activeLocation; + return this; + } + + /** + * Get the testFailoverState property: The Test failover state. + * + * @return the testFailoverState value. + */ + public String testFailoverState() { + return this.testFailoverState; + } + + /** + * Set the testFailoverState property: The Test failover state. + * + * @param testFailoverState the testFailoverState value to set. + * @return the ReplicationProtectionClusterProperties object itself. + */ + public ReplicationProtectionClusterProperties withTestFailoverState(String testFailoverState) { + this.testFailoverState = testFailoverState; + return this; + } + + /** + * Get the testFailoverStateDescription property: The Test failover state description. + * + * @return the testFailoverStateDescription value. + */ + public String testFailoverStateDescription() { + return this.testFailoverStateDescription; + } + + /** + * Set the testFailoverStateDescription property: The Test failover state description. + * + * @param testFailoverStateDescription the testFailoverStateDescription value to set. + * @return the ReplicationProtectionClusterProperties object itself. + */ + public ReplicationProtectionClusterProperties + withTestFailoverStateDescription(String testFailoverStateDescription) { + this.testFailoverStateDescription = testFailoverStateDescription; + return this; + } + + /** + * Get the allowedOperations property: The allowed operations on the Replication protection cluster. + * + * @return the allowedOperations value. + */ + public List allowedOperations() { + return this.allowedOperations; + } + + /** + * Set the allowedOperations property: The allowed operations on the Replication protection cluster. + * + * @param allowedOperations the allowedOperations value to set. + * @return the ReplicationProtectionClusterProperties object itself. + */ + public ReplicationProtectionClusterProperties withAllowedOperations(List allowedOperations) { + this.allowedOperations = allowedOperations; + return this; + } + + /** + * Get the replicationHealth property: The consolidated protection health for the VM taking any issues with SRS as + * well as all the replication units associated with the VM's replication group into account. This is a string + * representation of the ProtectionHealth enumeration. + * + * @return the replicationHealth value. + */ + public String replicationHealth() { + return this.replicationHealth; + } + + /** + * Set the replicationHealth property: The consolidated protection health for the VM taking any issues with SRS as + * well as all the replication units associated with the VM's replication group into account. This is a string + * representation of the ProtectionHealth enumeration. + * + * @param replicationHealth the replicationHealth value to set. + * @return the ReplicationProtectionClusterProperties object itself. + */ + public ReplicationProtectionClusterProperties withReplicationHealth(String replicationHealth) { + this.replicationHealth = replicationHealth; + return this; + } + + /** + * Get the healthErrors property: List of health errors. + * + * @return the healthErrors value. + */ + public List healthErrors() { + return this.healthErrors; + } + + /** + * Set the healthErrors property: List of health errors. + * + * @param healthErrors the healthErrors value to set. + * @return the ReplicationProtectionClusterProperties object itself. + */ + public ReplicationProtectionClusterProperties withHealthErrors(List healthErrors) { + this.healthErrors = healthErrors; + return this; + } + + /** + * Get the lastSuccessfulFailoverTime property: The last successful failover time. + * + * @return the lastSuccessfulFailoverTime value. + */ + public OffsetDateTime lastSuccessfulFailoverTime() { + return this.lastSuccessfulFailoverTime; + } + + /** + * Set the lastSuccessfulFailoverTime property: The last successful failover time. + * + * @param lastSuccessfulFailoverTime the lastSuccessfulFailoverTime value to set. + * @return the ReplicationProtectionClusterProperties object itself. + */ + public ReplicationProtectionClusterProperties + withLastSuccessfulFailoverTime(OffsetDateTime lastSuccessfulFailoverTime) { + this.lastSuccessfulFailoverTime = lastSuccessfulFailoverTime; + return this; + } + + /** + * Get the lastSuccessfulTestFailoverTime property: The last successful test failover time. + * + * @return the lastSuccessfulTestFailoverTime value. + */ + public OffsetDateTime lastSuccessfulTestFailoverTime() { + return this.lastSuccessfulTestFailoverTime; + } + + /** + * Set the lastSuccessfulTestFailoverTime property: The last successful test failover time. + * + * @param lastSuccessfulTestFailoverTime the lastSuccessfulTestFailoverTime value to set. + * @return the ReplicationProtectionClusterProperties object itself. + */ + public ReplicationProtectionClusterProperties + withLastSuccessfulTestFailoverTime(OffsetDateTime lastSuccessfulTestFailoverTime) { + this.lastSuccessfulTestFailoverTime = lastSuccessfulTestFailoverTime; + return this; + } + + /** + * Get the policyFriendlyName property: The name of Policy governing this PE. + * + * @return the policyFriendlyName value. + */ + public String policyFriendlyName() { + return this.policyFriendlyName; + } + + /** + * Set the policyFriendlyName property: The name of Policy governing this PE. + * + * @param policyFriendlyName the policyFriendlyName value to set. + * @return the ReplicationProtectionClusterProperties object itself. + */ + public ReplicationProtectionClusterProperties withPolicyFriendlyName(String policyFriendlyName) { + this.policyFriendlyName = policyFriendlyName; + return this; + } + + /** + * Get the currentScenario property: The current scenario. + * + * @return the currentScenario value. + */ + public CurrentScenarioDetails currentScenario() { + return this.currentScenario; + } + + /** + * Set the currentScenario property: The current scenario. + * + * @param currentScenario the currentScenario value to set. + * @return the ReplicationProtectionClusterProperties object itself. + */ + public ReplicationProtectionClusterProperties withCurrentScenario(CurrentScenarioDetails currentScenario) { + this.currentScenario = currentScenario; + return this; + } + + /** + * Get the recoveryContainerId property: The recovery container Id. + * + * @return the recoveryContainerId value. + */ + public String recoveryContainerId() { + return this.recoveryContainerId; + } + + /** + * Set the recoveryContainerId property: The recovery container Id. + * + * @param recoveryContainerId the recoveryContainerId value to set. + * @return the ReplicationProtectionClusterProperties object itself. + */ + public ReplicationProtectionClusterProperties withRecoveryContainerId(String recoveryContainerId) { + this.recoveryContainerId = recoveryContainerId; + return this; + } + + /** + * Get the agentClusterId property: The Agent cluster Id. + * + * @return the agentClusterId value. + */ + public String agentClusterId() { + return this.agentClusterId; + } + + /** + * Set the agentClusterId property: The Agent cluster Id. + * + * @param agentClusterId the agentClusterId value to set. + * @return the ReplicationProtectionClusterProperties object itself. + */ + public ReplicationProtectionClusterProperties withAgentClusterId(String agentClusterId) { + this.agentClusterId = agentClusterId; + return this; + } + + /** + * Get the clusterFqdn property: The cluster FQDN. + * + * @return the clusterFqdn value. + */ + public String clusterFqdn() { + return this.clusterFqdn; + } + + /** + * Set the clusterFqdn property: The cluster FQDN. + * + * @param clusterFqdn the clusterFqdn value to set. + * @return the ReplicationProtectionClusterProperties object itself. + */ + public ReplicationProtectionClusterProperties withClusterFqdn(String clusterFqdn) { + this.clusterFqdn = clusterFqdn; + return this; + } + + /** + * Get the clusterNodeFqdns property: The List of cluster Node FQDNs. + * + * @return the clusterNodeFqdns value. + */ + public List clusterNodeFqdns() { + return this.clusterNodeFqdns; + } + + /** + * Set the clusterNodeFqdns property: The List of cluster Node FQDNs. + * + * @param clusterNodeFqdns the clusterNodeFqdns value to set. + * @return the ReplicationProtectionClusterProperties object itself. + */ + public ReplicationProtectionClusterProperties withClusterNodeFqdns(List clusterNodeFqdns) { + this.clusterNodeFqdns = clusterNodeFqdns; + return this; + } + + /** + * Get the clusterProtectedItemIds property: The List of Protected Item Id's. + * + * @return the clusterProtectedItemIds value. + */ + public List clusterProtectedItemIds() { + return this.clusterProtectedItemIds; + } + + /** + * Set the clusterProtectedItemIds property: The List of Protected Item Id's. + * + * @param clusterProtectedItemIds the clusterProtectedItemIds value to set. + * @return the ReplicationProtectionClusterProperties object itself. + */ + public ReplicationProtectionClusterProperties withClusterProtectedItemIds(List clusterProtectedItemIds) { + this.clusterProtectedItemIds = clusterProtectedItemIds; + return this; + } + + /** + * Get the provisioningState property: The provisioning state of the cluster. + * + * @return the provisioningState value. + */ + public String provisioningState() { + return this.provisioningState; + } + + /** + * Get the areAllClusterNodesRegistered property: A value indicating whether all nodes of the cluster are registered + * or not. + * + * @return the areAllClusterNodesRegistered value. + */ + public Boolean areAllClusterNodesRegistered() { + return this.areAllClusterNodesRegistered; + } + + /** + * Set the areAllClusterNodesRegistered property: A value indicating whether all nodes of the cluster are registered + * or not. + * + * @param areAllClusterNodesRegistered the areAllClusterNodesRegistered value to set. + * @return the ReplicationProtectionClusterProperties object itself. + */ + public ReplicationProtectionClusterProperties + withAreAllClusterNodesRegistered(Boolean areAllClusterNodesRegistered) { + this.areAllClusterNodesRegistered = areAllClusterNodesRegistered; + return this; + } + + /** + * Get the clusterRegisteredNodes property: The registered node details. + * + * @return the clusterRegisteredNodes value. + */ + public List clusterRegisteredNodes() { + return this.clusterRegisteredNodes; + } + + /** + * Set the clusterRegisteredNodes property: The registered node details. + * + * @param clusterRegisteredNodes the clusterRegisteredNodes value to set. + * @return the ReplicationProtectionClusterProperties object itself. + */ + public ReplicationProtectionClusterProperties + withClusterRegisteredNodes(List clusterRegisteredNodes) { + this.clusterRegisteredNodes = clusterRegisteredNodes; + return this; + } + + /** + * Get the providerSpecificDetails property: The Replication cluster provider custom settings. + * + * @return the providerSpecificDetails value. + */ + public ReplicationClusterProviderSpecificSettings providerSpecificDetails() { + return this.providerSpecificDetails; + } + + /** + * Set the providerSpecificDetails property: The Replication cluster provider custom settings. + * + * @param providerSpecificDetails the providerSpecificDetails value to set. + * @return the ReplicationProtectionClusterProperties object itself. + */ + public ReplicationProtectionClusterProperties + withProviderSpecificDetails(ReplicationClusterProviderSpecificSettings providerSpecificDetails) { + this.providerSpecificDetails = providerSpecificDetails; + return this; + } + + /** + * Get the sharedDiskProperties property: The shared disk properties. + * + * @return the sharedDiskProperties value. + */ + public SharedDiskReplicationItemProperties sharedDiskProperties() { + return this.sharedDiskProperties; + } + + /** + * Set the sharedDiskProperties property: The shared disk properties. + * + * @param sharedDiskProperties the sharedDiskProperties value to set. + * @return the ReplicationProtectionClusterProperties object itself. + */ + public ReplicationProtectionClusterProperties + withSharedDiskProperties(SharedDiskReplicationItemProperties sharedDiskProperties) { + this.sharedDiskProperties = sharedDiskProperties; + return this; + } + + /** + * Get the policyId property: The Policy Id. + * + * @return the policyId value. + */ + public String policyId() { + return this.policyId; + } + + /** + * Set the policyId property: The Policy Id. + * + * @param policyId the policyId value to set. + * @return the ReplicationProtectionClusterProperties object itself. + */ + public ReplicationProtectionClusterProperties withPolicyId(String policyId) { + this.policyId = policyId; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (healthErrors() != null) { + healthErrors().forEach(e -> e.validate()); + } + if (currentScenario() != null) { + currentScenario().validate(); + } + if (clusterRegisteredNodes() != null) { + clusterRegisteredNodes().forEach(e -> e.validate()); + } + if (providerSpecificDetails() != null) { + providerSpecificDetails().validate(); + } + if (sharedDiskProperties() != null) { + sharedDiskProperties().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("protectionClusterType", this.protectionClusterType); + jsonWriter.writeStringField("primaryFabricFriendlyName", this.primaryFabricFriendlyName); + jsonWriter.writeStringField("primaryFabricProvider", this.primaryFabricProvider); + jsonWriter.writeStringField("recoveryFabricFriendlyName", this.recoveryFabricFriendlyName); + jsonWriter.writeStringField("recoveryFabricId", this.recoveryFabricId); + jsonWriter.writeStringField("primaryProtectionContainerFriendlyName", + this.primaryProtectionContainerFriendlyName); + jsonWriter.writeStringField("recoveryProtectionContainerFriendlyName", + this.recoveryProtectionContainerFriendlyName); + jsonWriter.writeStringField("protectionState", this.protectionState); + jsonWriter.writeStringField("protectionStateDescription", this.protectionStateDescription); + jsonWriter.writeStringField("activeLocation", this.activeLocation); + jsonWriter.writeStringField("testFailoverState", this.testFailoverState); + jsonWriter.writeStringField("testFailoverStateDescription", this.testFailoverStateDescription); + jsonWriter.writeArrayField("allowedOperations", this.allowedOperations, + (writer, element) -> writer.writeString(element)); + jsonWriter.writeStringField("replicationHealth", this.replicationHealth); + jsonWriter.writeArrayField("healthErrors", this.healthErrors, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("lastSuccessfulFailoverTime", + this.lastSuccessfulFailoverTime == null + ? null + : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.lastSuccessfulFailoverTime)); + jsonWriter.writeStringField("lastSuccessfulTestFailoverTime", + this.lastSuccessfulTestFailoverTime == null + ? null + : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.lastSuccessfulTestFailoverTime)); + jsonWriter.writeStringField("policyFriendlyName", this.policyFriendlyName); + jsonWriter.writeJsonField("currentScenario", this.currentScenario); + jsonWriter.writeStringField("recoveryContainerId", this.recoveryContainerId); + jsonWriter.writeStringField("agentClusterId", this.agentClusterId); + jsonWriter.writeStringField("clusterFqdn", this.clusterFqdn); + jsonWriter.writeArrayField("clusterNodeFqdns", this.clusterNodeFqdns, + (writer, element) -> writer.writeString(element)); + jsonWriter.writeArrayField("clusterProtectedItemIds", this.clusterProtectedItemIds, + (writer, element) -> writer.writeString(element)); + jsonWriter.writeBooleanField("areAllClusterNodesRegistered", this.areAllClusterNodesRegistered); + jsonWriter.writeArrayField("clusterRegisteredNodes", this.clusterRegisteredNodes, + (writer, element) -> writer.writeJson(element)); + jsonWriter.writeJsonField("providerSpecificDetails", this.providerSpecificDetails); + jsonWriter.writeJsonField("sharedDiskProperties", this.sharedDiskProperties); + jsonWriter.writeStringField("policyId", this.policyId); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ReplicationProtectionClusterProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ReplicationProtectionClusterProperties if the JsonReader was pointing to an instance of + * it, or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ReplicationProtectionClusterProperties. + */ + public static ReplicationProtectionClusterProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ReplicationProtectionClusterProperties deserializedReplicationProtectionClusterProperties + = new ReplicationProtectionClusterProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("protectionClusterType".equals(fieldName)) { + deserializedReplicationProtectionClusterProperties.protectionClusterType = reader.getString(); + } else if ("primaryFabricFriendlyName".equals(fieldName)) { + deserializedReplicationProtectionClusterProperties.primaryFabricFriendlyName = reader.getString(); + } else if ("primaryFabricProvider".equals(fieldName)) { + deserializedReplicationProtectionClusterProperties.primaryFabricProvider = reader.getString(); + } else if ("recoveryFabricFriendlyName".equals(fieldName)) { + deserializedReplicationProtectionClusterProperties.recoveryFabricFriendlyName = reader.getString(); + } else if ("recoveryFabricId".equals(fieldName)) { + deserializedReplicationProtectionClusterProperties.recoveryFabricId = reader.getString(); + } else if ("primaryProtectionContainerFriendlyName".equals(fieldName)) { + deserializedReplicationProtectionClusterProperties.primaryProtectionContainerFriendlyName + = reader.getString(); + } else if ("recoveryProtectionContainerFriendlyName".equals(fieldName)) { + deserializedReplicationProtectionClusterProperties.recoveryProtectionContainerFriendlyName + = reader.getString(); + } else if ("protectionState".equals(fieldName)) { + deserializedReplicationProtectionClusterProperties.protectionState = reader.getString(); + } else if ("protectionStateDescription".equals(fieldName)) { + deserializedReplicationProtectionClusterProperties.protectionStateDescription = reader.getString(); + } else if ("activeLocation".equals(fieldName)) { + deserializedReplicationProtectionClusterProperties.activeLocation = reader.getString(); + } else if ("testFailoverState".equals(fieldName)) { + deserializedReplicationProtectionClusterProperties.testFailoverState = reader.getString(); + } else if ("testFailoverStateDescription".equals(fieldName)) { + deserializedReplicationProtectionClusterProperties.testFailoverStateDescription + = reader.getString(); + } else if ("allowedOperations".equals(fieldName)) { + List allowedOperations = reader.readArray(reader1 -> reader1.getString()); + deserializedReplicationProtectionClusterProperties.allowedOperations = allowedOperations; + } else if ("replicationHealth".equals(fieldName)) { + deserializedReplicationProtectionClusterProperties.replicationHealth = reader.getString(); + } else if ("healthErrors".equals(fieldName)) { + List healthErrors = reader.readArray(reader1 -> HealthError.fromJson(reader1)); + deserializedReplicationProtectionClusterProperties.healthErrors = healthErrors; + } else if ("lastSuccessfulFailoverTime".equals(fieldName)) { + deserializedReplicationProtectionClusterProperties.lastSuccessfulFailoverTime = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("lastSuccessfulTestFailoverTime".equals(fieldName)) { + deserializedReplicationProtectionClusterProperties.lastSuccessfulTestFailoverTime = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("policyFriendlyName".equals(fieldName)) { + deserializedReplicationProtectionClusterProperties.policyFriendlyName = reader.getString(); + } else if ("currentScenario".equals(fieldName)) { + deserializedReplicationProtectionClusterProperties.currentScenario + = CurrentScenarioDetails.fromJson(reader); + } else if ("recoveryContainerId".equals(fieldName)) { + deserializedReplicationProtectionClusterProperties.recoveryContainerId = reader.getString(); + } else if ("agentClusterId".equals(fieldName)) { + deserializedReplicationProtectionClusterProperties.agentClusterId = reader.getString(); + } else if ("clusterFqdn".equals(fieldName)) { + deserializedReplicationProtectionClusterProperties.clusterFqdn = reader.getString(); + } else if ("clusterNodeFqdns".equals(fieldName)) { + List clusterNodeFqdns = reader.readArray(reader1 -> reader1.getString()); + deserializedReplicationProtectionClusterProperties.clusterNodeFqdns = clusterNodeFqdns; + } else if ("clusterProtectedItemIds".equals(fieldName)) { + List clusterProtectedItemIds = reader.readArray(reader1 -> reader1.getString()); + deserializedReplicationProtectionClusterProperties.clusterProtectedItemIds + = clusterProtectedItemIds; + } else if ("provisioningState".equals(fieldName)) { + deserializedReplicationProtectionClusterProperties.provisioningState = reader.getString(); + } else if ("areAllClusterNodesRegistered".equals(fieldName)) { + deserializedReplicationProtectionClusterProperties.areAllClusterNodesRegistered + = reader.getNullable(JsonReader::getBoolean); + } else if ("clusterRegisteredNodes".equals(fieldName)) { + List clusterRegisteredNodes + = reader.readArray(reader1 -> RegisteredClusterNodes.fromJson(reader1)); + deserializedReplicationProtectionClusterProperties.clusterRegisteredNodes = clusterRegisteredNodes; + } else if ("providerSpecificDetails".equals(fieldName)) { + deserializedReplicationProtectionClusterProperties.providerSpecificDetails + = ReplicationClusterProviderSpecificSettings.fromJson(reader); + } else if ("sharedDiskProperties".equals(fieldName)) { + deserializedReplicationProtectionClusterProperties.sharedDiskProperties + = SharedDiskReplicationItemProperties.fromJson(reader); + } else if ("policyId".equals(fieldName)) { + deserializedReplicationProtectionClusterProperties.policyId = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedReplicationProtectionClusterProperties; + }); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationProtectionClusters.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationProtectionClusters.java new file mode 100644 index 000000000000..ca7a8c902b89 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationProtectionClusters.java @@ -0,0 +1,474 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of ReplicationProtectionClusters. + */ +public interface ReplicationProtectionClusters { + /** + * Gets the list of Replication protection clusters in fabric, container. + * + * Gets the list of ASR replication protected clusters in the protection container. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of ASR replication protected clusters in the protection container as paginated response with + * {@link PagedIterable}. + */ + PagedIterable listByReplicationProtectionContainers(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName); + + /** + * Gets the list of Replication protection clusters in fabric, container. + * + * Gets the list of ASR replication protected clusters in the protection container. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of ASR replication protected clusters in the protection container as paginated response with + * {@link PagedIterable}. + */ + PagedIterable listByReplicationProtectionContainers(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, Context context); + + /** + * Gets the details of a Replication protection cluster. + * + * Gets the details of an ASR replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the details of an ASR replication protection cluster along with {@link Response}. + */ + Response getWithResponse(String resourceGroupName, String resourceName, + String fabricName, String protectionContainerName, String replicationProtectionClusterName, Context context); + + /** + * Gets the details of a Replication protection cluster. + * + * Gets the details of an ASR replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the details of an ASR replication protection cluster. + */ + ReplicationProtectionCluster get(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName); + + /** + * Purge the replication protection cluster. + * + * The operation to purge the replication protection cluster. This operation will force delete the replication + * protection cluster. Use the remove operation on replication protection cluster to perform a clean disable + * replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void purge(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, + String replicationProtectionClusterName); + + /** + * Purge the replication protection cluster. + * + * The operation to purge the replication protection cluster. This operation will force delete the replication + * protection cluster. Use the remove operation on replication protection cluster to perform a clean disable + * replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void purge(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, + String replicationProtectionClusterName, Context context); + + /** + * Execute the change recovery point operation for cluster. + * + * Operation to apply a new cluster recovery point on the Protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param applyClusterRecoveryPointInput Apply recovery point input. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + ReplicationProtectionCluster applyRecoveryPoint(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, + ApplyClusterRecoveryPointInput applyClusterRecoveryPointInput); + + /** + * Execute the change recovery point operation for cluster. + * + * Operation to apply a new cluster recovery point on the Protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param applyClusterRecoveryPointInput Apply recovery point input. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + ReplicationProtectionCluster applyRecoveryPoint(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, + ApplyClusterRecoveryPointInput applyClusterRecoveryPointInput, Context context); + + /** + * Execute commit failover for cluster. + * + * Operation to initiate commit failover of the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + ReplicationProtectionCluster failoverCommit(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName); + + /** + * Execute commit failover for cluster. + * + * Operation to initiate commit failover of the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + ReplicationProtectionCluster failoverCommit(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, Context context); + + /** + * Tracks the Replication protection cluster async operation. + * + * Track the results of an asynchronous operation on the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param jobId job id to track. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster along with {@link Response}. + */ + Response getOperationResultsWithResponse(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, String replicationProtectionClusterName, + String jobId, Context context); + + /** + * Tracks the Replication protection cluster async operation. + * + * Track the results of an asynchronous operation on the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param jobId job id to track. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + ReplicationProtectionCluster getOperationResults(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, String jobId); + + /** + * Resynchronize or repair replication of protection cluster. + * + * The operation to repair replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + ReplicationProtectionCluster repairReplication(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName); + + /** + * Resynchronize or repair replication of protection cluster. + * + * The operation to repair replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + ReplicationProtectionCluster repairReplication(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, Context context); + + /** + * Execute test failover for cluster. + * + * Operation to initiate a failover of the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param failoverInput Cluster test failover input body. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + ReplicationProtectionCluster testFailover(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, + ClusterTestFailoverInput failoverInput); + + /** + * Execute test failover for cluster. + * + * Operation to initiate a failover of the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param failoverInput Cluster test failover input body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + ReplicationProtectionCluster testFailover(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, ClusterTestFailoverInput failoverInput, + Context context); + + /** + * Execute test failover cleanup for cluster. + * + * Operation to clean up the test failover of a replication protected cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param cleanupInput Test failover cleanup input. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + ReplicationProtectionCluster testFailoverCleanup(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, + ClusterTestFailoverCleanupInput cleanupInput); + + /** + * Execute test failover cleanup for cluster. + * + * Operation to clean up the test failover of a replication protected cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param cleanupInput Test failover cleanup input. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + ReplicationProtectionCluster testFailoverCleanup(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, + ClusterTestFailoverCleanupInput cleanupInput, Context context); + + /** + * Execute unplanned cluster failover. + * + * Operation to initiate a failover of the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param failoverInput Failover input. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + ReplicationProtectionCluster unplannedFailover(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, + ClusterUnplannedFailoverInput failoverInput); + + /** + * Execute unplanned cluster failover. + * + * Operation to initiate a failover of the replication protection cluster. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param failoverInput Failover input. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return replication protection Cluster. + */ + ReplicationProtectionCluster unplannedFailover(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, String replicationProtectionClusterName, + ClusterUnplannedFailoverInput failoverInput, Context context); + + /** + * Gets the list of Replication protection clusters in vault. + * + * Gets the list of ASR replication protected clusters in the vault. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of ASR replication protected clusters in the vault as paginated response with + * {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String resourceName); + + /** + * Gets the list of Replication protection clusters in vault. + * + * Gets the list of ASR replication protected clusters in the vault. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param skipToken The pagination token. Possible values: "FabricId" or "FabricId_CloudId" or null. + * @param filter OData filter options. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of ASR replication protected clusters in the vault as paginated response with + * {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String resourceName, String skipToken, + String filter, Context context); + + /** + * Gets the details of a Replication protection cluster. + * + * Gets the details of an ASR replication protection cluster. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the details of an ASR replication protection cluster along with {@link Response}. + */ + ReplicationProtectionCluster getById(String id); + + /** + * Gets the details of a Replication protection cluster. + * + * Gets the details of an ASR replication protection cluster. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the details of an ASR replication protection cluster along with {@link Response}. + */ + Response getByIdWithResponse(String id, Context context); + + /** + * Begins definition for a new ReplicationProtectionCluster resource. + * + * @param name resource name. + * @return the first stage of the new ReplicationProtectionCluster definition. + */ + ReplicationProtectionCluster.DefinitionStages.Blank define(String name); +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationProtectionContainerMappings.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationProtectionContainerMappings.java index 285060d7fd4a..a1eb8f0442c3 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationProtectionContainerMappings.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationProtectionContainerMappings.java @@ -17,8 +17,8 @@ public interface ReplicationProtectionContainerMappings { * * Lists the protection container mappings for a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -26,16 +26,16 @@ public interface ReplicationProtectionContainerMappings { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return protection container mapping collection class as paginated response with {@link PagedIterable}. */ - PagedIterable listByReplicationProtectionContainers(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName); + PagedIterable listByReplicationProtectionContainers(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName); /** * Gets the list of protection container mappings for a protection container. * * Lists the protection container mappings for a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param context The context to associate with this operation. @@ -44,16 +44,16 @@ PagedIterable listByReplicationProtectionContainers( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return protection container mapping collection class as paginated response with {@link PagedIterable}. */ - PagedIterable listByReplicationProtectionContainers(String resourceName, - String resourceGroupName, String fabricName, String protectionContainerName, Context context); + PagedIterable listByReplicationProtectionContainers(String resourceGroupName, + String resourceName, String fabricName, String protectionContainerName, Context context); /** * Gets a protection container mapping. * * Gets the details of a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection Container mapping name. @@ -63,7 +63,7 @@ PagedIterable listByReplicationProtectionContainers( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the details of a protection container mapping along with {@link Response}. */ - Response getWithResponse(String resourceName, String resourceGroupName, + Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, Context context); /** @@ -71,8 +71,8 @@ Response getWithResponse(String resourceName, String * * Gets the details of a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection Container mapping name. @@ -81,7 +81,7 @@ Response getWithResponse(String resourceName, String * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the details of a protection container mapping. */ - ProtectionContainerMapping get(String resourceName, String resourceGroupName, String fabricName, + ProtectionContainerMapping get(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName); /** @@ -89,8 +89,8 @@ ProtectionContainerMapping get(String resourceName, String resourceGroupName, St * * The operation to purge(force delete) a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -98,7 +98,7 @@ ProtectionContainerMapping get(String resourceName, String resourceGroupName, St * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void purge(String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + void purge(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName); /** @@ -106,8 +106,8 @@ void purge(String resourceName, String resourceGroupName, String fabricName, Str * * The operation to purge(force delete) a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -116,7 +116,7 @@ void purge(String resourceName, String resourceGroupName, String fabricName, Str * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void purge(String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + void purge(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, Context context); /** @@ -124,8 +124,8 @@ void purge(String resourceName, String resourceGroupName, String fabricName, Str * * The operation to delete or remove a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -134,7 +134,7 @@ void purge(String resourceName, String resourceGroupName, String fabricName, Str * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete(String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + void delete(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, RemoveProtectionContainerMappingInput removalInput); /** @@ -142,8 +142,8 @@ void delete(String resourceName, String resourceGroupName, String fabricName, St * * The operation to delete or remove a protection container mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -153,7 +153,7 @@ void delete(String resourceName, String resourceGroupName, String fabricName, St * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete(String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + void delete(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String mappingName, RemoveProtectionContainerMappingInput removalInput, Context context); /** @@ -161,29 +161,29 @@ void delete(String resourceName, String resourceGroupName, String fabricName, St * * Lists the protection container mappings in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return protection container mapping collection class as paginated response with {@link PagedIterable}. */ - PagedIterable list(String resourceName, String resourceGroupName); + PagedIterable list(String resourceGroupName, String resourceName); /** * Gets the list of all protection container mappings in a vault. * * Lists the protection container mappings in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return protection container mapping collection class as paginated response with {@link PagedIterable}. */ - PagedIterable list(String resourceName, String resourceGroupName, Context context); + PagedIterable list(String resourceGroupName, String resourceName, Context context); /** * Gets a protection container mapping. diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationProtectionContainers.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationProtectionContainers.java index 1b6ddcb824e1..5424416edd90 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationProtectionContainers.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationProtectionContainers.java @@ -17,15 +17,15 @@ public interface ReplicationProtectionContainers { * * Lists the protection containers in the specified fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return protection Container collection as paginated response with {@link PagedIterable}. */ - PagedIterable listByReplicationFabrics(String resourceName, String resourceGroupName, + PagedIterable listByReplicationFabrics(String resourceGroupName, String resourceName, String fabricName); /** @@ -33,8 +33,8 @@ PagedIterable listByReplicationFabrics(String resourceName, * * Lists the protection containers in the specified fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -42,7 +42,7 @@ PagedIterable listByReplicationFabrics(String resourceName, * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return protection Container collection as paginated response with {@link PagedIterable}. */ - PagedIterable listByReplicationFabrics(String resourceName, String resourceGroupName, + PagedIterable listByReplicationFabrics(String resourceGroupName, String resourceName, String fabricName, Context context); /** @@ -50,8 +50,8 @@ PagedIterable listByReplicationFabrics(String resourceName, * * Gets the details of a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param context The context to associate with this operation. @@ -60,7 +60,7 @@ PagedIterable listByReplicationFabrics(String resourceName, * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the details of a protection container along with {@link Response}. */ - Response getWithResponse(String resourceName, String resourceGroupName, String fabricName, + Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, Context context); /** @@ -68,8 +68,8 @@ Response getWithResponse(String resourceName, String resour * * Gets the details of a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -77,7 +77,7 @@ Response getWithResponse(String resourceName, String resour * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the details of a protection container. */ - ProtectionContainer get(String resourceName, String resourceGroupName, String fabricName, + ProtectionContainer get(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName); /** @@ -85,8 +85,8 @@ ProtectionContainer get(String resourceName, String resourceGroupName, String fa * * The operation to a add a protectable item to a protection container(Add physical server). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric. * @param protectionContainerName The name of the protection container. * @param discoverProtectableItemRequest The request object to add a protectable item. @@ -95,7 +95,7 @@ ProtectionContainer get(String resourceName, String resourceGroupName, String fa * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return protection container details. */ - ProtectionContainer discoverProtectableItem(String resourceName, String resourceGroupName, String fabricName, + ProtectionContainer discoverProtectableItem(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, DiscoverProtectableItemRequest discoverProtectableItemRequest); /** @@ -103,8 +103,8 @@ ProtectionContainer discoverProtectableItem(String resourceName, String resource * * The operation to a add a protectable item to a protection container(Add physical server). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric. * @param protectionContainerName The name of the protection container. * @param discoverProtectableItemRequest The request object to add a protectable item. @@ -114,7 +114,7 @@ ProtectionContainer discoverProtectableItem(String resourceName, String resource * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return protection container details. */ - ProtectionContainer discoverProtectableItem(String resourceName, String resourceGroupName, String fabricName, + ProtectionContainer discoverProtectableItem(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, DiscoverProtectableItemRequest discoverProtectableItemRequest, Context context); /** @@ -122,23 +122,23 @@ ProtectionContainer discoverProtectableItem(String resourceName, String resource * * Operation to remove a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric ARM name. * @param protectionContainerName Unique protection container ARM name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete(String resourceName, String resourceGroupName, String fabricName, String protectionContainerName); + void delete(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName); /** * Removes a protection container. * * Operation to remove a protection container. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric ARM name. * @param protectionContainerName Unique protection container ARM name. * @param context The context to associate with this operation. @@ -146,16 +146,53 @@ ProtectionContainer discoverProtectableItem(String resourceName, String resource * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete(String resourceName, String resourceGroupName, String fabricName, String protectionContainerName, + void delete(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, Context context); + /** + * Switches protection from one container to another. + * + * Operation to switch protection from one container to another. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param switchInput Switch protection input. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return protection container details. + */ + ProtectionContainer switchClusterProtection(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, SwitchClusterProtectionInput switchInput); + + /** + * Switches protection from one container to another. + * + * Operation to switch protection from one container to another. + * + * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param switchInput Switch protection input. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return protection container details. + */ + ProtectionContainer switchClusterProtection(String resourceGroupName, String resourceName, String fabricName, + String protectionContainerName, SwitchClusterProtectionInput switchInput, Context context); + /** * Switches protection from one container to another or one replication provider to another. * * Operation to switch protection from one container to another or one replication provider to another. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param switchInput Switch protection input. @@ -164,7 +201,7 @@ void delete(String resourceName, String resourceGroupName, String fabricName, St * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return protection container details. */ - ProtectionContainer switchProtection(String resourceName, String resourceGroupName, String fabricName, + ProtectionContainer switchProtection(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, SwitchProtectionInput switchInput); /** @@ -172,8 +209,8 @@ ProtectionContainer switchProtection(String resourceName, String resourceGroupNa * * Operation to switch protection from one container to another or one replication provider to another. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param switchInput Switch protection input. @@ -183,7 +220,7 @@ ProtectionContainer switchProtection(String resourceName, String resourceGroupNa * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return protection container details. */ - ProtectionContainer switchProtection(String resourceName, String resourceGroupName, String fabricName, + ProtectionContainer switchProtection(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, SwitchProtectionInput switchInput, Context context); /** @@ -191,29 +228,29 @@ ProtectionContainer switchProtection(String resourceName, String resourceGroupNa * * Lists the protection containers in a vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return protection Container collection as paginated response with {@link PagedIterable}. */ - PagedIterable list(String resourceName, String resourceGroupName); + PagedIterable list(String resourceGroupName, String resourceName); /** * Gets the list of all protection containers in a vault. * * Lists the protection containers in a vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return protection Container collection as paginated response with {@link PagedIterable}. */ - PagedIterable list(String resourceName, String resourceGroupName, Context context); + PagedIterable list(String resourceGroupName, String resourceName, Context context); /** * Gets the protection container details. diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationProtectionIntent.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationProtectionIntent.java index 81fbe592818c..ba98c9975e27 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationProtectionIntent.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationProtectionIntent.java @@ -91,13 +91,13 @@ interface Blank extends WithParentResource { */ interface WithParentResource { /** - * Specifies resourceName, resourceGroupName. + * Specifies resourceGroupName, resourceName. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @return the next definition stage. */ - WithCreate withExistingVault(String resourceName, String resourceGroupName); + WithCreate withExistingVault(String resourceGroupName, String resourceName); } /** diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationProtectionIntents.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationProtectionIntents.java index e0fd122e0b47..84061e20dd75 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationProtectionIntents.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationProtectionIntents.java @@ -17,23 +17,23 @@ public interface ReplicationProtectionIntents { * * Gets the list of ASR replication protection intent objects in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of ASR replication protection intent objects in the vault as paginated response with * {@link PagedIterable}. */ - PagedIterable list(String resourceName, String resourceGroupName); + PagedIterable list(String resourceGroupName, String resourceName); /** * Gets the list of replication protection intent objects. * * Gets the list of ASR replication protection intent objects in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param skipToken The pagination token. * @param takeToken The page size. * @param context The context to associate with this operation. @@ -43,7 +43,7 @@ public interface ReplicationProtectionIntents { * @return the list of ASR replication protection intent objects in the vault as paginated response with * {@link PagedIterable}. */ - PagedIterable list(String resourceName, String resourceGroupName, String skipToken, + PagedIterable list(String resourceGroupName, String resourceName, String skipToken, String takeToken, Context context); /** @@ -51,8 +51,8 @@ PagedIterable list(String resourceName, String reso * * Gets the details of an ASR replication protection intent. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param intentObjectName Replication protection intent name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -60,7 +60,7 @@ PagedIterable list(String resourceName, String reso * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the details of an ASR replication protection intent along with {@link Response}. */ - Response getWithResponse(String resourceName, String resourceGroupName, + Response getWithResponse(String resourceGroupName, String resourceName, String intentObjectName, Context context); /** @@ -68,15 +68,15 @@ Response getWithResponse(String resourceName, Strin * * Gets the details of an ASR replication protection intent. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param intentObjectName Replication protection intent name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the details of an ASR replication protection intent. */ - ReplicationProtectionIntent get(String resourceName, String resourceGroupName, String intentObjectName); + ReplicationProtectionIntent get(String resourceGroupName, String resourceName, String intentObjectName); /** * Gets the details of a Replication protection intent item. diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationRecoveryPlans.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationRecoveryPlans.java index 126404a4dfb2..fc1df0a98761 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationRecoveryPlans.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationRecoveryPlans.java @@ -17,37 +17,37 @@ public interface ReplicationRecoveryPlans { * * Lists the recovery plans in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return recovery plan collection details as paginated response with {@link PagedIterable}. */ - PagedIterable list(String resourceName, String resourceGroupName); + PagedIterable list(String resourceGroupName, String resourceName); /** * Gets the list of recovery plans. * * Lists the recovery plans in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return recovery plan collection details as paginated response with {@link PagedIterable}. */ - PagedIterable list(String resourceName, String resourceGroupName, Context context); + PagedIterable list(String resourceGroupName, String resourceName, Context context); /** * Gets the requested recovery plan. * * Gets the details of the recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Name of the recovery plan. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -55,7 +55,7 @@ public interface ReplicationRecoveryPlans { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the details of the recovery plan along with {@link Response}. */ - Response getWithResponse(String resourceName, String resourceGroupName, String recoveryPlanName, + Response getWithResponse(String resourceGroupName, String resourceName, String recoveryPlanName, Context context); /** @@ -63,67 +63,67 @@ Response getWithResponse(String resourceName, String resourceGroup * * Gets the details of the recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Name of the recovery plan. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the details of the recovery plan. */ - RecoveryPlan get(String resourceName, String resourceGroupName, String recoveryPlanName); + RecoveryPlan get(String resourceGroupName, String resourceName, String recoveryPlanName); /** * Deletes the specified recovery plan. * * Delete a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete(String resourceName, String resourceGroupName, String recoveryPlanName); + void delete(String resourceGroupName, String resourceName, String recoveryPlanName); /** * Deletes the specified recovery plan. * * Delete a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete(String resourceName, String resourceGroupName, String recoveryPlanName, Context context); + void delete(String resourceGroupName, String resourceName, String recoveryPlanName, Context context); /** * Execute cancel failover of the recovery plan. * * The operation to cancel the failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return recovery plan details. */ - RecoveryPlan failoverCancel(String resourceName, String resourceGroupName, String recoveryPlanName); + RecoveryPlan failoverCancel(String resourceGroupName, String resourceName, String recoveryPlanName); /** * Execute cancel failover of the recovery plan. * * The operation to cancel the failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -131,7 +131,7 @@ Response getWithResponse(String resourceName, String resourceGroup * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return recovery plan details. */ - RecoveryPlan failoverCancel(String resourceName, String resourceGroupName, String recoveryPlanName, + RecoveryPlan failoverCancel(String resourceGroupName, String resourceName, String recoveryPlanName, Context context); /** @@ -139,23 +139,23 @@ RecoveryPlan failoverCancel(String resourceName, String resourceGroupName, Strin * * The operation to commit the failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return recovery plan details. */ - RecoveryPlan failoverCommit(String resourceName, String resourceGroupName, String recoveryPlanName); + RecoveryPlan failoverCommit(String resourceGroupName, String resourceName, String recoveryPlanName); /** * Execute commit failover of the recovery plan. * * The operation to commit the failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -163,7 +163,7 @@ RecoveryPlan failoverCancel(String resourceName, String resourceGroupName, Strin * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return recovery plan details. */ - RecoveryPlan failoverCommit(String resourceName, String resourceGroupName, String recoveryPlanName, + RecoveryPlan failoverCommit(String resourceGroupName, String resourceName, String recoveryPlanName, Context context); /** @@ -171,8 +171,8 @@ RecoveryPlan failoverCommit(String resourceName, String resourceGroupName, Strin * * The operation to start the planned failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Failover input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -180,7 +180,7 @@ RecoveryPlan failoverCommit(String resourceName, String resourceGroupName, Strin * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return recovery plan details. */ - RecoveryPlan plannedFailover(String resourceName, String resourceGroupName, String recoveryPlanName, + RecoveryPlan plannedFailover(String resourceGroupName, String resourceName, String recoveryPlanName, RecoveryPlanPlannedFailoverInput input); /** @@ -188,8 +188,8 @@ RecoveryPlan plannedFailover(String resourceName, String resourceGroupName, Stri * * The operation to start the planned failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Failover input. * @param context The context to associate with this operation. @@ -198,31 +198,33 @@ RecoveryPlan plannedFailover(String resourceName, String resourceGroupName, Stri * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return recovery plan details. */ - RecoveryPlan plannedFailover(String resourceName, String resourceGroupName, String recoveryPlanName, + RecoveryPlan plannedFailover(String resourceGroupName, String resourceName, String recoveryPlanName, RecoveryPlanPlannedFailoverInput input, Context context); /** * Execute reprotect of the recovery plan. * - * The operation to reprotect(reverse replicate) a recovery plan. + * The operation to reprotect(reverse replicate) a recovery plan. This api is for deprecated scenarios and no longer + * works. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return recovery plan details. */ - RecoveryPlan reprotect(String resourceName, String resourceGroupName, String recoveryPlanName); + RecoveryPlan reprotect(String resourceGroupName, String resourceName, String recoveryPlanName); /** * Execute reprotect of the recovery plan. * - * The operation to reprotect(reverse replicate) a recovery plan. + * The operation to reprotect(reverse replicate) a recovery plan. This api is for deprecated scenarios and no longer + * works. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -230,15 +232,15 @@ RecoveryPlan plannedFailover(String resourceName, String resourceGroupName, Stri * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return recovery plan details. */ - RecoveryPlan reprotect(String resourceName, String resourceGroupName, String recoveryPlanName, Context context); + RecoveryPlan reprotect(String resourceGroupName, String resourceName, String recoveryPlanName, Context context); /** * Execute test failover of the recovery plan. * * The operation to start the test failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan test failover input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -246,7 +248,7 @@ RecoveryPlan plannedFailover(String resourceName, String resourceGroupName, Stri * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return recovery plan details. */ - RecoveryPlan testFailover(String resourceName, String resourceGroupName, String recoveryPlanName, + RecoveryPlan testFailover(String resourceGroupName, String resourceName, String recoveryPlanName, RecoveryPlanTestFailoverInput input); /** @@ -254,8 +256,8 @@ RecoveryPlan testFailover(String resourceName, String resourceGroupName, String * * The operation to start the test failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan test failover input. * @param context The context to associate with this operation. @@ -264,7 +266,7 @@ RecoveryPlan testFailover(String resourceName, String resourceGroupName, String * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return recovery plan details. */ - RecoveryPlan testFailover(String resourceName, String resourceGroupName, String recoveryPlanName, + RecoveryPlan testFailover(String resourceGroupName, String resourceName, String recoveryPlanName, RecoveryPlanTestFailoverInput input, Context context); /** @@ -272,8 +274,8 @@ RecoveryPlan testFailover(String resourceName, String resourceGroupName, String * * The operation to cleanup test failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan test failover cleanup input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -281,7 +283,7 @@ RecoveryPlan testFailover(String resourceName, String resourceGroupName, String * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return recovery plan details. */ - RecoveryPlan testFailoverCleanup(String resourceName, String resourceGroupName, String recoveryPlanName, + RecoveryPlan testFailoverCleanup(String resourceGroupName, String resourceName, String recoveryPlanName, RecoveryPlanTestFailoverCleanupInput input); /** @@ -289,8 +291,8 @@ RecoveryPlan testFailoverCleanup(String resourceName, String resourceGroupName, * * The operation to cleanup test failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan test failover cleanup input. * @param context The context to associate with this operation. @@ -299,7 +301,7 @@ RecoveryPlan testFailoverCleanup(String resourceName, String resourceGroupName, * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return recovery plan details. */ - RecoveryPlan testFailoverCleanup(String resourceName, String resourceGroupName, String recoveryPlanName, + RecoveryPlan testFailoverCleanup(String resourceGroupName, String resourceName, String recoveryPlanName, RecoveryPlanTestFailoverCleanupInput input, Context context); /** @@ -307,8 +309,8 @@ RecoveryPlan testFailoverCleanup(String resourceName, String resourceGroupName, * * The operation to start the unplanned failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan unplanned failover input. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -316,7 +318,7 @@ RecoveryPlan testFailoverCleanup(String resourceName, String resourceGroupName, * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return recovery plan details. */ - RecoveryPlan unplannedFailover(String resourceName, String resourceGroupName, String recoveryPlanName, + RecoveryPlan unplannedFailover(String resourceGroupName, String resourceName, String recoveryPlanName, RecoveryPlanUnplannedFailoverInput input); /** @@ -324,8 +326,8 @@ RecoveryPlan unplannedFailover(String resourceName, String resourceGroupName, St * * The operation to start the unplanned failover of a recovery plan. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan unplanned failover input. * @param context The context to associate with this operation. @@ -334,7 +336,7 @@ RecoveryPlan unplannedFailover(String resourceName, String resourceGroupName, St * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return recovery plan details. */ - RecoveryPlan unplannedFailover(String resourceName, String resourceGroupName, String recoveryPlanName, + RecoveryPlan unplannedFailover(String resourceGroupName, String resourceName, String recoveryPlanName, RecoveryPlanUnplannedFailoverInput input, Context context); /** diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationRecoveryServicesProviders.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationRecoveryServicesProviders.java index c10cd4e695b8..dae2d7ee5024 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationRecoveryServicesProviders.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationRecoveryServicesProviders.java @@ -17,15 +17,15 @@ public interface ReplicationRecoveryServicesProviders { * * Lists the registered recovery services providers for the specified fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return collection of providers as paginated response with {@link PagedIterable}. */ - PagedIterable listByReplicationFabrics(String resourceName, String resourceGroupName, + PagedIterable listByReplicationFabrics(String resourceGroupName, String resourceName, String fabricName); /** @@ -33,8 +33,8 @@ PagedIterable listByReplicationFabrics(String resource * * Lists the registered recovery services providers for the specified fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -42,7 +42,7 @@ PagedIterable listByReplicationFabrics(String resource * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return collection of providers as paginated response with {@link PagedIterable}. */ - PagedIterable listByReplicationFabrics(String resourceName, String resourceGroupName, + PagedIterable listByReplicationFabrics(String resourceGroupName, String resourceName, String fabricName, Context context); /** @@ -50,8 +50,8 @@ PagedIterable listByReplicationFabrics(String resource * * Gets the details of registered recovery services provider. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param context The context to associate with this operation. @@ -60,7 +60,7 @@ PagedIterable listByReplicationFabrics(String resource * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the details of registered recovery services provider along with {@link Response}. */ - Response getWithResponse(String resourceName, String resourceGroupName, String fabricName, + Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String providerName, Context context); /** @@ -68,8 +68,8 @@ Response getWithResponse(String resourceName, String r * * Gets the details of registered recovery services provider. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -77,30 +77,30 @@ Response getWithResponse(String resourceName, String r * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the details of registered recovery services provider. */ - RecoveryServicesProvider get(String resourceName, String resourceGroupName, String fabricName, String providerName); + RecoveryServicesProvider get(String resourceGroupName, String resourceName, String fabricName, String providerName); /** * Purges recovery service provider from fabric. * * The operation to purge(force delete) a recovery services provider from the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void purge(String resourceName, String resourceGroupName, String fabricName, String providerName); + void purge(String resourceGroupName, String resourceName, String fabricName, String providerName); /** * Purges recovery service provider from fabric. * * The operation to purge(force delete) a recovery services provider from the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param context The context to associate with this operation. @@ -108,15 +108,15 @@ Response getWithResponse(String resourceName, String r * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void purge(String resourceName, String resourceGroupName, String fabricName, String providerName, Context context); + void purge(String resourceGroupName, String resourceName, String fabricName, String providerName, Context context); /** * Refresh details from the recovery services provider. * * The operation to refresh the information from the recovery services provider. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -124,7 +124,7 @@ Response getWithResponse(String resourceName, String r * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return provider details. */ - RecoveryServicesProvider refreshProvider(String resourceName, String resourceGroupName, String fabricName, + RecoveryServicesProvider refreshProvider(String resourceGroupName, String resourceName, String fabricName, String providerName); /** @@ -132,8 +132,8 @@ RecoveryServicesProvider refreshProvider(String resourceName, String resourceGro * * The operation to refresh the information from the recovery services provider. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param context The context to associate with this operation. @@ -142,7 +142,7 @@ RecoveryServicesProvider refreshProvider(String resourceName, String resourceGro * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return provider details. */ - RecoveryServicesProvider refreshProvider(String resourceName, String resourceGroupName, String fabricName, + RecoveryServicesProvider refreshProvider(String resourceGroupName, String resourceName, String fabricName, String providerName, Context context); /** @@ -152,15 +152,15 @@ RecoveryServicesProvider refreshProvider(String resourceName, String resourceGro * * The operation to removes/delete(unregister) a recovery services provider from the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete(String resourceName, String resourceGroupName, String fabricName, String providerName); + void delete(String resourceGroupName, String resourceName, String fabricName, String providerName); /** * Deletes provider from fabric. Note: Deleting provider for any fabric other than SingleHost is unsupported. To @@ -169,8 +169,8 @@ RecoveryServicesProvider refreshProvider(String resourceName, String resourceGro * * The operation to removes/delete(unregister) a recovery services provider from the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param context The context to associate with this operation. @@ -178,36 +178,36 @@ RecoveryServicesProvider refreshProvider(String resourceName, String resourceGro * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete(String resourceName, String resourceGroupName, String fabricName, String providerName, Context context); + void delete(String resourceGroupName, String resourceName, String fabricName, String providerName, Context context); /** * Gets the list of registered recovery services providers in the vault. This is a view only api. * * Lists the registered recovery services providers in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return collection of providers as paginated response with {@link PagedIterable}. */ - PagedIterable list(String resourceName, String resourceGroupName); + PagedIterable list(String resourceGroupName, String resourceName); /** * Gets the list of registered recovery services providers in the vault. This is a view only api. * * Lists the registered recovery services providers in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return collection of providers as paginated response with {@link PagedIterable}. */ - PagedIterable list(String resourceName, String resourceGroupName, Context context); + PagedIterable list(String resourceGroupName, String resourceName, Context context); /** * Gets the details of a recovery services provider. diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationVaultHealths.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationVaultHealths.java index 3fbf7f7f2eaf..8ee2a692fdf7 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationVaultHealths.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationVaultHealths.java @@ -16,52 +16,52 @@ public interface ReplicationVaultHealths { * * Gets the health details of the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the health details of the vault along with {@link Response}. */ - Response getWithResponse(String resourceName, String resourceGroupName, Context context); + Response getWithResponse(String resourceGroupName, String resourceName, Context context); /** * Gets the health summary for the vault. * * Gets the health details of the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the health details of the vault. */ - VaultHealthDetails get(String resourceName, String resourceGroupName); + VaultHealthDetails get(String resourceGroupName, String resourceName); /** * Refreshes health summary of the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return vault health details definition. */ - VaultHealthDetails refresh(String resourceName, String resourceGroupName); + VaultHealthDetails refresh(String resourceGroupName, String resourceName); /** * Refreshes health summary of the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return vault health details definition. */ - VaultHealthDetails refresh(String resourceName, String resourceGroupName, Context context); + VaultHealthDetails refresh(String resourceGroupName, String resourceName, Context context); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationVaultSettings.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationVaultSettings.java index 0c939a3333f1..0ff9d0ce5ad6 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationVaultSettings.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationVaultSettings.java @@ -17,37 +17,37 @@ public interface ReplicationVaultSettings { * * Gets the list of vault setting. This includes the Migration Hub connection settings. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of vault setting as paginated response with {@link PagedIterable}. */ - PagedIterable list(String resourceName, String resourceGroupName); + PagedIterable list(String resourceGroupName, String resourceName); /** * Gets the list of vault setting. * * Gets the list of vault setting. This includes the Migration Hub connection settings. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of vault setting as paginated response with {@link PagedIterable}. */ - PagedIterable list(String resourceName, String resourceGroupName, Context context); + PagedIterable list(String resourceGroupName, String resourceName, Context context); /** * Gets the vault setting. * * Gets the vault setting. This includes the Migration Hub connection settings. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param vaultSettingName Vault setting name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -55,7 +55,7 @@ public interface ReplicationVaultSettings { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the vault setting along with {@link Response}. */ - Response getWithResponse(String resourceName, String resourceGroupName, String vaultSettingName, + Response getWithResponse(String resourceGroupName, String resourceName, String vaultSettingName, Context context); /** @@ -63,15 +63,15 @@ Response getWithResponse(String resourceName, String resourceGroup * * Gets the vault setting. This includes the Migration Hub connection settings. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param vaultSettingName Vault setting name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the vault setting. */ - VaultSetting get(String resourceName, String resourceGroupName, String vaultSettingName); + VaultSetting get(String resourceGroupName, String resourceName, String vaultSettingName); /** * Gets the vault setting. diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationvCenters.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationvCenters.java index 4241d72ecad1..6ed9d21e0226 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationvCenters.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationvCenters.java @@ -17,23 +17,23 @@ public interface ReplicationvCenters { * * Lists the vCenter servers registered in a fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return collection of vCenter details as paginated response with {@link PagedIterable}. */ - PagedIterable listByReplicationFabrics(String resourceName, String resourceGroupName, String fabricName); + PagedIterable listByReplicationFabrics(String resourceGroupName, String resourceName, String fabricName); /** * Gets the list of vCenter registered under a fabric. * * Lists the vCenter servers registered in a fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -41,7 +41,7 @@ public interface ReplicationvCenters { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return collection of vCenter details as paginated response with {@link PagedIterable}. */ - PagedIterable listByReplicationFabrics(String resourceName, String resourceGroupName, String fabricName, + PagedIterable listByReplicationFabrics(String resourceGroupName, String resourceName, String fabricName, Context context); /** @@ -49,8 +49,8 @@ PagedIterable listByReplicationFabrics(String resourceName, String reso * * Gets the details of a registered vCenter server(Add vCenter server). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param context The context to associate with this operation. @@ -59,7 +59,7 @@ PagedIterable listByReplicationFabrics(String resourceName, String reso * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the details of a registered vCenter server(Add vCenter server) along with {@link Response}. */ - Response getWithResponse(String resourceName, String resourceGroupName, String fabricName, + Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String vcenterName, Context context); /** @@ -67,8 +67,8 @@ Response getWithResponse(String resourceName, String resourceGroupName, * * Gets the details of a registered vCenter server(Add vCenter server). * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -76,30 +76,30 @@ Response getWithResponse(String resourceName, String resourceGroupName, * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the details of a registered vCenter server(Add vCenter server). */ - VCenter get(String resourceName, String resourceGroupName, String fabricName, String vcenterName); + VCenter get(String resourceGroupName, String resourceName, String fabricName, String vcenterName); /** * Remove vcenter operation. * * The operation to remove(unregister) a registered vCenter server from the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete(String resourceName, String resourceGroupName, String fabricName, String vcenterName); + void delete(String resourceGroupName, String resourceName, String fabricName, String vcenterName); /** * Remove vcenter operation. * * The operation to remove(unregister) a registered vCenter server from the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param context The context to associate with this operation. @@ -107,36 +107,36 @@ Response getWithResponse(String resourceName, String resourceGroupName, * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete(String resourceName, String resourceGroupName, String fabricName, String vcenterName, Context context); + void delete(String resourceGroupName, String resourceName, String fabricName, String vcenterName, Context context); /** * Gets the list of vCenter registered under the vault. * * Lists the vCenter servers registered in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return collection of vCenter details as paginated response with {@link PagedIterable}. */ - PagedIterable list(String resourceName, String resourceGroupName); + PagedIterable list(String resourceGroupName, String resourceName); /** * Gets the list of vCenter registered under the vault. * * Lists the vCenter servers registered in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return collection of vCenter details as paginated response with {@link PagedIterable}. */ - PagedIterable list(String resourceName, String resourceGroupName, Context context); + PagedIterable list(String resourceGroupName, String resourceName, Context context); /** * Gets the details of a vCenter. diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/SecurityConfiguration.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/SecurityConfiguration.java new file mode 100644 index 000000000000..24fdc6c0bb69 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/SecurityConfiguration.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Security configuration state. + */ +public final class SecurityConfiguration extends ExpandableStringEnum { + /** + * Static value Disabled for SecurityConfiguration. + */ + public static final SecurityConfiguration DISABLED = fromString("Disabled"); + + /** + * Static value Enabled for SecurityConfiguration. + */ + public static final SecurityConfiguration ENABLED = fromString("Enabled"); + + /** + * Creates a new instance of SecurityConfiguration value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public SecurityConfiguration() { + } + + /** + * Creates or finds a SecurityConfiguration from its string representation. + * + * @param name a name to look for. + * @return the corresponding SecurityConfiguration. + */ + public static SecurityConfiguration fromString(String name) { + return fromString(name, SecurityConfiguration.class); + } + + /** + * Gets known SecurityConfiguration values. + * + * @return known SecurityConfiguration values. + */ + public static Collection values() { + return values(SecurityConfiguration.class); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/SecurityProfileProperties.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/SecurityProfileProperties.java new file mode 100644 index 000000000000..75a58c6264f9 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/SecurityProfileProperties.java @@ -0,0 +1,217 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Security profile input. + */ +@Fluent +public final class SecurityProfileProperties implements JsonSerializable { + /* + * The target VM security type. + */ + private SecurityType targetVmSecurityType; + + /* + * A value indicating whether secure boot to be enabled. + */ + private SecurityConfiguration targetVmSecureBoot; + + /* + * A value indicating whether trusted platform module to be enabled. + */ + private SecurityConfiguration targetVmTpm; + + /* + * A value indicating whether integrity monitoring to be enabled. + */ + private SecurityConfiguration targetVmMonitoring; + + /* + * A value indicating whether confidential compute encryption to be enabled. + */ + private SecurityConfiguration targetVmConfidentialEncryption; + + /** + * Creates an instance of SecurityProfileProperties class. + */ + public SecurityProfileProperties() { + } + + /** + * Get the targetVmSecurityType property: The target VM security type. + * + * @return the targetVmSecurityType value. + */ + public SecurityType targetVmSecurityType() { + return this.targetVmSecurityType; + } + + /** + * Set the targetVmSecurityType property: The target VM security type. + * + * @param targetVmSecurityType the targetVmSecurityType value to set. + * @return the SecurityProfileProperties object itself. + */ + public SecurityProfileProperties withTargetVmSecurityType(SecurityType targetVmSecurityType) { + this.targetVmSecurityType = targetVmSecurityType; + return this; + } + + /** + * Get the targetVmSecureBoot property: A value indicating whether secure boot to be enabled. + * + * @return the targetVmSecureBoot value. + */ + public SecurityConfiguration targetVmSecureBoot() { + return this.targetVmSecureBoot; + } + + /** + * Set the targetVmSecureBoot property: A value indicating whether secure boot to be enabled. + * + * @param targetVmSecureBoot the targetVmSecureBoot value to set. + * @return the SecurityProfileProperties object itself. + */ + public SecurityProfileProperties withTargetVmSecureBoot(SecurityConfiguration targetVmSecureBoot) { + this.targetVmSecureBoot = targetVmSecureBoot; + return this; + } + + /** + * Get the targetVmTpm property: A value indicating whether trusted platform module to be enabled. + * + * @return the targetVmTpm value. + */ + public SecurityConfiguration targetVmTpm() { + return this.targetVmTpm; + } + + /** + * Set the targetVmTpm property: A value indicating whether trusted platform module to be enabled. + * + * @param targetVmTpm the targetVmTpm value to set. + * @return the SecurityProfileProperties object itself. + */ + public SecurityProfileProperties withTargetVmTpm(SecurityConfiguration targetVmTpm) { + this.targetVmTpm = targetVmTpm; + return this; + } + + /** + * Get the targetVmMonitoring property: A value indicating whether integrity monitoring to be enabled. + * + * @return the targetVmMonitoring value. + */ + public SecurityConfiguration targetVmMonitoring() { + return this.targetVmMonitoring; + } + + /** + * Set the targetVmMonitoring property: A value indicating whether integrity monitoring to be enabled. + * + * @param targetVmMonitoring the targetVmMonitoring value to set. + * @return the SecurityProfileProperties object itself. + */ + public SecurityProfileProperties withTargetVmMonitoring(SecurityConfiguration targetVmMonitoring) { + this.targetVmMonitoring = targetVmMonitoring; + return this; + } + + /** + * Get the targetVmConfidentialEncryption property: A value indicating whether confidential compute encryption to be + * enabled. + * + * @return the targetVmConfidentialEncryption value. + */ + public SecurityConfiguration targetVmConfidentialEncryption() { + return this.targetVmConfidentialEncryption; + } + + /** + * Set the targetVmConfidentialEncryption property: A value indicating whether confidential compute encryption to be + * enabled. + * + * @param targetVmConfidentialEncryption the targetVmConfidentialEncryption value to set. + * @return the SecurityProfileProperties object itself. + */ + public SecurityProfileProperties + withTargetVmConfidentialEncryption(SecurityConfiguration targetVmConfidentialEncryption) { + this.targetVmConfidentialEncryption = targetVmConfidentialEncryption; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("targetVmSecurityType", + this.targetVmSecurityType == null ? null : this.targetVmSecurityType.toString()); + jsonWriter.writeStringField("targetVmSecureBoot", + this.targetVmSecureBoot == null ? null : this.targetVmSecureBoot.toString()); + jsonWriter.writeStringField("targetVmTpm", this.targetVmTpm == null ? null : this.targetVmTpm.toString()); + jsonWriter.writeStringField("targetVmMonitoring", + this.targetVmMonitoring == null ? null : this.targetVmMonitoring.toString()); + jsonWriter.writeStringField("targetVmConfidentialEncryption", + this.targetVmConfidentialEncryption == null ? null : this.targetVmConfidentialEncryption.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SecurityProfileProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SecurityProfileProperties if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the SecurityProfileProperties. + */ + public static SecurityProfileProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SecurityProfileProperties deserializedSecurityProfileProperties = new SecurityProfileProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("targetVmSecurityType".equals(fieldName)) { + deserializedSecurityProfileProperties.targetVmSecurityType + = SecurityType.fromString(reader.getString()); + } else if ("targetVmSecureBoot".equals(fieldName)) { + deserializedSecurityProfileProperties.targetVmSecureBoot + = SecurityConfiguration.fromString(reader.getString()); + } else if ("targetVmTpm".equals(fieldName)) { + deserializedSecurityProfileProperties.targetVmTpm + = SecurityConfiguration.fromString(reader.getString()); + } else if ("targetVmMonitoring".equals(fieldName)) { + deserializedSecurityProfileProperties.targetVmMonitoring + = SecurityConfiguration.fromString(reader.getString()); + } else if ("targetVmConfidentialEncryption".equals(fieldName)) { + deserializedSecurityProfileProperties.targetVmConfidentialEncryption + = SecurityConfiguration.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedSecurityProfileProperties; + }); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/SharedDiskReplicationItemProperties.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/SharedDiskReplicationItemProperties.java new file mode 100644 index 000000000000..dfe3b82f89ea --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/SharedDiskReplicationItemProperties.java @@ -0,0 +1,313 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * Shared Disk Replication item custom data details. + */ +@Fluent +public final class SharedDiskReplicationItemProperties + implements JsonSerializable { + /* + * The protection state of shared disk. + */ + private String protectionState; + + /* + * The tfo state of shared disk. + */ + private String testFailoverState; + + /* + * The Current active location of the PE. + */ + private String activeLocation; + + /* + * The allowed operations on the Replication protected item. + */ + private List allowedOperations; + + /* + * The consolidated protection health for the VM taking any issues with SRS as well as all the replication units + * associated with the VM's replication group into account. This is a string representation of the ProtectionHealth + * enumeration. + */ + private String replicationHealth; + + /* + * List of health errors. + */ + private List healthErrors; + + /* + * The current scenario. + */ + private CurrentScenarioDetails currentScenario; + + /* + * The Replication provider custom settings. + */ + private SharedDiskReplicationProviderSpecificSettings sharedDiskProviderSpecificDetails; + + /** + * Creates an instance of SharedDiskReplicationItemProperties class. + */ + public SharedDiskReplicationItemProperties() { + } + + /** + * Get the protectionState property: The protection state of shared disk. + * + * @return the protectionState value. + */ + public String protectionState() { + return this.protectionState; + } + + /** + * Set the protectionState property: The protection state of shared disk. + * + * @param protectionState the protectionState value to set. + * @return the SharedDiskReplicationItemProperties object itself. + */ + public SharedDiskReplicationItemProperties withProtectionState(String protectionState) { + this.protectionState = protectionState; + return this; + } + + /** + * Get the testFailoverState property: The tfo state of shared disk. + * + * @return the testFailoverState value. + */ + public String testFailoverState() { + return this.testFailoverState; + } + + /** + * Set the testFailoverState property: The tfo state of shared disk. + * + * @param testFailoverState the testFailoverState value to set. + * @return the SharedDiskReplicationItemProperties object itself. + */ + public SharedDiskReplicationItemProperties withTestFailoverState(String testFailoverState) { + this.testFailoverState = testFailoverState; + return this; + } + + /** + * Get the activeLocation property: The Current active location of the PE. + * + * @return the activeLocation value. + */ + public String activeLocation() { + return this.activeLocation; + } + + /** + * Set the activeLocation property: The Current active location of the PE. + * + * @param activeLocation the activeLocation value to set. + * @return the SharedDiskReplicationItemProperties object itself. + */ + public SharedDiskReplicationItemProperties withActiveLocation(String activeLocation) { + this.activeLocation = activeLocation; + return this; + } + + /** + * Get the allowedOperations property: The allowed operations on the Replication protected item. + * + * @return the allowedOperations value. + */ + public List allowedOperations() { + return this.allowedOperations; + } + + /** + * Set the allowedOperations property: The allowed operations on the Replication protected item. + * + * @param allowedOperations the allowedOperations value to set. + * @return the SharedDiskReplicationItemProperties object itself. + */ + public SharedDiskReplicationItemProperties withAllowedOperations(List allowedOperations) { + this.allowedOperations = allowedOperations; + return this; + } + + /** + * Get the replicationHealth property: The consolidated protection health for the VM taking any issues with SRS as + * well as all the replication units associated with the VM's replication group into account. This is a string + * representation of the ProtectionHealth enumeration. + * + * @return the replicationHealth value. + */ + public String replicationHealth() { + return this.replicationHealth; + } + + /** + * Set the replicationHealth property: The consolidated protection health for the VM taking any issues with SRS as + * well as all the replication units associated with the VM's replication group into account. This is a string + * representation of the ProtectionHealth enumeration. + * + * @param replicationHealth the replicationHealth value to set. + * @return the SharedDiskReplicationItemProperties object itself. + */ + public SharedDiskReplicationItemProperties withReplicationHealth(String replicationHealth) { + this.replicationHealth = replicationHealth; + return this; + } + + /** + * Get the healthErrors property: List of health errors. + * + * @return the healthErrors value. + */ + public List healthErrors() { + return this.healthErrors; + } + + /** + * Set the healthErrors property: List of health errors. + * + * @param healthErrors the healthErrors value to set. + * @return the SharedDiskReplicationItemProperties object itself. + */ + public SharedDiskReplicationItemProperties withHealthErrors(List healthErrors) { + this.healthErrors = healthErrors; + return this; + } + + /** + * Get the currentScenario property: The current scenario. + * + * @return the currentScenario value. + */ + public CurrentScenarioDetails currentScenario() { + return this.currentScenario; + } + + /** + * Set the currentScenario property: The current scenario. + * + * @param currentScenario the currentScenario value to set. + * @return the SharedDiskReplicationItemProperties object itself. + */ + public SharedDiskReplicationItemProperties withCurrentScenario(CurrentScenarioDetails currentScenario) { + this.currentScenario = currentScenario; + return this; + } + + /** + * Get the sharedDiskProviderSpecificDetails property: The Replication provider custom settings. + * + * @return the sharedDiskProviderSpecificDetails value. + */ + public SharedDiskReplicationProviderSpecificSettings sharedDiskProviderSpecificDetails() { + return this.sharedDiskProviderSpecificDetails; + } + + /** + * Set the sharedDiskProviderSpecificDetails property: The Replication provider custom settings. + * + * @param sharedDiskProviderSpecificDetails the sharedDiskProviderSpecificDetails value to set. + * @return the SharedDiskReplicationItemProperties object itself. + */ + public SharedDiskReplicationItemProperties withSharedDiskProviderSpecificDetails( + SharedDiskReplicationProviderSpecificSettings sharedDiskProviderSpecificDetails) { + this.sharedDiskProviderSpecificDetails = sharedDiskProviderSpecificDetails; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (healthErrors() != null) { + healthErrors().forEach(e -> e.validate()); + } + if (currentScenario() != null) { + currentScenario().validate(); + } + if (sharedDiskProviderSpecificDetails() != null) { + sharedDiskProviderSpecificDetails().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("protectionState", this.protectionState); + jsonWriter.writeStringField("testFailoverState", this.testFailoverState); + jsonWriter.writeStringField("activeLocation", this.activeLocation); + jsonWriter.writeArrayField("allowedOperations", this.allowedOperations, + (writer, element) -> writer.writeString(element)); + jsonWriter.writeStringField("replicationHealth", this.replicationHealth); + jsonWriter.writeArrayField("healthErrors", this.healthErrors, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeJsonField("currentScenario", this.currentScenario); + jsonWriter.writeJsonField("sharedDiskProviderSpecificDetails", this.sharedDiskProviderSpecificDetails); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SharedDiskReplicationItemProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SharedDiskReplicationItemProperties if the JsonReader was pointing to an instance of it, + * or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the SharedDiskReplicationItemProperties. + */ + public static SharedDiskReplicationItemProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SharedDiskReplicationItemProperties deserializedSharedDiskReplicationItemProperties + = new SharedDiskReplicationItemProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("protectionState".equals(fieldName)) { + deserializedSharedDiskReplicationItemProperties.protectionState = reader.getString(); + } else if ("testFailoverState".equals(fieldName)) { + deserializedSharedDiskReplicationItemProperties.testFailoverState = reader.getString(); + } else if ("activeLocation".equals(fieldName)) { + deserializedSharedDiskReplicationItemProperties.activeLocation = reader.getString(); + } else if ("allowedOperations".equals(fieldName)) { + List allowedOperations = reader.readArray(reader1 -> reader1.getString()); + deserializedSharedDiskReplicationItemProperties.allowedOperations = allowedOperations; + } else if ("replicationHealth".equals(fieldName)) { + deserializedSharedDiskReplicationItemProperties.replicationHealth = reader.getString(); + } else if ("healthErrors".equals(fieldName)) { + List healthErrors = reader.readArray(reader1 -> HealthError.fromJson(reader1)); + deserializedSharedDiskReplicationItemProperties.healthErrors = healthErrors; + } else if ("currentScenario".equals(fieldName)) { + deserializedSharedDiskReplicationItemProperties.currentScenario + = CurrentScenarioDetails.fromJson(reader); + } else if ("sharedDiskProviderSpecificDetails".equals(fieldName)) { + deserializedSharedDiskReplicationItemProperties.sharedDiskProviderSpecificDetails + = SharedDiskReplicationProviderSpecificSettings.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedSharedDiskReplicationItemProperties; + }); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/SharedDiskReplicationProviderSpecificSettings.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/SharedDiskReplicationProviderSpecificSettings.java new file mode 100644 index 000000000000..1eb7bf3873b0 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/SharedDiskReplicationProviderSpecificSettings.java @@ -0,0 +1,110 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Replication provider specific settings. + */ +@Immutable +public class SharedDiskReplicationProviderSpecificSettings + implements JsonSerializable { + /* + * Gets the Instance type. + */ + private String instanceType = "SharedDiskReplicationProviderSpecificSettings"; + + /** + * Creates an instance of SharedDiskReplicationProviderSpecificSettings class. + */ + public SharedDiskReplicationProviderSpecificSettings() { + } + + /** + * Get the instanceType property: Gets the Instance type. + * + * @return the instanceType value. + */ + public String instanceType() { + return this.instanceType; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("instanceType", this.instanceType); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SharedDiskReplicationProviderSpecificSettings from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SharedDiskReplicationProviderSpecificSettings if the JsonReader was pointing to an + * instance of it, or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the SharedDiskReplicationProviderSpecificSettings. + */ + public static SharedDiskReplicationProviderSpecificSettings fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + String discriminatorValue = null; + try (JsonReader readerToUse = reader.bufferObject()) { + readerToUse.nextToken(); // Prepare for reading + while (readerToUse.nextToken() != JsonToken.END_OBJECT) { + String fieldName = readerToUse.getFieldName(); + readerToUse.nextToken(); + if ("instanceType".equals(fieldName)) { + discriminatorValue = readerToUse.getString(); + break; + } else { + readerToUse.skipChildren(); + } + } + // Use the discriminator value to determine which subtype should be deserialized. + if ("A2A".equals(discriminatorValue)) { + return A2ASharedDiskReplicationDetails.fromJson(readerToUse.reset()); + } else { + return fromJsonKnownDiscriminator(readerToUse.reset()); + } + } + }); + } + + static SharedDiskReplicationProviderSpecificSettings fromJsonKnownDiscriminator(JsonReader jsonReader) + throws IOException { + return jsonReader.readObject(reader -> { + SharedDiskReplicationProviderSpecificSettings deserializedSharedDiskReplicationProviderSpecificSettings + = new SharedDiskReplicationProviderSpecificSettings(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("instanceType".equals(fieldName)) { + deserializedSharedDiskReplicationProviderSpecificSettings.instanceType = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedSharedDiskReplicationProviderSpecificSettings; + }); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/StorageClassificationMapping.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/StorageClassificationMapping.java index c08b91af71a3..d5790242a7c4 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/StorageClassificationMapping.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/StorageClassificationMapping.java @@ -91,15 +91,15 @@ interface Blank extends WithParentResource { */ interface WithParentResource { /** - * Specifies resourceName, resourceGroupName, fabricName, storageClassificationName. + * Specifies resourceGroupName, resourceName, fabricName, storageClassificationName. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @return the next definition stage. */ - WithCreate withExistingReplicationStorageClassification(String resourceName, String resourceGroupName, + WithCreate withExistingReplicationStorageClassification(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/StorageClassificationMappings.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/StorageClassificationMappings.java index 9a0fd4cd0b25..3478f9d02ddf 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/StorageClassificationMappings.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/StorageClassificationMappings.java @@ -17,8 +17,8 @@ public interface StorageClassificationMappings { * * Lists the storage classification mappings for the fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -26,16 +26,16 @@ public interface StorageClassificationMappings { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return collection of storage mapping details as paginated response with {@link PagedIterable}. */ - PagedIterable listByReplicationStorageClassifications(String resourceName, - String resourceGroupName, String fabricName, String storageClassificationName); + PagedIterable listByReplicationStorageClassifications(String resourceGroupName, + String resourceName, String fabricName, String storageClassificationName); /** * Gets the list of storage classification mappings objects under a storage. * * Lists the storage classification mappings for the fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param context The context to associate with this operation. @@ -44,16 +44,16 @@ PagedIterable listByReplicationStorageClassificati * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return collection of storage mapping details as paginated response with {@link PagedIterable}. */ - PagedIterable listByReplicationStorageClassifications(String resourceName, - String resourceGroupName, String fabricName, String storageClassificationName, Context context); + PagedIterable listByReplicationStorageClassifications(String resourceGroupName, + String resourceName, String fabricName, String storageClassificationName, Context context); /** * Gets the details of a storage classification mapping. * * Gets the details of the specified storage classification mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. @@ -63,7 +63,7 @@ PagedIterable listByReplicationStorageClassificati * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the details of the specified storage classification mapping along with {@link Response}. */ - Response getWithResponse(String resourceName, String resourceGroupName, + Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName, String storageClassificationMappingName, Context context); /** @@ -71,8 +71,8 @@ Response getWithResponse(String resourceName, Stri * * Gets the details of the specified storage classification mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. @@ -81,7 +81,7 @@ Response getWithResponse(String resourceName, Stri * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the details of the specified storage classification mapping. */ - StorageClassificationMapping get(String resourceName, String resourceGroupName, String fabricName, + StorageClassificationMapping get(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName, String storageClassificationMappingName); /** @@ -89,8 +89,8 @@ StorageClassificationMapping get(String resourceName, String resourceGroupName, * * The operation to delete a storage classification mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. @@ -98,7 +98,7 @@ StorageClassificationMapping get(String resourceName, String resourceGroupName, * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete(String resourceName, String resourceGroupName, String fabricName, String storageClassificationName, + void delete(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName, String storageClassificationMappingName); /** @@ -106,8 +106,8 @@ void delete(String resourceName, String resourceGroupName, String fabricName, St * * The operation to delete a storage classification mapping. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. @@ -116,7 +116,7 @@ void delete(String resourceName, String resourceGroupName, String fabricName, St * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete(String resourceName, String resourceGroupName, String fabricName, String storageClassificationName, + void delete(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName, String storageClassificationMappingName, Context context); /** @@ -124,29 +124,29 @@ void delete(String resourceName, String resourceGroupName, String fabricName, St * * Lists the storage classification mappings in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return collection of storage mapping details as paginated response with {@link PagedIterable}. */ - PagedIterable list(String resourceName, String resourceGroupName); + PagedIterable list(String resourceGroupName, String resourceName); /** * Gets the list of storage classification mappings objects under a vault. * * Lists the storage classification mappings in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return collection of storage mapping details as paginated response with {@link PagedIterable}. */ - PagedIterable list(String resourceName, String resourceGroupName, Context context); + PagedIterable list(String resourceGroupName, String resourceName, Context context); /** * Gets the details of a storage classification mapping. diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/StorageClassifications.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/StorageClassifications.java index 03908cda3dea..1da35dae8917 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/StorageClassifications.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/StorageClassifications.java @@ -17,15 +17,15 @@ public interface StorageClassifications { * * Lists the storage classifications available in the specified fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Site name of interest. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return collection of storage details as paginated response with {@link PagedIterable}. */ - PagedIterable listByReplicationFabrics(String resourceName, String resourceGroupName, + PagedIterable listByReplicationFabrics(String resourceGroupName, String resourceName, String fabricName); /** @@ -33,8 +33,8 @@ PagedIterable listByReplicationFabrics(String resourceNam * * Lists the storage classifications available in the specified fabric. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Site name of interest. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -42,7 +42,7 @@ PagedIterable listByReplicationFabrics(String resourceNam * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return collection of storage details as paginated response with {@link PagedIterable}. */ - PagedIterable listByReplicationFabrics(String resourceName, String resourceGroupName, + PagedIterable listByReplicationFabrics(String resourceGroupName, String resourceName, String fabricName, Context context); /** @@ -50,8 +50,8 @@ PagedIterable listByReplicationFabrics(String resourceNam * * Gets the details of the specified storage classification. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param context The context to associate with this operation. @@ -60,7 +60,7 @@ PagedIterable listByReplicationFabrics(String resourceNam * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the details of the specified storage classification along with {@link Response}. */ - Response getWithResponse(String resourceName, String resourceGroupName, String fabricName, + Response getWithResponse(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName, Context context); /** @@ -68,8 +68,8 @@ Response getWithResponse(String resourceName, String reso * * Gets the details of the specified storage classification. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -77,7 +77,7 @@ Response getWithResponse(String resourceName, String reso * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the details of the specified storage classification. */ - StorageClassification get(String resourceName, String resourceGroupName, String fabricName, + StorageClassification get(String resourceGroupName, String resourceName, String fabricName, String storageClassificationName); /** @@ -85,27 +85,27 @@ StorageClassification get(String resourceName, String resourceGroupName, String * * Lists the storage classifications in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return collection of storage details as paginated response with {@link PagedIterable}. */ - PagedIterable list(String resourceName, String resourceGroupName); + PagedIterable list(String resourceGroupName, String resourceName); /** * Gets the list of storage classification objects under a vault. * * Lists the storage classifications in the vault. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return collection of storage details as paginated response with {@link PagedIterable}. */ - PagedIterable list(String resourceName, String resourceGroupName, Context context); + PagedIterable list(String resourceGroupName, String resourceName, Context context); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/SupportedOperatingSystemsOperations.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/SupportedOperatingSystemsOperations.java index 26c3c7b0ee35..25b53a07cc35 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/SupportedOperatingSystemsOperations.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/SupportedOperatingSystemsOperations.java @@ -14,8 +14,8 @@ public interface SupportedOperatingSystemsOperations { /** * Gets the data of supported operating systems by SRS. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param instanceType The instance type. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -23,18 +23,18 @@ public interface SupportedOperatingSystemsOperations { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the data of supported operating systems by SRS along with {@link Response}. */ - Response getWithResponse(String resourceName, String resourceGroupName, + Response getWithResponse(String resourceGroupName, String resourceName, String instanceType, Context context); /** * Gets the data of supported operating systems by SRS. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the data of supported operating systems by SRS. */ - SupportedOperatingSystems get(String resourceName, String resourceGroupName); + SupportedOperatingSystems get(String resourceGroupName, String resourceName); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/SwitchClusterProtectionInput.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/SwitchClusterProtectionInput.java new file mode 100644 index 000000000000..835b2c2e6f67 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/SwitchClusterProtectionInput.java @@ -0,0 +1,97 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Switch cluster protection input. + */ +@Fluent +public final class SwitchClusterProtectionInput implements JsonSerializable { + /* + * Switch cluster protection properties. + */ + private SwitchClusterProtectionInputProperties properties; + + /** + * Creates an instance of SwitchClusterProtectionInput class. + */ + public SwitchClusterProtectionInput() { + } + + /** + * Get the properties property: Switch cluster protection properties. + * + * @return the properties value. + */ + public SwitchClusterProtectionInputProperties properties() { + return this.properties; + } + + /** + * Set the properties property: Switch cluster protection properties. + * + * @param properties the properties value to set. + * @return the SwitchClusterProtectionInput object itself. + */ + public SwitchClusterProtectionInput withProperties(SwitchClusterProtectionInputProperties properties) { + this.properties = properties; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (properties() != null) { + properties().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SwitchClusterProtectionInput from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SwitchClusterProtectionInput if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the SwitchClusterProtectionInput. + */ + public static SwitchClusterProtectionInput fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SwitchClusterProtectionInput deserializedSwitchClusterProtectionInput = new SwitchClusterProtectionInput(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("properties".equals(fieldName)) { + deserializedSwitchClusterProtectionInput.properties + = SwitchClusterProtectionInputProperties.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedSwitchClusterProtectionInput; + }); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/SwitchClusterProtectionInputProperties.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/SwitchClusterProtectionInputProperties.java new file mode 100644 index 000000000000..b07c29aab0f1 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/SwitchClusterProtectionInputProperties.java @@ -0,0 +1,130 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Switch cluster protection input properties. + */ +@Fluent +public final class SwitchClusterProtectionInputProperties + implements JsonSerializable { + /* + * The unique replication protection cluster name. + */ + private String replicationProtectionClusterName; + + /* + * Provider specific switch protection input. + */ + private SwitchClusterProtectionProviderSpecificInput providerSpecificDetails; + + /** + * Creates an instance of SwitchClusterProtectionInputProperties class. + */ + public SwitchClusterProtectionInputProperties() { + } + + /** + * Get the replicationProtectionClusterName property: The unique replication protection cluster name. + * + * @return the replicationProtectionClusterName value. + */ + public String replicationProtectionClusterName() { + return this.replicationProtectionClusterName; + } + + /** + * Set the replicationProtectionClusterName property: The unique replication protection cluster name. + * + * @param replicationProtectionClusterName the replicationProtectionClusterName value to set. + * @return the SwitchClusterProtectionInputProperties object itself. + */ + public SwitchClusterProtectionInputProperties + withReplicationProtectionClusterName(String replicationProtectionClusterName) { + this.replicationProtectionClusterName = replicationProtectionClusterName; + return this; + } + + /** + * Get the providerSpecificDetails property: Provider specific switch protection input. + * + * @return the providerSpecificDetails value. + */ + public SwitchClusterProtectionProviderSpecificInput providerSpecificDetails() { + return this.providerSpecificDetails; + } + + /** + * Set the providerSpecificDetails property: Provider specific switch protection input. + * + * @param providerSpecificDetails the providerSpecificDetails value to set. + * @return the SwitchClusterProtectionInputProperties object itself. + */ + public SwitchClusterProtectionInputProperties + withProviderSpecificDetails(SwitchClusterProtectionProviderSpecificInput providerSpecificDetails) { + this.providerSpecificDetails = providerSpecificDetails; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (providerSpecificDetails() != null) { + providerSpecificDetails().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("replicationProtectionClusterName", this.replicationProtectionClusterName); + jsonWriter.writeJsonField("providerSpecificDetails", this.providerSpecificDetails); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SwitchClusterProtectionInputProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SwitchClusterProtectionInputProperties if the JsonReader was pointing to an instance of + * it, or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the SwitchClusterProtectionInputProperties. + */ + public static SwitchClusterProtectionInputProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SwitchClusterProtectionInputProperties deserializedSwitchClusterProtectionInputProperties + = new SwitchClusterProtectionInputProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("replicationProtectionClusterName".equals(fieldName)) { + deserializedSwitchClusterProtectionInputProperties.replicationProtectionClusterName + = reader.getString(); + } else if ("providerSpecificDetails".equals(fieldName)) { + deserializedSwitchClusterProtectionInputProperties.providerSpecificDetails + = SwitchClusterProtectionProviderSpecificInput.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedSwitchClusterProtectionInputProperties; + }); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/SwitchClusterProtectionProviderSpecificInput.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/SwitchClusterProtectionProviderSpecificInput.java new file mode 100644 index 000000000000..60ead70a1fb3 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/SwitchClusterProtectionProviderSpecificInput.java @@ -0,0 +1,110 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Provider specific switch cluster protection input. + */ +@Immutable +public class SwitchClusterProtectionProviderSpecificInput + implements JsonSerializable { + /* + * Gets the Instance type. + */ + private String instanceType = "SwitchClusterProtectionProviderSpecificInput"; + + /** + * Creates an instance of SwitchClusterProtectionProviderSpecificInput class. + */ + public SwitchClusterProtectionProviderSpecificInput() { + } + + /** + * Get the instanceType property: Gets the Instance type. + * + * @return the instanceType value. + */ + public String instanceType() { + return this.instanceType; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("instanceType", this.instanceType); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SwitchClusterProtectionProviderSpecificInput from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SwitchClusterProtectionProviderSpecificInput if the JsonReader was pointing to an instance + * of it, or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the SwitchClusterProtectionProviderSpecificInput. + */ + public static SwitchClusterProtectionProviderSpecificInput fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + String discriminatorValue = null; + try (JsonReader readerToUse = reader.bufferObject()) { + readerToUse.nextToken(); // Prepare for reading + while (readerToUse.nextToken() != JsonToken.END_OBJECT) { + String fieldName = readerToUse.getFieldName(); + readerToUse.nextToken(); + if ("instanceType".equals(fieldName)) { + discriminatorValue = readerToUse.getString(); + break; + } else { + readerToUse.skipChildren(); + } + } + // Use the discriminator value to determine which subtype should be deserialized. + if ("A2A".equals(discriminatorValue)) { + return A2ASwitchClusterProtectionInput.fromJson(readerToUse.reset()); + } else { + return fromJsonKnownDiscriminator(readerToUse.reset()); + } + } + }); + } + + static SwitchClusterProtectionProviderSpecificInput fromJsonKnownDiscriminator(JsonReader jsonReader) + throws IOException { + return jsonReader.readObject(reader -> { + SwitchClusterProtectionProviderSpecificInput deserializedSwitchClusterProtectionProviderSpecificInput + = new SwitchClusterProtectionProviderSpecificInput(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("instanceType".equals(fieldName)) { + deserializedSwitchClusterProtectionProviderSpecificInput.instanceType = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedSwitchClusterProtectionProviderSpecificInput; + }); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/TargetComputeSizes.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/TargetComputeSizes.java index ddbed4645507..07860d7c6512 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/TargetComputeSizes.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/TargetComputeSizes.java @@ -16,8 +16,8 @@ public interface TargetComputeSizes { * * Lists the available target compute sizes for a replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -26,7 +26,7 @@ public interface TargetComputeSizes { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return target compute size collection as paginated response with {@link PagedIterable}. */ - PagedIterable listByReplicationProtectedItems(String resourceName, String resourceGroupName, + PagedIterable listByReplicationProtectedItems(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName); /** @@ -34,8 +34,8 @@ PagedIterable listByReplicationProtectedItems(String resource * * Lists the available target compute sizes for a replication protected item. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -45,6 +45,6 @@ PagedIterable listByReplicationProtectedItems(String resource * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return target compute size collection as paginated response with {@link PagedIterable}. */ - PagedIterable listByReplicationProtectedItems(String resourceName, String resourceGroupName, + PagedIterable listByReplicationProtectedItems(String resourceGroupName, String resourceName, String fabricName, String protectionContainerName, String replicatedProtectedItemName, Context context); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/UpdateDiskInput.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/UpdateDiskInput.java index 71c1005f37ac..9361807459a9 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/UpdateDiskInput.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/UpdateDiskInput.java @@ -27,6 +27,21 @@ public final class UpdateDiskInput implements JsonSerializable */ private String targetDiskName; + /* + * The number of IOPS allowed for Premium V2 and Ultra disks. + */ + private Long iops; + + /* + * The total throughput in Mbps for Premium V2 and Ultra disks. + */ + private Long throughputInMbps; + + /* + * The target disk size in GB. + */ + private Long diskSizeInGB; + /** * Creates an instance of UpdateDiskInput class. */ @@ -73,6 +88,66 @@ public UpdateDiskInput withTargetDiskName(String targetDiskName) { return this; } + /** + * Get the iops property: The number of IOPS allowed for Premium V2 and Ultra disks. + * + * @return the iops value. + */ + public Long iops() { + return this.iops; + } + + /** + * Set the iops property: The number of IOPS allowed for Premium V2 and Ultra disks. + * + * @param iops the iops value to set. + * @return the UpdateDiskInput object itself. + */ + public UpdateDiskInput withIops(Long iops) { + this.iops = iops; + return this; + } + + /** + * Get the throughputInMbps property: The total throughput in Mbps for Premium V2 and Ultra disks. + * + * @return the throughputInMbps value. + */ + public Long throughputInMbps() { + return this.throughputInMbps; + } + + /** + * Set the throughputInMbps property: The total throughput in Mbps for Premium V2 and Ultra disks. + * + * @param throughputInMbps the throughputInMbps value to set. + * @return the UpdateDiskInput object itself. + */ + public UpdateDiskInput withThroughputInMbps(Long throughputInMbps) { + this.throughputInMbps = throughputInMbps; + return this; + } + + /** + * Get the diskSizeInGB property: The target disk size in GB. + * + * @return the diskSizeInGB value. + */ + public Long diskSizeInGB() { + return this.diskSizeInGB; + } + + /** + * Set the diskSizeInGB property: The target disk size in GB. + * + * @param diskSizeInGB the diskSizeInGB value to set. + * @return the UpdateDiskInput object itself. + */ + public UpdateDiskInput withDiskSizeInGB(Long diskSizeInGB) { + this.diskSizeInGB = diskSizeInGB; + return this; + } + /** * Validates the instance. * @@ -95,6 +170,9 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("diskId", this.diskId); jsonWriter.writeStringField("targetDiskName", this.targetDiskName); + jsonWriter.writeNumberField("iops", this.iops); + jsonWriter.writeNumberField("throughputInMbps", this.throughputInMbps); + jsonWriter.writeNumberField("diskSizeInGB", this.diskSizeInGB); return jsonWriter.writeEndObject(); } @@ -118,6 +196,12 @@ public static UpdateDiskInput fromJson(JsonReader jsonReader) throws IOException deserializedUpdateDiskInput.diskId = reader.getString(); } else if ("targetDiskName".equals(fieldName)) { deserializedUpdateDiskInput.targetDiskName = reader.getString(); + } else if ("iops".equals(fieldName)) { + deserializedUpdateDiskInput.iops = reader.getNullable(JsonReader::getLong); + } else if ("throughputInMbps".equals(fieldName)) { + deserializedUpdateDiskInput.throughputInMbps = reader.getNullable(JsonReader::getLong); + } else if ("diskSizeInGB".equals(fieldName)) { + deserializedUpdateDiskInput.diskSizeInGB = reader.getNullable(JsonReader::getLong); } else { reader.skipChildren(); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/UserCreatedResourceTag.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/UserCreatedResourceTag.java new file mode 100644 index 000000000000..a2711d4becbb --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/UserCreatedResourceTag.java @@ -0,0 +1,127 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Resource tag input. + */ +@Fluent +public final class UserCreatedResourceTag implements JsonSerializable { + /* + * The tag name. Please read for more information: + * https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/tag-resources#limitations + */ + private String tagName; + + /* + * The tag value. Please read her for more information: + * https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/tag-resources#limitations + */ + private String tagValue; + + /** + * Creates an instance of UserCreatedResourceTag class. + */ + public UserCreatedResourceTag() { + } + + /** + * Get the tagName property: The tag name. Please read for more information: + * https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/tag-resources#limitations. + * + * @return the tagName value. + */ + public String tagName() { + return this.tagName; + } + + /** + * Set the tagName property: The tag name. Please read for more information: + * https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/tag-resources#limitations. + * + * @param tagName the tagName value to set. + * @return the UserCreatedResourceTag object itself. + */ + public UserCreatedResourceTag withTagName(String tagName) { + this.tagName = tagName; + return this; + } + + /** + * Get the tagValue property: The tag value. Please read her for more information: + * https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/tag-resources#limitations. + * + * @return the tagValue value. + */ + public String tagValue() { + return this.tagValue; + } + + /** + * Set the tagValue property: The tag value. Please read her for more information: + * https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/tag-resources#limitations. + * + * @param tagValue the tagValue value to set. + * @return the UserCreatedResourceTag object itself. + */ + public UserCreatedResourceTag withTagValue(String tagValue) { + this.tagValue = tagValue; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("tagName", this.tagName); + jsonWriter.writeStringField("tagValue", this.tagValue); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of UserCreatedResourceTag from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of UserCreatedResourceTag if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the UserCreatedResourceTag. + */ + public static UserCreatedResourceTag fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + UserCreatedResourceTag deserializedUserCreatedResourceTag = new UserCreatedResourceTag(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("tagName".equals(fieldName)) { + deserializedUserCreatedResourceTag.tagName = reader.getString(); + } else if ("tagValue".equals(fieldName)) { + deserializedUserCreatedResourceTag.tagValue = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedUserCreatedResourceTag; + }); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/VCenter.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/VCenter.java index 331cbc20db7d..11c7c22163cb 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/VCenter.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/VCenter.java @@ -97,14 +97,14 @@ interface Blank extends WithParentResource { */ interface WithParentResource { /** - * Specifies resourceName, resourceGroupName, fabricName. + * Specifies resourceGroupName, resourceName, fabricName. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @return the next definition stage. */ - WithCreate withExistingReplicationFabric(String resourceName, String resourceGroupName, String fabricName); + WithCreate withExistingReplicationFabric(String resourceGroupName, String resourceName, String fabricName); } /** diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/VMwareCbtDiskInput.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/VMwareCbtDiskInput.java index 43b5a0bb9208..bafd7e87150d 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/VMwareCbtDiskInput.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/VMwareCbtDiskInput.java @@ -47,6 +47,26 @@ public final class VMwareCbtDiskInput implements JsonSerializable targetNicTags; + /* + * The OS name selected by user. + */ + private String userSelectedOSName; + /** * Creates an instance of VMwareCbtEnableMigrationInput class. */ @@ -244,6 +254,26 @@ public VMwareCbtEnableMigrationInput withSqlServerLicenseType(SqlServerLicenseTy return this; } + /** + * Get the linuxLicenseType property: The license type for Linux VM's. + * + * @return the linuxLicenseType value. + */ + public LinuxLicenseType linuxLicenseType() { + return this.linuxLicenseType; + } + + /** + * Set the linuxLicenseType property: The license type for Linux VM's. + * + * @param linuxLicenseType the linuxLicenseType value to set. + * @return the VMwareCbtEnableMigrationInput object itself. + */ + public VMwareCbtEnableMigrationInput withLinuxLicenseType(LinuxLicenseType linuxLicenseType) { + this.linuxLicenseType = linuxLicenseType; + return this; + } + /** * Get the performSqlBulkRegistration property: A value indicating whether bulk SQL RP registration to be done. * @@ -666,6 +696,26 @@ public VMwareCbtEnableMigrationInput withTargetNicTags(Map targe return this; } + /** + * Get the userSelectedOSName property: The OS name selected by user. + * + * @return the userSelectedOSName value. + */ + public String userSelectedOSName() { + return this.userSelectedOSName; + } + + /** + * Set the userSelectedOSName property: The OS name selected by user. + * + * @param userSelectedOSName the userSelectedOSName value to set. + * @return the VMwareCbtEnableMigrationInput object itself. + */ + public VMwareCbtEnableMigrationInput withUserSelectedOSName(String userSelectedOSName) { + this.userSelectedOSName = userSelectedOSName; + return this; + } + /** * Validates the instance. * @@ -729,6 +779,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("licenseType", this.licenseType == null ? null : this.licenseType.toString()); jsonWriter.writeStringField("sqlServerLicenseType", this.sqlServerLicenseType == null ? null : this.sqlServerLicenseType.toString()); + jsonWriter.writeStringField("linuxLicenseType", + this.linuxLicenseType == null ? null : this.linuxLicenseType.toString()); jsonWriter.writeStringField("performSqlBulkRegistration", this.performSqlBulkRegistration); jsonWriter.writeStringField("targetVmName", this.targetVmName); jsonWriter.writeStringField("targetVmSize", this.targetVmSize); @@ -748,6 +800,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeMapField("targetDiskTags", this.targetDiskTags, (writer, element) -> writer.writeString(element)); jsonWriter.writeMapField("targetNicTags", this.targetNicTags, (writer, element) -> writer.writeString(element)); + jsonWriter.writeStringField("userSelectedOSName", this.userSelectedOSName); return jsonWriter.writeEndObject(); } @@ -789,6 +842,9 @@ public static VMwareCbtEnableMigrationInput fromJson(JsonReader jsonReader) thro } else if ("sqlServerLicenseType".equals(fieldName)) { deserializedVMwareCbtEnableMigrationInput.sqlServerLicenseType = SqlServerLicenseType.fromString(reader.getString()); + } else if ("linuxLicenseType".equals(fieldName)) { + deserializedVMwareCbtEnableMigrationInput.linuxLicenseType + = LinuxLicenseType.fromString(reader.getString()); } else if ("performSqlBulkRegistration".equals(fieldName)) { deserializedVMwareCbtEnableMigrationInput.performSqlBulkRegistration = reader.getString(); } else if ("targetVmName".equals(fieldName)) { @@ -829,6 +885,8 @@ public static VMwareCbtEnableMigrationInput fromJson(JsonReader jsonReader) thro } else if ("targetNicTags".equals(fieldName)) { Map targetNicTags = reader.readMap(reader1 -> reader1.getString()); deserializedVMwareCbtEnableMigrationInput.targetNicTags = targetNicTags; + } else if ("userSelectedOSName".equals(fieldName)) { + deserializedVMwareCbtEnableMigrationInput.userSelectedOSName = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/VMwareCbtMigrateInput.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/VMwareCbtMigrateInput.java index 9669c89f8a37..270a190cc5a1 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/VMwareCbtMigrateInput.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/VMwareCbtMigrateInput.java @@ -10,6 +10,7 @@ import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import java.io.IOException; +import java.util.List; /** * VMwareCbt specific migrate input. @@ -31,6 +32,11 @@ public final class VMwareCbtMigrateInput extends MigrateProviderSpecificInput { */ private String osUpgradeVersion; + /* + * The managed run command script input. + */ + private List postMigrationSteps; + /** * Creates an instance of VMwareCbtMigrateInput class. */ @@ -87,6 +93,26 @@ public VMwareCbtMigrateInput withOsUpgradeVersion(String osUpgradeVersion) { return this; } + /** + * Get the postMigrationSteps property: The managed run command script input. + * + * @return the postMigrationSteps value. + */ + public List postMigrationSteps() { + return this.postMigrationSteps; + } + + /** + * Set the postMigrationSteps property: The managed run command script input. + * + * @param postMigrationSteps the postMigrationSteps value to set. + * @return the VMwareCbtMigrateInput object itself. + */ + public VMwareCbtMigrateInput withPostMigrationSteps(List postMigrationSteps) { + this.postMigrationSteps = postMigrationSteps; + return this; + } + /** * Validates the instance. * @@ -99,6 +125,9 @@ public void validate() { .log(new IllegalArgumentException( "Missing required property performShutdown in model VMwareCbtMigrateInput")); } + if (postMigrationSteps() != null) { + postMigrationSteps().forEach(e -> e.validate()); + } } private static final ClientLogger LOGGER = new ClientLogger(VMwareCbtMigrateInput.class); @@ -112,6 +141,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("performShutdown", this.performShutdown); jsonWriter.writeStringField("instanceType", this.instanceType); jsonWriter.writeStringField("osUpgradeVersion", this.osUpgradeVersion); + jsonWriter.writeArrayField("postMigrationSteps", this.postMigrationSteps, + (writer, element) -> writer.writeJson(element)); return jsonWriter.writeEndObject(); } @@ -137,6 +168,10 @@ public static VMwareCbtMigrateInput fromJson(JsonReader jsonReader) throws IOExc deserializedVMwareCbtMigrateInput.instanceType = reader.getString(); } else if ("osUpgradeVersion".equals(fieldName)) { deserializedVMwareCbtMigrateInput.osUpgradeVersion = reader.getString(); + } else if ("postMigrationSteps".equals(fieldName)) { + List postMigrationSteps + = reader.readArray(reader1 -> ManagedRunCommandScriptInput.fromJson(reader1)); + deserializedVMwareCbtMigrateInput.postMigrationSteps = postMigrationSteps; } else { reader.skipChildren(); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/VMwareCbtMigrationDetails.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/VMwareCbtMigrationDetails.java index 5289dbce03c3..3c6cabf70137 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/VMwareCbtMigrationDetails.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/VMwareCbtMigrationDetails.java @@ -59,6 +59,11 @@ public final class VMwareCbtMigrationDetails extends MigrationProviderSpecificSe */ private String sqlServerLicenseType; + /* + * The license type for Linux VM's. + */ + private LinuxLicenseType linuxLicenseType; + /* * The data mover run as account Id. */ @@ -365,6 +370,26 @@ public VMwareCbtMigrationDetails withSqlServerLicenseType(String sqlServerLicens return this; } + /** + * Get the linuxLicenseType property: The license type for Linux VM's. + * + * @return the linuxLicenseType value. + */ + public LinuxLicenseType linuxLicenseType() { + return this.linuxLicenseType; + } + + /** + * Set the linuxLicenseType property: The license type for Linux VM's. + * + * @param linuxLicenseType the linuxLicenseType value to set. + * @return the VMwareCbtMigrationDetails object itself. + */ + public VMwareCbtMigrationDetails withLinuxLicenseType(LinuxLicenseType linuxLicenseType) { + this.linuxLicenseType = linuxLicenseType; + return this; + } + /** * Get the dataMoverRunAsAccountId property: The data mover run as account Id. * @@ -979,6 +1004,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("instanceType", this.instanceType); jsonWriter.writeStringField("licenseType", this.licenseType); jsonWriter.writeStringField("sqlServerLicenseType", this.sqlServerLicenseType); + jsonWriter.writeStringField("linuxLicenseType", + this.linuxLicenseType == null ? null : this.linuxLicenseType.toString()); jsonWriter.writeStringField("targetVmName", this.targetVmName); jsonWriter.writeStringField("targetVmSize", this.targetVmSize); jsonWriter.writeStringField("targetResourceGroupId", this.targetResourceGroupId); @@ -1036,6 +1063,9 @@ public static VMwareCbtMigrationDetails fromJson(JsonReader jsonReader) throws I deserializedVMwareCbtMigrationDetails.licenseType = reader.getString(); } else if ("sqlServerLicenseType".equals(fieldName)) { deserializedVMwareCbtMigrationDetails.sqlServerLicenseType = reader.getString(); + } else if ("linuxLicenseType".equals(fieldName)) { + deserializedVMwareCbtMigrationDetails.linuxLicenseType + = LinuxLicenseType.fromString(reader.getString()); } else if ("dataMoverRunAsAccountId".equals(fieldName)) { deserializedVMwareCbtMigrationDetails.dataMoverRunAsAccountId = reader.getString(); } else if ("snapshotRunAsAccountId".equals(fieldName)) { diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/VMwareCbtProtectedDiskDetails.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/VMwareCbtProtectedDiskDetails.java index 9a18f61030a9..b5465d7eb1d6 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/VMwareCbtProtectedDiskDetails.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/VMwareCbtProtectedDiskDetails.java @@ -91,6 +91,26 @@ public final class VMwareCbtProtectedDiskDetails implements JsonSerializable postMigrationSteps; + /** * Creates an instance of VMwareCbtTestMigrateInput class. */ @@ -138,6 +143,26 @@ public VMwareCbtTestMigrateInput withOsUpgradeVersion(String osUpgradeVersion) { return this; } + /** + * Get the postMigrationSteps property: The managed run command script input. + * + * @return the postMigrationSteps value. + */ + public List postMigrationSteps() { + return this.postMigrationSteps; + } + + /** + * Set the postMigrationSteps property: The managed run command script input. + * + * @param postMigrationSteps the postMigrationSteps value to set. + * @return the VMwareCbtTestMigrateInput object itself. + */ + public VMwareCbtTestMigrateInput withPostMigrationSteps(List postMigrationSteps) { + this.postMigrationSteps = postMigrationSteps; + return this; + } + /** * Validates the instance. * @@ -158,6 +183,9 @@ public void validate() { if (vmNics() != null) { vmNics().forEach(e -> e.validate()); } + if (postMigrationSteps() != null) { + postMigrationSteps().forEach(e -> e.validate()); + } } private static final ClientLogger LOGGER = new ClientLogger(VMwareCbtTestMigrateInput.class); @@ -173,6 +201,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("instanceType", this.instanceType); jsonWriter.writeArrayField("vmNics", this.vmNics, (writer, element) -> writer.writeJson(element)); jsonWriter.writeStringField("osUpgradeVersion", this.osUpgradeVersion); + jsonWriter.writeArrayField("postMigrationSteps", this.postMigrationSteps, + (writer, element) -> writer.writeJson(element)); return jsonWriter.writeEndObject(); } @@ -203,6 +233,10 @@ public static VMwareCbtTestMigrateInput fromJson(JsonReader jsonReader) throws I deserializedVMwareCbtTestMigrateInput.vmNics = vmNics; } else if ("osUpgradeVersion".equals(fieldName)) { deserializedVMwareCbtTestMigrateInput.osUpgradeVersion = reader.getString(); + } else if ("postMigrationSteps".equals(fieldName)) { + List postMigrationSteps + = reader.readArray(reader1 -> ManagedRunCommandScriptInput.fromJson(reader1)); + deserializedVMwareCbtTestMigrateInput.postMigrationSteps = postMigrationSteps; } else { reader.skipChildren(); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/VMwareCbtUpdateDiskInput.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/VMwareCbtUpdateDiskInput.java index 75c15c661600..d85d99a69156 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/VMwareCbtUpdateDiskInput.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/VMwareCbtUpdateDiskInput.java @@ -32,6 +32,21 @@ public final class VMwareCbtUpdateDiskInput implements JsonSerializable writer.writeString(element)); jsonWriter.writeMapField("targetDiskTags", this.targetDiskTags, @@ -560,6 +613,11 @@ public static VMwareCbtUpdateMigrationItemInput fromJson(JsonReader jsonReader) } else if ("sqlServerLicenseType".equals(fieldName)) { deserializedVMwareCbtUpdateMigrationItemInput.sqlServerLicenseType = SqlServerLicenseType.fromString(reader.getString()); + } else if ("linuxLicenseType".equals(fieldName)) { + deserializedVMwareCbtUpdateMigrationItemInput.linuxLicenseType + = LinuxLicenseType.fromString(reader.getString()); + } else if ("userSelectedOSName".equals(fieldName)) { + deserializedVMwareCbtUpdateMigrationItemInput.userSelectedOSName = reader.getString(); } else if ("performAutoResync".equals(fieldName)) { deserializedVMwareCbtUpdateMigrationItemInput.performAutoResync = reader.getString(); } else if ("targetVmTags".equals(fieldName)) { diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/VaultSetting.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/VaultSetting.java index 853510a5a53e..3fe170f83494 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/VaultSetting.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/VaultSetting.java @@ -90,13 +90,13 @@ interface Blank extends WithParentResource { */ interface WithParentResource { /** - * Specifies resourceName, resourceGroupName. + * Specifies resourceGroupName, resourceName. * - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. + * @param resourceName The name of the recovery services vault. * @return the next definition stage. */ - WithProperties withExistingVault(String resourceName, String resourceGroupName); + WithProperties withExistingVault(String resourceGroupName, String resourceName); } /** diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-recoveryservicessiterecovery/proxy-config.json b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-recoveryservicessiterecovery/proxy-config.json index fa96547a5b6c..1c3f865114ce 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-recoveryservicessiterecovery/proxy-config.json +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-recoveryservicessiterecovery/proxy-config.json @@ -1 +1 @@ -[["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.MigrationRecoveryPointsClientImpl$MigrationRecoveryPointsService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.RecoveryPointsClientImpl$RecoveryPointsService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationAlertSettingsClientImpl$ReplicationAlertSettingsService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationAppliancesClientImpl$ReplicationAppliancesService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationEligibilityResultsOperationsClientImpl$ReplicationEligibilityResultsOperationsService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationEventsClientImpl$ReplicationEventsService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationFabricsClientImpl$ReplicationFabricsService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationJobsClientImpl$ReplicationJobsService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationLogicalNetworksClientImpl$ReplicationLogicalNetworksService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationMigrationItemsClientImpl$ReplicationMigrationItemsService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationNetworkMappingsClientImpl$ReplicationNetworkMappingsService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationNetworksClientImpl$ReplicationNetworksService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationPoliciesClientImpl$ReplicationPoliciesService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationProtectableItemsClientImpl$ReplicationProtectableItemsService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationProtectedItemsClientImpl$ReplicationProtectedItemsService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationProtectionContainerMappingsClientImpl$ReplicationProtectionContainerMappingsService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationProtectionContainersClientImpl$ReplicationProtectionContainersService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationProtectionIntentsClientImpl$ReplicationProtectionIntentsService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationRecoveryPlansClientImpl$ReplicationRecoveryPlansService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationRecoveryServicesProvidersClientImpl$ReplicationRecoveryServicesProvidersService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationVaultHealthsClientImpl$ReplicationVaultHealthsService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationVaultSettingsClientImpl$ReplicationVaultSettingsService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationvCentersClientImpl$ReplicationvCentersService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.StorageClassificationMappingsClientImpl$StorageClassificationMappingsService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.StorageClassificationsClientImpl$StorageClassificationsService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.SupportedOperatingSystemsOperationsClientImpl$SupportedOperatingSystemsOperationsService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.TargetComputeSizesClientImpl$TargetComputeSizesService"]] \ No newline at end of file +[["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ClusterRecoveryPointOperationsClientImpl$ClusterRecoveryPointOperationsService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ClusterRecoveryPointsClientImpl$ClusterRecoveryPointsService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.MigrationRecoveryPointsClientImpl$MigrationRecoveryPointsService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.RecoveryPointsClientImpl$RecoveryPointsService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationAlertSettingsClientImpl$ReplicationAlertSettingsService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationAppliancesClientImpl$ReplicationAppliancesService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationEligibilityResultsOperationsClientImpl$ReplicationEligibilityResultsOperationsService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationEventsClientImpl$ReplicationEventsService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationFabricsClientImpl$ReplicationFabricsService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationJobsClientImpl$ReplicationJobsService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationLogicalNetworksClientImpl$ReplicationLogicalNetworksService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationMigrationItemsClientImpl$ReplicationMigrationItemsService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationNetworkMappingsClientImpl$ReplicationNetworkMappingsService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationNetworksClientImpl$ReplicationNetworksService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationPoliciesClientImpl$ReplicationPoliciesService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationProtectableItemsClientImpl$ReplicationProtectableItemsService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationProtectedItemsClientImpl$ReplicationProtectedItemsService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationProtectionClustersClientImpl$ReplicationProtectionClustersService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationProtectionContainerMappingsClientImpl$ReplicationProtectionContainerMappingsService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationProtectionContainersClientImpl$ReplicationProtectionContainersService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationProtectionIntentsClientImpl$ReplicationProtectionIntentsService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationRecoveryPlansClientImpl$ReplicationRecoveryPlansService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationRecoveryServicesProvidersClientImpl$ReplicationRecoveryServicesProvidersService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationVaultHealthsClientImpl$ReplicationVaultHealthsService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationVaultSettingsClientImpl$ReplicationVaultSettingsService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationvCentersClientImpl$ReplicationvCentersService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.StorageClassificationMappingsClientImpl$StorageClassificationMappingsService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.StorageClassificationsClientImpl$StorageClassificationsService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.SupportedOperatingSystemsOperationsClientImpl$SupportedOperatingSystemsOperationsService"],["com.azure.resourcemanager.recoveryservicessiterecovery.implementation.TargetComputeSizesClientImpl$TargetComputeSizesService"]] \ No newline at end of file diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/resources/azure-resourcemanager-recoveryservicessiterecovery.properties b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/resources/azure-resourcemanager-recoveryservicessiterecovery.properties new file mode 100644 index 000000000000..defbd48204e4 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/resources/azure-resourcemanager-recoveryservicessiterecovery.properties @@ -0,0 +1 @@ +version=${project.version} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ClusterRecoveryPointOperationGetSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ClusterRecoveryPointOperationGetSamples.java new file mode 100644 index 000000000000..e50197f5c5be --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ClusterRecoveryPointOperationGetSamples.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.generated; + +/** + * Samples for ClusterRecoveryPointOperation Get. + */ +public final class ClusterRecoveryPointOperationGetSamples { + /* + * x-ms-original-file: + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples + * /ClusterRecoveryPoint_Get.json + */ + /** + * Sample code: Gets a recovery point. + * + * @param manager Entry point to SiteRecoveryManager. + */ + public static void + getsARecoveryPoint(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { + manager.clusterRecoveryPointOperations() + .getWithResponse("resourceGroupPS1", "vault1", "fabric-pri-eastus", "pri-cloud-eastus", "testcluster", + "06b9ae7f-f21d-4a76-9897-5cf5d6004d80", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ClusterRecoveryPointsListByReplicationProtectio.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ClusterRecoveryPointsListByReplicationProtectio.java new file mode 100644 index 000000000000..761600adbaaf --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ClusterRecoveryPointsListByReplicationProtectio.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.generated; + +/** + * Samples for ClusterRecoveryPoints ListByReplicationProtectionCluster. + */ +public final class ClusterRecoveryPointsListByReplicationProtectio { + /* + * x-ms-original-file: + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples + * /ClusterRecoveryPoints_ListByReplicationProtectionCluster.json + */ + /** + * Sample code: Gets the list of cluster recovery points. + * + * @param manager Entry point to SiteRecoveryManager. + */ + public static void getsTheListOfClusterRecoveryPoints( + com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { + manager.clusterRecoveryPoints() + .listByReplicationProtectionCluster("resourceGroupPS1", "vault1", "fabric-pri-eastus", "pri-cloud-eastus", + "testcluster", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/MigrationRecoveryPointsGetSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/MigrationRecoveryPointsGetSamples.java index e76e18f92055..a7f1ea80c67d 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/MigrationRecoveryPointsGetSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/MigrationRecoveryPointsGetSamples.java @@ -10,7 +10,7 @@ public final class MigrationRecoveryPointsGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /MigrationRecoveryPoints_Get.json */ /** @@ -21,7 +21,7 @@ public final class MigrationRecoveryPointsGetSamples { public static void getsARecoveryPointForAMigrationItem( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.migrationRecoveryPoints() - .getWithResponse("migrationvault", "resourcegroup1", "vmwarefabric1", "vmwareContainer1", "virtualmachine1", + .getWithResponse("resourcegroup1", "migrationvault", "vmwarefabric1", "vmwareContainer1", "virtualmachine1", "b22134ea-620c-474b-9fa5-3c1cb47708e3", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/MigrationRecoveryPointsListByReplicationMigrati.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/MigrationRecoveryPointsListByReplicationMigrati.java index 22793b4422d7..e0eeaf572923 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/MigrationRecoveryPointsListByReplicationMigrati.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/MigrationRecoveryPointsListByReplicationMigrati.java @@ -10,7 +10,7 @@ public final class MigrationRecoveryPointsListByReplicationMigrati { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /MigrationRecoveryPoints_ListByReplicationMigrationItems.json */ /** @@ -21,7 +21,7 @@ public final class MigrationRecoveryPointsListByReplicationMigrati { public static void getsTheRecoveryPointsForAMigrationItem( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.migrationRecoveryPoints() - .listByReplicationMigrationItems("migrationvault", "resourcegroup1", "vmwarefabric1", "vmwareContainer1", + .listByReplicationMigrationItems("resourcegroup1", "migrationvault", "vmwarefabric1", "vmwareContainer1", "virtualmachine1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/OperationsListByResourceGroupSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/OperationsListByResourceGroupSamples.java index a0ff0dce3894..2f99f033b572 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/OperationsListByResourceGroupSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/OperationsListByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class OperationsListByResourceGroupSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /Operations_List.json */ /** diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPointsGetSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPointsGetSamples.java index 804920bfa8b4..b245dced1131 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPointsGetSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPointsGetSamples.java @@ -10,7 +10,7 @@ public final class RecoveryPointsGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /RecoveryPoints_Get.json */ /** @@ -21,7 +21,7 @@ public final class RecoveryPointsGetSamples { public static void getsARecoveryPoint(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.recoveryPoints() - .getWithResponse("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .getWithResponse("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", "b22134ea-620c-474b-9fa5-3c1cb47708e3", com.azure.core.util.Context.NONE); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPointsListByReplicationProtectedItemsSa.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPointsListByReplicationProtectedItemsSa.java index 43cadbee0fda..1a7a0c6ccdc2 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPointsListByReplicationProtectedItemsSa.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPointsListByReplicationProtectedItemsSa.java @@ -10,7 +10,7 @@ public final class RecoveryPointsListByReplicationProtectedItemsSa { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /RecoveryPoints_ListByReplicationProtectedItems.json */ /** @@ -21,7 +21,7 @@ public final class RecoveryPointsListByReplicationProtectedItemsSa { public static void getsTheListOfRecoveryPointsForAReplicationProtectedItem( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.recoveryPoints() - .listByReplicationProtectedItems("vault1", "resourceGroupPS1", "cloud1", + .listByReplicationProtectedItems("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", com.azure.core.util.Context.NONE); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationAlertSettingsCreateSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationAlertSettingsCreateSamples.java index 868b7f394ff1..73eb0036cc58 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationAlertSettingsCreateSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationAlertSettingsCreateSamples.java @@ -13,7 +13,7 @@ public final class ReplicationAlertSettingsCreateSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationAlertSettings_Create.json */ /** @@ -25,7 +25,7 @@ public static void configuresEmailNotificationsForThisVault( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationAlertSettings() .define("defaultAlertSetting") - .withExistingVault("vault1", "resourceGroupPS1") + .withExistingVault("resourceGroupPS1", "vault1") .withProperties(new ConfigureAlertRequestProperties().withSendToOwners("false") .withCustomEmailAddresses(Arrays.asList("ronehr@microsoft.com")) .withLocale("")) diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationAlertSettingsGetSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationAlertSettingsGetSamples.java index f8975d74f0a0..ca01ada23ede 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationAlertSettingsGetSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationAlertSettingsGetSamples.java @@ -10,7 +10,7 @@ public final class ReplicationAlertSettingsGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationAlertSettings_Get.json */ /** @@ -21,6 +21,6 @@ public final class ReplicationAlertSettingsGetSamples { public static void getsAnEmailNotificationAlertConfiguration( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationAlertSettings() - .getWithResponse("vault1", "resourceGroupPS1", "defaultAlertSetting", com.azure.core.util.Context.NONE); + .getWithResponse("resourceGroupPS1", "vault1", "defaultAlertSetting", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationAlertSettingsListSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationAlertSettingsListSamples.java index b13c086dafa6..ac26e8fb61e4 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationAlertSettingsListSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationAlertSettingsListSamples.java @@ -10,7 +10,7 @@ public final class ReplicationAlertSettingsListSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationAlertSettings_List.json */ /** @@ -20,6 +20,6 @@ public final class ReplicationAlertSettingsListSamples { */ public static void getsTheListOfConfiguredEmailNotificationAlertConfigurations( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { - manager.replicationAlertSettings().list("vault1", "resourceGroupPS1", com.azure.core.util.Context.NONE); + manager.replicationAlertSettings().list("resourceGroupPS1", "vault1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationAppliancesListSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationAppliancesListSamples.java index d8753504eac2..301b627388d1 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationAppliancesListSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationAppliancesListSamples.java @@ -10,7 +10,7 @@ public final class ReplicationAppliancesListSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationAppliances_List.json */ /** @@ -20,6 +20,6 @@ public final class ReplicationAppliancesListSamples { */ public static void getsTheListOfAppliances(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { - manager.replicationAppliances().list("vault1", "resourceGroupPS1", null, com.azure.core.util.Context.NONE); + manager.replicationAppliances().list("resourceGroupPS1", "vault1", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationEligibilityResultsOperationGetSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationEligibilityResultsOperationGetSamples.java index ea39d092d3b4..41ec40a5d3ef 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationEligibilityResultsOperationGetSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationEligibilityResultsOperationGetSamples.java @@ -10,7 +10,7 @@ public final class ReplicationEligibilityResultsOperationGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationEligibilityResults_Get.json */ /** diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationEligibilityResultsOperationListSampl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationEligibilityResultsOperationListSampl.java index 1dd6f5392c5d..210c8d4906b2 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationEligibilityResultsOperationListSampl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationEligibilityResultsOperationListSampl.java @@ -10,7 +10,7 @@ public final class ReplicationEligibilityResultsOperationListSampl { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationEligibilityResults_List.json */ /** diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationEventsGetSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationEventsGetSamples.java index 6e361b90d563..cebb9ea2fb0d 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationEventsGetSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationEventsGetSamples.java @@ -10,7 +10,7 @@ public final class ReplicationEventsGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationEvents_Get.json */ /** @@ -21,7 +21,7 @@ public final class ReplicationEventsGetSamples { public static void getTheDetailsOfAnAzureSiteRecoveryEvent( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationEvents() - .getWithResponse("vault1", "resourceGroupPS1", "654b71d0-b2ce-4e6e-a861-98528d4bd375", + .getWithResponse("resourceGroupPS1", "vault1", "654b71d0-b2ce-4e6e-a861-98528d4bd375", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationEventsListSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationEventsListSamples.java index 49ac26e7b3c3..577576f4a91b 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationEventsListSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationEventsListSamples.java @@ -10,7 +10,7 @@ public final class ReplicationEventsListSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationEvents_List.json */ /** @@ -20,6 +20,6 @@ public final class ReplicationEventsListSamples { */ public static void getsTheListOfAzureSiteRecoveryEvents( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { - manager.replicationEvents().list("vault1", "resourceGroupPS1", null, com.azure.core.util.Context.NONE); + manager.replicationEvents().list("resourceGroupPS1", "vault1", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationFabricsCheckConsistencySamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationFabricsCheckConsistencySamples.java index 62c61a9ece38..89f16e40f6af 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationFabricsCheckConsistencySamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationFabricsCheckConsistencySamples.java @@ -10,7 +10,7 @@ public final class ReplicationFabricsCheckConsistencySamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationFabrics_CheckConsistency.json */ /** @@ -21,6 +21,6 @@ public final class ReplicationFabricsCheckConsistencySamples { public static void checksTheConsistencyOfTheASRFabric( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationFabrics() - .checkConsistency("vault1", "resourceGroupPS1", "cloud1", com.azure.core.util.Context.NONE); + .checkConsistency("resourceGroupPS1", "vault1", "cloud1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationFabricsCreateSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationFabricsCreateSamples.java index 679038c02cb8..2620502a57b1 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationFabricsCreateSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationFabricsCreateSamples.java @@ -13,7 +13,7 @@ public final class ReplicationFabricsCreateSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationFabrics_Create.json */ /** @@ -25,7 +25,7 @@ public static void createsAnAzureSiteRecoveryFabric( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationFabrics() .define("cloud1") - .withExistingVault("vault1", "resourceGroupPS1") + .withExistingVault("resourceGroupPS1", "vault1") .withProperties(new FabricCreationInputProperties().withCustomDetails(new FabricSpecificCreationInput())) .create(); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationFabricsDeleteSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationFabricsDeleteSamples.java index 4e71fc32a812..2b42941d9630 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationFabricsDeleteSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationFabricsDeleteSamples.java @@ -10,7 +10,7 @@ public final class ReplicationFabricsDeleteSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationFabrics_Delete.json */ /** @@ -20,6 +20,6 @@ public final class ReplicationFabricsDeleteSamples { */ public static void deletesTheSite(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { - manager.replicationFabrics().delete("vault1", "resourceGroupPS1", "cloud1", com.azure.core.util.Context.NONE); + manager.replicationFabrics().delete("resourceGroupPS1", "vault1", "cloud1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationFabricsGetSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationFabricsGetSamples.java index 92812f559f42..84a5ee154065 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationFabricsGetSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationFabricsGetSamples.java @@ -10,7 +10,7 @@ public final class ReplicationFabricsGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationFabrics_Get.json */ /** @@ -21,6 +21,6 @@ public final class ReplicationFabricsGetSamples { public static void getsTheDetailsOfAnASRFabric( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationFabrics() - .getWithResponse("vault1", "resourceGroupPS1", "cloud1", null, com.azure.core.util.Context.NONE); + .getWithResponse("resourceGroupPS1", "vault1", "cloud1", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationFabricsListSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationFabricsListSamples.java index c49f3ce9865f..e8fbc2131033 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationFabricsListSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationFabricsListSamples.java @@ -10,7 +10,7 @@ public final class ReplicationFabricsListSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationFabrics_List.json */ /** @@ -20,6 +20,6 @@ public final class ReplicationFabricsListSamples { */ public static void getsTheListOfASRFabrics(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { - manager.replicationFabrics().list("vault1", "resourceGroupPS1", com.azure.core.util.Context.NONE); + manager.replicationFabrics().list("resourceGroupPS1", "vault1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationFabricsMigrateToAadSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationFabricsMigrateToAadSamples.java index 8a056f28b424..d2fa46478b0a 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationFabricsMigrateToAadSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationFabricsMigrateToAadSamples.java @@ -10,7 +10,7 @@ public final class ReplicationFabricsMigrateToAadSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationFabrics_MigrateToAad.json */ /** @@ -21,6 +21,6 @@ public final class ReplicationFabricsMigrateToAadSamples { public static void migratesTheSiteToAAD(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationFabrics() - .migrateToAad("vault1", "resourceGroupPS1", "cloud1", com.azure.core.util.Context.NONE); + .migrateToAad("resourceGroupPS1", "vault1", "cloud1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationFabricsPurgeSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationFabricsPurgeSamples.java index d28516f52531..a158c62dfcdd 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationFabricsPurgeSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationFabricsPurgeSamples.java @@ -10,7 +10,7 @@ public final class ReplicationFabricsPurgeSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationFabrics_Purge.json */ /** @@ -20,6 +20,6 @@ public final class ReplicationFabricsPurgeSamples { */ public static void purgesTheSite(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { - manager.replicationFabrics().purge("vault1", "resourceGroupPS1", "cloud1", com.azure.core.util.Context.NONE); + manager.replicationFabrics().purge("resourceGroupPS1", "vault1", "cloud1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationFabricsReassociateGatewaySamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationFabricsReassociateGatewaySamples.java index 911c7710dfeb..bd96c65a20c3 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationFabricsReassociateGatewaySamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationFabricsReassociateGatewaySamples.java @@ -14,7 +14,7 @@ public final class ReplicationFabricsReassociateGatewaySamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationFabrics_ReassociateGateway.json */ /** @@ -25,7 +25,7 @@ public final class ReplicationFabricsReassociateGatewaySamples { public static void performFailoverOfTheProcessServer( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationFabrics() - .reassociateGateway("MadhaviVault", "MadhaviVRG", "GRACE-V2A-1", + .reassociateGateway("MadhaviVRG", "MadhaviVault", "GRACE-V2A-1", new FailoverProcessServerRequest().withProperties(new FailoverProcessServerRequestProperties() .withContainerName("cloud_1f3c15af-2256-4568-9e06-e1ef4f728f75") .withSourceProcessServerId("AFA0EC54-1894-4E44-9CAB02DB8854B117") diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationFabricsRemoveInfraSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationFabricsRemoveInfraSamples.java index 0b2c20140f3e..a6da25652481 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationFabricsRemoveInfraSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationFabricsRemoveInfraSamples.java @@ -10,7 +10,7 @@ public final class ReplicationFabricsRemoveInfraSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationInfrastructure_Delete.json */ /** diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationFabricsRenewCertificateSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationFabricsRenewCertificateSamples.java index a7e8323679af..d227c46f565c 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationFabricsRenewCertificateSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationFabricsRenewCertificateSamples.java @@ -13,7 +13,7 @@ public final class ReplicationFabricsRenewCertificateSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationFabrics_RenewCertificate.json */ /** @@ -24,7 +24,7 @@ public final class ReplicationFabricsRenewCertificateSamples { public static void renewsCertificateForTheFabric( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationFabrics() - .renewCertificate("vault1", "resourceGroupPS1", "cloud1", + .renewCertificate("resourceGroupPS1", "vault1", "cloud1", new RenewCertificateInput() .withProperties(new RenewCertificateInputProperties().withRenewCertificateType("Cloud")), com.azure.core.util.Context.NONE); diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationJobsCancelSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationJobsCancelSamples.java index aa1dcc39df5f..bfb0e26d0952 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationJobsCancelSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationJobsCancelSamples.java @@ -10,7 +10,7 @@ public final class ReplicationJobsCancelSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationJobs_Cancel.json */ /** @@ -21,7 +21,7 @@ public final class ReplicationJobsCancelSamples { public static void cancelsTheSpecifiedJob(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationJobs() - .cancel("vault1", "resourceGroupPS1", "2653c648-fc72-4316-86f3-fdf8eaa0066b", + .cancel("resourceGroupPS1", "vault1", "2653c648-fc72-4316-86f3-fdf8eaa0066b", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationJobsExportSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationJobsExportSamples.java index 99a4aa2b27aa..ce9dee9a1ced 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationJobsExportSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationJobsExportSamples.java @@ -12,7 +12,7 @@ public final class ReplicationJobsExportSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationJobs_Export.json */ /** @@ -23,7 +23,7 @@ public final class ReplicationJobsExportSamples { public static void exportsTheDetailsOfTheAzureSiteRecoveryJobsOfTheVault( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationJobs() - .export("vault1", "resourceGroupPS1", + .export("resourceGroupPS1", "vault1", new JobQueryParameter().withStartTime("2017-04-27T14:26:51.9161395Z") .withEndTime("2017-05-04T14:26:51.9161395Z") .withAffectedObjectTypes("") diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationJobsGetSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationJobsGetSamples.java index fd6691241c19..8696362de64f 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationJobsGetSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationJobsGetSamples.java @@ -10,7 +10,7 @@ public final class ReplicationJobsGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationJobs_Get.json */ /** @@ -21,7 +21,7 @@ public final class ReplicationJobsGetSamples { public static void getsTheJobDetails(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationJobs() - .getWithResponse("vault1", "resourceGroupPS1", "58776d0b-3141-48b2-a377-9ad863eb160d", + .getWithResponse("resourceGroupPS1", "vault1", "58776d0b-3141-48b2-a377-9ad863eb160d", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationJobsListSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationJobsListSamples.java index 4d909eb97455..1b207eb66ee4 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationJobsListSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationJobsListSamples.java @@ -10,7 +10,7 @@ public final class ReplicationJobsListSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationJobs_List.json */ /** @@ -20,6 +20,6 @@ public final class ReplicationJobsListSamples { */ public static void getsTheListOfJobs(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { - manager.replicationJobs().list("vault1", "resourceGroupPS1", null, com.azure.core.util.Context.NONE); + manager.replicationJobs().list("resourceGroupPS1", "vault1", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationJobsRestartSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationJobsRestartSamples.java index e4fb451e490c..3e3246a4a0bc 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationJobsRestartSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationJobsRestartSamples.java @@ -10,7 +10,7 @@ public final class ReplicationJobsRestartSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationJobs_Restart.json */ /** @@ -21,7 +21,7 @@ public final class ReplicationJobsRestartSamples { public static void restartsTheSpecifiedJob(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationJobs() - .restart("vault1", "resourceGroupPS1", "0664564c-353e-401a-ab0c-722257c10e25", + .restart("resourceGroupPS1", "vault1", "0664564c-353e-401a-ab0c-722257c10e25", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationJobsResumeSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationJobsResumeSamples.java index bdd3b38b263d..3ea148b4b99f 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationJobsResumeSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationJobsResumeSamples.java @@ -13,7 +13,7 @@ public final class ReplicationJobsResumeSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationJobs_Resume.json */ /** @@ -24,7 +24,7 @@ public final class ReplicationJobsResumeSamples { public static void resumesTheSpecifiedJob(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationJobs() - .resume("vault1", "resourceGroupPS1", "58776d0b-3141-48b2-a377-9ad863eb160d", + .resume("resourceGroupPS1", "vault1", "58776d0b-3141-48b2-a377-9ad863eb160d", new ResumeJobParams().withProperties(new ResumeJobParamsProperties().withComments(" ")), com.azure.core.util.Context.NONE); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationLogicalNetworksGetSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationLogicalNetworksGetSamples.java index 68c77836f5e0..313ebdd49a24 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationLogicalNetworksGetSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationLogicalNetworksGetSamples.java @@ -10,7 +10,7 @@ public final class ReplicationLogicalNetworksGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationLogicalNetworks_Get.json */ /** @@ -21,7 +21,7 @@ public final class ReplicationLogicalNetworksGetSamples { public static void getsALogicalNetworkWithSpecifiedServerIdAndLogicalNetworkName( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationLogicalNetworks() - .getWithResponse("vault1", "resourceGroupPS1", "cloud1", "87ab394f-165f-4aa9-bd84-b018500b4509", + .getWithResponse("resourceGroupPS1", "vault1", "cloud1", "87ab394f-165f-4aa9-bd84-b018500b4509", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationLogicalNetworksListByReplicationFabr.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationLogicalNetworksListByReplicationFabr.java index de40a3d24bfd..7d7670ad1fd7 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationLogicalNetworksListByReplicationFabr.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationLogicalNetworksListByReplicationFabr.java @@ -10,7 +10,7 @@ public final class ReplicationLogicalNetworksListByReplicationFabr { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationLogicalNetworks_ListByReplicationFabrics.json */ /** @@ -21,6 +21,6 @@ public final class ReplicationLogicalNetworksListByReplicationFabr { public static void getsTheListOfLogicalNetworksUnderAFabric( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationLogicalNetworks() - .listByReplicationFabrics("vault1", "resourceGroupPS1", "cloud1", com.azure.core.util.Context.NONE); + .listByReplicationFabrics("resourceGroupPS1", "vault1", "cloud1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationMigrationItemsCreateSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationMigrationItemsCreateSamples.java index 7ea6a1e4a3fa..8691148c5ad7 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationMigrationItemsCreateSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationMigrationItemsCreateSamples.java @@ -15,7 +15,7 @@ public final class ReplicationMigrationItemsCreateSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationMigrationItems_Create.json */ /** @@ -27,7 +27,7 @@ public final class ReplicationMigrationItemsCreateSamples { enablesMigration(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationMigrationItems() .define("virtualmachine1") - .withExistingReplicationProtectionContainer("migrationvault", "resourcegroup1", "vmwarefabric1", + .withExistingReplicationProtectionContainer("resourcegroup1", "migrationvault", "vmwarefabric1", "vmwareContainer1") .withProperties(new EnableMigrationInputProperties().withPolicyId( "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.RecoveryServices/vaults/migrationvault/replicationPolicies/vmwarepolicy1") @@ -37,7 +37,10 @@ public final class ReplicationMigrationItemsCreateSamples { .withIsOSDisk("true") .withLogStorageAccountId( "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.Storage/storageAccounts/logStorageAccount1") - .withLogStorageAccountSasSecretName("fakeTokenPlaceholder"))) + .withLogStorageAccountSasSecretName("fakeTokenPlaceholder") + .withIops(3000L) + .withThroughputInMbps(5000L) + .withDiskSizeInGB(60L))) .withDataMoverRunAsAccountId( "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.OffAzure/VMwareSites/vmwaresite1/runasaccounts/dataMoverRunAsAccount1") .withSnapshotRunAsAccountId( diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationMigrationItemsDeleteSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationMigrationItemsDeleteSamples.java index 27ffd348fbcb..7d594eccd3b4 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationMigrationItemsDeleteSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationMigrationItemsDeleteSamples.java @@ -10,7 +10,7 @@ public final class ReplicationMigrationItemsDeleteSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationMigrationItems_Delete.json */ /** @@ -21,7 +21,7 @@ public final class ReplicationMigrationItemsDeleteSamples { public static void deleteTheMigrationItem(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationMigrationItems() - .delete("migrationvault", "resourcegroup1", "vmwarefabric1", "vmwareContainer1", "virtualmachine1", null, + .delete("resourcegroup1", "migrationvault", "vmwarefabric1", "vmwareContainer1", "virtualmachine1", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationMigrationItemsGetSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationMigrationItemsGetSamples.java index 15af4f890955..1ed616390c9e 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationMigrationItemsGetSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationMigrationItemsGetSamples.java @@ -10,7 +10,7 @@ public final class ReplicationMigrationItemsGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationMigrationItems_Get.json */ /** @@ -21,7 +21,7 @@ public final class ReplicationMigrationItemsGetSamples { public static void getsTheDetailsOfAMigrationItem( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationMigrationItems() - .getWithResponse("migrationvault", "resourcegroup1", "vmwarefabric1", "vmwareContainer1", "virtualmachine1", + .getWithResponse("resourcegroup1", "migrationvault", "vmwarefabric1", "vmwareContainer1", "virtualmachine1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationMigrationItemsListByReplicationProte.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationMigrationItemsListByReplicationProte.java index a5846502d51b..d1e167f90cc0 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationMigrationItemsListByReplicationProte.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationMigrationItemsListByReplicationProte.java @@ -10,7 +10,7 @@ public final class ReplicationMigrationItemsListByReplicationProte { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationMigrationItems_ListByReplicationProtectionContainers.json */ /** @@ -21,7 +21,7 @@ public final class ReplicationMigrationItemsListByReplicationProte { public static void getsTheListOfMigrationItemsInTheProtectionContainer( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationMigrationItems() - .listByReplicationProtectionContainers("migrationvault", "resourcegroup1", "vmwarefabric1", + .listByReplicationProtectionContainers("resourcegroup1", "migrationvault", "vmwarefabric1", "vmwareContainer1", null, null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationMigrationItemsListSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationMigrationItemsListSamples.java index d89a104c6cbf..a4e45d58884b 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationMigrationItemsListSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationMigrationItemsListSamples.java @@ -10,7 +10,7 @@ public final class ReplicationMigrationItemsListSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationMigrationItems_List.json */ /** @@ -21,6 +21,6 @@ public final class ReplicationMigrationItemsListSamples { public static void getsTheListOfMigrationItemsInTheVault( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationMigrationItems() - .list("migrationvault", "resourcegroup1", null, null, null, com.azure.core.util.Context.NONE); + .list("resourcegroup1", "migrationvault", null, null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationMigrationItemsMigrateSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationMigrationItemsMigrateSamples.java index 93b5a09ed40c..2c4304ae7437 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationMigrationItemsMigrateSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationMigrationItemsMigrateSamples.java @@ -14,7 +14,7 @@ public final class ReplicationMigrationItemsMigrateSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationMigrationItems_Migrate.json */ /** @@ -24,7 +24,7 @@ public final class ReplicationMigrationItemsMigrateSamples { */ public static void migrateItem(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationMigrationItems() - .migrate("migrationvault", "resourcegroup1", "vmwarefabric1", "vmwareContainer1", "virtualmachine1", + .migrate("resourcegroup1", "migrationvault", "vmwarefabric1", "vmwareContainer1", "virtualmachine1", new MigrateInput().withProperties(new MigrateInputProperties() .withProviderSpecificDetails(new VMwareCbtMigrateInput().withPerformShutdown("true"))), com.azure.core.util.Context.NONE); diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationMigrationItemsPauseReplicationSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationMigrationItemsPauseReplicationSamples.java index c8ac7e863011..94259207f3b7 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationMigrationItemsPauseReplicationSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationMigrationItemsPauseReplicationSamples.java @@ -13,7 +13,7 @@ public final class ReplicationMigrationItemsPauseReplicationSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationMigrationItems_PauseReplication.json */ /** @@ -24,7 +24,7 @@ public final class ReplicationMigrationItemsPauseReplicationSamples { public static void pauseReplication(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationMigrationItems() - .pauseReplication("migrationvault", "resourcegroup1", "vmwarefabric1", "vmwareContainer1", + .pauseReplication("resourcegroup1", "migrationvault", "vmwarefabric1", "vmwareContainer1", "virtualmachine1", new PauseReplicationInput() .withProperties(new PauseReplicationInputProperties().withInstanceType("VMwareCbt")), diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationMigrationItemsResumeReplicationSampl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationMigrationItemsResumeReplicationSampl.java index 687f55fb241b..941284a9098f 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationMigrationItemsResumeReplicationSampl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationMigrationItemsResumeReplicationSampl.java @@ -14,7 +14,7 @@ public final class ReplicationMigrationItemsResumeReplicationSampl { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationMigrationItems_ResumeReplication.json */ /** @@ -25,7 +25,7 @@ public final class ReplicationMigrationItemsResumeReplicationSampl { public static void resumeReplication(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationMigrationItems() - .resumeReplication("migrationvault", "resourcegroup1", "vmwarefabric1", "vmwareContainer1", + .resumeReplication("resourcegroup1", "migrationvault", "vmwarefabric1", "vmwareContainer1", "virtualmachine1", new ResumeReplicationInput() .withProperties(new ResumeReplicationInputProperties().withProviderSpecificDetails( diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationMigrationItemsResyncSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationMigrationItemsResyncSamples.java index 195cbf518b72..0a057ee0caaa 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationMigrationItemsResyncSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationMigrationItemsResyncSamples.java @@ -14,7 +14,7 @@ public final class ReplicationMigrationItemsResyncSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationMigrationItems_Resync.json */ /** @@ -25,7 +25,7 @@ public final class ReplicationMigrationItemsResyncSamples { public static void resynchronizesReplication(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationMigrationItems() - .resync("migrationvault", "resourcegroup1", "vmwarefabric1", "vmwareContainer1", "virtualmachine1", + .resync("resourcegroup1", "migrationvault", "vmwarefabric1", "vmwareContainer1", "virtualmachine1", new ResyncInput().withProperties(new ResyncInputProperties() .withProviderSpecificDetails(new VMwareCbtResyncInput().withSkipCbtReset("true"))), com.azure.core.util.Context.NONE); diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationMigrationItemsTestMigrateCleanupSamp.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationMigrationItemsTestMigrateCleanupSamp.java index 995141cdc95d..6c8479a7a6e3 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationMigrationItemsTestMigrateCleanupSamp.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationMigrationItemsTestMigrateCleanupSamp.java @@ -13,7 +13,7 @@ public final class ReplicationMigrationItemsTestMigrateCleanupSamp { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationMigrationItems_TestMigrateCleanup.json */ /** @@ -24,7 +24,7 @@ public final class ReplicationMigrationItemsTestMigrateCleanupSamp { public static void testMigrateCleanup(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationMigrationItems() - .testMigrateCleanup("migrationvault", "resourcegroup1", "vmwarefabric1", "vmwareContainer1", + .testMigrateCleanup("resourcegroup1", "migrationvault", "vmwarefabric1", "vmwareContainer1", "virtualmachine1", new TestMigrateCleanupInput() .withProperties(new TestMigrateCleanupInputProperties().withComments("Test Failover Cleanup")), diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationMigrationItemsTestMigrateSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationMigrationItemsTestMigrateSamples.java index f1a2ddee836e..4920b4fa4050 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationMigrationItemsTestMigrateSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationMigrationItemsTestMigrateSamples.java @@ -14,7 +14,7 @@ public final class ReplicationMigrationItemsTestMigrateSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationMigrationItems_TestMigrate.json */ /** @@ -25,12 +25,13 @@ public final class ReplicationMigrationItemsTestMigrateSamples { public static void testMigrateItem(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationMigrationItems() - .testMigrate("migrationvault", "resourcegroup1", "vmwarefabric1", "vmwareContainer1", "virtualmachine1", + .testMigrate("resourcegroup1", "migrationvault", "vmwarefabric1", "vmwareContainer1", "virtualmachine1", new TestMigrateInput().withProperties(new TestMigrateInputProperties() .withProviderSpecificDetails(new VMwareCbtTestMigrateInput().withRecoveryPointId( "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.RecoveryServices/vaults/migrationvault/replicationFabrics/vmwarefabric1/replicationProtectionContainers/vmwareContainer1/replicationMigrationItems/virtualmachine1/migrationRecoveryPoints/9e737191-317e-43d0-8c83-e32ac3b34686") .withNetworkId( - "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.Network/virtualNetworks/virtualNetwork1"))), + "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.Network/virtualNetworks/virtualNetwork1") + .withOsUpgradeVersion("Microsoft Windows Server 2019 (64-bit)"))), com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationMigrationItemsUpdateSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationMigrationItemsUpdateSamples.java index a68c591eaf5e..15554673bcf4 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationMigrationItemsUpdateSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationMigrationItemsUpdateSamples.java @@ -14,7 +14,7 @@ public final class ReplicationMigrationItemsUpdateSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationMigrationItems_Update.json */ /** @@ -25,7 +25,7 @@ public final class ReplicationMigrationItemsUpdateSamples { public static void updatesMigrationItem(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { MigrationItem resource = manager.replicationMigrationItems() - .getWithResponse("migrationvault", "resourcegroup1", "vmwarefabric1", "vmwareContainer1", "virtualmachine1", + .getWithResponse("resourcegroup1", "migrationvault", "vmwarefabric1", "vmwareContainer1", "virtualmachine1", com.azure.core.util.Context.NONE) .getValue(); resource.update() diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworkMappingsCreateSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworkMappingsCreateSamples.java index 49e81be53c65..19ab7dbe59bd 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworkMappingsCreateSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworkMappingsCreateSamples.java @@ -13,7 +13,7 @@ public final class ReplicationNetworkMappingsCreateSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationNetworkMappings_Create.json */ /** @@ -25,7 +25,7 @@ public final class ReplicationNetworkMappingsCreateSamples { createsNetworkMapping(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationNetworkMappings() .define("corpe2amap") - .withExistingReplicationNetwork("srce2avaultbvtaC27", "srcBvte2a14C27", + .withExistingReplicationNetwork("srcBvte2a14C27", "srce2avaultbvtaC27", "b0cef6e9a4437b81803d0b55ada4f700ab66caae59c35d62723a1589c0cd13ac", "e2267b5c-2650-49bd-ab3f-d66aae694c06") .withProperties(new CreateNetworkMappingInputProperties().withRecoveryFabricName("Microsoft Azure") diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworkMappingsDeleteSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworkMappingsDeleteSamples.java index 8f440b5f5d86..9bd2cfc108df 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworkMappingsDeleteSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworkMappingsDeleteSamples.java @@ -10,7 +10,7 @@ public final class ReplicationNetworkMappingsDeleteSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationNetworkMappings_Delete.json */ /** @@ -21,7 +21,7 @@ public final class ReplicationNetworkMappingsDeleteSamples { public static void deleteNetworkMapping(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationNetworkMappings() - .delete("srce2avaultbvtaC27", "srcBvte2a14C27", + .delete("srcBvte2a14C27", "srce2avaultbvtaC27", "b0cef6e9a4437b81803d0b55ada4f700ab66caae59c35d62723a1589c0cd13ac", "e2267b5c-2650-49bd-ab3f-d66aae694c06", "corpe2amap", com.azure.core.util.Context.NONE); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworkMappingsGetSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworkMappingsGetSamples.java index f3fc9662a159..9588a07b48a6 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworkMappingsGetSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworkMappingsGetSamples.java @@ -10,7 +10,7 @@ public final class ReplicationNetworkMappingsGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationNetworkMappings_Get.json */ /** @@ -21,7 +21,7 @@ public final class ReplicationNetworkMappingsGetSamples { public static void getsNetworkMappingByName(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationNetworkMappings() - .getWithResponse("srce2avaultbvtaC27", "srcBvte2a14C27", + .getWithResponse("srcBvte2a14C27", "srce2avaultbvtaC27", "b0cef6e9a4437b81803d0b55ada4f700ab66caae59c35d62723a1589c0cd13ac", "e2267b5c-2650-49bd-ab3f-d66aae694c06", "corpe2amap", com.azure.core.util.Context.NONE); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworkMappingsListByReplicationNetw.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworkMappingsListByReplicationNetw.java index ceb88bf6083c..4ab85eab83c2 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworkMappingsListByReplicationNetw.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworkMappingsListByReplicationNetw.java @@ -10,7 +10,7 @@ public final class ReplicationNetworkMappingsListByReplicationNetw { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationNetworkMappings_ListByReplicationNetworks.json */ /** @@ -21,7 +21,7 @@ public final class ReplicationNetworkMappingsListByReplicationNetw { public static void getsAllTheNetworkMappingsUnderANetwork( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationNetworkMappings() - .listByReplicationNetworks("srce2avaultbvtaC27", "srcBvte2a14C27", + .listByReplicationNetworks("srcBvte2a14C27", "srce2avaultbvtaC27", "b0cef6e9a4437b81803d0b55ada4f700ab66caae59c35d62723a1589c0cd13ac", "e2267b5c-2650-49bd-ab3f-d66aae694c06", com.azure.core.util.Context.NONE); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworkMappingsListSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworkMappingsListSamples.java index cd1a4eb6808e..72a4a8ba63b5 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworkMappingsListSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworkMappingsListSamples.java @@ -10,7 +10,7 @@ public final class ReplicationNetworkMappingsListSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationNetworkMappings_List.json */ /** @@ -21,6 +21,6 @@ public final class ReplicationNetworkMappingsListSamples { public static void getsAllTheNetworkMappingsUnderAVault( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationNetworkMappings() - .list("srce2avaultbvtaC27", "srcBvte2a14C27", com.azure.core.util.Context.NONE); + .list("srcBvte2a14C27", "srce2avaultbvtaC27", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworkMappingsUpdateSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworkMappingsUpdateSamples.java index fea44410b8a1..c0210c52ec17 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworkMappingsUpdateSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworkMappingsUpdateSamples.java @@ -14,7 +14,7 @@ public final class ReplicationNetworkMappingsUpdateSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationNetworkMappings_Update.json */ /** @@ -25,7 +25,7 @@ public final class ReplicationNetworkMappingsUpdateSamples { public static void updatesNetworkMapping(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { NetworkMapping resource = manager.replicationNetworkMappings() - .getWithResponse("srce2avaultbvtaC27", "srcBvte2a14C27", + .getWithResponse("srcBvte2a14C27", "srce2avaultbvtaC27", "b0cef6e9a4437b81803d0b55ada4f700ab66caae59c35d62723a1589c0cd13ac", "e2267b5c-2650-49bd-ab3f-d66aae694c06", "corpe2amap", com.azure.core.util.Context.NONE) .getValue(); diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworksGetSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworksGetSamples.java index e8e09540350a..0e27d43ab8e5 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworksGetSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworksGetSamples.java @@ -10,7 +10,7 @@ public final class ReplicationNetworksGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationNetworks_Get.json */ /** @@ -21,7 +21,7 @@ public final class ReplicationNetworksGetSamples { public static void getsANetworkWithSpecifiedServerIdAndNetworkName( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationNetworks() - .getWithResponse("srce2avaultbvtaC27", "srcBvte2a14C27", + .getWithResponse("srcBvte2a14C27", "srce2avaultbvtaC27", "b0cef6e9a4437b81803d0b55ada4f700ab66caae59c35d62723a1589c0cd13ac", "93ce99d7-1219-4914-aa61-73fe5023988e", com.azure.core.util.Context.NONE); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworksListByReplicationFabricsSamp.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworksListByReplicationFabricsSamp.java index 25cade648531..a5bc90eda728 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworksListByReplicationFabricsSamp.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworksListByReplicationFabricsSamp.java @@ -10,7 +10,7 @@ public final class ReplicationNetworksListByReplicationFabricsSamp { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationNetworks_ListByReplicationFabrics.json */ /** @@ -21,7 +21,7 @@ public final class ReplicationNetworksListByReplicationFabricsSamp { public static void getsTheListOfNetworksUnderAFabric( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationNetworks() - .listByReplicationFabrics("srce2avaultbvtaC27", "srcBvte2a14C27", + .listByReplicationFabrics("srcBvte2a14C27", "srce2avaultbvtaC27", "b0cef6e9a4437b81803d0b55ada4f700ab66caae59c35d62723a1589c0cd13ac", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworksListSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworksListSamples.java index e8c7b3eb84e3..3f0f16abd9c2 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworksListSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworksListSamples.java @@ -10,7 +10,7 @@ public final class ReplicationNetworksListSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationNetworks_List.json */ /** @@ -20,6 +20,6 @@ public final class ReplicationNetworksListSamples { */ public static void getsTheListOfNetworksViewOnlyAPI( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { - manager.replicationNetworks().list("srce2avaultbvtaC27", "srcBvte2a14C27", com.azure.core.util.Context.NONE); + manager.replicationNetworks().list("srcBvte2a14C27", "srce2avaultbvtaC27", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationPoliciesCreateSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationPoliciesCreateSamples.java index 3a82098af248..2cca31d5ad9c 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationPoliciesCreateSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationPoliciesCreateSamples.java @@ -13,7 +13,7 @@ public final class ReplicationPoliciesCreateSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationPolicies_Create.json */ /** @@ -25,7 +25,7 @@ public final class ReplicationPoliciesCreateSamples { createsThePolicy(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationPolicies() .define("protectionprofile1") - .withExistingVault("vault1", "resourceGroupPS1") + .withExistingVault("resourceGroupPS1", "vault1") .withProperties( new CreatePolicyInputProperties().withProviderSpecificInput(new HyperVReplicaAzurePolicyInput())) .create(); diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationPoliciesDeleteSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationPoliciesDeleteSamples.java index 0e4d25e97cf4..211ce779ceb2 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationPoliciesDeleteSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationPoliciesDeleteSamples.java @@ -10,7 +10,7 @@ public final class ReplicationPoliciesDeleteSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationPolicies_Delete.json */ /** @@ -21,6 +21,6 @@ public final class ReplicationPoliciesDeleteSamples { public static void deleteThePolicy(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationPolicies() - .delete("vault1", "resourceGroupPS1", "protectionprofile1", com.azure.core.util.Context.NONE); + .delete("resourceGroupPS1", "vault1", "protectionprofile1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationPoliciesGetSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationPoliciesGetSamples.java index de538d09a660..59f68a708926 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationPoliciesGetSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationPoliciesGetSamples.java @@ -10,7 +10,7 @@ public final class ReplicationPoliciesGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationPolicies_Get.json */ /** @@ -21,6 +21,6 @@ public final class ReplicationPoliciesGetSamples { public static void getsTheRequestedPolicy(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationPolicies() - .getWithResponse("vault1", "resourceGroupPS1", "protectionprofile1", com.azure.core.util.Context.NONE); + .getWithResponse("resourceGroupPS1", "vault1", "protectionprofile1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationPoliciesListSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationPoliciesListSamples.java index 99f44d177cfc..1dd14d96a75f 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationPoliciesListSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationPoliciesListSamples.java @@ -10,7 +10,7 @@ public final class ReplicationPoliciesListSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationPolicies_List.json */ /** @@ -20,6 +20,6 @@ public final class ReplicationPoliciesListSamples { */ public static void getsTheListOfReplicationPolicies( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { - manager.replicationPolicies().list("vault1", "resourceGroupPS1", com.azure.core.util.Context.NONE); + manager.replicationPolicies().list("resourceGroupPS1", "vault1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationPoliciesUpdateSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationPoliciesUpdateSamples.java index 61224e9cb4e6..0628a00b4060 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationPoliciesUpdateSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationPoliciesUpdateSamples.java @@ -14,7 +14,7 @@ public final class ReplicationPoliciesUpdateSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationPolicies_Update.json */ /** @@ -25,7 +25,7 @@ public final class ReplicationPoliciesUpdateSamples { public static void updatesThePolicy(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { Policy resource = manager.replicationPolicies() - .getWithResponse("vault1", "resourceGroupPS1", "protectionprofile1", com.azure.core.util.Context.NONE) + .getWithResponse("resourceGroupPS1", "vault1", "protectionprofile1", com.azure.core.util.Context.NONE) .getValue(); resource.update() .withProperties( diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectableItemsGetSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectableItemsGetSamples.java index f2f2c6b999dc..facea22b48e2 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectableItemsGetSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectableItemsGetSamples.java @@ -10,7 +10,7 @@ public final class ReplicationProtectableItemsGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectableItems_Get.json */ /** @@ -21,7 +21,7 @@ public final class ReplicationProtectableItemsGetSamples { public static void getsTheDetailsOfAProtectableItem( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectableItems() - .getWithResponse("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .getWithResponse("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "c0c14913-3d7a-48ea-9531-cc99e0e686e6", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectableItemsListByReplicationPro.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectableItemsListByReplicationPro.java index 64d2d0852f74..fc87a289939a 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectableItemsListByReplicationPro.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectableItemsListByReplicationPro.java @@ -10,7 +10,7 @@ public final class ReplicationProtectableItemsListByReplicationPro { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectableItems_ListByReplicationProtectionContainers.json */ /** @@ -21,7 +21,7 @@ public final class ReplicationProtectableItemsListByReplicationPro { public static void getsTheListOfProtectableItems( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectableItems() - .listByReplicationProtectionContainers("vault1", "resourceGroupPS1", "cloud1", + .listByReplicationProtectionContainers("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", null, null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsAddDisksSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsAddDisksSamples.java index 22967c6ac248..44014e360c01 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsAddDisksSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsAddDisksSamples.java @@ -16,7 +16,7 @@ public final class ReplicationProtectedItemsAddDisksSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectedItems_AddDisks.json */ /** @@ -27,7 +27,7 @@ public final class ReplicationProtectedItemsAddDisksSamples { public static void addDiskSForProtection(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectedItems() - .addDisks("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .addDisks("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", new AddDisksInput().withProperties(new AddDisksInputProperties().withProviderSpecificDetails( new A2AAddDisksInput().withVmDisks(Arrays.asList(new A2AVmDiskInputDetails() diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsApplyRecoveryPointSamp.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsApplyRecoveryPointSamp.java index 8cb078efc0ad..4239cb5fbb31 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsApplyRecoveryPointSamp.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsApplyRecoveryPointSamp.java @@ -14,7 +14,7 @@ public final class ReplicationProtectedItemsApplyRecoveryPointSamp { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectedItems_ApplyRecoveryPoint.json */ /** @@ -25,7 +25,7 @@ public final class ReplicationProtectedItemsApplyRecoveryPointSamp { public static void changeOrApplyRecoveryPoint(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectedItems() - .applyRecoveryPoint("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .applyRecoveryPoint("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", new ApplyRecoveryPointInput().withProperties(new ApplyRecoveryPointInputProperties() .withRecoveryPointId( diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsCreateSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsCreateSamples.java index 758912897fb4..d7d330d2e155 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsCreateSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsCreateSamples.java @@ -13,7 +13,7 @@ public final class ReplicationProtectedItemsCreateSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectedItems_Create.json */ /** @@ -25,7 +25,7 @@ public final class ReplicationProtectedItemsCreateSamples { enablesProtection(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectedItems() .define("f8491e4f-817a-40dd-a90c-af773978c75b") - .withExistingReplicationProtectionContainer("vault1", "resourceGroupPS1", "cloud1", + .withExistingReplicationProtectionContainer("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179") .withProperties(new EnableProtectionInputProperties().withPolicyId( "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationPolicies/protectionprofile1") diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsDeleteSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsDeleteSamples.java index f9b8bceb4a97..914eb80a53ac 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsDeleteSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsDeleteSamples.java @@ -14,7 +14,7 @@ public final class ReplicationProtectedItemsDeleteSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectedItems_Delete.json */ /** @@ -25,7 +25,7 @@ public final class ReplicationProtectedItemsDeleteSamples { public static void disablesProtection(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectedItems() - .delete("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .delete("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "c0c14913-3d7a-48ea-9531-cc99e0e686e6", new DisableProtectionInput().withProperties(new DisableProtectionInputProperties() .withReplicationProviderInput(new DisableProtectionProviderSpecificInput())), diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsFailoverCancelSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsFailoverCancelSamples.java index 73441ab2cfd3..27f558b625fb 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsFailoverCancelSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsFailoverCancelSamples.java @@ -10,7 +10,7 @@ public final class ReplicationProtectedItemsFailoverCancelSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectedItems_FailoverCancel.json */ /** @@ -21,7 +21,7 @@ public final class ReplicationProtectedItemsFailoverCancelSamples { public static void executeCancelFailover(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectedItems() - .failoverCancel("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .failoverCancel("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsFailoverCommitSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsFailoverCommitSamples.java index 34b2cfe3f4fc..11ccce35481f 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsFailoverCommitSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsFailoverCommitSamples.java @@ -10,7 +10,7 @@ public final class ReplicationProtectedItemsFailoverCommitSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectedItems_FailoverCommit.json */ /** @@ -21,7 +21,7 @@ public final class ReplicationProtectedItemsFailoverCommitSamples { public static void executeCommitFailover(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectedItems() - .failoverCommit("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .failoverCommit("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsGetSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsGetSamples.java index 7aecf038344c..787580e504ad 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsGetSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsGetSamples.java @@ -10,7 +10,7 @@ public final class ReplicationProtectedItemsGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectedItems_Get.json */ /** @@ -21,7 +21,7 @@ public final class ReplicationProtectedItemsGetSamples { public static void getsTheDetailsOfAReplicationProtectedItem( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectedItems() - .getWithResponse("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .getWithResponse("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsListByReplicationProte.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsListByReplicationProte.java index acc4c93541e1..8f22306be77c 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsListByReplicationProte.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsListByReplicationProte.java @@ -10,7 +10,7 @@ public final class ReplicationProtectedItemsListByReplicationProte { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectedItems_ListByReplicationProtectionContainers.json */ /** @@ -21,7 +21,7 @@ public final class ReplicationProtectedItemsListByReplicationProte { public static void getsTheListOfReplicationProtectedItems( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectedItems() - .listByReplicationProtectionContainers("vault1", "resourceGroupPS1", "cloud1", + .listByReplicationProtectionContainers("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsListSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsListSamples.java index 87791139913b..09d3c467f499 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsListSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsListSamples.java @@ -10,7 +10,7 @@ public final class ReplicationProtectedItemsListSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectedItems_List.json */ /** @@ -21,6 +21,6 @@ public final class ReplicationProtectedItemsListSamples { public static void getsTheListOfReplicationProtectedItems( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectedItems() - .list("vault1", "resourceGroupPS1", null, null, com.azure.core.util.Context.NONE); + .list("resourceGroupPS1", "vault1", null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsPlannedFailoverSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsPlannedFailoverSamples.java index 9e3ca362e70e..d9d5bc0be999 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsPlannedFailoverSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsPlannedFailoverSamples.java @@ -14,7 +14,7 @@ public final class ReplicationProtectedItemsPlannedFailoverSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectedItems_PlannedFailover.json */ /** @@ -25,7 +25,7 @@ public final class ReplicationProtectedItemsPlannedFailoverSamples { public static void executePlannedFailover(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectedItems() - .plannedFailover("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .plannedFailover("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", new PlannedFailoverInput() .withProperties(new PlannedFailoverInputProperties().withFailoverDirection("PrimaryToRecovery") diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsPurgeSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsPurgeSamples.java index 1bba6380a874..0a21ef29005e 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsPurgeSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsPurgeSamples.java @@ -10,7 +10,7 @@ public final class ReplicationProtectedItemsPurgeSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectedItems_Purge.json */ /** @@ -21,7 +21,7 @@ public final class ReplicationProtectedItemsPurgeSamples { public static void purgesProtection(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectedItems() - .purge("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .purge("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "c0c14913-3d7a-48ea-9531-cc99e0e686e6", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsRemoveDisksSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsRemoveDisksSamples.java index 2d6337406af2..1215eca22a7a 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsRemoveDisksSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsRemoveDisksSamples.java @@ -15,7 +15,7 @@ public final class ReplicationProtectedItemsRemoveDisksSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectedItems_RemoveDisks.json */ /** @@ -26,7 +26,7 @@ public final class ReplicationProtectedItemsRemoveDisksSamples { public static void removesDiskS(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectedItems() - .removeDisks("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .removeDisks("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", new RemoveDisksInput().withProperties( new RemoveDisksInputProperties().withProviderSpecificDetails(new A2ARemoveDisksInput() diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsRepairReplicationSampl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsRepairReplicationSampl.java index ad4c3820920f..1f75de1e1b76 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsRepairReplicationSampl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsRepairReplicationSampl.java @@ -10,7 +10,7 @@ public final class ReplicationProtectedItemsRepairReplicationSampl { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectedItems_RepairReplication.json */ /** @@ -21,7 +21,7 @@ public final class ReplicationProtectedItemsRepairReplicationSampl { public static void resynchronizeOrRepairReplication( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectedItems() - .repairReplication("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .repairReplication("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsReprotectSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsReprotectSamples.java index 9b54c8d5c58d..211135c6d55f 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsReprotectSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsReprotectSamples.java @@ -14,7 +14,7 @@ public final class ReplicationProtectedItemsReprotectSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectedItems_Reprotect.json */ /** @@ -25,7 +25,7 @@ public final class ReplicationProtectedItemsReprotectSamples { public static void executeReverseReplicationReprotect( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectedItems() - .reprotect("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .reprotect("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", new ReverseReplicationInput() .withProperties(new ReverseReplicationInputProperties().withFailoverDirection("PrimaryToRecovery") diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsResolveHealthErrorsSam.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsResolveHealthErrorsSam.java index 744a72177be9..0ededd41edfc 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsResolveHealthErrorsSam.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsResolveHealthErrorsSam.java @@ -15,7 +15,7 @@ public final class ReplicationProtectedItemsResolveHealthErrorsSam { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectedItems_ResolveHealthErrors.json */ /** @@ -26,7 +26,7 @@ public final class ReplicationProtectedItemsResolveHealthErrorsSam { public static void resolveHealthErrors(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectedItems() - .resolveHealthErrors("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .resolveHealthErrors("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", new ResolveHealthInput().withProperties(new ResolveHealthInputProperties() .withHealthErrors(Arrays.asList(new ResolveHealthError().withHealthErrorId("3:8020")))), diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsSwitchProviderSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsSwitchProviderSamples.java index abdb9aa7065b..ea7f772cc69a 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsSwitchProviderSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsSwitchProviderSamples.java @@ -14,7 +14,7 @@ public final class ReplicationProtectedItemsSwitchProviderSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectedItems_SwitchProvider.json */ /** @@ -25,7 +25,7 @@ public final class ReplicationProtectedItemsSwitchProviderSamples { public static void executeSwitchProvider(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectedItems() - .switchProvider("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .switchProvider("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", new SwitchProviderInput().withProperties(new SwitchProviderInputProperties() .withTargetInstanceType("InMageRcm") diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsTestFailoverCleanupSam.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsTestFailoverCleanupSam.java index c0b00ee32532..aedb9cef64ea 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsTestFailoverCleanupSam.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsTestFailoverCleanupSam.java @@ -13,7 +13,7 @@ public final class ReplicationProtectedItemsTestFailoverCleanupSam { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectedItems_TestFailoverCleanup.json */ /** @@ -24,7 +24,7 @@ public final class ReplicationProtectedItemsTestFailoverCleanupSam { public static void executeTestFailoverCleanup(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectedItems() - .testFailoverCleanup("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .testFailoverCleanup("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", new TestFailoverCleanupInput() .withProperties(new TestFailoverCleanupInputProperties().withComments("Test Failover Cleanup")), diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsTestFailoverSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsTestFailoverSamples.java index 466da74b7f6c..41dc6b953552 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsTestFailoverSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsTestFailoverSamples.java @@ -14,7 +14,7 @@ public final class ReplicationProtectedItemsTestFailoverSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectedItems_TestFailover.json */ /** @@ -25,7 +25,7 @@ public final class ReplicationProtectedItemsTestFailoverSamples { public static void executeTestFailover(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectedItems() - .testFailover("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .testFailover("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", new TestFailoverInput().withProperties(new TestFailoverInputProperties() .withFailoverDirection("PrimaryToRecovery") diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsUnplannedFailoverSampl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsUnplannedFailoverSampl.java index a22944266524..dc2000b5b2dc 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsUnplannedFailoverSampl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsUnplannedFailoverSampl.java @@ -14,7 +14,7 @@ public final class ReplicationProtectedItemsUnplannedFailoverSampl { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectedItems_UnplannedFailover.json */ /** @@ -25,7 +25,7 @@ public final class ReplicationProtectedItemsUnplannedFailoverSampl { public static void executeUnplannedFailover(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectedItems() - .unplannedFailover("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .unplannedFailover("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", new UnplannedFailoverInput() .withProperties(new UnplannedFailoverInputProperties().withFailoverDirection("PrimaryToRecovery") diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsUpdateApplianceSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsUpdateApplianceSamples.java index 4f3ac61aba7b..06b79d265e7b 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsUpdateApplianceSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsUpdateApplianceSamples.java @@ -14,7 +14,7 @@ public final class ReplicationProtectedItemsUpdateApplianceSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectedItems_UpdateAppliance.json */ /** @@ -25,7 +25,7 @@ public final class ReplicationProtectedItemsUpdateApplianceSamples { public static void updatesApplianceForReplicationProtectedItem( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectedItems() - .updateAppliance("Ayan-0106-SA-Vault", "Ayan-0106-SA-RG", "Ayan-0106-SA-Vaultreplicationfabric", + .updateAppliance("Ayan-0106-SA-RG", "Ayan-0106-SA-Vault", "Ayan-0106-SA-Vaultreplicationfabric", "Ayan-0106-SA-Vaultreplicationcontainer", "idclab-vcen67_50158124-8857-3e08-0893-2ddf8ebb8c1f", new UpdateApplianceForReplicationProtectedItemInput().withProperties( new UpdateApplianceForReplicationProtectedItemInputProperties().withTargetApplianceId("") diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsUpdateMobilityServiceS.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsUpdateMobilityServiceS.java index ea75af651d46..9e31e6062ea6 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsUpdateMobilityServiceS.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsUpdateMobilityServiceS.java @@ -13,7 +13,7 @@ public final class ReplicationProtectedItemsUpdateMobilityServiceS { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectedItems_UpdateMobilityService.json */ /** @@ -24,7 +24,7 @@ public final class ReplicationProtectedItemsUpdateMobilityServiceS { public static void updateTheMobilityServiceOnAProtectedItem( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectedItems() - .updateMobilityService("WCUSVault", "wcusValidations", "WIN-JKKJ31QI8U2", + .updateMobilityService("wcusValidations", "WCUSVault", "WIN-JKKJ31QI8U2", "cloud_c6780228-83bd-4f3e-a70e-cb46b7da33a0", "79dd20ab-2b40-11e7-9791-0050568f387e", new UpdateMobilityServiceRequest() .withProperties(new UpdateMobilityServiceRequestProperties().withRunAsAccountId("2")), diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsUpdateSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsUpdateSamples.java index 9148218fd15c..3b77fe0bcb15 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsUpdateSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectedItemsUpdateSamples.java @@ -18,7 +18,7 @@ public final class ReplicationProtectedItemsUpdateSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectedItems_Update.json */ /** @@ -29,7 +29,7 @@ public final class ReplicationProtectedItemsUpdateSamples { public static void updatesTheReplicationProtectedItemSettings( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { ReplicationProtectedItem resource = manager.replicationProtectedItems() - .getWithResponse("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .getWithResponse("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", com.azure.core.util.Context.NONE) .getValue(); resource.update() diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionClustersApplyRecoveryPoint.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionClustersApplyRecoveryPoint.java new file mode 100644 index 000000000000..b217ec16b21e --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionClustersApplyRecoveryPoint.java @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.generated; + +import com.azure.resourcemanager.recoveryservicessiterecovery.models.A2AApplyClusterRecoveryPointInput; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ApplyClusterRecoveryPointInput; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ApplyClusterRecoveryPointInputProperties; +import java.util.Arrays; + +/** + * Samples for ReplicationProtectionClusters ApplyRecoveryPoint. + */ +public final class ReplicationProtectionClustersApplyRecoveryPoint { + /* + * x-ms-original-file: + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples + * /ReplicationProtectionClusters_ApplyRecoveryPoint.json + */ + /** + * Sample code: Execute the change recovery point operation for cluster. + * + * @param manager Entry point to SiteRecoveryManager. + */ + public static void executeTheChangeRecoveryPointOperationForCluster( + com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { + manager.replicationProtectionClusters() + .applyRecoveryPoint("resourceGroupPS1", "vault1", "fabric-pri-eastus", "pri-cloud-eastus", "testcluster", + new ApplyClusterRecoveryPointInput().withProperties(new ApplyClusterRecoveryPointInputProperties() + .withClusterRecoveryPointId( + "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/shashankvaultpvt/replicationFabrics/fabric-pri-eastus/replicationProtectionContainers/pri-cloud-eastus/replicationProtectionClusters/testcluster/recoveryPoints/cc48b7f3-b267-432b-ad76-45528974dc62") + .withIndividualNodeRecoveryPoints(Arrays.asList( + "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/shashankvaultpvt/replicationFabrics/fabric-pri-eastus/replicationProtectionContainers/pri-cloud-eastus/replicationProtectedItems/testVM/recoveryPoints/b5c2051b-79e3-41ad-9d25-244f6ef8ce7d")) + .withProviderSpecificDetails(new A2AApplyClusterRecoveryPointInput())), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionClustersCreateSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionClustersCreateSamples.java new file mode 100644 index 000000000000..4ffa04a166a7 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionClustersCreateSamples.java @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.generated; + +import com.azure.resourcemanager.recoveryservicessiterecovery.models.A2AReplicationProtectionClusterDetails; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationProtectionClusterProperties; + +/** + * Samples for ReplicationProtectionClusters Create. + */ +public final class ReplicationProtectionClustersCreateSamples { + /* + * x-ms-original-file: + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples + * /ReplicationProtectionClusters_Create.json + */ + /** + * Sample code: Create Replication protection Cluster. + * + * @param manager Entry point to SiteRecoveryManager. + */ + public static void createReplicationProtectionCluster( + com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { + manager.replicationProtectionClusters() + .define("cluster12") + .withExistingReplicationProtectionContainer("resourceGroupPS1", "vault1", "eastus", "eastus-container") + .withProperties(new ReplicationProtectionClusterProperties().withRecoveryContainerId( + "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/centraluseuap/replicationProtectionContainers/centraluseuap-container") + .withProviderSpecificDetails(new A2AReplicationProtectionClusterDetails()) + .withPolicyId( + "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationPolicies/24-hour-retention-policy")) + .create(); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionClustersFailoverCommitSamp.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionClustersFailoverCommitSamp.java new file mode 100644 index 000000000000..3424c02bace0 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionClustersFailoverCommitSamp.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.generated; + +/** + * Samples for ReplicationProtectionClusters FailoverCommit. + */ +public final class ReplicationProtectionClustersFailoverCommitSamp { + /* + * x-ms-original-file: + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples + * /ReplicationProtectionClusters_FailoverCommit.json + */ + /** + * Sample code: Execute commit failover for cluster. + * + * @param manager Entry point to SiteRecoveryManager. + */ + public static void executeCommitFailoverForCluster( + com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { + manager.replicationProtectionClusters() + .failoverCommit("resourceGroupPS1", "vault1", "fabric-pri-eastus", "pri-cloud-eastus", "testcluster", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionClustersGetOperationResult.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionClustersGetOperationResult.java new file mode 100644 index 000000000000..6a9be8d90ded --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionClustersGetOperationResult.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.generated; + +/** + * Samples for ReplicationProtectionClusters GetOperationResults. + */ +public final class ReplicationProtectionClustersGetOperationResult { + /* + * x-ms-original-file: + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples + * /ReplicationProtectionClusters_GetOperationResults.json + */ + /** + * Sample code: Tracks the Replication protection cluster async operation. + * + * @param manager Entry point to SiteRecoveryManager. + */ + public static void tracksTheReplicationProtectionClusterAsyncOperation( + com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { + manager.replicationProtectionClusters() + .getOperationResultsWithResponse("resourceGroupPS1", "vault1", "eastus", "eastus-container", "cluster1", + "ea63a935-59d5-4b12-aff2-98773f63c116", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionClustersGetSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionClustersGetSamples.java new file mode 100644 index 000000000000..0440c535d39d --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionClustersGetSamples.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.generated; + +/** + * Samples for ReplicationProtectionClusters Get. + */ +public final class ReplicationProtectionClustersGetSamples { + /* + * x-ms-original-file: + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples + * /ReplicationProtectionClusters_Get.json + */ + /** + * Sample code: Gets the details of a Replication protection cluster. + * + * @param manager Entry point to SiteRecoveryManager. + */ + public static void getsTheDetailsOfAReplicationProtectionCluster( + com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { + manager.replicationProtectionClusters() + .getWithResponse("resourceGroupPS1", "vault1", "eastus", "eastus-container", "cluster1", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionClustersListByReplicationP.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionClustersListByReplicationP.java new file mode 100644 index 000000000000..d30b5f294927 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionClustersListByReplicationP.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.generated; + +/** + * Samples for ReplicationProtectionClusters ListByReplicationProtectionContainers. + */ +public final class ReplicationProtectionClustersListByReplicationP { + /* + * x-ms-original-file: + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples + * /ReplicationProtectionClusters_ListByReplicationProtectionContainers.json + */ + /** + * Sample code: Gets the list of Replication protection clusters in fabric, container. + * + * @param manager Entry point to SiteRecoveryManager. + */ + public static void getsTheListOfReplicationProtectionClustersInFabricContainer( + com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { + manager.replicationProtectionClusters() + .listByReplicationProtectionContainers("resourceGroupPS1", "vault1", "eastus", "eastus-container", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionClustersListSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionClustersListSamples.java new file mode 100644 index 000000000000..96e858e66456 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionClustersListSamples.java @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.generated; + +/** + * Samples for ReplicationProtectionClusters List. + */ +public final class ReplicationProtectionClustersListSamples { + /* + * x-ms-original-file: + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples + * /ReplicationProtectionClusters_List.json + */ + /** + * Sample code: Gets the list of Replication protection clusters in vault. + * + * @param manager Entry point to SiteRecoveryManager. + */ + public static void getsTheListOfReplicationProtectionClustersInVault( + com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { + manager.replicationProtectionClusters() + .list("resourceGroupPS1", "vault1", null, + "SourceFabricName eq 'asr-a2a-default-eastus' and SourceFabricLocation eq 'East US' and InstanceType eq 'A2A'", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionClustersPurgeSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionClustersPurgeSamples.java new file mode 100644 index 000000000000..79215914fa2a --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionClustersPurgeSamples.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.generated; + +/** + * Samples for ReplicationProtectionClusters Purge. + */ +public final class ReplicationProtectionClustersPurgeSamples { + /* + * x-ms-original-file: + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples + * /ReplicationProtectionClusters_Purge.json + */ + /** + * Sample code: Purge the replication protection cluster. + * + * @param manager Entry point to SiteRecoveryManager. + */ + public static void purgeTheReplicationProtectionCluster( + com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { + manager.replicationProtectionClusters() + .purge("resourceGroupPS1", "vault1", "eastus", "eastus-container", "cluster1", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionClustersRepairReplicationS.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionClustersRepairReplicationS.java new file mode 100644 index 000000000000..6e50b37f5005 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionClustersRepairReplicationS.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.generated; + +/** + * Samples for ReplicationProtectionClusters RepairReplication. + */ +public final class ReplicationProtectionClustersRepairReplicationS { + /* + * x-ms-original-file: + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples + * /ReplicationProtectionClusters_RepairReplication.json + */ + /** + * Sample code: Resynchronize or repair replication of protection cluster. + * + * @param manager Entry point to SiteRecoveryManager. + */ + public static void resynchronizeOrRepairReplicationOfProtectionCluster( + com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { + manager.replicationProtectionClusters() + .repairReplication("resourceGroupPS1", "vault1", "eastus", "eastus-container", "cluster12", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionClustersTestFailoverCleanu.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionClustersTestFailoverCleanu.java new file mode 100644 index 000000000000..444f3437f17f --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionClustersTestFailoverCleanu.java @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.generated; + +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ClusterTestFailoverCleanupInput; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ClusterTestFailoverCleanupInputProperties; + +/** + * Samples for ReplicationProtectionClusters TestFailoverCleanup. + */ +public final class ReplicationProtectionClustersTestFailoverCleanu { + /* + * x-ms-original-file: + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples + * /ReplicationProtectionClusters_TestFailoverCleanup.json + */ + /** + * Sample code: Execute test failover cleanup for cluster. + * + * @param manager Entry point to SiteRecoveryManager. + */ + public static void executeTestFailoverCleanupForCluster( + com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { + manager.replicationProtectionClusters() + .testFailoverCleanup("resourceGroupPS1", "vault1", "fabric-pri-eastus", "pri-cloud-eastus", "testcluster", + new ClusterTestFailoverCleanupInput().withProperties( + new ClusterTestFailoverCleanupInputProperties().withComments("Test Failover Cleanup")), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionClustersTestFailoverSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionClustersTestFailoverSamples.java new file mode 100644 index 000000000000..c5e306a2aff3 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionClustersTestFailoverSamples.java @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.generated; + +import com.azure.resourcemanager.recoveryservicessiterecovery.models.A2AClusterTestFailoverInput; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ClusterTestFailoverInput; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ClusterTestFailoverInputProperties; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.FailoverDirection; +import java.util.Arrays; + +/** + * Samples for ReplicationProtectionClusters TestFailover. + */ +public final class ReplicationProtectionClustersTestFailoverSamples { + /* + * x-ms-original-file: + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples + * /ReplicationProtectionClusters_TestFailover.json + */ + /** + * Sample code: Execute test failover for cluster. + * + * @param manager Entry point to SiteRecoveryManager. + */ + public static void executeTestFailoverForCluster( + com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { + manager.replicationProtectionClusters() + .testFailover("resourceGroupPS1", "vault1", "fabric-pri-eastus", "pri-cloud-eastus", "testcluster", + new ClusterTestFailoverInput().withProperties(new ClusterTestFailoverInputProperties() + .withFailoverDirection(FailoverDirection.PRIMARY_TO_RECOVERY) + .withNetworkType("VmNetworkAsInput") + .withNetworkId( + "/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/ClusterTestRG-19-01-asr/providers/Microsoft.Network/virtualNetworks/adVNET-asr") + .withProviderSpecificDetails(new A2AClusterTestFailoverInput().withClusterRecoveryPointId( + "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/fabric-pri-eastus/replicationProtectionContainers/pri-cloud-eastus/replicationProtectionClusters/testcluster/recoveryPoints/cc48b7f3-b267-432b-ad76-45528974dc62") + .withIndividualNodeRecoveryPoints(Arrays.asList( + "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/fabric-pri-eastus/replicationProtectionContainers/pri-cloud-eastus/replicationProtectedItems/testVM/recoveryPoints/b5c2051b-79e3-41ad-9d25-244f6ef8ce7d")))), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionClustersUnplannedFailoverS.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionClustersUnplannedFailoverS.java new file mode 100644 index 000000000000..d3001079bbdf --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionClustersUnplannedFailoverS.java @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.generated; + +import com.azure.resourcemanager.recoveryservicessiterecovery.models.A2AClusterUnplannedFailoverInput; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ClusterUnplannedFailoverInput; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ClusterUnplannedFailoverInputProperties; +import java.util.Arrays; + +/** + * Samples for ReplicationProtectionClusters UnplannedFailover. + */ +public final class ReplicationProtectionClustersUnplannedFailoverS { + /* + * x-ms-original-file: + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples + * /ReplicationProtectionClusters_UnplannedFailover.json + */ + /** + * Sample code: Execute unplanned cluster failover. + * + * @param manager Entry point to SiteRecoveryManager. + */ + public static void executeUnplannedClusterFailover( + com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { + manager.replicationProtectionClusters() + .unplannedFailover("resourceGroupPS1", "vault1", "fabric-pri-eastus", "pri-cloud-eastus", "testcluster", + new ClusterUnplannedFailoverInput().withProperties(new ClusterUnplannedFailoverInputProperties() + .withFailoverDirection("primarytorecovery") + .withSourceSiteOperations("NotRequired") + .withProviderSpecificDetails(new A2AClusterUnplannedFailoverInput().withClusterRecoveryPointId( + "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/fabric-pri-eastus/replicationProtectionContainers/pri-cloud-eastus/replicationProtectionClusters/testcluster/recoveryPoints/cc48b7f3-b267-432b-ad76-45528974dc62") + .withIndividualNodeRecoveryPoints(Arrays.asList( + "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/fabric-pri-eastus/replicationProtectionContainers/pri-cloud-eastus/replicationProtectedItems/testVM/recoveryPoints/b5c2051b-79e3-41ad-9d25-244f6ef8ce7d")))), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainerMappingsCreateSam.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainerMappingsCreateSam.java index adf513d45b46..a47b38e85d9c 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainerMappingsCreateSam.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainerMappingsCreateSam.java @@ -13,7 +13,7 @@ public final class ReplicationProtectionContainerMappingsCreateSam { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectionContainerMappings_Create.json */ /** @@ -25,7 +25,7 @@ public static void createProtectionContainerMapping( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectionContainerMappings() .define("cloud1protectionprofile1") - .withExistingReplicationProtectionContainer("vault1", "resourceGroupPS1", "cloud1", + .withExistingReplicationProtectionContainer("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179") .withProperties(new CreateProtectionContainerMappingInputProperties() .withTargetProtectionContainerId("Microsoft Azure") diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainerMappingsDeleteSam.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainerMappingsDeleteSam.java index 6b1b6e6edde8..9ec214482886 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainerMappingsDeleteSam.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainerMappingsDeleteSam.java @@ -14,7 +14,7 @@ public final class ReplicationProtectionContainerMappingsDeleteSam { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectionContainerMappings_Delete.json */ /** @@ -25,7 +25,7 @@ public final class ReplicationProtectionContainerMappingsDeleteSam { public static void removeProtectionContainerMapping( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectionContainerMappings() - .delete("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .delete("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "cloud1protectionprofile1", new RemoveProtectionContainerMappingInput() .withProperties(new RemoveProtectionContainerMappingInputProperties() diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainerMappingsGetSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainerMappingsGetSamples.java index 80dfc8052a16..c1ed6b0c3808 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainerMappingsGetSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainerMappingsGetSamples.java @@ -10,7 +10,7 @@ public final class ReplicationProtectionContainerMappingsGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectionContainerMappings_Get.json */ /** @@ -21,7 +21,7 @@ public final class ReplicationProtectionContainerMappingsGetSamples { public static void getsAProtectionContainerMapping( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectionContainerMappings() - .getWithResponse("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .getWithResponse("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "cloud1protectionprofile1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainerMappingsListByRep.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainerMappingsListByRep.java index ba66f912a6f1..7116806be774 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainerMappingsListByRep.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainerMappingsListByRep.java @@ -10,7 +10,7 @@ public final class ReplicationProtectionContainerMappingsListByRep { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectionContainerMappings_ListByReplicationProtectionContainers.json */ /** @@ -21,7 +21,7 @@ public final class ReplicationProtectionContainerMappingsListByRep { public static void getsTheListOfProtectionContainerMappingsForAProtectionContainer( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectionContainerMappings() - .listByReplicationProtectionContainers("vault1", "resourceGroupPS1", "cloud1", + .listByReplicationProtectionContainers("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainerMappingsListSampl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainerMappingsListSampl.java index 2aac0a37875f..b1b9c0021d43 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainerMappingsListSampl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainerMappingsListSampl.java @@ -10,7 +10,7 @@ public final class ReplicationProtectionContainerMappingsListSampl { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectionContainerMappings_List.json */ /** @@ -21,6 +21,6 @@ public final class ReplicationProtectionContainerMappingsListSampl { public static void getsTheListOfAllProtectionContainerMappingsInAVault( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectionContainerMappings() - .list("vault1", "resourceGroupPS1", com.azure.core.util.Context.NONE); + .list("resourceGroupPS1", "vault1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainerMappingsPurgeSamp.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainerMappingsPurgeSamp.java index a368494ce4c5..d03b2a293ef1 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainerMappingsPurgeSamp.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainerMappingsPurgeSamp.java @@ -10,7 +10,7 @@ public final class ReplicationProtectionContainerMappingsPurgeSamp { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectionContainerMappings_Purge.json */ /** @@ -21,7 +21,7 @@ public final class ReplicationProtectionContainerMappingsPurgeSamp { public static void purgeProtectionContainerMapping( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectionContainerMappings() - .purge("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .purge("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "cloud1protectionprofile1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainerMappingsUpdateSam.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainerMappingsUpdateSam.java index 03030878c4ce..f52149cd0f7d 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainerMappingsUpdateSam.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainerMappingsUpdateSam.java @@ -15,7 +15,7 @@ public final class ReplicationProtectionContainerMappingsUpdateSam { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectionContainerMappings_Update.json */ /** @@ -26,7 +26,7 @@ public final class ReplicationProtectionContainerMappingsUpdateSam { public static void updateProtectionContainerMapping( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { ProtectionContainerMapping resource = manager.replicationProtectionContainerMappings() - .getWithResponse("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .getWithResponse("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "cloud1protectionprofile1", com.azure.core.util.Context.NONE) .getValue(); resource.update() diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersCreateSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersCreateSamples.java index e8ab11bc4214..eaf78663dd4f 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersCreateSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersCreateSamples.java @@ -14,7 +14,7 @@ public final class ReplicationProtectionContainersCreateSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectionContainers_Create.json */ /** @@ -26,7 +26,7 @@ public final class ReplicationProtectionContainersCreateSamples { createAProtectionContainer(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectionContainers() .define("cloud_6d224fc6-f326-5d35-96de-fbf51efb3179") - .withExistingReplicationFabric("vault1", "resourceGroupPS1", "cloud1") + .withExistingReplicationFabric("resourceGroupPS1", "vault1", "cloud1") .withProperties(new CreateProtectionContainerInputProperties() .withProviderSpecificInput(Arrays.asList(new ReplicationProviderSpecificContainerCreationInput()))) .create(); diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersDeleteSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersDeleteSamples.java index 3b3000a2437b..e80238f650ff 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersDeleteSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersDeleteSamples.java @@ -10,7 +10,7 @@ public final class ReplicationProtectionContainersDeleteSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectionContainers_Delete.json */ /** @@ -21,7 +21,7 @@ public final class ReplicationProtectionContainersDeleteSamples { public static void removesAProtectionContainer( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectionContainers() - .delete("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .delete("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersDiscoverProtecta.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersDiscoverProtecta.java index 0fb3c413b8fd..7fdfe08df427 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersDiscoverProtecta.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersDiscoverProtecta.java @@ -13,7 +13,7 @@ public final class ReplicationProtectionContainersDiscoverProtecta { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectionContainers_DiscoverProtectableItem.json */ /** @@ -24,7 +24,7 @@ public final class ReplicationProtectionContainersDiscoverProtecta { public static void addsAProtectableItemToTheReplicationProtectionContainer( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectionContainers() - .discoverProtectableItem("MadhaviVault", "MadhaviVRG", "V2A-W2K12-660", + .discoverProtectableItem("MadhaviVRG", "MadhaviVault", "V2A-W2K12-660", "cloud_7328549c-5c37-4459-a3c2-e35f9ef6893c", new DiscoverProtectableItemRequest() .withProperties(new DiscoverProtectableItemRequestProperties().withFriendlyName("Test") diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersGetSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersGetSamples.java index 31168d01cf0c..964ed7105f18 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersGetSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersGetSamples.java @@ -10,7 +10,7 @@ public final class ReplicationProtectionContainersGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectionContainers_Get.json */ /** @@ -21,7 +21,7 @@ public final class ReplicationProtectionContainersGetSamples { public static void getsTheProtectionContainerDetails( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectionContainers() - .getWithResponse("vault1", "resourceGroupPS1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + .getWithResponse("resourceGroupPS1", "vault1", "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersListByReplicatio.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersListByReplicatio.java index cae2d652c5eb..33e69cf8b04d 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersListByReplicatio.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersListByReplicatio.java @@ -10,7 +10,7 @@ public final class ReplicationProtectionContainersListByReplicatio { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectionContainers_ListByReplicationFabrics.json */ /** @@ -21,6 +21,6 @@ public final class ReplicationProtectionContainersListByReplicatio { public static void getsTheListOfProtectionContainerForAFabric( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectionContainers() - .listByReplicationFabrics("vault1", "resourceGroupPS1", "cloud1", com.azure.core.util.Context.NONE); + .listByReplicationFabrics("resourceGroupPS1", "vault1", "cloud1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersListSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersListSamples.java index d2f4347584e9..51a8df93939f 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersListSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersListSamples.java @@ -10,7 +10,7 @@ public final class ReplicationProtectionContainersListSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectionContainers_List.json */ /** @@ -20,6 +20,6 @@ public final class ReplicationProtectionContainersListSamples { */ public static void getsTheListOfAllProtectionContainersInAVault( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { - manager.replicationProtectionContainers().list("vault1", "resourceGroupPS1", com.azure.core.util.Context.NONE); + manager.replicationProtectionContainers().list("resourceGroupPS1", "vault1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersSwitchClusterPro.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersSwitchClusterPro.java new file mode 100644 index 000000000000..58ffe1b5729f --- /dev/null +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersSwitchClusterPro.java @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.recoveryservicessiterecovery.generated; + +import com.azure.resourcemanager.recoveryservicessiterecovery.models.A2AProtectedItemDetail; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.A2ASwitchClusterProtectionInput; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.A2AVmManagedDiskInputDetails; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.SwitchClusterProtectionInput; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.SwitchClusterProtectionInputProperties; +import java.util.Arrays; + +/** + * Samples for ReplicationProtectionContainers SwitchClusterProtection. + */ +public final class ReplicationProtectionContainersSwitchClusterPro { + /* + * x-ms-original-file: + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples + * /ReplicationProtectionContainers_SwitchClusterProtection.json + */ + /** + * Sample code: Switches protection from one container to another or one replication provider to another. + * + * @param manager Entry point to SiteRecoveryManager. + */ + public static void switchesProtectionFromOneContainerToAnotherOrOneReplicationProviderToAnother( + com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { + manager.replicationProtectionContainers() + .switchClusterProtection("resourceGroupPS1", "vault1", "fabric-pri-eastus", "pri-cloud-eastus", + new SwitchClusterProtectionInput().withProperties(new SwitchClusterProtectionInputProperties() + .withReplicationProtectionClusterName("testcluster") + .withProviderSpecificDetails(new A2ASwitchClusterProtectionInput().withRecoveryContainerId( + "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/fabric-rec-westus/replicationProtectionContainers/rec-cloud-westus") + .withPolicyId( + "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationPolicies/klncksan") + .withProtectedItemsDetail(Arrays.asList(new A2AProtectedItemDetail() + .withVmManagedDisks(Arrays.asList(new A2AVmManagedDiskInputDetails().withDiskId( + "/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourcegroups/clustertestrg-19-01/providers/microsoft.compute/disks/sdgql0-osdisk") + .withPrimaryStagingAzureStorageAccountId( + "/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/clustertestrg-19-01/providers/Microsoft.Storage/storageAccounts/ix701lvaasrcache") + .withRecoveryResourceGroupId( + "/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/ClusterTestRG-19-01-asr"))) + .withRecoveryResourceGroupId( + "/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/ClusterTestRG-19-01-asr") + .withReplicationProtectedItemName("yNdYnDYKZ7hYU7zyVeBychFBCyAbEkrJcJNUarDrXio"), + new A2AProtectedItemDetail() + .withVmManagedDisks(Arrays.asList(new A2AVmManagedDiskInputDetails().withDiskId( + "/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourcegroups/clustertestrg-19-01/providers/microsoft.compute/disks/sdgql1-osdisk") + .withPrimaryStagingAzureStorageAccountId( + "/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/clustertestrg-19-01/providers/Microsoft.Storage/storageAccounts/ix701lvaasrcache") + .withRecoveryResourceGroupId( + "/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/ClusterTestRG-19-01-asr"))) + .withRecoveryResourceGroupId( + "/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/ClusterTestRG-19-01-asr") + .withReplicationProtectedItemName("kdUdWvpVnm3QgOQPHoVMX8YAtAO8OC4kKNjt40ERSr4"))))), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersSwitchProtection.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersSwitchProtection.java index 25573ef13d71..c68920008ff8 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersSwitchProtection.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersSwitchProtection.java @@ -14,7 +14,7 @@ public final class ReplicationProtectionContainersSwitchProtection { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectionContainers_SwitchProtection.json */ /** @@ -25,7 +25,7 @@ public final class ReplicationProtectionContainersSwitchProtection { public static void switchesProtectionFromOneContainerToAnotherOrOneReplicationProviderToAnother( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectionContainers() - .switchProtection("priyanponeboxvault", "priyanprg", "CentralUSCanSite", "CentralUSCancloud", + .switchProtection("priyanprg", "priyanponeboxvault", "CentralUSCanSite", "CentralUSCancloud", new SwitchProtectionInput().withProperties( new SwitchProtectionInputProperties().withReplicationProtectedItemName("a2aSwapOsVm") .withProviderSpecificDetails(new A2ASwitchProtectionInput())), diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionIntentsCreateSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionIntentsCreateSamples.java index a97f37c044a7..b656c2acc0ff 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionIntentsCreateSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionIntentsCreateSamples.java @@ -14,7 +14,7 @@ public final class ReplicationProtectionIntentsCreateSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectionIntents_Create.json */ /** @@ -26,7 +26,7 @@ public static void createProtectionIntentResource( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectionIntents() .define("vm1") - .withExistingVault("vault1", "resourceGroupPS1") + .withExistingVault("resourceGroupPS1", "vault1") .withProperties(new CreateProtectionIntentProperties() .withProviderSpecificDetails(new A2ACreateProtectionIntentInput().withFabricObjectId( "/subscriptions/509099b2-9d2c-4636-b43e-bd5cafb6be69/resourceGroups/removeOne/providers/Microsoft.Compute/virtualMachines/vmPpgAv5") diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionIntentsGetSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionIntentsGetSamples.java index 1d2e314875a1..e377983bad12 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionIntentsGetSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionIntentsGetSamples.java @@ -10,7 +10,7 @@ public final class ReplicationProtectionIntentsGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectionIntents_Get.json */ /** @@ -21,6 +21,6 @@ public final class ReplicationProtectionIntentsGetSamples { public static void getsTheDetailsOfAReplicationProtectionIntentItem( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectionIntents() - .getWithResponse("vault1", "resourceGroupPS1", "vm1", com.azure.core.util.Context.NONE); + .getWithResponse("resourceGroupPS1", "vault1", "vm1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionIntentsListSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionIntentsListSamples.java index e171dc48d62e..52468740ff49 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionIntentsListSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionIntentsListSamples.java @@ -10,7 +10,7 @@ public final class ReplicationProtectionIntentsListSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationProtectionIntents_List.json */ /** @@ -21,6 +21,6 @@ public final class ReplicationProtectionIntentsListSamples { public static void getsTheListOfReplicationProtectionIntentObjects( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationProtectionIntents() - .list("2007vttp", "resourceGroupPS1", null, null, com.azure.core.util.Context.NONE); + .list("resourceGroupPS1", "2007vttp", null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansCreateSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansCreateSamples.java index 5af3b506878b..ce0287c14ef8 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansCreateSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansCreateSamples.java @@ -17,7 +17,7 @@ public final class ReplicationRecoveryPlansCreateSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationRecoveryPlans_Create.json */ /** @@ -29,7 +29,7 @@ public static void createsARecoveryPlanWithTheGivenDetails( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationRecoveryPlans() .define("RPtest1") - .withExistingVault("vault1", "resourceGroupPS1") + .withExistingVault("resourceGroupPS1", "vault1") .withProperties(new CreateRecoveryPlanInputProperties().withPrimaryFabricId( "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/cloud1") .withRecoveryFabricId("Microsoft Azure") diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansDeleteSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansDeleteSamples.java index ad0527ba261a..cd62db9f9872 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansDeleteSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansDeleteSamples.java @@ -10,7 +10,7 @@ public final class ReplicationRecoveryPlansDeleteSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationRecoveryPlans_Delete.json */ /** @@ -21,6 +21,6 @@ public final class ReplicationRecoveryPlansDeleteSamples { public static void deletesTheSpecifiedRecoveryPlan( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationRecoveryPlans() - .delete("vault1", "resourceGroupPS1", "RPtest1", com.azure.core.util.Context.NONE); + .delete("resourceGroupPS1", "vault1", "RPtest1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansFailoverCancelSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansFailoverCancelSamples.java index 4c92f86324f3..5fc901915332 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansFailoverCancelSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansFailoverCancelSamples.java @@ -10,7 +10,7 @@ public final class ReplicationRecoveryPlansFailoverCancelSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationRecoveryPlans_FailoverCancel.json */ /** @@ -21,6 +21,6 @@ public final class ReplicationRecoveryPlansFailoverCancelSamples { public static void executeCancelFailoverOfTheRecoveryPlan( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationRecoveryPlans() - .failoverCancel("vault1", "resourceGroupPS1", "RPtest1", com.azure.core.util.Context.NONE); + .failoverCancel("resourceGroupPS1", "vault1", "RPtest1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansFailoverCommitSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansFailoverCommitSamples.java index 8925579a6881..8bc776cafe32 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansFailoverCommitSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansFailoverCommitSamples.java @@ -10,7 +10,7 @@ public final class ReplicationRecoveryPlansFailoverCommitSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationRecoveryPlans_FailoverCommit.json */ /** @@ -21,6 +21,6 @@ public final class ReplicationRecoveryPlansFailoverCommitSamples { public static void executeCommitFailoverOfTheRecoveryPlan( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationRecoveryPlans() - .failoverCommit("vault1", "resourceGroupPS1", "RPtest1", com.azure.core.util.Context.NONE); + .failoverCommit("resourceGroupPS1", "vault1", "RPtest1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansGetSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansGetSamples.java index 8f6be7a88bcc..9aacad6a1d99 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansGetSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansGetSamples.java @@ -10,7 +10,7 @@ public final class ReplicationRecoveryPlansGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationRecoveryPlans_Get.json */ /** @@ -21,6 +21,6 @@ public final class ReplicationRecoveryPlansGetSamples { public static void getsTheRequestedRecoveryPlan( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationRecoveryPlans() - .getWithResponse("vault1", "resourceGroupPS1", "RPtest1", com.azure.core.util.Context.NONE); + .getWithResponse("resourceGroupPS1", "vault1", "RPtest1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansListSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansListSamples.java index b58cd267ae35..08aa52fbde8e 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansListSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansListSamples.java @@ -10,7 +10,7 @@ public final class ReplicationRecoveryPlansListSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationRecoveryPlans_List.json */ /** @@ -20,6 +20,6 @@ public final class ReplicationRecoveryPlansListSamples { */ public static void getsTheListOfRecoveryPlans(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { - manager.replicationRecoveryPlans().list("vault1", "resourceGroupPS1", com.azure.core.util.Context.NONE); + manager.replicationRecoveryPlans().list("resourceGroupPS1", "vault1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansPlannedFailoverSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansPlannedFailoverSamples.java index 84227a6529be..6fe9177b4be1 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansPlannedFailoverSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansPlannedFailoverSamples.java @@ -16,7 +16,7 @@ public final class ReplicationRecoveryPlansPlannedFailoverSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationRecoveryPlans_PlannedFailover.json */ /** @@ -27,7 +27,7 @@ public final class ReplicationRecoveryPlansPlannedFailoverSamples { public static void executePlannedFailoverOfTheRecoveryPlan( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationRecoveryPlans() - .plannedFailover("vault1", "resourceGroupPS1", "RPtest1", + .plannedFailover("resourceGroupPS1", "vault1", "RPtest1", new RecoveryPlanPlannedFailoverInput().withProperties(new RecoveryPlanPlannedFailoverInputProperties() .withFailoverDirection(PossibleOperationsDirections.PRIMARY_TO_RECOVERY) .withProviderSpecificDetails(Arrays.asList(new RecoveryPlanHyperVReplicaAzureFailoverInput()))), diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansReprotectSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansReprotectSamples.java index aa719b3046d6..85005da44c98 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansReprotectSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansReprotectSamples.java @@ -10,7 +10,7 @@ public final class ReplicationRecoveryPlansReprotectSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationRecoveryPlans_Reprotect.json */ /** @@ -21,6 +21,6 @@ public final class ReplicationRecoveryPlansReprotectSamples { public static void executeReprotectOfTheRecoveryPlan( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationRecoveryPlans() - .reprotect("vault1", "resourceGroupPS1", "RPtest1", com.azure.core.util.Context.NONE); + .reprotect("resourceGroupPS1", "vault1", "RPtest1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansTestFailoverCleanupSamp.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansTestFailoverCleanupSamp.java index 089d0f8d63b6..f0ae50e570b0 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansTestFailoverCleanupSamp.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansTestFailoverCleanupSamp.java @@ -13,7 +13,7 @@ public final class ReplicationRecoveryPlansTestFailoverCleanupSamp { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationRecoveryPlans_TestFailoverCleanup.json */ /** @@ -24,7 +24,7 @@ public final class ReplicationRecoveryPlansTestFailoverCleanupSamp { public static void executeTestFailoverCleanupOfTheRecoveryPlan( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationRecoveryPlans() - .testFailoverCleanup("vault1", "resourceGroupPS1", "RPtest1", + .testFailoverCleanup("resourceGroupPS1", "vault1", "RPtest1", new RecoveryPlanTestFailoverCleanupInput().withProperties( new RecoveryPlanTestFailoverCleanupInputProperties().withComments("Test Failover Cleanup")), com.azure.core.util.Context.NONE); diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansTestFailoverSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansTestFailoverSamples.java index 8585b76e59bd..487dd0df696a 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansTestFailoverSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansTestFailoverSamples.java @@ -16,7 +16,7 @@ public final class ReplicationRecoveryPlansTestFailoverSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationRecoveryPlans_TestFailover.json */ /** @@ -27,7 +27,7 @@ public final class ReplicationRecoveryPlansTestFailoverSamples { public static void executeTestFailoverOfTheRecoveryPlan( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationRecoveryPlans() - .testFailover("vault1", "resourceGroupPS1", "RPtest1", + .testFailover("resourceGroupPS1", "vault1", "RPtest1", new RecoveryPlanTestFailoverInput().withProperties(new RecoveryPlanTestFailoverInputProperties() .withFailoverDirection(PossibleOperationsDirections.PRIMARY_TO_RECOVERY) .withNetworkType("VmNetworkAsInput") diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansUnplannedFailoverSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansUnplannedFailoverSamples.java index af2a03d1a7db..d2478c898d09 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansUnplannedFailoverSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansUnplannedFailoverSamples.java @@ -17,7 +17,7 @@ public final class ReplicationRecoveryPlansUnplannedFailoverSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationRecoveryPlans_UnplannedFailover.json */ /** @@ -28,7 +28,7 @@ public final class ReplicationRecoveryPlansUnplannedFailoverSamples { public static void executeUnplannedFailoverOfTheRecoveryPlan( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationRecoveryPlans() - .unplannedFailover("vault1", "resourceGroupPS1", "RPtest1", + .unplannedFailover("resourceGroupPS1", "vault1", "RPtest1", new RecoveryPlanUnplannedFailoverInput() .withProperties(new RecoveryPlanUnplannedFailoverInputProperties() .withFailoverDirection(PossibleOperationsDirections.PRIMARY_TO_RECOVERY) diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansUpdateSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansUpdateSamples.java index 9f1213725ca3..3398aa63a223 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansUpdateSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansUpdateSamples.java @@ -17,7 +17,7 @@ public final class ReplicationRecoveryPlansUpdateSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationRecoveryPlans_Update.json */ /** @@ -28,7 +28,7 @@ public final class ReplicationRecoveryPlansUpdateSamples { public static void updatesTheGivenRecoveryPlan( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { RecoveryPlan resource = manager.replicationRecoveryPlans() - .getWithResponse("vault1", "resourceGroupPS1", "RPtest1", com.azure.core.util.Context.NONE) + .getWithResponse("resourceGroupPS1", "vault1", "RPtest1", com.azure.core.util.Context.NONE) .getValue(); resource.update() .withProperties(new UpdateRecoveryPlanInputProperties().withGroups(Arrays.asList( diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryServicesProvidersCreateSampl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryServicesProvidersCreateSampl.java index a4769034efd9..883af688c487 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryServicesProvidersCreateSampl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryServicesProvidersCreateSampl.java @@ -13,7 +13,7 @@ public final class ReplicationRecoveryServicesProvidersCreateSampl { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationRecoveryServicesProviders_Create.json */ /** @@ -25,7 +25,7 @@ public static void addsARecoveryServicesProvider( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationRecoveryServicesProviders() .define("vmwareprovider1") - .withExistingReplicationFabric("migrationvault", "resourcegroup1", "vmwarefabric1") + .withExistingReplicationFabric("resourcegroup1", "migrationvault", "vmwarefabric1") .withProperties(new AddRecoveryServicesProviderInputProperties().withMachineName("vmwareprovider1") .withAuthenticationIdentityInput( new IdentityProviderInput().withTenantId("72f988bf-86f1-41af-91ab-2d7cd011db47") diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryServicesProvidersDeleteSampl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryServicesProvidersDeleteSampl.java index c5038aa7e9e4..7156caad7c38 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryServicesProvidersDeleteSampl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryServicesProvidersDeleteSampl.java @@ -10,7 +10,7 @@ public final class ReplicationRecoveryServicesProvidersDeleteSampl { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationRecoveryServicesProviders_Delete.json */ /** @@ -24,7 +24,7 @@ public final class ReplicationRecoveryServicesProvidersDeleteSampl { deletesProviderFromFabricNoteDeletingProviderForAnyFabricOtherThanSingleHostIsUnsupportedToMaintainBackwardCompatibilityForReleasedClientsTheObjectDeleteRspInputIsUsedIfTheObjectIsEmptyWeAssumeThatItIsOldClientAndContinueTheOldBehavior( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationRecoveryServicesProviders() - .delete("vault1", "resourceGroupPS1", "cloud1", "241641e6-ee7b-4ee4-8141-821fadda43fa", + .delete("resourceGroupPS1", "vault1", "cloud1", "241641e6-ee7b-4ee4-8141-821fadda43fa", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryServicesProvidersGetSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryServicesProvidersGetSamples.java index 12b2ce55fe7d..5918a626a769 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryServicesProvidersGetSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryServicesProvidersGetSamples.java @@ -10,7 +10,7 @@ public final class ReplicationRecoveryServicesProvidersGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationRecoveryServicesProviders_Get.json */ /** @@ -21,7 +21,7 @@ public final class ReplicationRecoveryServicesProvidersGetSamples { public static void getsTheDetailsOfARecoveryServicesProvider( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationRecoveryServicesProviders() - .getWithResponse("vault1", "resourceGroupPS1", "cloud1", "241641e6-ee7b-4ee4-8141-821fadda43fa", + .getWithResponse("resourceGroupPS1", "vault1", "cloud1", "241641e6-ee7b-4ee4-8141-821fadda43fa", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryServicesProvidersListByRepli.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryServicesProvidersListByRepli.java index 7cad20638d08..eeb9d2733703 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryServicesProvidersListByRepli.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryServicesProvidersListByRepli.java @@ -10,7 +10,7 @@ public final class ReplicationRecoveryServicesProvidersListByRepli { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationRecoveryServicesProviders_ListByReplicationFabrics.json */ /** @@ -21,6 +21,6 @@ public final class ReplicationRecoveryServicesProvidersListByRepli { public static void getsTheListOfRegisteredRecoveryServicesProvidersForTheFabric( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationRecoveryServicesProviders() - .listByReplicationFabrics("vault1", "resourceGroupPS1", "cloud1", com.azure.core.util.Context.NONE); + .listByReplicationFabrics("resourceGroupPS1", "vault1", "cloud1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryServicesProvidersListSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryServicesProvidersListSamples.java index 810de282022f..f7e79fd55114 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryServicesProvidersListSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryServicesProvidersListSamples.java @@ -10,7 +10,7 @@ public final class ReplicationRecoveryServicesProvidersListSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationRecoveryServicesProviders_List.json */ /** @@ -21,6 +21,6 @@ public final class ReplicationRecoveryServicesProvidersListSamples { public static void getsTheListOfRegisteredRecoveryServicesProvidersInTheVaultThisIsAViewOnlyApi( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationRecoveryServicesProviders() - .list("vault1", "resourceGroupPS1", com.azure.core.util.Context.NONE); + .list("resourceGroupPS1", "vault1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryServicesProvidersPurgeSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryServicesProvidersPurgeSamples.java index 48e9d2b0de89..266ee64054de 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryServicesProvidersPurgeSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryServicesProvidersPurgeSamples.java @@ -10,7 +10,7 @@ public final class ReplicationRecoveryServicesProvidersPurgeSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationRecoveryServicesProviders_Purge.json */ /** @@ -21,7 +21,7 @@ public final class ReplicationRecoveryServicesProvidersPurgeSamples { public static void purgesRecoveryServiceProviderFromFabric( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationRecoveryServicesProviders() - .purge("vault1", "resourceGroupPS1", "cloud1", "241641e6-ee7b-4ee4-8141-821fadda43fa", + .purge("resourceGroupPS1", "vault1", "cloud1", "241641e6-ee7b-4ee4-8141-821fadda43fa", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryServicesProvidersRefreshProv.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryServicesProvidersRefreshProv.java index 39291d87a2f1..8db563359839 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryServicesProvidersRefreshProv.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryServicesProvidersRefreshProv.java @@ -10,7 +10,7 @@ public final class ReplicationRecoveryServicesProvidersRefreshProv { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationRecoveryServicesProviders_RefreshProvider.json */ /** @@ -21,7 +21,7 @@ public final class ReplicationRecoveryServicesProvidersRefreshProv { public static void refreshDetailsFromTheRecoveryServicesProvider( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationRecoveryServicesProviders() - .refreshProvider("vault1", "resourceGroupPS1", "cloud1", "241641e6-ee7b-4ee4-8141-821fadda43fa", + .refreshProvider("resourceGroupPS1", "vault1", "cloud1", "241641e6-ee7b-4ee4-8141-821fadda43fa", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationVaultHealthGetSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationVaultHealthGetSamples.java index d6a47c38a904..242f55a557e1 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationVaultHealthGetSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationVaultHealthGetSamples.java @@ -10,7 +10,7 @@ public final class ReplicationVaultHealthGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationVaultHealth_Get.json */ /** @@ -21,6 +21,6 @@ public final class ReplicationVaultHealthGetSamples { public static void getsTheHealthSummaryForTheVault( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationVaultHealths() - .getWithResponse("vault1", "resourceGroupPS1", com.azure.core.util.Context.NONE); + .getWithResponse("resourceGroupPS1", "vault1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationVaultHealthRefreshSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationVaultHealthRefreshSamples.java index a243cd3bc165..1285a10a766f 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationVaultHealthRefreshSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationVaultHealthRefreshSamples.java @@ -10,7 +10,7 @@ public final class ReplicationVaultHealthRefreshSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationVaultHealth_Refresh.json */ /** @@ -20,6 +20,6 @@ public final class ReplicationVaultHealthRefreshSamples { */ public static void refreshesHealthSummaryOfTheVault( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { - manager.replicationVaultHealths().refresh("vault1", "resourceGroupPS1", com.azure.core.util.Context.NONE); + manager.replicationVaultHealths().refresh("resourceGroupPS1", "vault1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationVaultSettingCreateSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationVaultSettingCreateSamples.java index e3b17b47efe5..39d49b514076 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationVaultSettingCreateSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationVaultSettingCreateSamples.java @@ -12,7 +12,7 @@ public final class ReplicationVaultSettingCreateSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationVaultSetting_Create.json */ /** @@ -25,7 +25,7 @@ public static void updatesVaultSettingAVaultSettingObjectIsASingletonPerVaultAnd com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationVaultSettings() .define("default") - .withExistingVault("vault1", "resourceGroupPS1") + .withExistingVault("resourceGroupPS1", "vault1") .withProperties(new VaultSettingCreationInputProperties().withMigrationSolutionId( "/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.Migrate/MigrateProjects/resourceGroupPS1-MigrateProject/Solutions/Servers-Migration-ServerMigration")) .create(); diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationVaultSettingGetSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationVaultSettingGetSamples.java index 36728bf81b34..9e33bec8d56a 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationVaultSettingGetSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationVaultSettingGetSamples.java @@ -10,7 +10,7 @@ public final class ReplicationVaultSettingGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationVaultSetting_Get.json */ /** @@ -21,6 +21,6 @@ public final class ReplicationVaultSettingGetSamples { public static void getsTheVaultSetting(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationVaultSettings() - .getWithResponse("vault1", "resourceGroupPS1", "default", com.azure.core.util.Context.NONE); + .getWithResponse("resourceGroupPS1", "vault1", "default", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationVaultSettingListSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationVaultSettingListSamples.java index 4bc2d6e8b20f..4d24b9cb9f0f 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationVaultSettingListSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationVaultSettingListSamples.java @@ -10,7 +10,7 @@ public final class ReplicationVaultSettingListSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationVaultSetting_List.json */ /** @@ -20,6 +20,6 @@ public final class ReplicationVaultSettingListSamples { */ public static void getsTheListOfVaultSetting(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { - manager.replicationVaultSettings().list("vault1", "resourceGroupPS1", com.azure.core.util.Context.NONE); + manager.replicationVaultSettings().list("resourceGroupPS1", "vault1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationvCentersCreateSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationvCentersCreateSamples.java index 96f14dabff45..a55650408a4f 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationvCentersCreateSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationvCentersCreateSamples.java @@ -12,7 +12,7 @@ public final class ReplicationvCentersCreateSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationvCenters_Create.json */ /** @@ -23,7 +23,7 @@ public final class ReplicationvCentersCreateSamples { public static void addVCenter(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationvCenters() .define("esx-78") - .withExistingReplicationFabric("MadhaviVault", "MadhaviVRG", "MadhaviFabric") + .withExistingReplicationFabric("MadhaviVRG", "MadhaviVault", "MadhaviFabric") .withProperties(new AddVCenterRequestProperties().withFriendlyName("esx-78") .withIpAddress("inmtest78") .withProcessServerId("5A720CAB-39CB-F445-BD1662B0B33164B5") diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationvCentersDeleteSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationvCentersDeleteSamples.java index 281dba91cedd..88bf29f85eaf 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationvCentersDeleteSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationvCentersDeleteSamples.java @@ -10,7 +10,7 @@ public final class ReplicationvCentersDeleteSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationvCenters_Delete.json */ /** @@ -21,6 +21,6 @@ public final class ReplicationvCentersDeleteSamples { public static void removeVCenterOperation(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationvCenters() - .delete("MadhaviVault", "MadhaviVRG", "MadhaviFabric", "esx-78", com.azure.core.util.Context.NONE); + .delete("MadhaviVRG", "MadhaviVault", "MadhaviFabric", "esx-78", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationvCentersGetSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationvCentersGetSamples.java index bba423ebec26..8b9dc4a84b70 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationvCentersGetSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationvCentersGetSamples.java @@ -10,7 +10,7 @@ public final class ReplicationvCentersGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationvCenters_Get.json */ /** @@ -21,6 +21,6 @@ public final class ReplicationvCentersGetSamples { public static void getsTheDetailsOfAVCenter(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationvCenters() - .getWithResponse("MadhaviVault", "MadhaviVRG", "MadhaviFabric", "esx-78", com.azure.core.util.Context.NONE); + .getWithResponse("MadhaviVRG", "MadhaviVault", "MadhaviFabric", "esx-78", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationvCentersListByReplicationFabricsSamp.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationvCentersListByReplicationFabricsSamp.java index ab717191beb2..47c9b87890a9 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationvCentersListByReplicationFabricsSamp.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationvCentersListByReplicationFabricsSamp.java @@ -10,7 +10,7 @@ public final class ReplicationvCentersListByReplicationFabricsSamp { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationvCenters_ListByReplicationFabrics.json */ /** @@ -21,6 +21,6 @@ public final class ReplicationvCentersListByReplicationFabricsSamp { public static void getsTheListOfVCenterRegisteredUnderAFabric( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.replicationvCenters() - .listByReplicationFabrics("MadhaviVault", "MadhaviVRG", "MadhaviFabric", com.azure.core.util.Context.NONE); + .listByReplicationFabrics("MadhaviVRG", "MadhaviVault", "MadhaviFabric", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationvCentersListSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationvCentersListSamples.java index fe3d6caa1afa..f20df934d0f4 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationvCentersListSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationvCentersListSamples.java @@ -10,7 +10,7 @@ public final class ReplicationvCentersListSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationvCenters_List.json */ /** @@ -20,6 +20,6 @@ public final class ReplicationvCentersListSamples { */ public static void getsTheListOfVCenterRegisteredUnderTheVault( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { - manager.replicationvCenters().list("MadhaviVault", "MadhaviVRG", com.azure.core.util.Context.NONE); + manager.replicationvCenters().list("MadhaviVRG", "MadhaviVault", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationvCentersUpdateSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationvCentersUpdateSamples.java index 9d3752bb392c..a4d8a482cc7c 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationvCentersUpdateSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationvCentersUpdateSamples.java @@ -13,7 +13,7 @@ public final class ReplicationvCentersUpdateSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationvCenters_Update.json */ /** @@ -24,7 +24,7 @@ public final class ReplicationvCentersUpdateSamples { public static void updateVCenterOperation(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { VCenter resource = manager.replicationvCenters() - .getWithResponse("MadhaviVault", "MadhaviVRG", "MadhaviFabric", "esx-78", com.azure.core.util.Context.NONE) + .getWithResponse("MadhaviVRG", "MadhaviVault", "MadhaviFabric", "esx-78", com.azure.core.util.Context.NONE) .getValue(); resource.update().withProperties(new UpdateVCenterRequestProperties().withIpAddress("10.150.109.25")).apply(); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingsCreateSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingsCreateSamples.java index 2d18c4381d29..d8cb639cf954 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingsCreateSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingsCreateSamples.java @@ -12,7 +12,7 @@ public final class StorageClassificationMappingsCreateSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationStorageClassificationMappings_Create.json */ /** @@ -24,7 +24,7 @@ public static void createStorageClassificationMapping( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.storageClassificationMappings() .define("testStorageMapping") - .withExistingReplicationStorageClassification("vault1", "resourceGroupPS1", + .withExistingReplicationStorageClassification("resourceGroupPS1", "vault1", "2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0", "8891569e-aaef-4a46-a4a0-78c14f2d7b09") .withProperties(new StorageMappingInputProperties().withTargetStorageClassificationId( diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingsDeleteSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingsDeleteSamples.java index 809905d6604a..b53ac25e0c9e 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingsDeleteSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingsDeleteSamples.java @@ -10,7 +10,7 @@ public final class StorageClassificationMappingsDeleteSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationStorageClassificationMappings_Delete.json */ /** @@ -21,7 +21,7 @@ public final class StorageClassificationMappingsDeleteSamples { public static void deleteAStorageClassificationMapping( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.storageClassificationMappings() - .delete("vault1", "resourceGroupPS1", "2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0", + .delete("resourceGroupPS1", "vault1", "2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0", "8891569e-aaef-4a46-a4a0-78c14f2d7b09", "testStorageMapping", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingsGetSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingsGetSamples.java index 3304190d3e28..fc16fded99ed 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingsGetSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingsGetSamples.java @@ -10,7 +10,7 @@ public final class StorageClassificationMappingsGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationStorageClassificationMappings_Get.json */ /** @@ -21,7 +21,7 @@ public final class StorageClassificationMappingsGetSamples { public static void getsTheDetailsOfAStorageClassificationMapping( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.storageClassificationMappings() - .getWithResponse("vault1", "resourceGroupPS1", + .getWithResponse("resourceGroupPS1", "vault1", "2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0", "8891569e-aaef-4a46-a4a0-78c14f2d7b09", "testStorageMapping", com.azure.core.util.Context.NONE); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingsListByReplicationS.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingsListByReplicationS.java index 56fce48280a4..0e0763d19309 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingsListByReplicationS.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingsListByReplicationS.java @@ -10,7 +10,7 @@ public final class StorageClassificationMappingsListByReplicationS { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationStorageClassificationMappings_ListByReplicationStorageClassifications.json */ /** @@ -21,7 +21,7 @@ public final class StorageClassificationMappingsListByReplicationS { public static void getsTheListOfStorageClassificationMappingsObjectsUnderAStorage( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.storageClassificationMappings() - .listByReplicationStorageClassifications("vault1", "resourceGroupPS1", + .listByReplicationStorageClassifications("resourceGroupPS1", "vault1", "2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0", "8891569e-aaef-4a46-a4a0-78c14f2d7b09", com.azure.core.util.Context.NONE); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingsListSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingsListSamples.java index 92e1c96ea72e..fbea6b9ea9d5 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingsListSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingsListSamples.java @@ -10,7 +10,7 @@ public final class StorageClassificationMappingsListSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationStorageClassificationMappings_List.json */ /** @@ -20,6 +20,6 @@ public final class StorageClassificationMappingsListSamples { */ public static void getsTheListOfStorageClassificationMappingsObjectsUnderAVault( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { - manager.storageClassificationMappings().list("vault1", "resourceGroupPS1", com.azure.core.util.Context.NONE); + manager.storageClassificationMappings().list("resourceGroupPS1", "vault1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationsGetSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationsGetSamples.java index 5a977df5257d..9078fd0986f8 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationsGetSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationsGetSamples.java @@ -10,7 +10,7 @@ public final class StorageClassificationsGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationStorageClassifications_Get.json */ /** @@ -21,7 +21,7 @@ public final class StorageClassificationsGetSamples { public static void getsTheDetailsOfAStorageClassification( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.storageClassifications() - .getWithResponse("vault1", "resourceGroupPS1", + .getWithResponse("resourceGroupPS1", "vault1", "2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0", "8891569e-aaef-4a46-a4a0-78c14f2d7b09", com.azure.core.util.Context.NONE); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationsListByReplicationFabricsS.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationsListByReplicationFabricsS.java index 8d3d40843cf3..cdb142679edd 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationsListByReplicationFabricsS.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationsListByReplicationFabricsS.java @@ -10,7 +10,7 @@ public final class StorageClassificationsListByReplicationFabricsS { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationStorageClassifications_ListByReplicationFabrics.json */ /** @@ -21,7 +21,7 @@ public final class StorageClassificationsListByReplicationFabricsS { public static void getsTheListOfStorageClassificationObjectsUnderAFabric( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.storageClassifications() - .listByReplicationFabrics("vault1", "resourceGroupPS1", + .listByReplicationFabrics("resourceGroupPS1", "vault1", "2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationsListSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationsListSamples.java index 0e328d97ab1f..5acb9bb23534 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationsListSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationsListSamples.java @@ -10,7 +10,7 @@ public final class StorageClassificationsListSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /ReplicationStorageClassifications_List.json */ /** @@ -20,6 +20,6 @@ public final class StorageClassificationsListSamples { */ public static void getsTheListOfStorageClassificationObjectsUnderAVault( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { - manager.storageClassifications().list("vault1", "resourceGroupPS1", com.azure.core.util.Context.NONE); + manager.storageClassifications().list("resourceGroupPS1", "vault1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/SupportedOperatingSystemsOperationGetSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/SupportedOperatingSystemsOperationGetSamples.java index d1a4d48a91bc..5b016bf94af1 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/SupportedOperatingSystemsOperationGetSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/SupportedOperatingSystemsOperationGetSamples.java @@ -10,7 +10,7 @@ public final class SupportedOperatingSystemsOperationGetSamples { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /SupportedOperatingSystems_Get.json */ /** @@ -21,6 +21,6 @@ public final class SupportedOperatingSystemsOperationGetSamples { public static void getsTheDataOfSupportedOperatingSystemsBySRS( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.supportedOperatingSystemsOperations() - .getWithResponse("vault1", "resourceGroupPS1", null, com.azure.core.util.Context.NONE); + .getWithResponse("resourceGroupPS1", "vault1", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TargetComputeSizesListByReplicationProtectedIte.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TargetComputeSizesListByReplicationProtectedIte.java index 347b74c3ce4b..6ca29c363fb0 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TargetComputeSizesListByReplicationProtectedIte.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TargetComputeSizesListByReplicationProtectedIte.java @@ -10,7 +10,7 @@ public final class TargetComputeSizesListByReplicationProtectedIte { /* * x-ms-original-file: - * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples + * specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples * /TargetComputeSizes_ListByReplicationProtectedItems.json */ /** @@ -21,7 +21,7 @@ public final class TargetComputeSizesListByReplicationProtectedIte { public static void getsTheListOfTargetComputeSizesForTheReplicationProtectedItem( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager.targetComputeSizes() - .listByReplicationProtectedItems("avraiMgDiskVault", "avraiMgDiskVaultRG", "asr-a2a-default-centraluseuap", + .listByReplicationProtectedItems("avraiMgDiskVaultRG", "avraiMgDiskVault", "asr-a2a-default-centraluseuap", "asr-a2a-default-centraluseuap-container", "468c912d-b1ab-4ea2-97eb-4b5095155db2", com.azure.core.util.Context.NONE); } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2AApplyRecoveryPointInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2AApplyRecoveryPointInputTests.java deleted file mode 100644 index 926399baa282..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2AApplyRecoveryPointInputTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.A2AApplyRecoveryPointInput; - -public final class A2AApplyRecoveryPointInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - A2AApplyRecoveryPointInput model - = BinaryData.fromString("{\"instanceType\":\"A2A\"}").toObject(A2AApplyRecoveryPointInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - A2AApplyRecoveryPointInput model = new A2AApplyRecoveryPointInput(); - model = BinaryData.fromObject(model).toObject(A2AApplyRecoveryPointInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2AContainerCreationInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2AContainerCreationInputTests.java deleted file mode 100644 index c91e648389f3..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2AContainerCreationInputTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.A2AContainerCreationInput; - -public final class A2AContainerCreationInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - A2AContainerCreationInput model - = BinaryData.fromString("{\"instanceType\":\"A2A\"}").toObject(A2AContainerCreationInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - A2AContainerCreationInput model = new A2AContainerCreationInput(); - model = BinaryData.fromObject(model).toObject(A2AContainerCreationInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2AContainerMappingInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2AContainerMappingInputTests.java deleted file mode 100644 index 7734af9c5d86..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2AContainerMappingInputTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.A2AContainerMappingInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.AgentAutoUpdateStatus; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.AutomationAccountAuthenticationType; -import org.junit.jupiter.api.Assertions; - -public final class A2AContainerMappingInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - A2AContainerMappingInput model = BinaryData.fromString( - "{\"instanceType\":\"A2A\",\"agentAutoUpdateStatus\":\"Enabled\",\"automationAccountArmId\":\"goaqylkjztj\",\"automationAccountAuthenticationType\":\"SystemAssignedIdentity\"}") - .toObject(A2AContainerMappingInput.class); - Assertions.assertEquals(AgentAutoUpdateStatus.ENABLED, model.agentAutoUpdateStatus()); - Assertions.assertEquals("goaqylkjztj", model.automationAccountArmId()); - Assertions.assertEquals(AutomationAccountAuthenticationType.SYSTEM_ASSIGNED_IDENTITY, - model.automationAccountAuthenticationType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - A2AContainerMappingInput model - = new A2AContainerMappingInput().withAgentAutoUpdateStatus(AgentAutoUpdateStatus.ENABLED) - .withAutomationAccountArmId("goaqylkjztj") - .withAutomationAccountAuthenticationType(AutomationAccountAuthenticationType.SYSTEM_ASSIGNED_IDENTITY); - model = BinaryData.fromObject(model).toObject(A2AContainerMappingInput.class); - Assertions.assertEquals(AgentAutoUpdateStatus.ENABLED, model.agentAutoUpdateStatus()); - Assertions.assertEquals("goaqylkjztj", model.automationAccountArmId()); - Assertions.assertEquals(AutomationAccountAuthenticationType.SYSTEM_ASSIGNED_IDENTITY, - model.automationAccountAuthenticationType()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2ACrossClusterMigrationApplyRecoveryPointInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2ACrossClusterMigrationApplyRecoveryPointInputTests.java deleted file mode 100644 index 85b7b8eaf0d8..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2ACrossClusterMigrationApplyRecoveryPointInputTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.A2ACrossClusterMigrationApplyRecoveryPointInput; - -public final class A2ACrossClusterMigrationApplyRecoveryPointInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - A2ACrossClusterMigrationApplyRecoveryPointInput model - = BinaryData.fromString("{\"instanceType\":\"A2ACrossClusterMigration\"}") - .toObject(A2ACrossClusterMigrationApplyRecoveryPointInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - A2ACrossClusterMigrationApplyRecoveryPointInput model = new A2ACrossClusterMigrationApplyRecoveryPointInput(); - model = BinaryData.fromObject(model).toObject(A2ACrossClusterMigrationApplyRecoveryPointInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2ACrossClusterMigrationContainerCreationInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2ACrossClusterMigrationContainerCreationInputTests.java deleted file mode 100644 index 61eda4fc31b8..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2ACrossClusterMigrationContainerCreationInputTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.A2ACrossClusterMigrationContainerCreationInput; - -public final class A2ACrossClusterMigrationContainerCreationInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - A2ACrossClusterMigrationContainerCreationInput model - = BinaryData.fromString("{\"instanceType\":\"A2ACrossClusterMigration\"}") - .toObject(A2ACrossClusterMigrationContainerCreationInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - A2ACrossClusterMigrationContainerCreationInput model = new A2ACrossClusterMigrationContainerCreationInput(); - model = BinaryData.fromObject(model).toObject(A2ACrossClusterMigrationContainerCreationInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2ACrossClusterMigrationEnableProtectionInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2ACrossClusterMigrationEnableProtectionInputTests.java deleted file mode 100644 index ae6e2e9b4323..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2ACrossClusterMigrationEnableProtectionInputTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.A2ACrossClusterMigrationEnableProtectionInput; -import org.junit.jupiter.api.Assertions; - -public final class A2ACrossClusterMigrationEnableProtectionInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - A2ACrossClusterMigrationEnableProtectionInput model = BinaryData.fromString( - "{\"instanceType\":\"A2ACrossClusterMigration\",\"fabricObjectId\":\"lickduoi\",\"recoveryContainerId\":\"amt\"}") - .toObject(A2ACrossClusterMigrationEnableProtectionInput.class); - Assertions.assertEquals("lickduoi", model.fabricObjectId()); - Assertions.assertEquals("amt", model.recoveryContainerId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - A2ACrossClusterMigrationEnableProtectionInput model - = new A2ACrossClusterMigrationEnableProtectionInput().withFabricObjectId("lickduoi") - .withRecoveryContainerId("amt"); - model = BinaryData.fromObject(model).toObject(A2ACrossClusterMigrationEnableProtectionInput.class); - Assertions.assertEquals("lickduoi", model.fabricObjectId()); - Assertions.assertEquals("amt", model.recoveryContainerId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2ACrossClusterMigrationPolicyCreationInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2ACrossClusterMigrationPolicyCreationInputTests.java deleted file mode 100644 index d7f5cb0a0dfa..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2ACrossClusterMigrationPolicyCreationInputTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.A2ACrossClusterMigrationPolicyCreationInput; - -public final class A2ACrossClusterMigrationPolicyCreationInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - A2ACrossClusterMigrationPolicyCreationInput model - = BinaryData.fromString("{\"instanceType\":\"A2ACrossClusterMigration\"}") - .toObject(A2ACrossClusterMigrationPolicyCreationInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - A2ACrossClusterMigrationPolicyCreationInput model = new A2ACrossClusterMigrationPolicyCreationInput(); - model = BinaryData.fromObject(model).toObject(A2ACrossClusterMigrationPolicyCreationInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2ACrossClusterMigrationReplicationDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2ACrossClusterMigrationReplicationDetailsTests.java deleted file mode 100644 index 1049ae70b9b7..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2ACrossClusterMigrationReplicationDetailsTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.A2ACrossClusterMigrationReplicationDetails; -import org.junit.jupiter.api.Assertions; - -public final class A2ACrossClusterMigrationReplicationDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - A2ACrossClusterMigrationReplicationDetails model = BinaryData.fromString( - "{\"instanceType\":\"A2ACrossClusterMigration\",\"fabricObjectId\":\"sknxrwzawnvsbcf\",\"primaryFabricLocation\":\"agxnvhycvdimw\",\"osType\":\"regzgyufutrwpwer\",\"vmProtectionState\":\"kzkdhmeott\",\"vmProtectionStateDescription\":\"jyosxwwh\",\"lifecycleId\":\"jtfvpndpmiljpn\"}") - .toObject(A2ACrossClusterMigrationReplicationDetails.class); - Assertions.assertEquals("sknxrwzawnvsbcf", model.fabricObjectId()); - Assertions.assertEquals("agxnvhycvdimw", model.primaryFabricLocation()); - Assertions.assertEquals("regzgyufutrwpwer", model.osType()); - Assertions.assertEquals("kzkdhmeott", model.vmProtectionState()); - Assertions.assertEquals("jyosxwwh", model.vmProtectionStateDescription()); - Assertions.assertEquals("jtfvpndpmiljpn", model.lifecycleId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - A2ACrossClusterMigrationReplicationDetails model - = new A2ACrossClusterMigrationReplicationDetails().withFabricObjectId("sknxrwzawnvsbcf") - .withPrimaryFabricLocation("agxnvhycvdimw") - .withOsType("regzgyufutrwpwer") - .withVmProtectionState("kzkdhmeott") - .withVmProtectionStateDescription("jyosxwwh") - .withLifecycleId("jtfvpndpmiljpn"); - model = BinaryData.fromObject(model).toObject(A2ACrossClusterMigrationReplicationDetails.class); - Assertions.assertEquals("sknxrwzawnvsbcf", model.fabricObjectId()); - Assertions.assertEquals("agxnvhycvdimw", model.primaryFabricLocation()); - Assertions.assertEquals("regzgyufutrwpwer", model.osType()); - Assertions.assertEquals("kzkdhmeott", model.vmProtectionState()); - Assertions.assertEquals("jyosxwwh", model.vmProtectionStateDescription()); - Assertions.assertEquals("jtfvpndpmiljpn", model.lifecycleId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2AEventDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2AEventDetailsTests.java deleted file mode 100644 index 1f132d740cd0..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2AEventDetailsTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.A2AEventDetails; -import org.junit.jupiter.api.Assertions; - -public final class A2AEventDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - A2AEventDetails model = BinaryData.fromString( - "{\"instanceType\":\"A2A\",\"protectedItemName\":\"skndnelqkaadlknw\",\"fabricObjectId\":\"anniyopetxivcnr\",\"fabricName\":\"xnucaephblkwqp\",\"fabricLocation\":\"vbqsdt\",\"remoteFabricName\":\"bctvivuzqym\",\"remoteFabricLocation\":\"owog\"}") - .toObject(A2AEventDetails.class); - Assertions.assertEquals("skndnelqkaadlknw", model.protectedItemName()); - Assertions.assertEquals("anniyopetxivcnr", model.fabricObjectId()); - Assertions.assertEquals("xnucaephblkwqp", model.fabricName()); - Assertions.assertEquals("vbqsdt", model.fabricLocation()); - Assertions.assertEquals("bctvivuzqym", model.remoteFabricName()); - Assertions.assertEquals("owog", model.remoteFabricLocation()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - A2AEventDetails model = new A2AEventDetails().withProtectedItemName("skndnelqkaadlknw") - .withFabricObjectId("anniyopetxivcnr") - .withFabricName("xnucaephblkwqp") - .withFabricLocation("vbqsdt") - .withRemoteFabricName("bctvivuzqym") - .withRemoteFabricLocation("owog"); - model = BinaryData.fromObject(model).toObject(A2AEventDetails.class); - Assertions.assertEquals("skndnelqkaadlknw", model.protectedItemName()); - Assertions.assertEquals("anniyopetxivcnr", model.fabricObjectId()); - Assertions.assertEquals("xnucaephblkwqp", model.fabricName()); - Assertions.assertEquals("vbqsdt", model.fabricLocation()); - Assertions.assertEquals("bctvivuzqym", model.remoteFabricName()); - Assertions.assertEquals("owog", model.remoteFabricLocation()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2AExtendedLocationDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2AExtendedLocationDetailsTests.java deleted file mode 100644 index a0b4161b9e06..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2AExtendedLocationDetailsTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.A2AExtendedLocationDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ExtendedLocation; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ExtendedLocationType; -import org.junit.jupiter.api.Assertions; - -public final class A2AExtendedLocationDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - A2AExtendedLocationDetails model = BinaryData.fromString( - "{\"primaryExtendedLocation\":{\"name\":\"it\",\"type\":\"EdgeZone\"},\"recoveryExtendedLocation\":{\"name\":\"zvbrzcdbanfzndsc\",\"type\":\"EdgeZone\"}}") - .toObject(A2AExtendedLocationDetails.class); - Assertions.assertEquals("it", model.primaryExtendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, model.primaryExtendedLocation().type()); - Assertions.assertEquals("zvbrzcdbanfzndsc", model.recoveryExtendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, model.recoveryExtendedLocation().type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - A2AExtendedLocationDetails model = new A2AExtendedLocationDetails() - .withPrimaryExtendedLocation(new ExtendedLocation().withName("it").withType(ExtendedLocationType.EDGE_ZONE)) - .withRecoveryExtendedLocation( - new ExtendedLocation().withName("zvbrzcdbanfzndsc").withType(ExtendedLocationType.EDGE_ZONE)); - model = BinaryData.fromObject(model).toObject(A2AExtendedLocationDetails.class); - Assertions.assertEquals("it", model.primaryExtendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, model.primaryExtendedLocation().type()); - Assertions.assertEquals("zvbrzcdbanfzndsc", model.recoveryExtendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, model.recoveryExtendedLocation().type()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2AFabricSpecificLocationDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2AFabricSpecificLocationDetailsTests.java deleted file mode 100644 index c9c70a75225a..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2AFabricSpecificLocationDetailsTests.java +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.A2AFabricSpecificLocationDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ExtendedLocation; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ExtendedLocationType; -import org.junit.jupiter.api.Assertions; - -public final class A2AFabricSpecificLocationDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - A2AFabricSpecificLocationDetails model = BinaryData.fromString( - "{\"initialPrimaryZone\":\"eatkdbmwnrdj\",\"initialRecoveryZone\":\"bqbnaomhjrmkuh\",\"initialPrimaryExtendedLocation\":{\"name\":\"xljalfihc\",\"type\":\"EdgeZone\"},\"initialRecoveryExtendedLocation\":{\"name\":\"bc\",\"type\":\"EdgeZone\"},\"initialPrimaryFabricLocation\":\"de\",\"initialRecoveryFabricLocation\":\"qcwgaxfgvaknokz\",\"primaryZone\":\"jzrltixldzy\",\"recoveryZone\":\"ytpqsixymmpujiv\",\"primaryExtendedLocation\":{\"name\":\"lkjuvsmbmslzoyov\",\"type\":\"EdgeZone\"},\"recoveryExtendedLocation\":{\"name\":\"bpqvybefg\",\"type\":\"EdgeZone\"},\"primaryFabricLocation\":\"nokcv\",\"recoveryFabricLocation\":\"ubseskvcuartr\"}") - .toObject(A2AFabricSpecificLocationDetails.class); - Assertions.assertEquals("eatkdbmwnrdj", model.initialPrimaryZone()); - Assertions.assertEquals("bqbnaomhjrmkuh", model.initialRecoveryZone()); - Assertions.assertEquals("xljalfihc", model.initialPrimaryExtendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, model.initialPrimaryExtendedLocation().type()); - Assertions.assertEquals("bc", model.initialRecoveryExtendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, model.initialRecoveryExtendedLocation().type()); - Assertions.assertEquals("de", model.initialPrimaryFabricLocation()); - Assertions.assertEquals("qcwgaxfgvaknokz", model.initialRecoveryFabricLocation()); - Assertions.assertEquals("jzrltixldzy", model.primaryZone()); - Assertions.assertEquals("ytpqsixymmpujiv", model.recoveryZone()); - Assertions.assertEquals("lkjuvsmbmslzoyov", model.primaryExtendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, model.primaryExtendedLocation().type()); - Assertions.assertEquals("bpqvybefg", model.recoveryExtendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, model.recoveryExtendedLocation().type()); - Assertions.assertEquals("nokcv", model.primaryFabricLocation()); - Assertions.assertEquals("ubseskvcuartr", model.recoveryFabricLocation()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - A2AFabricSpecificLocationDetails model - = new A2AFabricSpecificLocationDetails().withInitialPrimaryZone("eatkdbmwnrdj") - .withInitialRecoveryZone("bqbnaomhjrmkuh") - .withInitialPrimaryExtendedLocation( - new ExtendedLocation().withName("xljalfihc").withType(ExtendedLocationType.EDGE_ZONE)) - .withInitialRecoveryExtendedLocation( - new ExtendedLocation().withName("bc").withType(ExtendedLocationType.EDGE_ZONE)) - .withInitialPrimaryFabricLocation("de") - .withInitialRecoveryFabricLocation("qcwgaxfgvaknokz") - .withPrimaryZone("jzrltixldzy") - .withRecoveryZone("ytpqsixymmpujiv") - .withPrimaryExtendedLocation( - new ExtendedLocation().withName("lkjuvsmbmslzoyov").withType(ExtendedLocationType.EDGE_ZONE)) - .withRecoveryExtendedLocation( - new ExtendedLocation().withName("bpqvybefg").withType(ExtendedLocationType.EDGE_ZONE)) - .withPrimaryFabricLocation("nokcv") - .withRecoveryFabricLocation("ubseskvcuartr"); - model = BinaryData.fromObject(model).toObject(A2AFabricSpecificLocationDetails.class); - Assertions.assertEquals("eatkdbmwnrdj", model.initialPrimaryZone()); - Assertions.assertEquals("bqbnaomhjrmkuh", model.initialRecoveryZone()); - Assertions.assertEquals("xljalfihc", model.initialPrimaryExtendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, model.initialPrimaryExtendedLocation().type()); - Assertions.assertEquals("bc", model.initialRecoveryExtendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, model.initialRecoveryExtendedLocation().type()); - Assertions.assertEquals("de", model.initialPrimaryFabricLocation()); - Assertions.assertEquals("qcwgaxfgvaknokz", model.initialRecoveryFabricLocation()); - Assertions.assertEquals("jzrltixldzy", model.primaryZone()); - Assertions.assertEquals("ytpqsixymmpujiv", model.recoveryZone()); - Assertions.assertEquals("lkjuvsmbmslzoyov", model.primaryExtendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, model.primaryExtendedLocation().type()); - Assertions.assertEquals("bpqvybefg", model.recoveryExtendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, model.recoveryExtendedLocation().type()); - Assertions.assertEquals("nokcv", model.primaryFabricLocation()); - Assertions.assertEquals("ubseskvcuartr", model.recoveryFabricLocation()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2APolicyCreationInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2APolicyCreationInputTests.java deleted file mode 100644 index d54d7f254449..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2APolicyCreationInputTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.A2APolicyCreationInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.SetMultiVmSyncStatus; -import org.junit.jupiter.api.Assertions; - -public final class A2APolicyCreationInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - A2APolicyCreationInput model = BinaryData.fromString( - "{\"instanceType\":\"A2A\",\"recoveryPointHistory\":723936709,\"crashConsistentFrequencyInMinutes\":1450165650,\"appConsistentFrequencyInMinutes\":1593194036,\"multiVmSyncStatus\":\"Disable\"}") - .toObject(A2APolicyCreationInput.class); - Assertions.assertEquals(723936709, model.recoveryPointHistory()); - Assertions.assertEquals(1450165650, model.crashConsistentFrequencyInMinutes()); - Assertions.assertEquals(1593194036, model.appConsistentFrequencyInMinutes()); - Assertions.assertEquals(SetMultiVmSyncStatus.DISABLE, model.multiVmSyncStatus()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - A2APolicyCreationInput model = new A2APolicyCreationInput().withRecoveryPointHistory(723936709) - .withCrashConsistentFrequencyInMinutes(1450165650) - .withAppConsistentFrequencyInMinutes(1593194036) - .withMultiVmSyncStatus(SetMultiVmSyncStatus.DISABLE); - model = BinaryData.fromObject(model).toObject(A2APolicyCreationInput.class); - Assertions.assertEquals(723936709, model.recoveryPointHistory()); - Assertions.assertEquals(1450165650, model.crashConsistentFrequencyInMinutes()); - Assertions.assertEquals(1593194036, model.appConsistentFrequencyInMinutes()); - Assertions.assertEquals(SetMultiVmSyncStatus.DISABLE, model.multiVmSyncStatus()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2APolicyDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2APolicyDetailsTests.java deleted file mode 100644 index 0eb209510a1b..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2APolicyDetailsTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.A2APolicyDetails; -import org.junit.jupiter.api.Assertions; - -public final class A2APolicyDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - A2APolicyDetails model = BinaryData.fromString( - "{\"instanceType\":\"A2A\",\"recoveryPointThresholdInMinutes\":1604436828,\"recoveryPointHistory\":1284284541,\"appConsistentFrequencyInMinutes\":409182858,\"multiVmSyncStatus\":\"qi\",\"crashConsistentFrequencyInMinutes\":1105579119}") - .toObject(A2APolicyDetails.class); - Assertions.assertEquals(1604436828, model.recoveryPointThresholdInMinutes()); - Assertions.assertEquals(1284284541, model.recoveryPointHistory()); - Assertions.assertEquals(409182858, model.appConsistentFrequencyInMinutes()); - Assertions.assertEquals("qi", model.multiVmSyncStatus()); - Assertions.assertEquals(1105579119, model.crashConsistentFrequencyInMinutes()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - A2APolicyDetails model = new A2APolicyDetails().withRecoveryPointThresholdInMinutes(1604436828) - .withRecoveryPointHistory(1284284541) - .withAppConsistentFrequencyInMinutes(409182858) - .withMultiVmSyncStatus("qi") - .withCrashConsistentFrequencyInMinutes(1105579119); - model = BinaryData.fromObject(model).toObject(A2APolicyDetails.class); - Assertions.assertEquals(1604436828, model.recoveryPointThresholdInMinutes()); - Assertions.assertEquals(1284284541, model.recoveryPointHistory()); - Assertions.assertEquals(409182858, model.appConsistentFrequencyInMinutes()); - Assertions.assertEquals("qi", model.multiVmSyncStatus()); - Assertions.assertEquals(1105579119, model.crashConsistentFrequencyInMinutes()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2AProtectionContainerMappingDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2AProtectionContainerMappingDetailsTests.java deleted file mode 100644 index 25574192bd10..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2AProtectionContainerMappingDetailsTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.A2AProtectionContainerMappingDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.AgentAutoUpdateStatus; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.AutomationAccountAuthenticationType; -import org.junit.jupiter.api.Assertions; - -public final class A2AProtectionContainerMappingDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - A2AProtectionContainerMappingDetails model = BinaryData.fromString( - "{\"instanceType\":\"A2A\",\"agentAutoUpdateStatus\":\"Enabled\",\"automationAccountArmId\":\"xawoijpodtblxp\",\"automationAccountAuthenticationType\":\"SystemAssignedIdentity\",\"scheduleName\":\"djodqhy\",\"jobScheduleName\":\"ncn\"}") - .toObject(A2AProtectionContainerMappingDetails.class); - Assertions.assertEquals(AgentAutoUpdateStatus.ENABLED, model.agentAutoUpdateStatus()); - Assertions.assertEquals("xawoijpodtblxp", model.automationAccountArmId()); - Assertions.assertEquals(AutomationAccountAuthenticationType.SYSTEM_ASSIGNED_IDENTITY, - model.automationAccountAuthenticationType()); - Assertions.assertEquals("djodqhy", model.scheduleName()); - Assertions.assertEquals("ncn", model.jobScheduleName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - A2AProtectionContainerMappingDetails model - = new A2AProtectionContainerMappingDetails().withAgentAutoUpdateStatus(AgentAutoUpdateStatus.ENABLED) - .withAutomationAccountArmId("xawoijpodtblxp") - .withAutomationAccountAuthenticationType(AutomationAccountAuthenticationType.SYSTEM_ASSIGNED_IDENTITY) - .withScheduleName("djodqhy") - .withJobScheduleName("ncn"); - model = BinaryData.fromObject(model).toObject(A2AProtectionContainerMappingDetails.class); - Assertions.assertEquals(AgentAutoUpdateStatus.ENABLED, model.agentAutoUpdateStatus()); - Assertions.assertEquals("xawoijpodtblxp", model.automationAccountArmId()); - Assertions.assertEquals(AutomationAccountAuthenticationType.SYSTEM_ASSIGNED_IDENTITY, - model.automationAccountAuthenticationType()); - Assertions.assertEquals("djodqhy", model.scheduleName()); - Assertions.assertEquals("ncn", model.jobScheduleName()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2AProtectionIntentDiskInputDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2AProtectionIntentDiskInputDetailsTests.java deleted file mode 100644 index d31be3ce3c66..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2AProtectionIntentDiskInputDetailsTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.A2AProtectionIntentDiskInputDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.StorageAccountCustomDetails; -import org.junit.jupiter.api.Assertions; - -public final class A2AProtectionIntentDiskInputDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - A2AProtectionIntentDiskInputDetails model = BinaryData.fromString( - "{\"diskUri\":\"atbwbqam\",\"recoveryAzureStorageAccountCustomInput\":{\"resourceType\":\"StorageAccountCustomDetails\"},\"primaryStagingStorageAccountCustomInput\":{\"resourceType\":\"StorageAccountCustomDetails\"}}") - .toObject(A2AProtectionIntentDiskInputDetails.class); - Assertions.assertEquals("atbwbqam", model.diskUri()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - A2AProtectionIntentDiskInputDetails model = new A2AProtectionIntentDiskInputDetails().withDiskUri("atbwbqam") - .withRecoveryAzureStorageAccountCustomInput(new StorageAccountCustomDetails()) - .withPrimaryStagingStorageAccountCustomInput(new StorageAccountCustomDetails()); - model = BinaryData.fromObject(model).toObject(A2AProtectionIntentDiskInputDetails.class); - Assertions.assertEquals("atbwbqam", model.diskUri()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2ARecoveryPointDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2ARecoveryPointDetailsTests.java deleted file mode 100644 index 3d6cb494fb33..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2ARecoveryPointDetailsTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.A2ARecoveryPointDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPointSyncType; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class A2ARecoveryPointDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - A2ARecoveryPointDetails model = BinaryData.fromString( - "{\"instanceType\":\"A2A\",\"recoveryPointSyncType\":\"PerVmRecoveryPoint\",\"disks\":[\"llizhce\",\"moqodka\",\"ppyi\"]}") - .toObject(A2ARecoveryPointDetails.class); - Assertions.assertEquals(RecoveryPointSyncType.PER_VM_RECOVERY_POINT, model.recoveryPointSyncType()); - Assertions.assertEquals("llizhce", model.disks().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - A2ARecoveryPointDetails model - = new A2ARecoveryPointDetails().withRecoveryPointSyncType(RecoveryPointSyncType.PER_VM_RECOVERY_POINT) - .withDisks(Arrays.asList("llizhce", "moqodka", "ppyi")); - model = BinaryData.fromObject(model).toObject(A2ARecoveryPointDetails.class); - Assertions.assertEquals(RecoveryPointSyncType.PER_VM_RECOVERY_POINT, model.recoveryPointSyncType()); - Assertions.assertEquals("llizhce", model.disks().get(0)); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2ARemoveDisksInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2ARemoveDisksInputTests.java deleted file mode 100644 index 3a1a126bdaf3..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2ARemoveDisksInputTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.A2ARemoveDisksInput; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class A2ARemoveDisksInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - A2ARemoveDisksInput model = BinaryData.fromString( - "{\"instanceType\":\"A2A\",\"vmDisksUris\":[\"qladywrxwhydtlu\",\"vadswzs\",\"uyem\",\"owuowh\"],\"vmManagedDisksIds\":[\"nwyrmouv\"]}") - .toObject(A2ARemoveDisksInput.class); - Assertions.assertEquals("qladywrxwhydtlu", model.vmDisksUris().get(0)); - Assertions.assertEquals("nwyrmouv", model.vmManagedDisksIds().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - A2ARemoveDisksInput model - = new A2ARemoveDisksInput().withVmDisksUris(Arrays.asList("qladywrxwhydtlu", "vadswzs", "uyem", "owuowh")) - .withVmManagedDisksIds(Arrays.asList("nwyrmouv")); - model = BinaryData.fromObject(model).toObject(A2ARemoveDisksInput.class); - Assertions.assertEquals("qladywrxwhydtlu", model.vmDisksUris().get(0)); - Assertions.assertEquals("nwyrmouv", model.vmManagedDisksIds().get(0)); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2AReprotectInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2AReprotectInputTests.java deleted file mode 100644 index 32dfdebebe3f..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2AReprotectInputTests.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.A2AReprotectInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.A2AVmDiskInputDetails; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class A2AReprotectInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - A2AReprotectInput model = BinaryData.fromString( - "{\"instanceType\":\"A2A\",\"recoveryContainerId\":\"uhvajmailfemjjza\",\"vmDisks\":[{\"diskUri\":\"jiqul\",\"recoveryAzureStorageAccountId\":\"qx\",\"primaryStagingAzureStorageAccountId\":\"dmvr\"},{\"diskUri\":\"cm\",\"recoveryAzureStorageAccountId\":\"erndbrnyeofltfnn\",\"primaryStagingAzureStorageAccountId\":\"rkadjfynnfmuiiir\"},{\"diskUri\":\"pfoh\",\"recoveryAzureStorageAccountId\":\"kfkxbbcbrwjiut\",\"primaryStagingAzureStorageAccountId\":\"njizb\"}],\"recoveryResourceGroupId\":\"woiymrvz\",\"recoveryCloudServiceId\":\"uyrsrziuctix\",\"recoveryAvailabilitySetId\":\"d\",\"policyId\":\"ifrevk\"}") - .toObject(A2AReprotectInput.class); - Assertions.assertEquals("uhvajmailfemjjza", model.recoveryContainerId()); - Assertions.assertEquals("jiqul", model.vmDisks().get(0).diskUri()); - Assertions.assertEquals("qx", model.vmDisks().get(0).recoveryAzureStorageAccountId()); - Assertions.assertEquals("dmvr", model.vmDisks().get(0).primaryStagingAzureStorageAccountId()); - Assertions.assertEquals("woiymrvz", model.recoveryResourceGroupId()); - Assertions.assertEquals("uyrsrziuctix", model.recoveryCloudServiceId()); - Assertions.assertEquals("d", model.recoveryAvailabilitySetId()); - Assertions.assertEquals("ifrevk", model.policyId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - A2AReprotectInput model = new A2AReprotectInput().withRecoveryContainerId("uhvajmailfemjjza") - .withVmDisks(Arrays.asList( - new A2AVmDiskInputDetails().withDiskUri("jiqul") - .withRecoveryAzureStorageAccountId("qx") - .withPrimaryStagingAzureStorageAccountId("dmvr"), - new A2AVmDiskInputDetails().withDiskUri("cm") - .withRecoveryAzureStorageAccountId("erndbrnyeofltfnn") - .withPrimaryStagingAzureStorageAccountId("rkadjfynnfmuiiir"), - new A2AVmDiskInputDetails().withDiskUri("pfoh") - .withRecoveryAzureStorageAccountId("kfkxbbcbrwjiut") - .withPrimaryStagingAzureStorageAccountId("njizb"))) - .withRecoveryResourceGroupId("woiymrvz") - .withRecoveryCloudServiceId("uyrsrziuctix") - .withRecoveryAvailabilitySetId("d") - .withPolicyId("ifrevk"); - model = BinaryData.fromObject(model).toObject(A2AReprotectInput.class); - Assertions.assertEquals("uhvajmailfemjjza", model.recoveryContainerId()); - Assertions.assertEquals("jiqul", model.vmDisks().get(0).diskUri()); - Assertions.assertEquals("qx", model.vmDisks().get(0).recoveryAzureStorageAccountId()); - Assertions.assertEquals("dmvr", model.vmDisks().get(0).primaryStagingAzureStorageAccountId()); - Assertions.assertEquals("woiymrvz", model.recoveryResourceGroupId()); - Assertions.assertEquals("uyrsrziuctix", model.recoveryCloudServiceId()); - Assertions.assertEquals("d", model.recoveryAvailabilitySetId()); - Assertions.assertEquals("ifrevk", model.policyId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2ATestFailoverInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2ATestFailoverInputTests.java deleted file mode 100644 index 4606082a4f19..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2ATestFailoverInputTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.A2ATestFailoverInput; -import org.junit.jupiter.api.Assertions; - -public final class A2ATestFailoverInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - A2ATestFailoverInput model = BinaryData.fromString( - "{\"instanceType\":\"A2A\",\"recoveryPointId\":\"omeikjcl\",\"cloudServiceCreationOption\":\"acnmwpfsuqtaaz\"}") - .toObject(A2ATestFailoverInput.class); - Assertions.assertEquals("omeikjcl", model.recoveryPointId()); - Assertions.assertEquals("acnmwpfsuqtaaz", model.cloudServiceCreationOption()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - A2ATestFailoverInput model = new A2ATestFailoverInput().withRecoveryPointId("omeikjcl") - .withCloudServiceCreationOption("acnmwpfsuqtaaz"); - model = BinaryData.fromObject(model).toObject(A2ATestFailoverInput.class); - Assertions.assertEquals("omeikjcl", model.recoveryPointId()); - Assertions.assertEquals("acnmwpfsuqtaaz", model.cloudServiceCreationOption()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2AUnplannedFailoverInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2AUnplannedFailoverInputTests.java deleted file mode 100644 index 2584ed95cea1..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2AUnplannedFailoverInputTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.A2AUnplannedFailoverInput; -import org.junit.jupiter.api.Assertions; - -public final class A2AUnplannedFailoverInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - A2AUnplannedFailoverInput model = BinaryData.fromString( - "{\"instanceType\":\"A2A\",\"recoveryPointId\":\"bxyxoy\",\"cloudServiceCreationOption\":\"uqqiqezxlhd\"}") - .toObject(A2AUnplannedFailoverInput.class); - Assertions.assertEquals("bxyxoy", model.recoveryPointId()); - Assertions.assertEquals("uqqiqezxlhd", model.cloudServiceCreationOption()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - A2AUnplannedFailoverInput model = new A2AUnplannedFailoverInput().withRecoveryPointId("bxyxoy") - .withCloudServiceCreationOption("uqqiqezxlhd"); - model = BinaryData.fromObject(model).toObject(A2AUnplannedFailoverInput.class); - Assertions.assertEquals("bxyxoy", model.recoveryPointId()); - Assertions.assertEquals("uqqiqezxlhd", model.cloudServiceCreationOption()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2AUnprotectedDiskDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2AUnprotectedDiskDetailsTests.java deleted file mode 100644 index ab31a350a10b..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2AUnprotectedDiskDetailsTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.A2AUnprotectedDiskDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.AutoProtectionOfDataDisk; -import org.junit.jupiter.api.Assertions; - -public final class A2AUnprotectedDiskDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - A2AUnprotectedDiskDetails model - = BinaryData.fromString("{\"diskLunId\":86261319,\"diskAutoProtectionStatus\":\"Disabled\"}") - .toObject(A2AUnprotectedDiskDetails.class); - Assertions.assertEquals(86261319, model.diskLunId()); - Assertions.assertEquals(AutoProtectionOfDataDisk.DISABLED, model.diskAutoProtectionStatus()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - A2AUnprotectedDiskDetails model = new A2AUnprotectedDiskDetails().withDiskLunId(86261319) - .withDiskAutoProtectionStatus(AutoProtectionOfDataDisk.DISABLED); - model = BinaryData.fromObject(model).toObject(A2AUnprotectedDiskDetails.class); - Assertions.assertEquals(86261319, model.diskLunId()); - Assertions.assertEquals(AutoProtectionOfDataDisk.DISABLED, model.diskAutoProtectionStatus()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2AUpdateContainerMappingInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2AUpdateContainerMappingInputTests.java deleted file mode 100644 index d71d963fce52..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2AUpdateContainerMappingInputTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.A2AUpdateContainerMappingInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.AgentAutoUpdateStatus; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.AutomationAccountAuthenticationType; -import org.junit.jupiter.api.Assertions; - -public final class A2AUpdateContainerMappingInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - A2AUpdateContainerMappingInput model = BinaryData.fromString( - "{\"instanceType\":\"A2A\",\"agentAutoUpdateStatus\":\"Enabled\",\"automationAccountArmId\":\"cadwvpsozjii\",\"automationAccountAuthenticationType\":\"RunAsAccount\"}") - .toObject(A2AUpdateContainerMappingInput.class); - Assertions.assertEquals(AgentAutoUpdateStatus.ENABLED, model.agentAutoUpdateStatus()); - Assertions.assertEquals("cadwvpsozjii", model.automationAccountArmId()); - Assertions.assertEquals(AutomationAccountAuthenticationType.RUN_AS_ACCOUNT, - model.automationAccountAuthenticationType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - A2AUpdateContainerMappingInput model - = new A2AUpdateContainerMappingInput().withAgentAutoUpdateStatus(AgentAutoUpdateStatus.ENABLED) - .withAutomationAccountArmId("cadwvpsozjii") - .withAutomationAccountAuthenticationType(AutomationAccountAuthenticationType.RUN_AS_ACCOUNT); - model = BinaryData.fromObject(model).toObject(A2AUpdateContainerMappingInput.class); - Assertions.assertEquals(AgentAutoUpdateStatus.ENABLED, model.agentAutoUpdateStatus()); - Assertions.assertEquals("cadwvpsozjii", model.automationAccountArmId()); - Assertions.assertEquals(AutomationAccountAuthenticationType.RUN_AS_ACCOUNT, - model.automationAccountAuthenticationType()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2AVmDiskInputDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2AVmDiskInputDetailsTests.java deleted file mode 100644 index 56a47212ce2a..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2AVmDiskInputDetailsTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.A2AVmDiskInputDetails; -import org.junit.jupiter.api.Assertions; - -public final class A2AVmDiskInputDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - A2AVmDiskInputDetails model = BinaryData.fromString( - "{\"diskUri\":\"qdx\",\"recoveryAzureStorageAccountId\":\"urnpnuhzafccnuh\",\"primaryStagingAzureStorageAccountId\":\"i\"}") - .toObject(A2AVmDiskInputDetails.class); - Assertions.assertEquals("qdx", model.diskUri()); - Assertions.assertEquals("urnpnuhzafccnuh", model.recoveryAzureStorageAccountId()); - Assertions.assertEquals("i", model.primaryStagingAzureStorageAccountId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - A2AVmDiskInputDetails model = new A2AVmDiskInputDetails().withDiskUri("qdx") - .withRecoveryAzureStorageAccountId("urnpnuhzafccnuh") - .withPrimaryStagingAzureStorageAccountId("i"); - model = BinaryData.fromObject(model).toObject(A2AVmDiskInputDetails.class); - Assertions.assertEquals("qdx", model.diskUri()); - Assertions.assertEquals("urnpnuhzafccnuh", model.recoveryAzureStorageAccountId()); - Assertions.assertEquals("i", model.primaryStagingAzureStorageAccountId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2AZoneDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2AZoneDetailsTests.java deleted file mode 100644 index 423243099183..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/A2AZoneDetailsTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.A2AZoneDetails; -import org.junit.jupiter.api.Assertions; - -public final class A2AZoneDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - A2AZoneDetails model - = BinaryData.fromString("{\"source\":\"rl\",\"target\":\"zji\"}").toObject(A2AZoneDetails.class); - Assertions.assertEquals("rl", model.source()); - Assertions.assertEquals("zji", model.target()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - A2AZoneDetails model = new A2AZoneDetails().withSource("rl").withTarget("zji"); - model = BinaryData.fromObject(model).toObject(A2AZoneDetails.class); - Assertions.assertEquals("rl", model.source()); - Assertions.assertEquals("zji", model.target()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AddDisksInputPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AddDisksInputPropertiesTests.java deleted file mode 100644 index 4b62203adbd6..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AddDisksInputPropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.AddDisksInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.AddDisksProviderSpecificInput; - -public final class AddDisksInputPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AddDisksInputProperties model = BinaryData - .fromString("{\"providerSpecificDetails\":{\"instanceType\":\"AddDisksProviderSpecificInput\"}}") - .toObject(AddDisksInputProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AddDisksInputProperties model - = new AddDisksInputProperties().withProviderSpecificDetails(new AddDisksProviderSpecificInput()); - model = BinaryData.fromObject(model).toObject(AddDisksInputProperties.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AddDisksInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AddDisksInputTests.java deleted file mode 100644 index 33ba8700e5c2..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AddDisksInputTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.AddDisksInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.AddDisksInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.AddDisksProviderSpecificInput; - -public final class AddDisksInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AddDisksInput model = BinaryData - .fromString( - "{\"properties\":{\"providerSpecificDetails\":{\"instanceType\":\"AddDisksProviderSpecificInput\"}}}") - .toObject(AddDisksInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AddDisksInput model = new AddDisksInput().withProperties( - new AddDisksInputProperties().withProviderSpecificDetails(new AddDisksProviderSpecificInput())); - model = BinaryData.fromObject(model).toObject(AddDisksInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AddDisksProviderSpecificInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AddDisksProviderSpecificInputTests.java deleted file mode 100644 index 55f47fadcdbe..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AddDisksProviderSpecificInputTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.AddDisksProviderSpecificInput; - -public final class AddDisksProviderSpecificInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AddDisksProviderSpecificInput model - = BinaryData.fromString("{\"instanceType\":\"AddDisksProviderSpecificInput\"}") - .toObject(AddDisksProviderSpecificInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AddDisksProviderSpecificInput model = new AddDisksProviderSpecificInput(); - model = BinaryData.fromObject(model).toObject(AddDisksProviderSpecificInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AddRecoveryServicesProviderInputPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AddRecoveryServicesProviderInputPropertiesTests.java deleted file mode 100644 index a37e951e3b65..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AddRecoveryServicesProviderInputPropertiesTests.java +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.AddRecoveryServicesProviderInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.IdentityProviderInput; -import org.junit.jupiter.api.Assertions; - -public final class AddRecoveryServicesProviderInputPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AddRecoveryServicesProviderInputProperties model = BinaryData.fromString( - "{\"machineName\":\"ysownbtgkbug\",\"machineId\":\"qctojcmisof\",\"biosId\":\"ypefojyqdhcupl\",\"authenticationIdentityInput\":{\"tenantId\":\"plcwkhi\",\"applicationId\":\"ihlhzdsqtzb\",\"objectId\":\"rgnowcjhfgm\",\"audience\":\"ecactx\",\"aadAuthority\":\"wotey\"},\"resourceAccessIdentityInput\":{\"tenantId\":\"wcluqovekqvgq\",\"applicationId\":\"uwifzmpjwyiv\",\"objectId\":\"ikf\",\"audience\":\"cvhrfsp\",\"aadAuthority\":\"uagrttikteusqc\"},\"dataPlaneAuthenticationIdentityInput\":{\"tenantId\":\"vyklxuby\",\"applicationId\":\"affmmfblcqc\",\"objectId\":\"ubgq\",\"audience\":\"brta\",\"aadAuthority\":\"metttwgd\"}}") - .toObject(AddRecoveryServicesProviderInputProperties.class); - Assertions.assertEquals("ysownbtgkbug", model.machineName()); - Assertions.assertEquals("qctojcmisof", model.machineId()); - Assertions.assertEquals("ypefojyqdhcupl", model.biosId()); - Assertions.assertEquals("plcwkhi", model.authenticationIdentityInput().tenantId()); - Assertions.assertEquals("ihlhzdsqtzb", model.authenticationIdentityInput().applicationId()); - Assertions.assertEquals("rgnowcjhfgm", model.authenticationIdentityInput().objectId()); - Assertions.assertEquals("ecactx", model.authenticationIdentityInput().audience()); - Assertions.assertEquals("wotey", model.authenticationIdentityInput().aadAuthority()); - Assertions.assertEquals("wcluqovekqvgq", model.resourceAccessIdentityInput().tenantId()); - Assertions.assertEquals("uwifzmpjwyiv", model.resourceAccessIdentityInput().applicationId()); - Assertions.assertEquals("ikf", model.resourceAccessIdentityInput().objectId()); - Assertions.assertEquals("cvhrfsp", model.resourceAccessIdentityInput().audience()); - Assertions.assertEquals("uagrttikteusqc", model.resourceAccessIdentityInput().aadAuthority()); - Assertions.assertEquals("vyklxuby", model.dataPlaneAuthenticationIdentityInput().tenantId()); - Assertions.assertEquals("affmmfblcqc", model.dataPlaneAuthenticationIdentityInput().applicationId()); - Assertions.assertEquals("ubgq", model.dataPlaneAuthenticationIdentityInput().objectId()); - Assertions.assertEquals("brta", model.dataPlaneAuthenticationIdentityInput().audience()); - Assertions.assertEquals("metttwgd", model.dataPlaneAuthenticationIdentityInput().aadAuthority()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AddRecoveryServicesProviderInputProperties model - = new AddRecoveryServicesProviderInputProperties().withMachineName("ysownbtgkbug") - .withMachineId("qctojcmisof") - .withBiosId("ypefojyqdhcupl") - .withAuthenticationIdentityInput(new IdentityProviderInput().withTenantId("plcwkhi") - .withApplicationId("ihlhzdsqtzb") - .withObjectId("rgnowcjhfgm") - .withAudience("ecactx") - .withAadAuthority("wotey")) - .withResourceAccessIdentityInput(new IdentityProviderInput().withTenantId("wcluqovekqvgq") - .withApplicationId("uwifzmpjwyiv") - .withObjectId("ikf") - .withAudience("cvhrfsp") - .withAadAuthority("uagrttikteusqc")) - .withDataPlaneAuthenticationIdentityInput(new IdentityProviderInput().withTenantId("vyklxuby") - .withApplicationId("affmmfblcqc") - .withObjectId("ubgq") - .withAudience("brta") - .withAadAuthority("metttwgd")); - model = BinaryData.fromObject(model).toObject(AddRecoveryServicesProviderInputProperties.class); - Assertions.assertEquals("ysownbtgkbug", model.machineName()); - Assertions.assertEquals("qctojcmisof", model.machineId()); - Assertions.assertEquals("ypefojyqdhcupl", model.biosId()); - Assertions.assertEquals("plcwkhi", model.authenticationIdentityInput().tenantId()); - Assertions.assertEquals("ihlhzdsqtzb", model.authenticationIdentityInput().applicationId()); - Assertions.assertEquals("rgnowcjhfgm", model.authenticationIdentityInput().objectId()); - Assertions.assertEquals("ecactx", model.authenticationIdentityInput().audience()); - Assertions.assertEquals("wotey", model.authenticationIdentityInput().aadAuthority()); - Assertions.assertEquals("wcluqovekqvgq", model.resourceAccessIdentityInput().tenantId()); - Assertions.assertEquals("uwifzmpjwyiv", model.resourceAccessIdentityInput().applicationId()); - Assertions.assertEquals("ikf", model.resourceAccessIdentityInput().objectId()); - Assertions.assertEquals("cvhrfsp", model.resourceAccessIdentityInput().audience()); - Assertions.assertEquals("uagrttikteusqc", model.resourceAccessIdentityInput().aadAuthority()); - Assertions.assertEquals("vyklxuby", model.dataPlaneAuthenticationIdentityInput().tenantId()); - Assertions.assertEquals("affmmfblcqc", model.dataPlaneAuthenticationIdentityInput().applicationId()); - Assertions.assertEquals("ubgq", model.dataPlaneAuthenticationIdentityInput().objectId()); - Assertions.assertEquals("brta", model.dataPlaneAuthenticationIdentityInput().audience()); - Assertions.assertEquals("metttwgd", model.dataPlaneAuthenticationIdentityInput().aadAuthority()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AddRecoveryServicesProviderInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AddRecoveryServicesProviderInputTests.java deleted file mode 100644 index e22951bc70da..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AddRecoveryServicesProviderInputTests.java +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.AddRecoveryServicesProviderInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.AddRecoveryServicesProviderInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.IdentityProviderInput; -import org.junit.jupiter.api.Assertions; - -public final class AddRecoveryServicesProviderInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AddRecoveryServicesProviderInput model = BinaryData.fromString( - "{\"properties\":{\"machineName\":\"xg\",\"machineId\":\"oyxcdyuib\",\"biosId\":\"fdn\",\"authenticationIdentityInput\":{\"tenantId\":\"zydvfvf\",\"applicationId\":\"jnaeois\",\"objectId\":\"vhmgorffukis\",\"audience\":\"vwmzhwplefaxvxil\",\"aadAuthority\":\"btgn\"},\"resourceAccessIdentityInput\":{\"tenantId\":\"nzeyqxtjj\",\"applicationId\":\"zqlqhyc\",\"objectId\":\"vodggxdbee\",\"audience\":\"mieknlraria\",\"aadAuthority\":\"wiuagydwqf\"},\"dataPlaneAuthenticationIdentityInput\":{\"tenantId\":\"lyr\",\"applicationId\":\"giagtcojo\",\"objectId\":\"qwogfnzjvus\",\"audience\":\"zldmozuxy\",\"aadAuthority\":\"fsbtkad\"}}}") - .toObject(AddRecoveryServicesProviderInput.class); - Assertions.assertEquals("xg", model.properties().machineName()); - Assertions.assertEquals("oyxcdyuib", model.properties().machineId()); - Assertions.assertEquals("fdn", model.properties().biosId()); - Assertions.assertEquals("zydvfvf", model.properties().authenticationIdentityInput().tenantId()); - Assertions.assertEquals("jnaeois", model.properties().authenticationIdentityInput().applicationId()); - Assertions.assertEquals("vhmgorffukis", model.properties().authenticationIdentityInput().objectId()); - Assertions.assertEquals("vwmzhwplefaxvxil", model.properties().authenticationIdentityInput().audience()); - Assertions.assertEquals("btgn", model.properties().authenticationIdentityInput().aadAuthority()); - Assertions.assertEquals("nzeyqxtjj", model.properties().resourceAccessIdentityInput().tenantId()); - Assertions.assertEquals("zqlqhyc", model.properties().resourceAccessIdentityInput().applicationId()); - Assertions.assertEquals("vodggxdbee", model.properties().resourceAccessIdentityInput().objectId()); - Assertions.assertEquals("mieknlraria", model.properties().resourceAccessIdentityInput().audience()); - Assertions.assertEquals("wiuagydwqf", model.properties().resourceAccessIdentityInput().aadAuthority()); - Assertions.assertEquals("lyr", model.properties().dataPlaneAuthenticationIdentityInput().tenantId()); - Assertions.assertEquals("giagtcojo", model.properties().dataPlaneAuthenticationIdentityInput().applicationId()); - Assertions.assertEquals("qwogfnzjvus", model.properties().dataPlaneAuthenticationIdentityInput().objectId()); - Assertions.assertEquals("zldmozuxy", model.properties().dataPlaneAuthenticationIdentityInput().audience()); - Assertions.assertEquals("fsbtkad", model.properties().dataPlaneAuthenticationIdentityInput().aadAuthority()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AddRecoveryServicesProviderInput model = new AddRecoveryServicesProviderInput() - .withProperties(new AddRecoveryServicesProviderInputProperties().withMachineName("xg") - .withMachineId("oyxcdyuib") - .withBiosId("fdn") - .withAuthenticationIdentityInput(new IdentityProviderInput().withTenantId("zydvfvf") - .withApplicationId("jnaeois") - .withObjectId("vhmgorffukis") - .withAudience("vwmzhwplefaxvxil") - .withAadAuthority("btgn")) - .withResourceAccessIdentityInput(new IdentityProviderInput().withTenantId("nzeyqxtjj") - .withApplicationId("zqlqhyc") - .withObjectId("vodggxdbee") - .withAudience("mieknlraria") - .withAadAuthority("wiuagydwqf")) - .withDataPlaneAuthenticationIdentityInput(new IdentityProviderInput().withTenantId("lyr") - .withApplicationId("giagtcojo") - .withObjectId("qwogfnzjvus") - .withAudience("zldmozuxy") - .withAadAuthority("fsbtkad"))); - model = BinaryData.fromObject(model).toObject(AddRecoveryServicesProviderInput.class); - Assertions.assertEquals("xg", model.properties().machineName()); - Assertions.assertEquals("oyxcdyuib", model.properties().machineId()); - Assertions.assertEquals("fdn", model.properties().biosId()); - Assertions.assertEquals("zydvfvf", model.properties().authenticationIdentityInput().tenantId()); - Assertions.assertEquals("jnaeois", model.properties().authenticationIdentityInput().applicationId()); - Assertions.assertEquals("vhmgorffukis", model.properties().authenticationIdentityInput().objectId()); - Assertions.assertEquals("vwmzhwplefaxvxil", model.properties().authenticationIdentityInput().audience()); - Assertions.assertEquals("btgn", model.properties().authenticationIdentityInput().aadAuthority()); - Assertions.assertEquals("nzeyqxtjj", model.properties().resourceAccessIdentityInput().tenantId()); - Assertions.assertEquals("zqlqhyc", model.properties().resourceAccessIdentityInput().applicationId()); - Assertions.assertEquals("vodggxdbee", model.properties().resourceAccessIdentityInput().objectId()); - Assertions.assertEquals("mieknlraria", model.properties().resourceAccessIdentityInput().audience()); - Assertions.assertEquals("wiuagydwqf", model.properties().resourceAccessIdentityInput().aadAuthority()); - Assertions.assertEquals("lyr", model.properties().dataPlaneAuthenticationIdentityInput().tenantId()); - Assertions.assertEquals("giagtcojo", model.properties().dataPlaneAuthenticationIdentityInput().applicationId()); - Assertions.assertEquals("qwogfnzjvus", model.properties().dataPlaneAuthenticationIdentityInput().objectId()); - Assertions.assertEquals("zldmozuxy", model.properties().dataPlaneAuthenticationIdentityInput().audience()); - Assertions.assertEquals("fsbtkad", model.properties().dataPlaneAuthenticationIdentityInput().aadAuthority()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AddVCenterRequestPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AddVCenterRequestPropertiesTests.java deleted file mode 100644 index b291f5c98fec..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AddVCenterRequestPropertiesTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.AddVCenterRequestProperties; -import org.junit.jupiter.api.Assertions; - -public final class AddVCenterRequestPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AddVCenterRequestProperties model = BinaryData.fromString( - "{\"friendlyName\":\"dhzmmesckdlp\",\"ipAddress\":\"zrcxfailcfxwmdbo\",\"processServerId\":\"fgsftufqob\",\"port\":\"lnacgcc\",\"runAsAccountId\":\"nhxk\"}") - .toObject(AddVCenterRequestProperties.class); - Assertions.assertEquals("dhzmmesckdlp", model.friendlyName()); - Assertions.assertEquals("zrcxfailcfxwmdbo", model.ipAddress()); - Assertions.assertEquals("fgsftufqob", model.processServerId()); - Assertions.assertEquals("lnacgcc", model.port()); - Assertions.assertEquals("nhxk", model.runAsAccountId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AddVCenterRequestProperties model = new AddVCenterRequestProperties().withFriendlyName("dhzmmesckdlp") - .withIpAddress("zrcxfailcfxwmdbo") - .withProcessServerId("fgsftufqob") - .withPort("lnacgcc") - .withRunAsAccountId("nhxk"); - model = BinaryData.fromObject(model).toObject(AddVCenterRequestProperties.class); - Assertions.assertEquals("dhzmmesckdlp", model.friendlyName()); - Assertions.assertEquals("zrcxfailcfxwmdbo", model.ipAddress()); - Assertions.assertEquals("fgsftufqob", model.processServerId()); - Assertions.assertEquals("lnacgcc", model.port()); - Assertions.assertEquals("nhxk", model.runAsAccountId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AddVCenterRequestTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AddVCenterRequestTests.java deleted file mode 100644 index 107fc5190a55..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AddVCenterRequestTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.AddVCenterRequest; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.AddVCenterRequestProperties; -import org.junit.jupiter.api.Assertions; - -public final class AddVCenterRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AddVCenterRequest model = BinaryData.fromString( - "{\"properties\":{\"friendlyName\":\"awddjibab\",\"ipAddress\":\"ititvtzeexavoxt\",\"processServerId\":\"lecdmdqbw\",\"port\":\"pqtgsfjac\",\"runAsAccountId\":\"lhhxudbxvodhtnsi\"}}") - .toObject(AddVCenterRequest.class); - Assertions.assertEquals("awddjibab", model.properties().friendlyName()); - Assertions.assertEquals("ititvtzeexavoxt", model.properties().ipAddress()); - Assertions.assertEquals("lecdmdqbw", model.properties().processServerId()); - Assertions.assertEquals("pqtgsfjac", model.properties().port()); - Assertions.assertEquals("lhhxudbxvodhtnsi", model.properties().runAsAccountId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AddVCenterRequest model - = new AddVCenterRequest().withProperties(new AddVCenterRequestProperties().withFriendlyName("awddjibab") - .withIpAddress("ititvtzeexavoxt") - .withProcessServerId("lecdmdqbw") - .withPort("pqtgsfjac") - .withRunAsAccountId("lhhxudbxvodhtnsi")); - model = BinaryData.fromObject(model).toObject(AddVCenterRequest.class); - Assertions.assertEquals("awddjibab", model.properties().friendlyName()); - Assertions.assertEquals("ititvtzeexavoxt", model.properties().ipAddress()); - Assertions.assertEquals("lecdmdqbw", model.properties().processServerId()); - Assertions.assertEquals("pqtgsfjac", model.properties().port()); - Assertions.assertEquals("lhhxudbxvodhtnsi", model.properties().runAsAccountId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AgentDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AgentDetailsTests.java deleted file mode 100644 index 0d8e32eeaeb7..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AgentDetailsTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.AgentDetails; - -public final class AgentDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AgentDetails model = BinaryData.fromString( - "{\"agentId\":\"qfhefkwabsol\",\"machineId\":\"nqqlmgnl\",\"biosId\":\"sjxtel\",\"fqdn\":\"hvuqbo\",\"disks\":[{\"diskId\":\"zqocarku\",\"diskName\":\"bc\",\"isOSDisk\":\"dtsnxawqytllhdyz\",\"capacityInBytes\":4408018623458565457,\"lunId\":790899458}]}") - .toObject(AgentDetails.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AgentDetails model = new AgentDetails(); - model = BinaryData.fromObject(model).toObject(AgentDetails.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AgentDiskDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AgentDiskDetailsTests.java deleted file mode 100644 index 21414ea486ce..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AgentDiskDetailsTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.AgentDiskDetails; - -public final class AgentDiskDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AgentDiskDetails model = BinaryData.fromString( - "{\"diskId\":\"nxakckyw\",\"diskName\":\"x\",\"isOSDisk\":\"abjkdtfohfao\",\"capacityInBytes\":5659515679437313606,\"lunId\":1355433605}") - .toObject(AgentDiskDetails.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AgentDiskDetails model = new AgentDiskDetails(); - model = BinaryData.fromObject(model).toObject(AgentDiskDetails.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AlertCollectionTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AlertCollectionTests.java deleted file mode 100644 index 5448693ad4da..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AlertCollectionTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.AlertInner; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.AlertCollection; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.AlertProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class AlertCollectionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AlertCollection model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"sendToOwners\":\"n\",\"customEmailAddresses\":[\"ybrk\"],\"locale\":\"dumjgrtfwvuk\"},\"location\":\"audccsnhs\",\"id\":\"cnyejhkryhtnapcz\",\"name\":\"lokjyemkk\",\"type\":\"ni\"}],\"nextLink\":\"oxzjnchgejspod\"}") - .toObject(AlertCollection.class); - Assertions.assertEquals("n", model.value().get(0).properties().sendToOwners()); - Assertions.assertEquals("ybrk", model.value().get(0).properties().customEmailAddresses().get(0)); - Assertions.assertEquals("dumjgrtfwvuk", model.value().get(0).properties().locale()); - Assertions.assertEquals("audccsnhs", model.value().get(0).location()); - Assertions.assertEquals("oxzjnchgejspod", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AlertCollection model = new AlertCollection() - .withValue(Arrays.asList(new AlertInner().withProperties(new AlertProperties().withSendToOwners("n") - .withCustomEmailAddresses(Arrays.asList("ybrk")) - .withLocale("dumjgrtfwvuk")).withLocation("audccsnhs"))) - .withNextLink("oxzjnchgejspod"); - model = BinaryData.fromObject(model).toObject(AlertCollection.class); - Assertions.assertEquals("n", model.value().get(0).properties().sendToOwners()); - Assertions.assertEquals("ybrk", model.value().get(0).properties().customEmailAddresses().get(0)); - Assertions.assertEquals("dumjgrtfwvuk", model.value().get(0).properties().locale()); - Assertions.assertEquals("audccsnhs", model.value().get(0).location()); - Assertions.assertEquals("oxzjnchgejspod", model.nextLink()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AlertInnerTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AlertInnerTests.java deleted file mode 100644 index 1f1d0ac05ae0..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AlertInnerTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.AlertInner; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.AlertProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class AlertInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AlertInner model = BinaryData.fromString( - "{\"properties\":{\"sendToOwners\":\"lzydehojwyahux\",\"customEmailAddresses\":[\"mqnjaqw\",\"xj\"],\"locale\":\"r\"},\"location\":\"vcputegj\",\"id\":\"wmfdatscmdvpjhul\",\"name\":\"uuvmkjozkrwfnd\",\"type\":\"odjpslwejd\"}") - .toObject(AlertInner.class); - Assertions.assertEquals("lzydehojwyahux", model.properties().sendToOwners()); - Assertions.assertEquals("mqnjaqw", model.properties().customEmailAddresses().get(0)); - Assertions.assertEquals("r", model.properties().locale()); - Assertions.assertEquals("vcputegj", model.location()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AlertInner model = new AlertInner().withProperties(new AlertProperties().withSendToOwners("lzydehojwyahux") - .withCustomEmailAddresses(Arrays.asList("mqnjaqw", "xj")) - .withLocale("r")).withLocation("vcputegj"); - model = BinaryData.fromObject(model).toObject(AlertInner.class); - Assertions.assertEquals("lzydehojwyahux", model.properties().sendToOwners()); - Assertions.assertEquals("mqnjaqw", model.properties().customEmailAddresses().get(0)); - Assertions.assertEquals("r", model.properties().locale()); - Assertions.assertEquals("vcputegj", model.location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AlertPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AlertPropertiesTests.java deleted file mode 100644 index e784a8b32c8c..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AlertPropertiesTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.AlertProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class AlertPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AlertProperties model = BinaryData.fromString( - "{\"sendToOwners\":\"wryoqpsoacc\",\"customEmailAddresses\":[\"akl\",\"lahbcryff\",\"fdosyg\"],\"locale\":\"paojakhmsbzjh\"}") - .toObject(AlertProperties.class); - Assertions.assertEquals("wryoqpsoacc", model.sendToOwners()); - Assertions.assertEquals("akl", model.customEmailAddresses().get(0)); - Assertions.assertEquals("paojakhmsbzjh", model.locale()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AlertProperties model = new AlertProperties().withSendToOwners("wryoqpsoacc") - .withCustomEmailAddresses(Arrays.asList("akl", "lahbcryff", "fdosyg")) - .withLocale("paojakhmsbzjh"); - model = BinaryData.fromObject(model).toObject(AlertProperties.class); - Assertions.assertEquals("wryoqpsoacc", model.sendToOwners()); - Assertions.assertEquals("akl", model.customEmailAddresses().get(0)); - Assertions.assertEquals("paojakhmsbzjh", model.locale()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ApplianceCollectionTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ApplianceCollectionTests.java deleted file mode 100644 index 5e10f4f2f91b..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ApplianceCollectionTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.ReplicationApplianceInner; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ApplianceCollection; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ApplianceSpecificDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationApplianceProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ApplianceCollectionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ApplianceCollection model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"providerSpecificDetails\":{\"instanceType\":\"ApplianceSpecificDetails\"}}},{\"properties\":{\"providerSpecificDetails\":{\"instanceType\":\"ApplianceSpecificDetails\"}}},{\"properties\":{\"providerSpecificDetails\":{\"instanceType\":\"ApplianceSpecificDetails\"}}}],\"nextLink\":\"nuvamiheogna\"}") - .toObject(ApplianceCollection.class); - Assertions.assertEquals("nuvamiheogna", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ApplianceCollection model = new ApplianceCollection() - .withValue(Arrays.asList( - new ReplicationApplianceInner().withProperties( - new ReplicationApplianceProperties().withProviderSpecificDetails(new ApplianceSpecificDetails())), - new ReplicationApplianceInner().withProperties( - new ReplicationApplianceProperties().withProviderSpecificDetails(new ApplianceSpecificDetails())), - new ReplicationApplianceInner().withProperties( - new ReplicationApplianceProperties().withProviderSpecificDetails(new ApplianceSpecificDetails())))) - .withNextLink("nuvamiheogna"); - model = BinaryData.fromObject(model).toObject(ApplianceCollection.class); - Assertions.assertEquals("nuvamiheogna", model.nextLink()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ApplianceMonitoringDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ApplianceMonitoringDetailsTests.java deleted file mode 100644 index 83f4e234b171..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ApplianceMonitoringDetailsTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ApplianceMonitoringDetails; - -public final class ApplianceMonitoringDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ApplianceMonitoringDetails model = BinaryData.fromString( - "{\"cpuDetails\":{\"capacity\":8662079962112784708,\"processUtilization\":0.6405594211104648,\"totalUtilization\":82.0905475524268,\"status\":\"kcrr\"},\"ramDetails\":{\"capacity\":8013743376353139388,\"processUtilization\":1.694855656985783,\"totalUtilization\":1.5593173023171092,\"status\":\"ddacbcbgydlqidy\"},\"datastoreSnapshot\":[{\"totalSnapshotsSupported\":7488275222478686566,\"totalSnapshotsCreated\":2902686094359114858,\"dataStoreName\":\"kfbn\"},{\"totalSnapshotsSupported\":7259499785959731497,\"totalSnapshotsCreated\":4333536385090972582,\"dataStoreName\":\"bnfnqtxjtoma\"},{\"totalSnapshotsSupported\":45293283846031932,\"totalSnapshotsCreated\":4569715227142190855,\"dataStoreName\":\"epl\"}],\"disksReplicationDetails\":{\"capacity\":8132115358222180607,\"processUtilization\":1.9623944997706366,\"totalUtilization\":8.026231357545443,\"status\":\"exa\"},\"esxiNfcBuffer\":{\"capacity\":4341656564886470437,\"processUtilization\":40.02295487844362,\"totalUtilization\":89.70679469125682,\"status\":\"ycs\"},\"networkBandwidth\":{\"capacity\":5138554080249609396,\"processUtilization\":20.180830067778864,\"totalUtilization\":22.17605778669388,\"status\":\"ehzptdmk\"}}") - .toObject(ApplianceMonitoringDetails.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ApplianceMonitoringDetails model = new ApplianceMonitoringDetails(); - model = BinaryData.fromObject(model).toObject(ApplianceMonitoringDetails.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ApplianceResourceDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ApplianceResourceDetailsTests.java deleted file mode 100644 index 32982064b788..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ApplianceResourceDetailsTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ApplianceResourceDetails; - -public final class ApplianceResourceDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ApplianceResourceDetails model = BinaryData.fromString( - "{\"capacity\":7882439676090099182,\"processUtilization\":40.0101712180558,\"totalUtilization\":83.56402796641234,\"status\":\"efgybpmfbfununmp\"}") - .toObject(ApplianceResourceDetails.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ApplianceResourceDetails model = new ApplianceResourceDetails(); - model = BinaryData.fromObject(model).toObject(ApplianceResourceDetails.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ApplianceSpecificDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ApplianceSpecificDetailsTests.java deleted file mode 100644 index 1e10f11c4c1b..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ApplianceSpecificDetailsTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ApplianceSpecificDetails; - -public final class ApplianceSpecificDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ApplianceSpecificDetails model = BinaryData.fromString("{\"instanceType\":\"ApplianceSpecificDetails\"}") - .toObject(ApplianceSpecificDetails.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ApplianceSpecificDetails model = new ApplianceSpecificDetails(); - model = BinaryData.fromObject(model).toObject(ApplianceSpecificDetails.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ApplyRecoveryPointInputPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ApplyRecoveryPointInputPropertiesTests.java deleted file mode 100644 index eb782d83ede8..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ApplyRecoveryPointInputPropertiesTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ApplyRecoveryPointInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ApplyRecoveryPointProviderSpecificInput; -import org.junit.jupiter.api.Assertions; - -public final class ApplyRecoveryPointInputPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ApplyRecoveryPointInputProperties model = BinaryData.fromString( - "{\"recoveryPointId\":\"rddh\",\"providerSpecificDetails\":{\"instanceType\":\"ApplyRecoveryPointProviderSpecificInput\"}}") - .toObject(ApplyRecoveryPointInputProperties.class); - Assertions.assertEquals("rddh", model.recoveryPointId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ApplyRecoveryPointInputProperties model = new ApplyRecoveryPointInputProperties().withRecoveryPointId("rddh") - .withProviderSpecificDetails(new ApplyRecoveryPointProviderSpecificInput()); - model = BinaryData.fromObject(model).toObject(ApplyRecoveryPointInputProperties.class); - Assertions.assertEquals("rddh", model.recoveryPointId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ApplyRecoveryPointInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ApplyRecoveryPointInputTests.java deleted file mode 100644 index f66ecd4fd071..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ApplyRecoveryPointInputTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ApplyRecoveryPointInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ApplyRecoveryPointInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ApplyRecoveryPointProviderSpecificInput; -import org.junit.jupiter.api.Assertions; - -public final class ApplyRecoveryPointInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ApplyRecoveryPointInput model = BinaryData.fromString( - "{\"properties\":{\"recoveryPointId\":\"nrojlpijnkr\",\"providerSpecificDetails\":{\"instanceType\":\"ApplyRecoveryPointProviderSpecificInput\"}}}") - .toObject(ApplyRecoveryPointInput.class); - Assertions.assertEquals("nrojlpijnkr", model.properties().recoveryPointId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ApplyRecoveryPointInput model = new ApplyRecoveryPointInput() - .withProperties(new ApplyRecoveryPointInputProperties().withRecoveryPointId("nrojlpijnkr") - .withProviderSpecificDetails(new ApplyRecoveryPointProviderSpecificInput())); - model = BinaryData.fromObject(model).toObject(ApplyRecoveryPointInput.class); - Assertions.assertEquals("nrojlpijnkr", model.properties().recoveryPointId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ApplyRecoveryPointProviderSpecificInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ApplyRecoveryPointProviderSpecificInputTests.java deleted file mode 100644 index 17282438da1f..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ApplyRecoveryPointProviderSpecificInputTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ApplyRecoveryPointProviderSpecificInput; - -public final class ApplyRecoveryPointProviderSpecificInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ApplyRecoveryPointProviderSpecificInput model - = BinaryData.fromString("{\"instanceType\":\"ApplyRecoveryPointProviderSpecificInput\"}") - .toObject(ApplyRecoveryPointProviderSpecificInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ApplyRecoveryPointProviderSpecificInput model = new ApplyRecoveryPointProviderSpecificInput(); - model = BinaryData.fromObject(model).toObject(ApplyRecoveryPointProviderSpecificInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AsrJobDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AsrJobDetailsTests.java deleted file mode 100644 index 61c83d52a760..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AsrJobDetailsTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.AsrJobDetails; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AsrJobDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AsrJobDetails model = BinaryData.fromString( - "{\"instanceType\":\"AsrJobDetails\",\"affectedObjectDetails\":{\"mhmjpjs\":\"wnphbkgfyrto\",\"mseharx\":\"dfpdqwtygevg\",\"n\":\"fv\",\"mbpjptnvwjh\":\"x\"}}") - .toObject(AsrJobDetails.class); - Assertions.assertEquals("wnphbkgfyrto", model.affectedObjectDetails().get("mhmjpjs")); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AsrJobDetails model = new AsrJobDetails().withAffectedObjectDetails( - mapOf("mhmjpjs", "wnphbkgfyrto", "mseharx", "dfpdqwtygevg", "n", "fv", "mbpjptnvwjh", "x")); - model = BinaryData.fromObject(model).toObject(AsrJobDetails.class); - Assertions.assertEquals("wnphbkgfyrto", model.affectedObjectDetails().get("mhmjpjs")); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AutomationRunbookTaskDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AutomationRunbookTaskDetailsTests.java deleted file mode 100644 index fc63cd81f8d2..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AutomationRunbookTaskDetailsTests.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.AutomationRunbookTaskDetails; -import org.junit.jupiter.api.Assertions; - -public final class AutomationRunbookTaskDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AutomationRunbookTaskDetails model = BinaryData.fromString( - "{\"instanceType\":\"AutomationRunbookTaskDetails\",\"name\":\"idqpxlbtpakftn\",\"cloudServiceName\":\"twmykyut\",\"subscriptionId\":\"mdwmf\",\"accountName\":\"pycvjqdvdwkqpldr\",\"runbookId\":\"fgnaavuagnteta\",\"runbookName\":\"tnpdctuhspfefy\",\"jobId\":\"duyeuyl\",\"jobOutput\":\"hmtybkcgsuthhll\",\"isPrimarySideScript\":false}") - .toObject(AutomationRunbookTaskDetails.class); - Assertions.assertEquals("idqpxlbtpakftn", model.name()); - Assertions.assertEquals("twmykyut", model.cloudServiceName()); - Assertions.assertEquals("mdwmf", model.subscriptionId()); - Assertions.assertEquals("pycvjqdvdwkqpldr", model.accountName()); - Assertions.assertEquals("fgnaavuagnteta", model.runbookId()); - Assertions.assertEquals("tnpdctuhspfefy", model.runbookName()); - Assertions.assertEquals("duyeuyl", model.jobId()); - Assertions.assertEquals("hmtybkcgsuthhll", model.jobOutput()); - Assertions.assertEquals(false, model.isPrimarySideScript()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AutomationRunbookTaskDetails model = new AutomationRunbookTaskDetails().withName("idqpxlbtpakftn") - .withCloudServiceName("twmykyut") - .withSubscriptionId("mdwmf") - .withAccountName("pycvjqdvdwkqpldr") - .withRunbookId("fgnaavuagnteta") - .withRunbookName("tnpdctuhspfefy") - .withJobId("duyeuyl") - .withJobOutput("hmtybkcgsuthhll") - .withIsPrimarySideScript(false); - model = BinaryData.fromObject(model).toObject(AutomationRunbookTaskDetails.class); - Assertions.assertEquals("idqpxlbtpakftn", model.name()); - Assertions.assertEquals("twmykyut", model.cloudServiceName()); - Assertions.assertEquals("mdwmf", model.subscriptionId()); - Assertions.assertEquals("pycvjqdvdwkqpldr", model.accountName()); - Assertions.assertEquals("fgnaavuagnteta", model.runbookId()); - Assertions.assertEquals("tnpdctuhspfefy", model.runbookName()); - Assertions.assertEquals("duyeuyl", model.jobId()); - Assertions.assertEquals("hmtybkcgsuthhll", model.jobOutput()); - Assertions.assertEquals(false, model.isPrimarySideScript()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AzureFabricCreationInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AzureFabricCreationInputTests.java deleted file mode 100644 index f2a16a3da10e..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AzureFabricCreationInputTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.AzureFabricCreationInput; -import org.junit.jupiter.api.Assertions; - -public final class AzureFabricCreationInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureFabricCreationInput model - = BinaryData.fromString("{\"instanceType\":\"Azure\",\"location\":\"nefxexlfciatx\"}") - .toObject(AzureFabricCreationInput.class); - Assertions.assertEquals("nefxexlfciatx", model.location()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureFabricCreationInput model = new AzureFabricCreationInput().withLocation("nefxexlfciatx"); - model = BinaryData.fromObject(model).toObject(AzureFabricCreationInput.class); - Assertions.assertEquals("nefxexlfciatx", model.location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AzureFabricSpecificDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AzureFabricSpecificDetailsTests.java deleted file mode 100644 index 4017d18bbbdf..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AzureFabricSpecificDetailsTests.java +++ /dev/null @@ -1,180 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.A2AExtendedLocationDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.A2AFabricSpecificLocationDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.A2AZoneDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.AzureFabricSpecificDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ExtendedLocation; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ExtendedLocationType; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class AzureFabricSpecificDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureFabricSpecificDetails model = BinaryData.fromString( - "{\"instanceType\":\"Azure\",\"location\":\"rrlkmdskjhhx\",\"containerIds\":[\"jfoxcxscvslxl\",\"uavkrmukm\"],\"zones\":[{\"source\":\"xett\",\"target\":\"lojfkqidnqto\"},{\"source\":\"jhqxc\",\"target\":\"htkbtnq\"},{\"source\":\"ngldmbiipsn\",\"target\":\"wl\"}],\"extendedLocations\":[{\"primaryExtendedLocation\":{\"name\":\"xhhllxricct\",\"type\":\"EdgeZone\"},\"recoveryExtendedLocation\":{\"name\":\"uqqoaj\",\"type\":\"EdgeZone\"}},{\"primaryExtendedLocation\":{\"name\":\"y\",\"type\":\"EdgeZone\"},\"recoveryExtendedLocation\":{\"name\":\"srwvaexhdctrce\",\"type\":\"EdgeZone\"}},{\"primaryExtendedLocation\":{\"name\":\"brupobehdmljza\",\"type\":\"EdgeZone\"},\"recoveryExtendedLocation\":{\"name\":\"me\",\"type\":\"EdgeZone\"}}],\"locationDetails\":[{\"initialPrimaryZone\":\"bn\",\"initialRecoveryZone\":\"phepifexleqirc\",\"initialPrimaryExtendedLocation\":{\"name\":\"cly\",\"type\":\"EdgeZone\"},\"initialRecoveryExtendedLocation\":{\"name\":\"x\",\"type\":\"EdgeZone\"},\"initialPrimaryFabricLocation\":\"jlvczu\",\"initialRecoveryFabricLocation\":\"ac\",\"primaryZone\":\"nettepdjxqeskoy\",\"recoveryZone\":\"iylpck\",\"primaryExtendedLocation\":{\"name\":\"wsedvesk\",\"type\":\"EdgeZone\"},\"recoveryExtendedLocation\":{\"name\":\"gqphrgfnzhctmjts\",\"type\":\"EdgeZone\"},\"primaryFabricLocation\":\"bcbcpz\",\"recoveryFabricLocation\":\"pzeqacdldtz\"},{\"initialPrimaryZone\":\"ypefcpczshnuqnda\",\"initialRecoveryZone\":\"upfkhuytuszxhmtv\",\"initialPrimaryExtendedLocation\":{\"name\":\"egw\",\"type\":\"EdgeZone\"},\"initialRecoveryExtendedLocation\":{\"name\":\"kvzwydw\",\"type\":\"EdgeZone\"},\"initialPrimaryFabricLocation\":\"aokgkskjivbsshaj\",\"initialRecoveryFabricLocation\":\"u\",\"primaryZone\":\"eexpgeumi\",\"recoveryZone\":\"wuit\",\"primaryExtendedLocation\":{\"name\":\"exyionofninbd\",\"type\":\"EdgeZone\"},\"recoveryExtendedLocation\":{\"name\":\"xcwqqrsmpc\",\"type\":\"EdgeZone\"},\"primaryFabricLocation\":\"rtugavbzbcyks\",\"recoveryFabricLocation\":\"mf\"},{\"initialPrimaryZone\":\"dr\",\"initialRecoveryZone\":\"fcmkr\",\"initialPrimaryExtendedLocation\":{\"name\":\"sjcwjjxsgmbawvif\",\"type\":\"EdgeZone\"},\"initialRecoveryExtendedLocation\":{\"name\":\"eci\",\"type\":\"EdgeZone\"},\"initialPrimaryFabricLocation\":\"cjxwkloozrvtxvcm\",\"initialRecoveryFabricLocation\":\"unlcpxxv\",\"primaryZone\":\"yeyng\",\"recoveryZone\":\"vrquv\",\"primaryExtendedLocation\":{\"name\":\"gglpmcrdcuelj\",\"type\":\"EdgeZone\"},\"recoveryExtendedLocation\":{\"name\":\"hxmfqryarvsxzqb\",\"type\":\"EdgeZone\"},\"primaryFabricLocation\":\"jkayspthzo\",\"recoveryFabricLocation\":\"btl\"},{\"initialPrimaryZone\":\"tgblioskkfmk\",\"initialRecoveryZone\":\"djxyxgbkkqvjcteo\",\"initialPrimaryExtendedLocation\":{\"name\":\"l\",\"type\":\"EdgeZone\"},\"initialRecoveryExtendedLocation\":{\"name\":\"skkzpxvjnzdpvo\",\"type\":\"EdgeZone\"},\"initialPrimaryFabricLocation\":\"hpcnabxzfsn\",\"initialRecoveryFabricLocation\":\"ytexvzilmhivzk\",\"primaryZone\":\"wncknr\",\"recoveryZone\":\"ajlskzptj\",\"primaryExtendedLocation\":{\"name\":\"lwe\",\"type\":\"EdgeZone\"},\"recoveryExtendedLocation\":{\"name\":\"rthxqlehmcg\",\"type\":\"EdgeZone\"},\"primaryFabricLocation\":\"inue\",\"recoveryFabricLocation\":\"kamvfe\"}]}") - .toObject(AzureFabricSpecificDetails.class); - Assertions.assertEquals("rrlkmdskjhhx", model.location()); - Assertions.assertEquals("jfoxcxscvslxl", model.containerIds().get(0)); - Assertions.assertEquals("xett", model.zones().get(0).source()); - Assertions.assertEquals("lojfkqidnqto", model.zones().get(0).target()); - Assertions.assertEquals("xhhllxricct", model.extendedLocations().get(0).primaryExtendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, - model.extendedLocations().get(0).primaryExtendedLocation().type()); - Assertions.assertEquals("uqqoaj", model.extendedLocations().get(0).recoveryExtendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, - model.extendedLocations().get(0).recoveryExtendedLocation().type()); - Assertions.assertEquals("bn", model.locationDetails().get(0).initialPrimaryZone()); - Assertions.assertEquals("phepifexleqirc", model.locationDetails().get(0).initialRecoveryZone()); - Assertions.assertEquals("cly", model.locationDetails().get(0).initialPrimaryExtendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, - model.locationDetails().get(0).initialPrimaryExtendedLocation().type()); - Assertions.assertEquals("x", model.locationDetails().get(0).initialRecoveryExtendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, - model.locationDetails().get(0).initialRecoveryExtendedLocation().type()); - Assertions.assertEquals("jlvczu", model.locationDetails().get(0).initialPrimaryFabricLocation()); - Assertions.assertEquals("ac", model.locationDetails().get(0).initialRecoveryFabricLocation()); - Assertions.assertEquals("nettepdjxqeskoy", model.locationDetails().get(0).primaryZone()); - Assertions.assertEquals("iylpck", model.locationDetails().get(0).recoveryZone()); - Assertions.assertEquals("wsedvesk", model.locationDetails().get(0).primaryExtendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, - model.locationDetails().get(0).primaryExtendedLocation().type()); - Assertions.assertEquals("gqphrgfnzhctmjts", model.locationDetails().get(0).recoveryExtendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, - model.locationDetails().get(0).recoveryExtendedLocation().type()); - Assertions.assertEquals("bcbcpz", model.locationDetails().get(0).primaryFabricLocation()); - Assertions.assertEquals("pzeqacdldtz", model.locationDetails().get(0).recoveryFabricLocation()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureFabricSpecificDetails model - = new AzureFabricSpecificDetails().withLocation("rrlkmdskjhhx") - .withContainerIds(Arrays.asList("jfoxcxscvslxl", "uavkrmukm")) - .withZones(Arrays.asList(new A2AZoneDetails().withSource("xett").withTarget("lojfkqidnqto"), - new A2AZoneDetails().withSource("jhqxc").withTarget("htkbtnq"), - new A2AZoneDetails().withSource("ngldmbiipsn").withTarget("wl"))) - .withExtendedLocations( - Arrays - .asList( - new A2AExtendedLocationDetails() - .withPrimaryExtendedLocation(new ExtendedLocation().withName("xhhllxricct") - .withType(ExtendedLocationType.EDGE_ZONE)) - .withRecoveryExtendedLocation( - new ExtendedLocation().withName("uqqoaj").withType(ExtendedLocationType.EDGE_ZONE)), - new A2AExtendedLocationDetails() - .withPrimaryExtendedLocation( - new ExtendedLocation().withName("y").withType(ExtendedLocationType.EDGE_ZONE)) - .withRecoveryExtendedLocation(new ExtendedLocation() - .withName("srwvaexhdctrce") - .withType(ExtendedLocationType.EDGE_ZONE)), - new A2AExtendedLocationDetails() - .withPrimaryExtendedLocation(new ExtendedLocation().withName("brupobehdmljza") - .withType(ExtendedLocationType.EDGE_ZONE)) - .withRecoveryExtendedLocation(new ExtendedLocation() - .withName("me") - .withType(ExtendedLocationType.EDGE_ZONE)))) - .withLocationDetails(Arrays.asList( - new A2AFabricSpecificLocationDetails().withInitialPrimaryZone("bn") - .withInitialRecoveryZone("phepifexleqirc") - .withInitialPrimaryExtendedLocation( - new ExtendedLocation().withName("cly").withType(ExtendedLocationType.EDGE_ZONE)) - .withInitialRecoveryExtendedLocation( - new ExtendedLocation().withName("x").withType(ExtendedLocationType.EDGE_ZONE)) - .withInitialPrimaryFabricLocation("jlvczu") - .withInitialRecoveryFabricLocation("ac") - .withPrimaryZone("nettepdjxqeskoy") - .withRecoveryZone("iylpck") - .withPrimaryExtendedLocation( - new ExtendedLocation().withName("wsedvesk").withType(ExtendedLocationType.EDGE_ZONE)) - .withRecoveryExtendedLocation(new ExtendedLocation().withName("gqphrgfnzhctmjts") - .withType(ExtendedLocationType.EDGE_ZONE)) - .withPrimaryFabricLocation("bcbcpz") - .withRecoveryFabricLocation("pzeqacdldtz"), - new A2AFabricSpecificLocationDetails().withInitialPrimaryZone("ypefcpczshnuqnda") - .withInitialRecoveryZone("upfkhuytuszxhmtv") - .withInitialPrimaryExtendedLocation( - new ExtendedLocation().withName("egw").withType(ExtendedLocationType.EDGE_ZONE)) - .withInitialRecoveryExtendedLocation( - new ExtendedLocation().withName("kvzwydw").withType(ExtendedLocationType.EDGE_ZONE)) - .withInitialPrimaryFabricLocation("aokgkskjivbsshaj") - .withInitialRecoveryFabricLocation("u") - .withPrimaryZone("eexpgeumi") - .withRecoveryZone("wuit") - .withPrimaryExtendedLocation( - new ExtendedLocation().withName("exyionofninbd").withType(ExtendedLocationType.EDGE_ZONE)) - .withRecoveryExtendedLocation( - new ExtendedLocation().withName("xcwqqrsmpc").withType(ExtendedLocationType.EDGE_ZONE)) - .withPrimaryFabricLocation("rtugavbzbcyks") - .withRecoveryFabricLocation("mf"), - new A2AFabricSpecificLocationDetails().withInitialPrimaryZone("dr") - .withInitialRecoveryZone("fcmkr") - .withInitialPrimaryExtendedLocation(new ExtendedLocation().withName("sjcwjjxsgmbawvif") - .withType(ExtendedLocationType.EDGE_ZONE)) - .withInitialRecoveryExtendedLocation( - new ExtendedLocation().withName("eci").withType(ExtendedLocationType.EDGE_ZONE)) - .withInitialPrimaryFabricLocation("cjxwkloozrvtxvcm") - .withInitialRecoveryFabricLocation("unlcpxxv") - .withPrimaryZone("yeyng") - .withRecoveryZone("vrquv") - .withPrimaryExtendedLocation( - new ExtendedLocation().withName("gglpmcrdcuelj").withType(ExtendedLocationType.EDGE_ZONE)) - .withRecoveryExtendedLocation( - new ExtendedLocation().withName("hxmfqryarvsxzqb").withType(ExtendedLocationType.EDGE_ZONE)) - .withPrimaryFabricLocation("jkayspthzo") - .withRecoveryFabricLocation("btl"), - new A2AFabricSpecificLocationDetails().withInitialPrimaryZone("tgblioskkfmk") - .withInitialRecoveryZone("djxyxgbkkqvjcteo") - .withInitialPrimaryExtendedLocation( - new ExtendedLocation().withName("l").withType(ExtendedLocationType.EDGE_ZONE)) - .withInitialRecoveryExtendedLocation( - new ExtendedLocation().withName("skkzpxvjnzdpvo").withType(ExtendedLocationType.EDGE_ZONE)) - .withInitialPrimaryFabricLocation("hpcnabxzfsn") - .withInitialRecoveryFabricLocation("ytexvzilmhivzk") - .withPrimaryZone("wncknr") - .withRecoveryZone("ajlskzptj") - .withPrimaryExtendedLocation( - new ExtendedLocation().withName("lwe").withType(ExtendedLocationType.EDGE_ZONE)) - .withRecoveryExtendedLocation( - new ExtendedLocation().withName("rthxqlehmcg").withType(ExtendedLocationType.EDGE_ZONE)) - .withPrimaryFabricLocation("inue") - .withRecoveryFabricLocation("kamvfe"))); - model = BinaryData.fromObject(model).toObject(AzureFabricSpecificDetails.class); - Assertions.assertEquals("rrlkmdskjhhx", model.location()); - Assertions.assertEquals("jfoxcxscvslxl", model.containerIds().get(0)); - Assertions.assertEquals("xett", model.zones().get(0).source()); - Assertions.assertEquals("lojfkqidnqto", model.zones().get(0).target()); - Assertions.assertEquals("xhhllxricct", model.extendedLocations().get(0).primaryExtendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, - model.extendedLocations().get(0).primaryExtendedLocation().type()); - Assertions.assertEquals("uqqoaj", model.extendedLocations().get(0).recoveryExtendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, - model.extendedLocations().get(0).recoveryExtendedLocation().type()); - Assertions.assertEquals("bn", model.locationDetails().get(0).initialPrimaryZone()); - Assertions.assertEquals("phepifexleqirc", model.locationDetails().get(0).initialRecoveryZone()); - Assertions.assertEquals("cly", model.locationDetails().get(0).initialPrimaryExtendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, - model.locationDetails().get(0).initialPrimaryExtendedLocation().type()); - Assertions.assertEquals("x", model.locationDetails().get(0).initialRecoveryExtendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, - model.locationDetails().get(0).initialRecoveryExtendedLocation().type()); - Assertions.assertEquals("jlvczu", model.locationDetails().get(0).initialPrimaryFabricLocation()); - Assertions.assertEquals("ac", model.locationDetails().get(0).initialRecoveryFabricLocation()); - Assertions.assertEquals("nettepdjxqeskoy", model.locationDetails().get(0).primaryZone()); - Assertions.assertEquals("iylpck", model.locationDetails().get(0).recoveryZone()); - Assertions.assertEquals("wsedvesk", model.locationDetails().get(0).primaryExtendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, - model.locationDetails().get(0).primaryExtendedLocation().type()); - Assertions.assertEquals("gqphrgfnzhctmjts", model.locationDetails().get(0).recoveryExtendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, - model.locationDetails().get(0).recoveryExtendedLocation().type()); - Assertions.assertEquals("bcbcpz", model.locationDetails().get(0).primaryFabricLocation()); - Assertions.assertEquals("pzeqacdldtz", model.locationDetails().get(0).recoveryFabricLocation()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AzureToAzureCreateNetworkMappingInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AzureToAzureCreateNetworkMappingInputTests.java deleted file mode 100644 index d7dfbaebd034..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AzureToAzureCreateNetworkMappingInputTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.AzureToAzureCreateNetworkMappingInput; -import org.junit.jupiter.api.Assertions; - -public final class AzureToAzureCreateNetworkMappingInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureToAzureCreateNetworkMappingInput model - = BinaryData.fromString("{\"instanceType\":\"AzureToAzure\",\"primaryNetworkId\":\"vq\"}") - .toObject(AzureToAzureCreateNetworkMappingInput.class); - Assertions.assertEquals("vq", model.primaryNetworkId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureToAzureCreateNetworkMappingInput model - = new AzureToAzureCreateNetworkMappingInput().withPrimaryNetworkId("vq"); - model = BinaryData.fromObject(model).toObject(AzureToAzureCreateNetworkMappingInput.class); - Assertions.assertEquals("vq", model.primaryNetworkId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AzureToAzureNetworkMappingSettingsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AzureToAzureNetworkMappingSettingsTests.java deleted file mode 100644 index 79bc5d57c8bf..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AzureToAzureNetworkMappingSettingsTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.AzureToAzureNetworkMappingSettings; -import org.junit.jupiter.api.Assertions; - -public final class AzureToAzureNetworkMappingSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureToAzureNetworkMappingSettings model = BinaryData.fromString( - "{\"instanceType\":\"AzureToAzure\",\"primaryFabricLocation\":\"tmbqdabzfivfok\",\"recoveryFabricLocation\":\"sthhzagjfwy\"}") - .toObject(AzureToAzureNetworkMappingSettings.class); - Assertions.assertEquals("tmbqdabzfivfok", model.primaryFabricLocation()); - Assertions.assertEquals("sthhzagjfwy", model.recoveryFabricLocation()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureToAzureNetworkMappingSettings model - = new AzureToAzureNetworkMappingSettings().withPrimaryFabricLocation("tmbqdabzfivfok") - .withRecoveryFabricLocation("sthhzagjfwy"); - model = BinaryData.fromObject(model).toObject(AzureToAzureNetworkMappingSettings.class); - Assertions.assertEquals("tmbqdabzfivfok", model.primaryFabricLocation()); - Assertions.assertEquals("sthhzagjfwy", model.recoveryFabricLocation()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AzureToAzureUpdateNetworkMappingInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AzureToAzureUpdateNetworkMappingInputTests.java deleted file mode 100644 index 6ef0652475d6..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AzureToAzureUpdateNetworkMappingInputTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.AzureToAzureUpdateNetworkMappingInput; -import org.junit.jupiter.api.Assertions; - -public final class AzureToAzureUpdateNetworkMappingInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureToAzureUpdateNetworkMappingInput model - = BinaryData.fromString("{\"instanceType\":\"AzureToAzure\",\"primaryNetworkId\":\"lhgenuzejgvkv\"}") - .toObject(AzureToAzureUpdateNetworkMappingInput.class); - Assertions.assertEquals("lhgenuzejgvkv", model.primaryNetworkId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureToAzureUpdateNetworkMappingInput model - = new AzureToAzureUpdateNetworkMappingInput().withPrimaryNetworkId("lhgenuzejgvkv"); - model = BinaryData.fromObject(model).toObject(AzureToAzureUpdateNetworkMappingInput.class); - Assertions.assertEquals("lhgenuzejgvkv", model.primaryNetworkId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AzureToAzureVmSyncedConfigDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AzureToAzureVmSyncedConfigDetailsTests.java deleted file mode 100644 index ed9240a9137d..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AzureToAzureVmSyncedConfigDetailsTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.AzureToAzureVmSyncedConfigDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InputEndpoint; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureToAzureVmSyncedConfigDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureToAzureVmSyncedConfigDetails model = BinaryData.fromString( - "{\"tags\":{\"jceatlijjjrtva\":\"flwfgziiuci\",\"xk\":\"caszk\",\"ignohi\":\"ccxetyvkun\",\"indedvabbx\":\"kgqogjw\"},\"inputEndpoints\":[{\"endpointName\":\"dei\",\"privatePort\":1416675602,\"publicPort\":277548984,\"protocol\":\"cfxzirzzih\"},{\"endpointName\":\"ypusuvjslczwci\",\"privatePort\":73772123,\"publicPort\":1150687421,\"protocol\":\"fryvdmvxadqac\"}]}") - .toObject(AzureToAzureVmSyncedConfigDetails.class); - Assertions.assertEquals("flwfgziiuci", model.tags().get("jceatlijjjrtva")); - Assertions.assertEquals("dei", model.inputEndpoints().get(0).endpointName()); - Assertions.assertEquals(1416675602, model.inputEndpoints().get(0).privatePort()); - Assertions.assertEquals(277548984, model.inputEndpoints().get(0).publicPort()); - Assertions.assertEquals("cfxzirzzih", model.inputEndpoints().get(0).protocol()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureToAzureVmSyncedConfigDetails model = new AzureToAzureVmSyncedConfigDetails() - .withTags( - mapOf("jceatlijjjrtva", "flwfgziiuci", "xk", "caszk", "ignohi", "ccxetyvkun", "indedvabbx", "kgqogjw")) - .withInputEndpoints(Arrays.asList( - new InputEndpoint().withEndpointName("dei") - .withPrivatePort(1416675602) - .withPublicPort(277548984) - .withProtocol("cfxzirzzih"), - new InputEndpoint().withEndpointName("ypusuvjslczwci") - .withPrivatePort(73772123) - .withPublicPort(1150687421) - .withProtocol("fryvdmvxadqac"))); - model = BinaryData.fromObject(model).toObject(AzureToAzureVmSyncedConfigDetails.class); - Assertions.assertEquals("flwfgziiuci", model.tags().get("jceatlijjjrtva")); - Assertions.assertEquals("dei", model.inputEndpoints().get(0).endpointName()); - Assertions.assertEquals(1416675602, model.inputEndpoints().get(0).privatePort()); - Assertions.assertEquals(277548984, model.inputEndpoints().get(0).publicPort()); - Assertions.assertEquals("cfxzirzzih", model.inputEndpoints().get(0).protocol()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AzureVmDiskDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AzureVmDiskDetailsTests.java deleted file mode 100644 index 2a77ee5b2d33..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/AzureVmDiskDetailsTests.java +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.AzureVmDiskDetails; -import org.junit.jupiter.api.Assertions; - -public final class AzureVmDiskDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureVmDiskDetails model = BinaryData.fromString( - "{\"vhdType\":\"aqszllrzl\",\"vhdId\":\"mdqgmihzpimcqr\",\"diskId\":\"xtminklogxsvtzar\",\"vhdName\":\"vqnsqk\",\"maxSizeMB\":\"mbjwzzoslpkyb\",\"targetDiskLocation\":\"lwkzpgajsqjcem\",\"targetDiskName\":\"mfuvqarwzxuqr\",\"lunId\":\"lui\",\"diskEncryptionSetId\":\"bwxsfgtdm\",\"customTargetDiskName\":\"xekr\"}") - .toObject(AzureVmDiskDetails.class); - Assertions.assertEquals("aqszllrzl", model.vhdType()); - Assertions.assertEquals("mdqgmihzpimcqr", model.vhdId()); - Assertions.assertEquals("xtminklogxsvtzar", model.diskId()); - Assertions.assertEquals("vqnsqk", model.vhdName()); - Assertions.assertEquals("mbjwzzoslpkyb", model.maxSizeMB()); - Assertions.assertEquals("lwkzpgajsqjcem", model.targetDiskLocation()); - Assertions.assertEquals("mfuvqarwzxuqr", model.targetDiskName()); - Assertions.assertEquals("lui", model.lunId()); - Assertions.assertEquals("bwxsfgtdm", model.diskEncryptionSetId()); - Assertions.assertEquals("xekr", model.customTargetDiskName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureVmDiskDetails model = new AzureVmDiskDetails().withVhdType("aqszllrzl") - .withVhdId("mdqgmihzpimcqr") - .withDiskId("xtminklogxsvtzar") - .withVhdName("vqnsqk") - .withMaxSizeMB("mbjwzzoslpkyb") - .withTargetDiskLocation("lwkzpgajsqjcem") - .withTargetDiskName("mfuvqarwzxuqr") - .withLunId("lui") - .withDiskEncryptionSetId("bwxsfgtdm") - .withCustomTargetDiskName("xekr"); - model = BinaryData.fromObject(model).toObject(AzureVmDiskDetails.class); - Assertions.assertEquals("aqszllrzl", model.vhdType()); - Assertions.assertEquals("mdqgmihzpimcqr", model.vhdId()); - Assertions.assertEquals("xtminklogxsvtzar", model.diskId()); - Assertions.assertEquals("vqnsqk", model.vhdName()); - Assertions.assertEquals("mbjwzzoslpkyb", model.maxSizeMB()); - Assertions.assertEquals("lwkzpgajsqjcem", model.targetDiskLocation()); - Assertions.assertEquals("mfuvqarwzxuqr", model.targetDiskName()); - Assertions.assertEquals("lui", model.lunId()); - Assertions.assertEquals("bwxsfgtdm", model.diskEncryptionSetId()); - Assertions.assertEquals("xekr", model.customTargetDiskName()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ComputeSizeErrorDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ComputeSizeErrorDetailsTests.java deleted file mode 100644 index e56027aa3cb4..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ComputeSizeErrorDetailsTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ComputeSizeErrorDetails; -import org.junit.jupiter.api.Assertions; - -public final class ComputeSizeErrorDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ComputeSizeErrorDetails model = BinaryData.fromString("{\"message\":\"miloxggdufiqndie\",\"severity\":\"ao\"}") - .toObject(ComputeSizeErrorDetails.class); - Assertions.assertEquals("miloxggdufiqndie", model.message()); - Assertions.assertEquals("ao", model.severity()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ComputeSizeErrorDetails model - = new ComputeSizeErrorDetails().withMessage("miloxggdufiqndie").withSeverity("ao"); - model = BinaryData.fromObject(model).toObject(ComputeSizeErrorDetails.class); - Assertions.assertEquals("miloxggdufiqndie", model.message()); - Assertions.assertEquals("ao", model.severity()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ConfigurationSettingsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ConfigurationSettingsTests.java deleted file mode 100644 index 25fb5440402c..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ConfigurationSettingsTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ConfigurationSettings; - -public final class ConfigurationSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ConfigurationSettings model = BinaryData.fromString("{\"instanceType\":\"ConfigurationSettings\"}") - .toObject(ConfigurationSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ConfigurationSettings model = new ConfigurationSettings(); - model = BinaryData.fromObject(model).toObject(ConfigurationSettings.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ConfigureAlertRequestPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ConfigureAlertRequestPropertiesTests.java deleted file mode 100644 index c708597a2faa..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ConfigureAlertRequestPropertiesTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ConfigureAlertRequestProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ConfigureAlertRequestPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ConfigureAlertRequestProperties model = BinaryData.fromString( - "{\"sendToOwners\":\"fziton\",\"customEmailAddresses\":[\"fpjkjlxofp\",\"vhpfxxypininmay\"],\"locale\":\"ybb\"}") - .toObject(ConfigureAlertRequestProperties.class); - Assertions.assertEquals("fziton", model.sendToOwners()); - Assertions.assertEquals("fpjkjlxofp", model.customEmailAddresses().get(0)); - Assertions.assertEquals("ybb", model.locale()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ConfigureAlertRequestProperties model = new ConfigureAlertRequestProperties().withSendToOwners("fziton") - .withCustomEmailAddresses(Arrays.asList("fpjkjlxofp", "vhpfxxypininmay")) - .withLocale("ybb"); - model = BinaryData.fromObject(model).toObject(ConfigureAlertRequestProperties.class); - Assertions.assertEquals("fziton", model.sendToOwners()); - Assertions.assertEquals("fpjkjlxofp", model.customEmailAddresses().get(0)); - Assertions.assertEquals("ybb", model.locale()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ConfigureAlertRequestTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ConfigureAlertRequestTests.java deleted file mode 100644 index 2a8ec9146984..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ConfigureAlertRequestTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ConfigureAlertRequest; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ConfigureAlertRequestProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ConfigureAlertRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ConfigureAlertRequest model = BinaryData.fromString( - "{\"properties\":{\"sendToOwners\":\"evdphlxaol\",\"customEmailAddresses\":[\"trg\",\"jbp\",\"zfsinzgvf\",\"jrwzox\"],\"locale\":\"tfell\"}}") - .toObject(ConfigureAlertRequest.class); - Assertions.assertEquals("evdphlxaol", model.properties().sendToOwners()); - Assertions.assertEquals("trg", model.properties().customEmailAddresses().get(0)); - Assertions.assertEquals("tfell", model.properties().locale()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ConfigureAlertRequest model = new ConfigureAlertRequest() - .withProperties(new ConfigureAlertRequestProperties().withSendToOwners("evdphlxaol") - .withCustomEmailAddresses(Arrays.asList("trg", "jbp", "zfsinzgvf", "jrwzox")) - .withLocale("tfell")); - model = BinaryData.fromObject(model).toObject(ConfigureAlertRequest.class); - Assertions.assertEquals("evdphlxaol", model.properties().sendToOwners()); - Assertions.assertEquals("trg", model.properties().customEmailAddresses().get(0)); - Assertions.assertEquals("tfell", model.properties().locale()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ConsistencyCheckTaskDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ConsistencyCheckTaskDetailsTests.java deleted file mode 100644 index 57d469c0f18f..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ConsistencyCheckTaskDetailsTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ConsistencyCheckTaskDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InconsistentVmDetails; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ConsistencyCheckTaskDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ConsistencyCheckTaskDetails model = BinaryData.fromString( - "{\"instanceType\":\"ConsistencyCheckTaskDetails\",\"vmDetails\":[{\"vmName\":\"kbudbtwaokb\",\"cloudName\":\"lyttaaknwfr\",\"details\":[\"sm\",\"p\",\"ujd\"],\"errorIds\":[\"toleksc\",\"ctnanqimwbzxp\",\"cldpkawn\"]}]}") - .toObject(ConsistencyCheckTaskDetails.class); - Assertions.assertEquals("kbudbtwaokb", model.vmDetails().get(0).vmName()); - Assertions.assertEquals("lyttaaknwfr", model.vmDetails().get(0).cloudName()); - Assertions.assertEquals("sm", model.vmDetails().get(0).details().get(0)); - Assertions.assertEquals("toleksc", model.vmDetails().get(0).errorIds().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ConsistencyCheckTaskDetails model = new ConsistencyCheckTaskDetails() - .withVmDetails(Arrays.asList(new InconsistentVmDetails().withVmName("kbudbtwaokb") - .withCloudName("lyttaaknwfr") - .withDetails(Arrays.asList("sm", "p", "ujd")) - .withErrorIds(Arrays.asList("toleksc", "ctnanqimwbzxp", "cldpkawn")))); - model = BinaryData.fromObject(model).toObject(ConsistencyCheckTaskDetails.class); - Assertions.assertEquals("kbudbtwaokb", model.vmDetails().get(0).vmName()); - Assertions.assertEquals("lyttaaknwfr", model.vmDetails().get(0).cloudName()); - Assertions.assertEquals("sm", model.vmDetails().get(0).details().get(0)); - Assertions.assertEquals("toleksc", model.vmDetails().get(0).errorIds().get(0)); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/CreateNetworkMappingInputPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/CreateNetworkMappingInputPropertiesTests.java deleted file mode 100644 index 44a24a45f20d..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/CreateNetworkMappingInputPropertiesTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.CreateNetworkMappingInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.FabricSpecificCreateNetworkMappingInput; -import org.junit.jupiter.api.Assertions; - -public final class CreateNetworkMappingInputPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CreateNetworkMappingInputProperties model = BinaryData.fromString( - "{\"recoveryFabricName\":\"j\",\"recoveryNetworkId\":\"dpydn\",\"fabricSpecificDetails\":{\"instanceType\":\"FabricSpecificCreateNetworkMappingInput\"}}") - .toObject(CreateNetworkMappingInputProperties.class); - Assertions.assertEquals("j", model.recoveryFabricName()); - Assertions.assertEquals("dpydn", model.recoveryNetworkId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CreateNetworkMappingInputProperties model - = new CreateNetworkMappingInputProperties().withRecoveryFabricName("j") - .withRecoveryNetworkId("dpydn") - .withFabricSpecificDetails(new FabricSpecificCreateNetworkMappingInput()); - model = BinaryData.fromObject(model).toObject(CreateNetworkMappingInputProperties.class); - Assertions.assertEquals("j", model.recoveryFabricName()); - Assertions.assertEquals("dpydn", model.recoveryNetworkId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/CreateNetworkMappingInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/CreateNetworkMappingInputTests.java deleted file mode 100644 index bf016a79cc71..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/CreateNetworkMappingInputTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.CreateNetworkMappingInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.CreateNetworkMappingInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.FabricSpecificCreateNetworkMappingInput; -import org.junit.jupiter.api.Assertions; - -public final class CreateNetworkMappingInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CreateNetworkMappingInput model = BinaryData.fromString( - "{\"properties\":{\"recoveryFabricName\":\"yp\",\"recoveryNetworkId\":\"rbpizc\",\"fabricSpecificDetails\":{\"instanceType\":\"FabricSpecificCreateNetworkMappingInput\"}}}") - .toObject(CreateNetworkMappingInput.class); - Assertions.assertEquals("yp", model.properties().recoveryFabricName()); - Assertions.assertEquals("rbpizc", model.properties().recoveryNetworkId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CreateNetworkMappingInput model = new CreateNetworkMappingInput() - .withProperties(new CreateNetworkMappingInputProperties().withRecoveryFabricName("yp") - .withRecoveryNetworkId("rbpizc") - .withFabricSpecificDetails(new FabricSpecificCreateNetworkMappingInput())); - model = BinaryData.fromObject(model).toObject(CreateNetworkMappingInput.class); - Assertions.assertEquals("yp", model.properties().recoveryFabricName()); - Assertions.assertEquals("rbpizc", model.properties().recoveryNetworkId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/CreatePolicyInputPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/CreatePolicyInputPropertiesTests.java deleted file mode 100644 index 8e474873603a..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/CreatePolicyInputPropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.CreatePolicyInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.PolicyProviderSpecificInput; - -public final class CreatePolicyInputPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CreatePolicyInputProperties model - = BinaryData.fromString("{\"providerSpecificInput\":{\"instanceType\":\"PolicyProviderSpecificInput\"}}") - .toObject(CreatePolicyInputProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CreatePolicyInputProperties model - = new CreatePolicyInputProperties().withProviderSpecificInput(new PolicyProviderSpecificInput()); - model = BinaryData.fromObject(model).toObject(CreatePolicyInputProperties.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/CreatePolicyInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/CreatePolicyInputTests.java deleted file mode 100644 index 5b70d5a6903e..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/CreatePolicyInputTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.CreatePolicyInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.CreatePolicyInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.PolicyProviderSpecificInput; - -public final class CreatePolicyInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CreatePolicyInput model = BinaryData - .fromString( - "{\"properties\":{\"providerSpecificInput\":{\"instanceType\":\"PolicyProviderSpecificInput\"}}}") - .toObject(CreatePolicyInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CreatePolicyInput model = new CreatePolicyInput().withProperties( - new CreatePolicyInputProperties().withProviderSpecificInput(new PolicyProviderSpecificInput())); - model = BinaryData.fromObject(model).toObject(CreatePolicyInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/CreateProtectionContainerInputPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/CreateProtectionContainerInputPropertiesTests.java deleted file mode 100644 index c8ab3a3ba1c4..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/CreateProtectionContainerInputPropertiesTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.CreateProtectionContainerInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationProviderSpecificContainerCreationInput; -import java.util.Arrays; - -public final class CreateProtectionContainerInputPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CreateProtectionContainerInputProperties model = BinaryData.fromString( - "{\"providerSpecificInput\":[{\"instanceType\":\"ReplicationProviderSpecificContainerCreationInput\"},{\"instanceType\":\"ReplicationProviderSpecificContainerCreationInput\"},{\"instanceType\":\"ReplicationProviderSpecificContainerCreationInput\"}]}") - .toObject(CreateProtectionContainerInputProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CreateProtectionContainerInputProperties model = new CreateProtectionContainerInputProperties() - .withProviderSpecificInput(Arrays.asList(new ReplicationProviderSpecificContainerCreationInput(), - new ReplicationProviderSpecificContainerCreationInput(), - new ReplicationProviderSpecificContainerCreationInput())); - model = BinaryData.fromObject(model).toObject(CreateProtectionContainerInputProperties.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/CreateProtectionContainerInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/CreateProtectionContainerInputTests.java deleted file mode 100644 index 235816f4de60..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/CreateProtectionContainerInputTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.CreateProtectionContainerInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.CreateProtectionContainerInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationProviderSpecificContainerCreationInput; -import java.util.Arrays; - -public final class CreateProtectionContainerInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CreateProtectionContainerInput model = BinaryData.fromString( - "{\"properties\":{\"providerSpecificInput\":[{\"instanceType\":\"ReplicationProviderSpecificContainerCreationInput\"},{\"instanceType\":\"ReplicationProviderSpecificContainerCreationInput\"},{\"instanceType\":\"ReplicationProviderSpecificContainerCreationInput\"}]}}") - .toObject(CreateProtectionContainerInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CreateProtectionContainerInput model - = new CreateProtectionContainerInput().withProperties(new CreateProtectionContainerInputProperties() - .withProviderSpecificInput(Arrays.asList(new ReplicationProviderSpecificContainerCreationInput(), - new ReplicationProviderSpecificContainerCreationInput(), - new ReplicationProviderSpecificContainerCreationInput()))); - model = BinaryData.fromObject(model).toObject(CreateProtectionContainerInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/CreateProtectionContainerMappingInputPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/CreateProtectionContainerMappingInputPropertiesTests.java deleted file mode 100644 index 85255010ae23..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/CreateProtectionContainerMappingInputPropertiesTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.CreateProtectionContainerMappingInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationProviderSpecificContainerMappingInput; -import org.junit.jupiter.api.Assertions; - -public final class CreateProtectionContainerMappingInputPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CreateProtectionContainerMappingInputProperties model = BinaryData.fromString( - "{\"targetProtectionContainerId\":\"qbmfpjbabwidf\",\"policyId\":\"sspuunnoxyhkx\",\"providerSpecificInput\":{\"instanceType\":\"ReplicationProviderSpecificContainerMappingInput\"}}") - .toObject(CreateProtectionContainerMappingInputProperties.class); - Assertions.assertEquals("qbmfpjbabwidf", model.targetProtectionContainerId()); - Assertions.assertEquals("sspuunnoxyhkx", model.policyId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CreateProtectionContainerMappingInputProperties model - = new CreateProtectionContainerMappingInputProperties().withTargetProtectionContainerId("qbmfpjbabwidf") - .withPolicyId("sspuunnoxyhkx") - .withProviderSpecificInput(new ReplicationProviderSpecificContainerMappingInput()); - model = BinaryData.fromObject(model).toObject(CreateProtectionContainerMappingInputProperties.class); - Assertions.assertEquals("qbmfpjbabwidf", model.targetProtectionContainerId()); - Assertions.assertEquals("sspuunnoxyhkx", model.policyId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/CreateProtectionContainerMappingInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/CreateProtectionContainerMappingInputTests.java deleted file mode 100644 index f6c3aefed7e7..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/CreateProtectionContainerMappingInputTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.CreateProtectionContainerMappingInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.CreateProtectionContainerMappingInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationProviderSpecificContainerMappingInput; -import org.junit.jupiter.api.Assertions; - -public final class CreateProtectionContainerMappingInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CreateProtectionContainerMappingInput model = BinaryData.fromString( - "{\"properties\":{\"targetProtectionContainerId\":\"smystuluqypfc\",\"policyId\":\"er\",\"providerSpecificInput\":{\"instanceType\":\"ReplicationProviderSpecificContainerMappingInput\"}}}") - .toObject(CreateProtectionContainerMappingInput.class); - Assertions.assertEquals("smystuluqypfc", model.properties().targetProtectionContainerId()); - Assertions.assertEquals("er", model.properties().policyId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CreateProtectionContainerMappingInput model = new CreateProtectionContainerMappingInput().withProperties( - new CreateProtectionContainerMappingInputProperties().withTargetProtectionContainerId("smystuluqypfc") - .withPolicyId("er") - .withProviderSpecificInput(new ReplicationProviderSpecificContainerMappingInput())); - model = BinaryData.fromObject(model).toObject(CreateProtectionContainerMappingInput.class); - Assertions.assertEquals("smystuluqypfc", model.properties().targetProtectionContainerId()); - Assertions.assertEquals("er", model.properties().policyId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/CreateProtectionIntentInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/CreateProtectionIntentInputTests.java deleted file mode 100644 index ddbb5d7e714f..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/CreateProtectionIntentInputTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.CreateProtectionIntentInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.CreateProtectionIntentProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.CreateProtectionIntentProviderSpecificDetails; - -public final class CreateProtectionIntentInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CreateProtectionIntentInput model = BinaryData.fromString( - "{\"properties\":{\"providerSpecificDetails\":{\"instanceType\":\"CreateProtectionIntentProviderSpecificDetails\"}}}") - .toObject(CreateProtectionIntentInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CreateProtectionIntentInput model - = new CreateProtectionIntentInput().withProperties(new CreateProtectionIntentProperties() - .withProviderSpecificDetails(new CreateProtectionIntentProviderSpecificDetails())); - model = BinaryData.fromObject(model).toObject(CreateProtectionIntentInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/CreateProtectionIntentPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/CreateProtectionIntentPropertiesTests.java deleted file mode 100644 index 1a01987969b0..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/CreateProtectionIntentPropertiesTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.CreateProtectionIntentProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.CreateProtectionIntentProviderSpecificDetails; - -public final class CreateProtectionIntentPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CreateProtectionIntentProperties model = BinaryData - .fromString( - "{\"providerSpecificDetails\":{\"instanceType\":\"CreateProtectionIntentProviderSpecificDetails\"}}") - .toObject(CreateProtectionIntentProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CreateProtectionIntentProperties model = new CreateProtectionIntentProperties() - .withProviderSpecificDetails(new CreateProtectionIntentProviderSpecificDetails()); - model = BinaryData.fromObject(model).toObject(CreateProtectionIntentProperties.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/CreateProtectionIntentProviderSpecificDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/CreateProtectionIntentProviderSpecificDetailsTests.java deleted file mode 100644 index 8f3bbf17f1d9..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/CreateProtectionIntentProviderSpecificDetailsTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.CreateProtectionIntentProviderSpecificDetails; - -public final class CreateProtectionIntentProviderSpecificDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CreateProtectionIntentProviderSpecificDetails model - = BinaryData.fromString("{\"instanceType\":\"CreateProtectionIntentProviderSpecificDetails\"}") - .toObject(CreateProtectionIntentProviderSpecificDetails.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CreateProtectionIntentProviderSpecificDetails model = new CreateProtectionIntentProviderSpecificDetails(); - model = BinaryData.fromObject(model).toObject(CreateProtectionIntentProviderSpecificDetails.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/CreateRecoveryPlanInputPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/CreateRecoveryPlanInputPropertiesTests.java deleted file mode 100644 index 712df0b26464..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/CreateRecoveryPlanInputPropertiesTests.java +++ /dev/null @@ -1,271 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.CreateRecoveryPlanInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.FailoverDeploymentModel; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.PossibleOperationsDirections; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanAction; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanActionDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanGroup; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanGroupType; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanProtectedItem; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanProviderSpecificInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationProtectedItemOperation; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class CreateRecoveryPlanInputPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CreateRecoveryPlanInputProperties model = BinaryData.fromString( - "{\"primaryFabricId\":\"ijp\",\"recoveryFabricId\":\"gsksrfhf\",\"failoverDeploymentModel\":\"NotApplicable\",\"groups\":[{\"groupType\":\"Boot\",\"replicationProtectedItems\":[{\"id\":\"xwcdomm\",\"virtualMachineId\":\"fqawzfgbrttui\"},{\"id\":\"lkiexhajlfnthiq\",\"virtualMachineId\":\"uttdiygbp\"}],\"startGroupActions\":[{\"actionName\":\"swmtxk\",\"failoverTypes\":[\"PlannedFailover\",\"RepairReplication\"],\"failoverDirections\":[\"PrimaryToRecovery\",\"PrimaryToRecovery\",\"PrimaryToRecovery\",\"PrimaryToRecovery\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"jlmec\",\"failoverTypes\":[\"ReverseReplicate\"],\"failoverDirections\":[\"PrimaryToRecovery\",\"RecoveryToPrimary\",\"PrimaryToRecovery\",\"PrimaryToRecovery\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"ezaifghtmo\",\"failoverTypes\":[\"PlannedFailover\",\"CancelFailover\",\"RepairReplication\"],\"failoverDirections\":[\"PrimaryToRecovery\",\"PrimaryToRecovery\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"bkrkjj\",\"failoverTypes\":[\"PlannedFailover\",\"CancelFailover\",\"RepairReplication\",\"TestFailoverCleanup\"],\"failoverDirections\":[\"PrimaryToRecovery\",\"PrimaryToRecovery\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"qoewdogiyetesy\",\"failoverTypes\":[\"Failback\",\"ReverseReplicate\",\"UnplannedFailover\"],\"failoverDirections\":[\"RecoveryToPrimary\",\"PrimaryToRecovery\",\"PrimaryToRecovery\",\"PrimaryToRecovery\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"t\",\"failoverTypes\":[\"Failback\"],\"failoverDirections\":[\"PrimaryToRecovery\",\"RecoveryToPrimary\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]},{\"groupType\":\"Boot\",\"replicationProtectedItems\":[{\"id\":\"etnjuhpsprkz\",\"virtualMachineId\":\"upia\"},{\"id\":\"xnafbw\",\"virtualMachineId\":\"oohtuovmaonurjtu\"},{\"id\":\"hihpvecmsl\",\"virtualMachineId\":\"bl\"}],\"startGroupActions\":[{\"actionName\":\"lt\",\"failoverTypes\":[\"DisableProtection\",\"CancelFailover\",\"TestFailoverCleanup\",\"TestFailoverCleanup\"],\"failoverDirections\":[\"RecoveryToPrimary\",\"PrimaryToRecovery\",\"PrimaryToRecovery\",\"RecoveryToPrimary\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"gctmgxuupbezq\",\"failoverTypes\":[\"PlannedFailover\",\"TestFailoverCleanup\",\"Commit\",\"TestFailover\"],\"failoverDirections\":[\"RecoveryToPrimary\",\"RecoveryToPrimary\",\"RecoveryToPrimary\",\"PrimaryToRecovery\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"qkkyihztgeqmg\",\"failoverTypes\":[\"UnplannedFailover\",\"FinalizeFailback\",\"ReverseReplicate\",\"CancelFailover\"],\"failoverDirections\":[\"RecoveryToPrimary\",\"RecoveryToPrimary\",\"PrimaryToRecovery\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"lcecfeh\",\"failoverTypes\":[\"TestFailoverCleanup\",\"TestFailoverCleanup\"],\"failoverDirections\":[\"PrimaryToRecovery\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"uhicqllizstacsjv\",\"failoverTypes\":[\"Failback\",\"SwitchProtection\"],\"failoverDirections\":[\"PrimaryToRecovery\",\"RecoveryToPrimary\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"wqejpmvsse\",\"failoverTypes\":[\"DisableProtection\",\"ChangePit\",\"CompleteMigration\"],\"failoverDirections\":[\"PrimaryToRecovery\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"cxtczhupeukn\",\"failoverTypes\":[\"TestFailover\",\"CancelFailover\",\"FinalizeFailback\",\"ChangePit\"],\"failoverDirections\":[\"PrimaryToRecovery\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]},{\"groupType\":\"Failover\",\"replicationProtectedItems\":[{\"id\":\"fbocyvhh\",\"virtualMachineId\":\"rtywi\"},{\"id\":\"mhlaku\",\"virtualMachineId\":\"gbhgau\"}],\"startGroupActions\":[{\"actionName\":\"ixmxufrsryjqgdkf\",\"failoverTypes\":[\"ChangePit\"],\"failoverDirections\":[\"RecoveryToPrimary\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"oqbvjhvefgwbmqj\",\"failoverTypes\":[\"CompleteMigration\",\"Commit\",\"TestFailover\"],\"failoverDirections\":[\"RecoveryToPrimary\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"ay\",\"failoverTypes\":[\"Commit\",\"CancelFailover\",\"FinalizeFailback\",\"CancelFailover\"],\"failoverDirections\":[\"RecoveryToPrimary\",\"RecoveryToPrimary\",\"PrimaryToRecovery\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"b\",\"failoverTypes\":[\"FinalizeFailback\",\"ChangePit\",\"ChangePit\"],\"failoverDirections\":[\"PrimaryToRecovery\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"fkmbtsuahxsgxj\",\"failoverTypes\":[\"FinalizeFailback\",\"PlannedFailover\",\"Commit\"],\"failoverDirections\":[\"RecoveryToPrimary\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]},{\"groupType\":\"Boot\",\"replicationProtectedItems\":[{\"id\":\"wsdrnpxqwodif\",\"virtualMachineId\":\"xcjr\"},{\"id\":\"uabwibvjogjo\",\"virtualMachineId\":\"cyefoyzbamwine\"}],\"startGroupActions\":[{\"actionName\":\"fkak\",\"failoverTypes\":[\"FinalizeFailback\",\"UnplannedFailover\",\"CancelFailover\",\"Failback\"],\"failoverDirections\":[\"RecoveryToPrimary\",\"RecoveryToPrimary\",\"PrimaryToRecovery\",\"PrimaryToRecovery\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"lz\",\"failoverTypes\":[\"UnplannedFailover\",\"CancelFailover\"],\"failoverDirections\":[\"RecoveryToPrimary\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"uxgvttxpnr\",\"failoverTypes\":[\"Failback\",\"UnplannedFailover\",\"FinalizeFailback\",\"ChangePit\"],\"failoverDirections\":[\"PrimaryToRecovery\",\"PrimaryToRecovery\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"rekidswysk\",\"failoverTypes\":[\"CompleteMigration\",\"SwitchProtection\",\"CompleteMigration\"],\"failoverDirections\":[\"PrimaryToRecovery\",\"RecoveryToPrimary\",\"PrimaryToRecovery\",\"PrimaryToRecovery\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"kutvlxhrpqhv\",\"failoverTypes\":[\"CancelFailover\",\"TestFailover\",\"PlannedFailover\",\"DisableProtection\"],\"failoverDirections\":[\"PrimaryToRecovery\",\"PrimaryToRecovery\",\"RecoveryToPrimary\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"hbcdsziry\",\"failoverTypes\":[\"DisableProtection\"],\"failoverDirections\":[\"RecoveryToPrimary\",\"RecoveryToPrimary\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]}],\"providerSpecificInput\":[{\"instanceType\":\"RecoveryPlanProviderSpecificInput\"},{\"instanceType\":\"RecoveryPlanProviderSpecificInput\"}]}") - .toObject(CreateRecoveryPlanInputProperties.class); - Assertions.assertEquals("ijp", model.primaryFabricId()); - Assertions.assertEquals("gsksrfhf", model.recoveryFabricId()); - Assertions.assertEquals(FailoverDeploymentModel.NOT_APPLICABLE, model.failoverDeploymentModel()); - Assertions.assertEquals(RecoveryPlanGroupType.BOOT, model.groups().get(0).groupType()); - Assertions.assertEquals("xwcdomm", model.groups().get(0).replicationProtectedItems().get(0).id()); - Assertions.assertEquals("fqawzfgbrttui", - model.groups().get(0).replicationProtectedItems().get(0).virtualMachineId()); - Assertions.assertEquals("swmtxk", model.groups().get(0).startGroupActions().get(0).actionName()); - Assertions.assertEquals(ReplicationProtectedItemOperation.PLANNED_FAILOVER, - model.groups().get(0).startGroupActions().get(0).failoverTypes().get(0)); - Assertions.assertEquals(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - model.groups().get(0).startGroupActions().get(0).failoverDirections().get(0)); - Assertions.assertEquals("ezaifghtmo", model.groups().get(0).endGroupActions().get(0).actionName()); - Assertions.assertEquals(ReplicationProtectedItemOperation.PLANNED_FAILOVER, - model.groups().get(0).endGroupActions().get(0).failoverTypes().get(0)); - Assertions.assertEquals(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - model.groups().get(0).endGroupActions().get(0).failoverDirections().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CreateRecoveryPlanInputProperties model = new CreateRecoveryPlanInputProperties().withPrimaryFabricId("ijp") - .withRecoveryFabricId("gsksrfhf") - .withFailoverDeploymentModel(FailoverDeploymentModel.NOT_APPLICABLE) - .withGroups(Arrays.asList( - new RecoveryPlanGroup().withGroupType(RecoveryPlanGroupType.BOOT) - .withReplicationProtectedItems(Arrays.asList( - new RecoveryPlanProtectedItem().withId("xwcdomm").withVirtualMachineId("fqawzfgbrttui"), - new RecoveryPlanProtectedItem().withId("lkiexhajlfnthiq").withVirtualMachineId("uttdiygbp"))) - .withStartGroupActions(Arrays.asList( - new RecoveryPlanAction().withActionName("swmtxk") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.PLANNED_FAILOVER, - ReplicationProtectedItemOperation.REPAIR_REPLICATION)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("jlmec") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.REVERSE_REPLICATE)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY)) - .withCustomDetails(new RecoveryPlanActionDetails()))) - .withEndGroupActions(Arrays.asList( - new RecoveryPlanAction().withActionName("ezaifghtmo") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.PLANNED_FAILOVER, - ReplicationProtectedItemOperation.CANCEL_FAILOVER, - ReplicationProtectedItemOperation.REPAIR_REPLICATION)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("bkrkjj") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.PLANNED_FAILOVER, - ReplicationProtectedItemOperation.CANCEL_FAILOVER, - ReplicationProtectedItemOperation.REPAIR_REPLICATION, - ReplicationProtectedItemOperation.TEST_FAILOVER_CLEANUP)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("qoewdogiyetesy") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.FAILBACK, - ReplicationProtectedItemOperation.REVERSE_REPLICATE, - ReplicationProtectedItemOperation.UNPLANNED_FAILOVER)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("t") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.FAILBACK)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY)) - .withCustomDetails(new RecoveryPlanActionDetails()))), - new RecoveryPlanGroup().withGroupType(RecoveryPlanGroupType.BOOT) - .withReplicationProtectedItems(Arrays.asList( - new RecoveryPlanProtectedItem().withId("etnjuhpsprkz").withVirtualMachineId("upia"), - new RecoveryPlanProtectedItem().withId("xnafbw").withVirtualMachineId("oohtuovmaonurjtu"), - new RecoveryPlanProtectedItem().withId("hihpvecmsl").withVirtualMachineId("bl"))) - .withStartGroupActions(Arrays.asList( - new RecoveryPlanAction().withActionName("lt") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.DISABLE_PROTECTION, - ReplicationProtectedItemOperation.CANCEL_FAILOVER, - ReplicationProtectedItemOperation.TEST_FAILOVER_CLEANUP, - ReplicationProtectedItemOperation.TEST_FAILOVER_CLEANUP)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("gctmgxuupbezq") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.PLANNED_FAILOVER, - ReplicationProtectedItemOperation.TEST_FAILOVER_CLEANUP, - ReplicationProtectedItemOperation.COMMIT, - ReplicationProtectedItemOperation.TEST_FAILOVER)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("qkkyihztgeqmg") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.UNPLANNED_FAILOVER, - ReplicationProtectedItemOperation.FINALIZE_FAILBACK, - ReplicationProtectedItemOperation.REVERSE_REPLICATE, - ReplicationProtectedItemOperation.CANCEL_FAILOVER)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY)) - .withCustomDetails(new RecoveryPlanActionDetails()))) - .withEndGroupActions(Arrays.asList( - new RecoveryPlanAction().withActionName("lcecfeh") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.TEST_FAILOVER_CLEANUP, - ReplicationProtectedItemOperation.TEST_FAILOVER_CLEANUP)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.PRIMARY_TO_RECOVERY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("uhicqllizstacsjv") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.FAILBACK, - ReplicationProtectedItemOperation.SWITCH_PROTECTION)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("wqejpmvsse") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.DISABLE_PROTECTION, - ReplicationProtectedItemOperation.CHANGE_PIT, - ReplicationProtectedItemOperation.COMPLETE_MIGRATION)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.PRIMARY_TO_RECOVERY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("cxtczhupeukn") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.TEST_FAILOVER, - ReplicationProtectedItemOperation.CANCEL_FAILOVER, - ReplicationProtectedItemOperation.FINALIZE_FAILBACK, - ReplicationProtectedItemOperation.CHANGE_PIT)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.PRIMARY_TO_RECOVERY)) - .withCustomDetails(new RecoveryPlanActionDetails()))), - new RecoveryPlanGroup().withGroupType(RecoveryPlanGroupType.FAILOVER) - .withReplicationProtectedItems( - Arrays.asList(new RecoveryPlanProtectedItem().withId("fbocyvhh").withVirtualMachineId("rtywi"), - new RecoveryPlanProtectedItem().withId("mhlaku").withVirtualMachineId("gbhgau"))) - .withStartGroupActions(Arrays.asList( - new RecoveryPlanAction().withActionName("ixmxufrsryjqgdkf") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.CHANGE_PIT)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.RECOVERY_TO_PRIMARY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("oqbvjhvefgwbmqj") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.COMPLETE_MIGRATION, - ReplicationProtectedItemOperation.COMMIT, - ReplicationProtectedItemOperation.TEST_FAILOVER)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.RECOVERY_TO_PRIMARY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("ay") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.COMMIT, - ReplicationProtectedItemOperation.CANCEL_FAILOVER, - ReplicationProtectedItemOperation.FINALIZE_FAILBACK, - ReplicationProtectedItemOperation.CANCEL_FAILOVER)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("b") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.FINALIZE_FAILBACK, - ReplicationProtectedItemOperation.CHANGE_PIT, - ReplicationProtectedItemOperation.CHANGE_PIT)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.PRIMARY_TO_RECOVERY)) - .withCustomDetails(new RecoveryPlanActionDetails()))) - .withEndGroupActions(Arrays.asList(new RecoveryPlanAction().withActionName("fkmbtsuahxsgxj") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.FINALIZE_FAILBACK, - ReplicationProtectedItemOperation.PLANNED_FAILOVER, - ReplicationProtectedItemOperation.COMMIT)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.RECOVERY_TO_PRIMARY)) - .withCustomDetails(new RecoveryPlanActionDetails()))), - new RecoveryPlanGroup().withGroupType(RecoveryPlanGroupType.BOOT) - .withReplicationProtectedItems(Arrays.asList( - new RecoveryPlanProtectedItem().withId("wsdrnpxqwodif").withVirtualMachineId("xcjr"), - new RecoveryPlanProtectedItem().withId("uabwibvjogjo").withVirtualMachineId("cyefoyzbamwine"))) - .withStartGroupActions(Arrays.asList( - new RecoveryPlanAction().withActionName("fkak") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.FINALIZE_FAILBACK, - ReplicationProtectedItemOperation.UNPLANNED_FAILOVER, - ReplicationProtectedItemOperation.CANCEL_FAILOVER, - ReplicationProtectedItemOperation.FAILBACK)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("lz") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.UNPLANNED_FAILOVER, - ReplicationProtectedItemOperation.CANCEL_FAILOVER)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.RECOVERY_TO_PRIMARY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("uxgvttxpnr") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.FAILBACK, - ReplicationProtectedItemOperation.UNPLANNED_FAILOVER, - ReplicationProtectedItemOperation.FINALIZE_FAILBACK, - ReplicationProtectedItemOperation.CHANGE_PIT)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY)) - .withCustomDetails(new RecoveryPlanActionDetails()))) - .withEndGroupActions(Arrays.asList( - new RecoveryPlanAction().withActionName("rekidswysk") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.COMPLETE_MIGRATION, - ReplicationProtectedItemOperation.SWITCH_PROTECTION, - ReplicationProtectedItemOperation.COMPLETE_MIGRATION)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("kutvlxhrpqhv") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.CANCEL_FAILOVER, - ReplicationProtectedItemOperation.TEST_FAILOVER, - ReplicationProtectedItemOperation.PLANNED_FAILOVER, - ReplicationProtectedItemOperation.DISABLE_PROTECTION)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("hbcdsziry") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.DISABLE_PROTECTION)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY)) - .withCustomDetails(new RecoveryPlanActionDetails()))))) - .withProviderSpecificInput( - Arrays.asList(new RecoveryPlanProviderSpecificInput(), new RecoveryPlanProviderSpecificInput())); - model = BinaryData.fromObject(model).toObject(CreateRecoveryPlanInputProperties.class); - Assertions.assertEquals("ijp", model.primaryFabricId()); - Assertions.assertEquals("gsksrfhf", model.recoveryFabricId()); - Assertions.assertEquals(FailoverDeploymentModel.NOT_APPLICABLE, model.failoverDeploymentModel()); - Assertions.assertEquals(RecoveryPlanGroupType.BOOT, model.groups().get(0).groupType()); - Assertions.assertEquals("xwcdomm", model.groups().get(0).replicationProtectedItems().get(0).id()); - Assertions.assertEquals("fqawzfgbrttui", - model.groups().get(0).replicationProtectedItems().get(0).virtualMachineId()); - Assertions.assertEquals("swmtxk", model.groups().get(0).startGroupActions().get(0).actionName()); - Assertions.assertEquals(ReplicationProtectedItemOperation.PLANNED_FAILOVER, - model.groups().get(0).startGroupActions().get(0).failoverTypes().get(0)); - Assertions.assertEquals(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - model.groups().get(0).startGroupActions().get(0).failoverDirections().get(0)); - Assertions.assertEquals("ezaifghtmo", model.groups().get(0).endGroupActions().get(0).actionName()); - Assertions.assertEquals(ReplicationProtectedItemOperation.PLANNED_FAILOVER, - model.groups().get(0).endGroupActions().get(0).failoverTypes().get(0)); - Assertions.assertEquals(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - model.groups().get(0).endGroupActions().get(0).failoverDirections().get(0)); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/CreateRecoveryPlanInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/CreateRecoveryPlanInputTests.java deleted file mode 100644 index 337ec23bd160..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/CreateRecoveryPlanInputTests.java +++ /dev/null @@ -1,138 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.CreateRecoveryPlanInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.CreateRecoveryPlanInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.FailoverDeploymentModel; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.PossibleOperationsDirections; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanAction; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanActionDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanGroup; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanGroupType; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanProtectedItem; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanProviderSpecificInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationProtectedItemOperation; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class CreateRecoveryPlanInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CreateRecoveryPlanInput model = BinaryData.fromString( - "{\"properties\":{\"primaryFabricId\":\"gvoavyunssxlgh\",\"recoveryFabricId\":\"ee\",\"failoverDeploymentModel\":\"NotApplicable\",\"groups\":[{\"groupType\":\"Shutdown\",\"replicationProtectedItems\":[{\"id\":\"seksgbux\",\"virtualMachineId\":\"tu\"},{\"id\":\"dhga\",\"virtualMachineId\":\"pirpiwrqof\"}],\"startGroupActions\":[{\"actionName\":\"pmjnlexwhcb\",\"failoverTypes\":[\"CancelFailover\",\"ChangePit\",\"CancelFailover\"],\"failoverDirections\":[\"RecoveryToPrimary\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"uuerctatoyi\",\"failoverTypes\":[\"UnplannedFailover\",\"DisableProtection\"],\"failoverDirections\":[\"PrimaryToRecovery\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"lc\",\"failoverTypes\":[\"UnplannedFailover\",\"Commit\",\"TestFailoverCleanup\",\"ChangePit\"],\"failoverDirections\":[\"PrimaryToRecovery\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]},{\"groupType\":\"Failover\",\"replicationProtectedItems\":[{\"id\":\"fsrucv\",\"virtualMachineId\":\"rpcjttbstvjeaqnr\"}],\"startGroupActions\":[{\"actionName\":\"fkoxmlghktuidvr\",\"failoverTypes\":[\"PlannedFailover\"],\"failoverDirections\":[\"RecoveryToPrimary\",\"PrimaryToRecovery\",\"RecoveryToPrimary\",\"PrimaryToRecovery\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"exymzvla\",\"failoverTypes\":[\"DisableProtection\"],\"failoverDirections\":[\"RecoveryToPrimary\",\"RecoveryToPrimary\",\"PrimaryToRecovery\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"sgnyyuuzivensrp\",\"failoverTypes\":[\"FinalizeFailback\",\"FinalizeFailback\",\"ChangePit\"],\"failoverDirections\":[\"RecoveryToPrimary\",\"PrimaryToRecovery\",\"PrimaryToRecovery\",\"PrimaryToRecovery\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]}],\"providerSpecificInput\":[{\"instanceType\":\"RecoveryPlanProviderSpecificInput\"},{\"instanceType\":\"RecoveryPlanProviderSpecificInput\"},{\"instanceType\":\"RecoveryPlanProviderSpecificInput\"}]}}") - .toObject(CreateRecoveryPlanInput.class); - Assertions.assertEquals("gvoavyunssxlgh", model.properties().primaryFabricId()); - Assertions.assertEquals("ee", model.properties().recoveryFabricId()); - Assertions.assertEquals(FailoverDeploymentModel.NOT_APPLICABLE, model.properties().failoverDeploymentModel()); - Assertions.assertEquals(RecoveryPlanGroupType.SHUTDOWN, model.properties().groups().get(0).groupType()); - Assertions.assertEquals("seksgbux", model.properties().groups().get(0).replicationProtectedItems().get(0).id()); - Assertions.assertEquals("tu", - model.properties().groups().get(0).replicationProtectedItems().get(0).virtualMachineId()); - Assertions.assertEquals("pmjnlexwhcb", - model.properties().groups().get(0).startGroupActions().get(0).actionName()); - Assertions.assertEquals(ReplicationProtectedItemOperation.CANCEL_FAILOVER, - model.properties().groups().get(0).startGroupActions().get(0).failoverTypes().get(0)); - Assertions.assertEquals(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - model.properties().groups().get(0).startGroupActions().get(0).failoverDirections().get(0)); - Assertions.assertEquals("uuerctatoyi", - model.properties().groups().get(0).endGroupActions().get(0).actionName()); - Assertions.assertEquals(ReplicationProtectedItemOperation.UNPLANNED_FAILOVER, - model.properties().groups().get(0).endGroupActions().get(0).failoverTypes().get(0)); - Assertions.assertEquals(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - model.properties().groups().get(0).endGroupActions().get(0).failoverDirections().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CreateRecoveryPlanInput model = new CreateRecoveryPlanInput() - .withProperties(new CreateRecoveryPlanInputProperties().withPrimaryFabricId("gvoavyunssxlgh") - .withRecoveryFabricId("ee") - .withFailoverDeploymentModel(FailoverDeploymentModel.NOT_APPLICABLE) - .withGroups( - Arrays.asList( - new RecoveryPlanGroup().withGroupType(RecoveryPlanGroupType.SHUTDOWN) - .withReplicationProtectedItems(Arrays.asList( - new RecoveryPlanProtectedItem().withId("seksgbux").withVirtualMachineId("tu"), - new RecoveryPlanProtectedItem().withId("dhga").withVirtualMachineId("pirpiwrqof"))) - .withStartGroupActions(Arrays.asList(new RecoveryPlanAction() - .withActionName("pmjnlexwhcb") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.CANCEL_FAILOVER, - ReplicationProtectedItemOperation.CHANGE_PIT, - ReplicationProtectedItemOperation.CANCEL_FAILOVER)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.RECOVERY_TO_PRIMARY)) - .withCustomDetails(new RecoveryPlanActionDetails()))) - .withEndGroupActions(Arrays.asList(new RecoveryPlanAction() - .withActionName("uuerctatoyi") - .withFailoverTypes( - Arrays.asList(ReplicationProtectedItemOperation.UNPLANNED_FAILOVER, - ReplicationProtectedItemOperation.DISABLE_PROTECTION)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.PRIMARY_TO_RECOVERY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("lc") - .withFailoverTypes( - Arrays.asList(ReplicationProtectedItemOperation.UNPLANNED_FAILOVER, - ReplicationProtectedItemOperation.COMMIT, - ReplicationProtectedItemOperation.TEST_FAILOVER_CLEANUP, - ReplicationProtectedItemOperation.CHANGE_PIT)) - .withFailoverDirections( - Arrays.asList(PossibleOperationsDirections.PRIMARY_TO_RECOVERY)) - .withCustomDetails(new RecoveryPlanActionDetails()))), - new RecoveryPlanGroup().withGroupType(RecoveryPlanGroupType.FAILOVER) - .withReplicationProtectedItems(Arrays - .asList(new RecoveryPlanProtectedItem().withId("fsrucv") - .withVirtualMachineId("rpcjttbstvjeaqnr"))) - .withStartGroupActions(Arrays.asList(new RecoveryPlanAction() - .withActionName("fkoxmlghktuidvr") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.PLANNED_FAILOVER)) - .withFailoverDirections( - Arrays.asList(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("exymzvla") - .withFailoverTypes( - Arrays.asList(ReplicationProtectedItemOperation.DISABLE_PROTECTION)) - .withFailoverDirections( - Arrays.asList(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY)) - .withCustomDetails(new RecoveryPlanActionDetails()))) - .withEndGroupActions(Arrays.asList(new RecoveryPlanAction() - .withActionName("sgnyyuuzivensrp") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.FINALIZE_FAILBACK, - ReplicationProtectedItemOperation.FINALIZE_FAILBACK, - ReplicationProtectedItemOperation.CHANGE_PIT)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY)) - .withCustomDetails(new RecoveryPlanActionDetails()))))) - .withProviderSpecificInput(Arrays.asList(new RecoveryPlanProviderSpecificInput(), - new RecoveryPlanProviderSpecificInput(), new RecoveryPlanProviderSpecificInput()))); - model = BinaryData.fromObject(model).toObject(CreateRecoveryPlanInput.class); - Assertions.assertEquals("gvoavyunssxlgh", model.properties().primaryFabricId()); - Assertions.assertEquals("ee", model.properties().recoveryFabricId()); - Assertions.assertEquals(FailoverDeploymentModel.NOT_APPLICABLE, model.properties().failoverDeploymentModel()); - Assertions.assertEquals(RecoveryPlanGroupType.SHUTDOWN, model.properties().groups().get(0).groupType()); - Assertions.assertEquals("seksgbux", model.properties().groups().get(0).replicationProtectedItems().get(0).id()); - Assertions.assertEquals("tu", - model.properties().groups().get(0).replicationProtectedItems().get(0).virtualMachineId()); - Assertions.assertEquals("pmjnlexwhcb", - model.properties().groups().get(0).startGroupActions().get(0).actionName()); - Assertions.assertEquals(ReplicationProtectedItemOperation.CANCEL_FAILOVER, - model.properties().groups().get(0).startGroupActions().get(0).failoverTypes().get(0)); - Assertions.assertEquals(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - model.properties().groups().get(0).startGroupActions().get(0).failoverDirections().get(0)); - Assertions.assertEquals("uuerctatoyi", - model.properties().groups().get(0).endGroupActions().get(0).actionName()); - Assertions.assertEquals(ReplicationProtectedItemOperation.UNPLANNED_FAILOVER, - model.properties().groups().get(0).endGroupActions().get(0).failoverTypes().get(0)); - Assertions.assertEquals(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - model.properties().groups().get(0).endGroupActions().get(0).failoverDirections().get(0)); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/CriticalJobHistoryDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/CriticalJobHistoryDetailsTests.java deleted file mode 100644 index 4822366a41f5..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/CriticalJobHistoryDetailsTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.CriticalJobHistoryDetails; - -public final class CriticalJobHistoryDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CriticalJobHistoryDetails model = BinaryData.fromString( - "{\"jobName\":\"iplrbpbewtghfgb\",\"jobId\":\"gw\",\"startTime\":\"2021-01-14T04:37:45Z\",\"jobStatus\":\"v\"}") - .toObject(CriticalJobHistoryDetails.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CriticalJobHistoryDetails model = new CriticalJobHistoryDetails(); - model = BinaryData.fromObject(model).toObject(CriticalJobHistoryDetails.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/CurrentJobDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/CurrentJobDetailsTests.java deleted file mode 100644 index 4a607fdabf14..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/CurrentJobDetailsTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.CurrentJobDetails; - -public final class CurrentJobDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CurrentJobDetails model - = BinaryData.fromString("{\"jobName\":\"obbc\",\"jobId\":\"s\",\"startTime\":\"2021-04-25T18:58:37Z\"}") - .toObject(CurrentJobDetails.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CurrentJobDetails model = new CurrentJobDetails(); - model = BinaryData.fromObject(model).toObject(CurrentJobDetails.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/CurrentScenarioDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/CurrentScenarioDetailsTests.java deleted file mode 100644 index f81637aee400..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/CurrentScenarioDetailsTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.CurrentScenarioDetails; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; - -public final class CurrentScenarioDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CurrentScenarioDetails model = BinaryData - .fromString( - "{\"scenarioName\":\"epxgyqagvr\",\"jobId\":\"npkukghimdblx\",\"startTime\":\"2021-02-15T12:58:28Z\"}") - .toObject(CurrentScenarioDetails.class); - Assertions.assertEquals("epxgyqagvr", model.scenarioName()); - Assertions.assertEquals("npkukghimdblx", model.jobId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-15T12:58:28Z"), model.startTime()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CurrentScenarioDetails model = new CurrentScenarioDetails().withScenarioName("epxgyqagvr") - .withJobId("npkukghimdblx") - .withStartTime(OffsetDateTime.parse("2021-02-15T12:58:28Z")); - model = BinaryData.fromObject(model).toObject(CurrentScenarioDetails.class); - Assertions.assertEquals("epxgyqagvr", model.scenarioName()); - Assertions.assertEquals("npkukghimdblx", model.jobId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-15T12:58:28Z"), model.startTime()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/DataStoreTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/DataStoreTests.java deleted file mode 100644 index c09101f21106..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/DataStoreTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.DataStore; -import org.junit.jupiter.api.Assertions; - -public final class DataStoreTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataStore model = BinaryData.fromString( - "{\"symbolicName\":\"ogfuyzwvbhlim\",\"uuid\":\"qecroodl\",\"capacity\":\"cdrdaasaxxo\",\"freeSpace\":\"mfkwiyjvzuk\",\"type\":\"r\"}") - .toObject(DataStore.class); - Assertions.assertEquals("ogfuyzwvbhlim", model.symbolicName()); - Assertions.assertEquals("qecroodl", model.uuid()); - Assertions.assertEquals("cdrdaasaxxo", model.capacity()); - Assertions.assertEquals("mfkwiyjvzuk", model.freeSpace()); - Assertions.assertEquals("r", model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataStore model = new DataStore().withSymbolicName("ogfuyzwvbhlim") - .withUuid("qecroodl") - .withCapacity("cdrdaasaxxo") - .withFreeSpace("mfkwiyjvzuk") - .withType("r"); - model = BinaryData.fromObject(model).toObject(DataStore.class); - Assertions.assertEquals("ogfuyzwvbhlim", model.symbolicName()); - Assertions.assertEquals("qecroodl", model.uuid()); - Assertions.assertEquals("cdrdaasaxxo", model.capacity()); - Assertions.assertEquals("mfkwiyjvzuk", model.freeSpace()); - Assertions.assertEquals("r", model.type()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/DataStoreUtilizationDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/DataStoreUtilizationDetailsTests.java deleted file mode 100644 index c39c8c0eb623..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/DataStoreUtilizationDetailsTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.DataStoreUtilizationDetails; - -public final class DataStoreUtilizationDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataStoreUtilizationDetails model = BinaryData.fromString( - "{\"totalSnapshotsSupported\":3097932904552377371,\"totalSnapshotsCreated\":4245389434648384828,\"dataStoreName\":\"kdschlzvfictnkjj\"}") - .toObject(DataStoreUtilizationDetails.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataStoreUtilizationDetails model = new DataStoreUtilizationDetails(); - model = BinaryData.fromObject(model).toObject(DataStoreUtilizationDetails.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/DisableProtectionInputPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/DisableProtectionInputPropertiesTests.java deleted file mode 100644 index a63f987146c2..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/DisableProtectionInputPropertiesTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.DisableProtectionInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.DisableProtectionProviderSpecificInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.DisableProtectionReason; -import org.junit.jupiter.api.Assertions; - -public final class DisableProtectionInputPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DisableProtectionInputProperties model = BinaryData.fromString( - "{\"disableProtectionReason\":\"NotSpecified\",\"replicationProviderInput\":{\"instanceType\":\"DisableProtectionProviderSpecificInput\"}}") - .toObject(DisableProtectionInputProperties.class); - Assertions.assertEquals(DisableProtectionReason.NOT_SPECIFIED, model.disableProtectionReason()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DisableProtectionInputProperties model - = new DisableProtectionInputProperties().withDisableProtectionReason(DisableProtectionReason.NOT_SPECIFIED) - .withReplicationProviderInput(new DisableProtectionProviderSpecificInput()); - model = BinaryData.fromObject(model).toObject(DisableProtectionInputProperties.class); - Assertions.assertEquals(DisableProtectionReason.NOT_SPECIFIED, model.disableProtectionReason()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/DisableProtectionInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/DisableProtectionInputTests.java deleted file mode 100644 index 9e567ebe9dab..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/DisableProtectionInputTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.DisableProtectionInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.DisableProtectionInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.DisableProtectionProviderSpecificInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.DisableProtectionReason; -import org.junit.jupiter.api.Assertions; - -public final class DisableProtectionInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DisableProtectionInput model = BinaryData.fromString( - "{\"properties\":{\"disableProtectionReason\":\"NotSpecified\",\"replicationProviderInput\":{\"instanceType\":\"DisableProtectionProviderSpecificInput\"}}}") - .toObject(DisableProtectionInput.class); - Assertions.assertEquals(DisableProtectionReason.NOT_SPECIFIED, model.properties().disableProtectionReason()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DisableProtectionInput model = new DisableProtectionInput().withProperties( - new DisableProtectionInputProperties().withDisableProtectionReason(DisableProtectionReason.NOT_SPECIFIED) - .withReplicationProviderInput(new DisableProtectionProviderSpecificInput())); - model = BinaryData.fromObject(model).toObject(DisableProtectionInput.class); - Assertions.assertEquals(DisableProtectionReason.NOT_SPECIFIED, model.properties().disableProtectionReason()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/DisableProtectionProviderSpecificInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/DisableProtectionProviderSpecificInputTests.java deleted file mode 100644 index f19b3f24da60..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/DisableProtectionProviderSpecificInputTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.DisableProtectionProviderSpecificInput; - -public final class DisableProtectionProviderSpecificInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DisableProtectionProviderSpecificInput model - = BinaryData.fromString("{\"instanceType\":\"DisableProtectionProviderSpecificInput\"}") - .toObject(DisableProtectionProviderSpecificInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DisableProtectionProviderSpecificInput model = new DisableProtectionProviderSpecificInput(); - model = BinaryData.fromObject(model).toObject(DisableProtectionProviderSpecificInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/DiscoverProtectableItemRequestPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/DiscoverProtectableItemRequestPropertiesTests.java deleted file mode 100644 index 7e8f87be5a69..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/DiscoverProtectableItemRequestPropertiesTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.DiscoverProtectableItemRequestProperties; -import org.junit.jupiter.api.Assertions; - -public final class DiscoverProtectableItemRequestPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DiscoverProtectableItemRequestProperties model = BinaryData - .fromString("{\"friendlyName\":\"aiuebbaumnyqu\",\"ipAddress\":\"deoj\",\"osType\":\"bckhsmtxpsi\"}") - .toObject(DiscoverProtectableItemRequestProperties.class); - Assertions.assertEquals("aiuebbaumnyqu", model.friendlyName()); - Assertions.assertEquals("deoj", model.ipAddress()); - Assertions.assertEquals("bckhsmtxpsi", model.osType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DiscoverProtectableItemRequestProperties model - = new DiscoverProtectableItemRequestProperties().withFriendlyName("aiuebbaumnyqu") - .withIpAddress("deoj") - .withOsType("bckhsmtxpsi"); - model = BinaryData.fromObject(model).toObject(DiscoverProtectableItemRequestProperties.class); - Assertions.assertEquals("aiuebbaumnyqu", model.friendlyName()); - Assertions.assertEquals("deoj", model.ipAddress()); - Assertions.assertEquals("bckhsmtxpsi", model.osType()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/DiscoverProtectableItemRequestTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/DiscoverProtectableItemRequestTests.java deleted file mode 100644 index c2de96e3ac72..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/DiscoverProtectableItemRequestTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.DiscoverProtectableItemRequest; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.DiscoverProtectableItemRequestProperties; -import org.junit.jupiter.api.Assertions; - -public final class DiscoverProtectableItemRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DiscoverProtectableItemRequest model = BinaryData - .fromString( - "{\"properties\":{\"friendlyName\":\"sxnkjzkdeslpvlo\",\"ipAddress\":\"i\",\"osType\":\"ghxpkdw\"}}") - .toObject(DiscoverProtectableItemRequest.class); - Assertions.assertEquals("sxnkjzkdeslpvlo", model.properties().friendlyName()); - Assertions.assertEquals("i", model.properties().ipAddress()); - Assertions.assertEquals("ghxpkdw", model.properties().osType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DiscoverProtectableItemRequest model = new DiscoverProtectableItemRequest() - .withProperties(new DiscoverProtectableItemRequestProperties().withFriendlyName("sxnkjzkdeslpvlo") - .withIpAddress("i") - .withOsType("ghxpkdw")); - model = BinaryData.fromObject(model).toObject(DiscoverProtectableItemRequest.class); - Assertions.assertEquals("sxnkjzkdeslpvlo", model.properties().friendlyName()); - Assertions.assertEquals("i", model.properties().ipAddress()); - Assertions.assertEquals("ghxpkdw", model.properties().osType()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/DiskDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/DiskDetailsTests.java deleted file mode 100644 index 67073f36e794..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/DiskDetailsTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.DiskDetails; -import org.junit.jupiter.api.Assertions; - -public final class DiskDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DiskDetails model = BinaryData - .fromString( - "{\"maxSizeMB\":3920956440221145049,\"vhdType\":\"zm\",\"vhdId\":\"k\",\"vhdName\":\"wsxvjab\"}") - .toObject(DiskDetails.class); - Assertions.assertEquals(3920956440221145049L, model.maxSizeMB()); - Assertions.assertEquals("zm", model.vhdType()); - Assertions.assertEquals("k", model.vhdId()); - Assertions.assertEquals("wsxvjab", model.vhdName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DiskDetails model = new DiskDetails().withMaxSizeMB(3920956440221145049L) - .withVhdType("zm") - .withVhdId("k") - .withVhdName("wsxvjab"); - model = BinaryData.fromObject(model).toObject(DiskDetails.class); - Assertions.assertEquals(3920956440221145049L, model.maxSizeMB()); - Assertions.assertEquals("zm", model.vhdType()); - Assertions.assertEquals("k", model.vhdId()); - Assertions.assertEquals("wsxvjab", model.vhdName()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/DiskVolumeDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/DiskVolumeDetailsTests.java deleted file mode 100644 index 0ad172b4047d..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/DiskVolumeDetailsTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.DiskVolumeDetails; -import org.junit.jupiter.api.Assertions; - -public final class DiskVolumeDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DiskVolumeDetails model - = BinaryData.fromString("{\"label\":\"qa\",\"name\":\"yvymcnudndo\"}").toObject(DiskVolumeDetails.class); - Assertions.assertEquals("qa", model.label()); - Assertions.assertEquals("yvymcnudndo", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DiskVolumeDetails model = new DiskVolumeDetails().withLabel("qa").withName("yvymcnudndo"); - model = BinaryData.fromObject(model).toObject(DiskVolumeDetails.class); - Assertions.assertEquals("qa", model.label()); - Assertions.assertEquals("yvymcnudndo", model.name()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/DisplayTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/DisplayTests.java deleted file mode 100644 index a951434db647..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/DisplayTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.Display; -import org.junit.jupiter.api.Assertions; - -public final class DisplayTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Display model = BinaryData - .fromString( - "{\"provider\":\"a\",\"resource\":\"th\",\"operation\":\"hab\",\"description\":\"pikxwczbyscnpqxu\"}") - .toObject(Display.class); - Assertions.assertEquals("a", model.provider()); - Assertions.assertEquals("th", model.resource()); - Assertions.assertEquals("hab", model.operation()); - Assertions.assertEquals("pikxwczbyscnpqxu", model.description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Display model = new Display().withProvider("a") - .withResource("th") - .withOperation("hab") - .withDescription("pikxwczbyscnpqxu"); - model = BinaryData.fromObject(model).toObject(Display.class); - Assertions.assertEquals("a", model.provider()); - Assertions.assertEquals("th", model.resource()); - Assertions.assertEquals("hab", model.operation()); - Assertions.assertEquals("pikxwczbyscnpqxu", model.description()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/EnableMigrationInputPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/EnableMigrationInputPropertiesTests.java deleted file mode 100644 index f9346d1e7b90..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/EnableMigrationInputPropertiesTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.EnableMigrationInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.EnableMigrationProviderSpecificInput; -import org.junit.jupiter.api.Assertions; - -public final class EnableMigrationInputPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - EnableMigrationInputProperties model = BinaryData.fromString( - "{\"policyId\":\"waloayqcgwr\",\"providerSpecificDetails\":{\"instanceType\":\"EnableMigrationProviderSpecificInput\"}}") - .toObject(EnableMigrationInputProperties.class); - Assertions.assertEquals("waloayqcgwr", model.policyId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EnableMigrationInputProperties model = new EnableMigrationInputProperties().withPolicyId("waloayqcgwr") - .withProviderSpecificDetails(new EnableMigrationProviderSpecificInput()); - model = BinaryData.fromObject(model).toObject(EnableMigrationInputProperties.class); - Assertions.assertEquals("waloayqcgwr", model.policyId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/EnableMigrationInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/EnableMigrationInputTests.java deleted file mode 100644 index 449ae2ad386b..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/EnableMigrationInputTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.EnableMigrationInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.EnableMigrationInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.EnableMigrationProviderSpecificInput; -import org.junit.jupiter.api.Assertions; - -public final class EnableMigrationInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - EnableMigrationInput model = BinaryData.fromString( - "{\"properties\":{\"policyId\":\"hjkbegibtnmxieb\",\"providerSpecificDetails\":{\"instanceType\":\"EnableMigrationProviderSpecificInput\"}}}") - .toObject(EnableMigrationInput.class); - Assertions.assertEquals("hjkbegibtnmxieb", model.properties().policyId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EnableMigrationInput model = new EnableMigrationInput() - .withProperties(new EnableMigrationInputProperties().withPolicyId("hjkbegibtnmxieb") - .withProviderSpecificDetails(new EnableMigrationProviderSpecificInput())); - model = BinaryData.fromObject(model).toObject(EnableMigrationInput.class); - Assertions.assertEquals("hjkbegibtnmxieb", model.properties().policyId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/EnableMigrationProviderSpecificInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/EnableMigrationProviderSpecificInputTests.java deleted file mode 100644 index 9d79fb84b234..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/EnableMigrationProviderSpecificInputTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.EnableMigrationProviderSpecificInput; - -public final class EnableMigrationProviderSpecificInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - EnableMigrationProviderSpecificInput model - = BinaryData.fromString("{\"instanceType\":\"EnableMigrationProviderSpecificInput\"}") - .toObject(EnableMigrationProviderSpecificInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EnableMigrationProviderSpecificInput model = new EnableMigrationProviderSpecificInput(); - model = BinaryData.fromObject(model).toObject(EnableMigrationProviderSpecificInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/EnableProtectionInputPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/EnableProtectionInputPropertiesTests.java deleted file mode 100644 index ca0cc397a33a..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/EnableProtectionInputPropertiesTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.EnableProtectionInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.EnableProtectionProviderSpecificInput; -import org.junit.jupiter.api.Assertions; - -public final class EnableProtectionInputPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - EnableProtectionInputProperties model = BinaryData.fromString( - "{\"policyId\":\"rey\",\"protectableItemId\":\"zi\",\"providerSpecificDetails\":{\"instanceType\":\"EnableProtectionProviderSpecificInput\"}}") - .toObject(EnableProtectionInputProperties.class); - Assertions.assertEquals("rey", model.policyId()); - Assertions.assertEquals("zi", model.protectableItemId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EnableProtectionInputProperties model = new EnableProtectionInputProperties().withPolicyId("rey") - .withProtectableItemId("zi") - .withProviderSpecificDetails(new EnableProtectionProviderSpecificInput()); - model = BinaryData.fromObject(model).toObject(EnableProtectionInputProperties.class); - Assertions.assertEquals("rey", model.policyId()); - Assertions.assertEquals("zi", model.protectableItemId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/EnableProtectionInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/EnableProtectionInputTests.java deleted file mode 100644 index 653bff93a70e..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/EnableProtectionInputTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.EnableProtectionInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.EnableProtectionInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.EnableProtectionProviderSpecificInput; -import org.junit.jupiter.api.Assertions; - -public final class EnableProtectionInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - EnableProtectionInput model = BinaryData.fromString( - "{\"properties\":{\"policyId\":\"njhf\",\"protectableItemId\":\"wmszkk\",\"providerSpecificDetails\":{\"instanceType\":\"EnableProtectionProviderSpecificInput\"}}}") - .toObject(EnableProtectionInput.class); - Assertions.assertEquals("njhf", model.properties().policyId()); - Assertions.assertEquals("wmszkk", model.properties().protectableItemId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EnableProtectionInput model - = new EnableProtectionInput().withProperties(new EnableProtectionInputProperties().withPolicyId("njhf") - .withProtectableItemId("wmszkk") - .withProviderSpecificDetails(new EnableProtectionProviderSpecificInput())); - model = BinaryData.fromObject(model).toObject(EnableProtectionInput.class); - Assertions.assertEquals("njhf", model.properties().policyId()); - Assertions.assertEquals("wmszkk", model.properties().protectableItemId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/EnableProtectionProviderSpecificInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/EnableProtectionProviderSpecificInputTests.java deleted file mode 100644 index 4160deac2372..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/EnableProtectionProviderSpecificInputTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.EnableProtectionProviderSpecificInput; - -public final class EnableProtectionProviderSpecificInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - EnableProtectionProviderSpecificInput model - = BinaryData.fromString("{\"instanceType\":\"EnableProtectionProviderSpecificInput\"}") - .toObject(EnableProtectionProviderSpecificInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EnableProtectionProviderSpecificInput model = new EnableProtectionProviderSpecificInput(); - model = BinaryData.fromObject(model).toObject(EnableProtectionProviderSpecificInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/EncryptionDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/EncryptionDetailsTests.java deleted file mode 100644 index bb67eeedc587..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/EncryptionDetailsTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.EncryptionDetails; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; - -public final class EncryptionDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - EncryptionDetails model = BinaryData.fromString( - "{\"kekState\":\"soodqxhcrmnoh\",\"kekCertThumbprint\":\"ckwhds\",\"kekCertExpiryDate\":\"2021-07-22T01:38:16Z\"}") - .toObject(EncryptionDetails.class); - Assertions.assertEquals("soodqxhcrmnoh", model.kekState()); - Assertions.assertEquals("ckwhds", model.kekCertThumbprint()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-22T01:38:16Z"), model.kekCertExpiryDate()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EncryptionDetails model = new EncryptionDetails().withKekState("soodqxhcrmnoh") - .withKekCertThumbprint("ckwhds") - .withKekCertExpiryDate(OffsetDateTime.parse("2021-07-22T01:38:16Z")); - model = BinaryData.fromObject(model).toObject(EncryptionDetails.class); - Assertions.assertEquals("soodqxhcrmnoh", model.kekState()); - Assertions.assertEquals("ckwhds", model.kekCertThumbprint()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-22T01:38:16Z"), model.kekCertExpiryDate()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/EventProviderSpecificDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/EventProviderSpecificDetailsTests.java deleted file mode 100644 index 7d2432edf787..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/EventProviderSpecificDetailsTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.EventProviderSpecificDetails; - -public final class EventProviderSpecificDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - EventProviderSpecificDetails model - = BinaryData.fromString("{\"instanceType\":\"EventProviderSpecificDetails\"}") - .toObject(EventProviderSpecificDetails.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EventProviderSpecificDetails model = new EventProviderSpecificDetails(); - model = BinaryData.fromObject(model).toObject(EventProviderSpecificDetails.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/EventSpecificDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/EventSpecificDetailsTests.java deleted file mode 100644 index 51c06c1ab13a..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/EventSpecificDetailsTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.EventSpecificDetails; - -public final class EventSpecificDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - EventSpecificDetails model - = BinaryData.fromString("{\"instanceType\":\"EventSpecificDetails\"}").toObject(EventSpecificDetails.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EventSpecificDetails model = new EventSpecificDetails(); - model = BinaryData.fromObject(model).toObject(EventSpecificDetails.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ExistingProtectionProfileTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ExistingProtectionProfileTests.java deleted file mode 100644 index fc2218662262..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ExistingProtectionProfileTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ExistingProtectionProfile; -import org.junit.jupiter.api.Assertions; - -public final class ExistingProtectionProfileTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExistingProtectionProfile model - = BinaryData.fromString("{\"resourceType\":\"Existing\",\"protectionProfileId\":\"zi\"}") - .toObject(ExistingProtectionProfile.class); - Assertions.assertEquals("zi", model.protectionProfileId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExistingProtectionProfile model = new ExistingProtectionProfile().withProtectionProfileId("zi"); - model = BinaryData.fromObject(model).toObject(ExistingProtectionProfile.class); - Assertions.assertEquals("zi", model.protectionProfileId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ExistingRecoveryAvailabilitySetTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ExistingRecoveryAvailabilitySetTests.java deleted file mode 100644 index 2e090fd8e00a..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ExistingRecoveryAvailabilitySetTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ExistingRecoveryAvailabilitySet; -import org.junit.jupiter.api.Assertions; - -public final class ExistingRecoveryAvailabilitySetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExistingRecoveryAvailabilitySet model - = BinaryData.fromString("{\"resourceType\":\"Existing\",\"recoveryAvailabilitySetId\":\"qimiymqr\"}") - .toObject(ExistingRecoveryAvailabilitySet.class); - Assertions.assertEquals("qimiymqr", model.recoveryAvailabilitySetId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExistingRecoveryAvailabilitySet model - = new ExistingRecoveryAvailabilitySet().withRecoveryAvailabilitySetId("qimiymqr"); - model = BinaryData.fromObject(model).toObject(ExistingRecoveryAvailabilitySet.class); - Assertions.assertEquals("qimiymqr", model.recoveryAvailabilitySetId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ExistingRecoveryProximityPlacementGroupTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ExistingRecoveryProximityPlacementGroupTests.java deleted file mode 100644 index c5aa42966a69..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ExistingRecoveryProximityPlacementGroupTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ExistingRecoveryProximityPlacementGroup; -import org.junit.jupiter.api.Assertions; - -public final class ExistingRecoveryProximityPlacementGroupTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExistingRecoveryProximityPlacementGroup model - = BinaryData.fromString("{\"resourceType\":\"Existing\",\"recoveryProximityPlacementGroupId\":\"guhfupe\"}") - .toObject(ExistingRecoveryProximityPlacementGroup.class); - Assertions.assertEquals("guhfupe", model.recoveryProximityPlacementGroupId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExistingRecoveryProximityPlacementGroup model - = new ExistingRecoveryProximityPlacementGroup().withRecoveryProximityPlacementGroupId("guhfupe"); - model = BinaryData.fromObject(model).toObject(ExistingRecoveryProximityPlacementGroup.class); - Assertions.assertEquals("guhfupe", model.recoveryProximityPlacementGroupId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ExistingRecoveryResourceGroupTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ExistingRecoveryResourceGroupTests.java deleted file mode 100644 index 173461fe574a..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ExistingRecoveryResourceGroupTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ExistingRecoveryResourceGroup; -import org.junit.jupiter.api.Assertions; - -public final class ExistingRecoveryResourceGroupTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExistingRecoveryResourceGroup model - = BinaryData.fromString("{\"resourceType\":\"Existing\",\"recoveryResourceGroupId\":\"svvoqsbpkflanfk\"}") - .toObject(ExistingRecoveryResourceGroup.class); - Assertions.assertEquals("svvoqsbpkflanfk", model.recoveryResourceGroupId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExistingRecoveryResourceGroup model - = new ExistingRecoveryResourceGroup().withRecoveryResourceGroupId("svvoqsbpkflanfk"); - model = BinaryData.fromObject(model).toObject(ExistingRecoveryResourceGroup.class); - Assertions.assertEquals("svvoqsbpkflanfk", model.recoveryResourceGroupId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ExistingRecoveryVirtualNetworkTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ExistingRecoveryVirtualNetworkTests.java deleted file mode 100644 index 43f3122de352..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ExistingRecoveryVirtualNetworkTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ExistingRecoveryVirtualNetwork; -import org.junit.jupiter.api.Assertions; - -public final class ExistingRecoveryVirtualNetworkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExistingRecoveryVirtualNetwork model = BinaryData.fromString( - "{\"resourceType\":\"Existing\",\"recoveryVirtualNetworkId\":\"xsyaowuzowpuoh\",\"recoverySubnetName\":\"cprgukxrztiochl\"}") - .toObject(ExistingRecoveryVirtualNetwork.class); - Assertions.assertEquals("xsyaowuzowpuoh", model.recoveryVirtualNetworkId()); - Assertions.assertEquals("cprgukxrztiochl", model.recoverySubnetName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExistingRecoveryVirtualNetwork model - = new ExistingRecoveryVirtualNetwork().withRecoveryVirtualNetworkId("xsyaowuzowpuoh") - .withRecoverySubnetName("cprgukxrztiochl"); - model = BinaryData.fromObject(model).toObject(ExistingRecoveryVirtualNetwork.class); - Assertions.assertEquals("xsyaowuzowpuoh", model.recoveryVirtualNetworkId()); - Assertions.assertEquals("cprgukxrztiochl", model.recoverySubnetName()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ExistingStorageAccountTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ExistingStorageAccountTests.java deleted file mode 100644 index 30f4c18d8fc2..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ExistingStorageAccountTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ExistingStorageAccount; -import org.junit.jupiter.api.Assertions; - -public final class ExistingStorageAccountTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExistingStorageAccount model - = BinaryData.fromString("{\"resourceType\":\"Existing\",\"azureStorageAccountId\":\"tixmqrudjiz\"}") - .toObject(ExistingStorageAccount.class); - Assertions.assertEquals("tixmqrudjiz", model.azureStorageAccountId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExistingStorageAccount model = new ExistingStorageAccount().withAzureStorageAccountId("tixmqrudjiz"); - model = BinaryData.fromObject(model).toObject(ExistingStorageAccount.class); - Assertions.assertEquals("tixmqrudjiz", model.azureStorageAccountId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ExtendedLocationTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ExtendedLocationTests.java deleted file mode 100644 index 8b5f28064bd1..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ExtendedLocationTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ExtendedLocation; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ExtendedLocationType; -import org.junit.jupiter.api.Assertions; - -public final class ExtendedLocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExtendedLocation model = BinaryData.fromString("{\"name\":\"moenodnaien\",\"type\":\"EdgeZone\"}") - .toObject(ExtendedLocation.class); - Assertions.assertEquals("moenodnaien", model.name()); - Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExtendedLocation model - = new ExtendedLocation().withName("moenodnaien").withType(ExtendedLocationType.EDGE_ZONE); - model = BinaryData.fromObject(model).toObject(ExtendedLocation.class); - Assertions.assertEquals("moenodnaien", model.name()); - Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, model.type()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/FabricCreationInputPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/FabricCreationInputPropertiesTests.java deleted file mode 100644 index 7a8490a8ac53..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/FabricCreationInputPropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.FabricCreationInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.FabricSpecificCreationInput; - -public final class FabricCreationInputPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FabricCreationInputProperties model - = BinaryData.fromString("{\"customDetails\":{\"instanceType\":\"FabricSpecificCreationInput\"}}") - .toObject(FabricCreationInputProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FabricCreationInputProperties model - = new FabricCreationInputProperties().withCustomDetails(new FabricSpecificCreationInput()); - model = BinaryData.fromObject(model).toObject(FabricCreationInputProperties.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/FabricCreationInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/FabricCreationInputTests.java deleted file mode 100644 index 9f83d62c2d01..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/FabricCreationInputTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.FabricCreationInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.FabricCreationInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.FabricSpecificCreationInput; - -public final class FabricCreationInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FabricCreationInput model = BinaryData - .fromString("{\"properties\":{\"customDetails\":{\"instanceType\":\"FabricSpecificCreationInput\"}}}") - .toObject(FabricCreationInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FabricCreationInput model = new FabricCreationInput() - .withProperties(new FabricCreationInputProperties().withCustomDetails(new FabricSpecificCreationInput())); - model = BinaryData.fromObject(model).toObject(FabricCreationInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/FabricReplicationGroupTaskDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/FabricReplicationGroupTaskDetailsTests.java deleted file mode 100644 index bc7c02aa8cc9..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/FabricReplicationGroupTaskDetailsTests.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.FabricReplicationGroupTaskDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.JobEntity; -import org.junit.jupiter.api.Assertions; - -public final class FabricReplicationGroupTaskDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FabricReplicationGroupTaskDetails model = BinaryData.fromString( - "{\"instanceType\":\"FabricReplicationGroupTaskDetails\",\"skippedReason\":\"nmfbc\",\"skippedReasonString\":\"qktkrumzuedkyzbf\",\"jobTask\":{\"jobId\":\"vqkxiuxqggvq\",\"jobFriendlyName\":\"hyhlwcjsqg\",\"targetObjectId\":\"hffbxrq\",\"targetObjectName\":\"ijpeuql\",\"targetInstanceType\":\"x\",\"jobScenarioName\":\"ztv\"}}") - .toObject(FabricReplicationGroupTaskDetails.class); - Assertions.assertEquals("vqkxiuxqggvq", model.jobTask().jobId()); - Assertions.assertEquals("hyhlwcjsqg", model.jobTask().jobFriendlyName()); - Assertions.assertEquals("hffbxrq", model.jobTask().targetObjectId()); - Assertions.assertEquals("ijpeuql", model.jobTask().targetObjectName()); - Assertions.assertEquals("x", model.jobTask().targetInstanceType()); - Assertions.assertEquals("ztv", model.jobTask().jobScenarioName()); - Assertions.assertEquals("nmfbc", model.skippedReason()); - Assertions.assertEquals("qktkrumzuedkyzbf", model.skippedReasonString()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FabricReplicationGroupTaskDetails model - = new FabricReplicationGroupTaskDetails().withJobTask(new JobEntity().withJobId("vqkxiuxqggvq") - .withJobFriendlyName("hyhlwcjsqg") - .withTargetObjectId("hffbxrq") - .withTargetObjectName("ijpeuql") - .withTargetInstanceType("x") - .withJobScenarioName("ztv")).withSkippedReason("nmfbc").withSkippedReasonString("qktkrumzuedkyzbf"); - model = BinaryData.fromObject(model).toObject(FabricReplicationGroupTaskDetails.class); - Assertions.assertEquals("vqkxiuxqggvq", model.jobTask().jobId()); - Assertions.assertEquals("hyhlwcjsqg", model.jobTask().jobFriendlyName()); - Assertions.assertEquals("hffbxrq", model.jobTask().targetObjectId()); - Assertions.assertEquals("ijpeuql", model.jobTask().targetObjectName()); - Assertions.assertEquals("x", model.jobTask().targetInstanceType()); - Assertions.assertEquals("ztv", model.jobTask().jobScenarioName()); - Assertions.assertEquals("nmfbc", model.skippedReason()); - Assertions.assertEquals("qktkrumzuedkyzbf", model.skippedReasonString()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/FabricSpecificCreateNetworkMappingInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/FabricSpecificCreateNetworkMappingInputTests.java deleted file mode 100644 index 3c8f56eead5f..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/FabricSpecificCreateNetworkMappingInputTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.FabricSpecificCreateNetworkMappingInput; - -public final class FabricSpecificCreateNetworkMappingInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FabricSpecificCreateNetworkMappingInput model - = BinaryData.fromString("{\"instanceType\":\"FabricSpecificCreateNetworkMappingInput\"}") - .toObject(FabricSpecificCreateNetworkMappingInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FabricSpecificCreateNetworkMappingInput model = new FabricSpecificCreateNetworkMappingInput(); - model = BinaryData.fromObject(model).toObject(FabricSpecificCreateNetworkMappingInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/FabricSpecificCreationInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/FabricSpecificCreationInputTests.java deleted file mode 100644 index ad1c08f54ef7..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/FabricSpecificCreationInputTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.FabricSpecificCreationInput; - -public final class FabricSpecificCreationInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FabricSpecificCreationInput model = BinaryData.fromString("{\"instanceType\":\"FabricSpecificCreationInput\"}") - .toObject(FabricSpecificCreationInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FabricSpecificCreationInput model = new FabricSpecificCreationInput(); - model = BinaryData.fromObject(model).toObject(FabricSpecificCreationInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/FabricSpecificDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/FabricSpecificDetailsTests.java deleted file mode 100644 index bae3c11641e1..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/FabricSpecificDetailsTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.FabricSpecificDetails; - -public final class FabricSpecificDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FabricSpecificDetails model = BinaryData.fromString("{\"instanceType\":\"FabricSpecificDetails\"}") - .toObject(FabricSpecificDetails.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FabricSpecificDetails model = new FabricSpecificDetails(); - model = BinaryData.fromObject(model).toObject(FabricSpecificDetails.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/FabricSpecificUpdateNetworkMappingInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/FabricSpecificUpdateNetworkMappingInputTests.java deleted file mode 100644 index bfc37c08e9ac..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/FabricSpecificUpdateNetworkMappingInputTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.FabricSpecificUpdateNetworkMappingInput; - -public final class FabricSpecificUpdateNetworkMappingInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FabricSpecificUpdateNetworkMappingInput model - = BinaryData.fromString("{\"instanceType\":\"FabricSpecificUpdateNetworkMappingInput\"}") - .toObject(FabricSpecificUpdateNetworkMappingInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FabricSpecificUpdateNetworkMappingInput model = new FabricSpecificUpdateNetworkMappingInput(); - model = BinaryData.fromObject(model).toObject(FabricSpecificUpdateNetworkMappingInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/FailoverJobDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/FailoverJobDetailsTests.java deleted file mode 100644 index 99b28f426964..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/FailoverJobDetailsTests.java +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.FailoverJobDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.FailoverReplicationProtectedItemDetails; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class FailoverJobDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FailoverJobDetails model = BinaryData.fromString( - "{\"instanceType\":\"FailoverJobDetails\",\"protectedItemDetails\":[{\"name\":\"jcciklhsyek\",\"friendlyName\":\"renxolriyehqbe\",\"testVmName\":\"dlh\",\"testVmFriendlyName\":\"wbdbfg\",\"networkConnectionStatus\":\"punytjl\",\"networkFriendlyName\":\"smmpathubt\",\"subnet\":\"deani\",\"recoveryPointId\":\"llbvgwzsfftedous\",\"recoveryPointTime\":\"2021-07-21T04:35:12Z\"},{\"name\":\"tgravaqogf\",\"friendlyName\":\"ebauzlqbtx\",\"testVmName\":\"pfhnjzudrt\",\"testVmFriendlyName\":\"kgmeb\",\"networkConnectionStatus\":\"whczzqrhmng\",\"networkFriendlyName\":\"edygisrzwnykdi\",\"subnet\":\"chl\",\"recoveryPointId\":\"pwctofl\",\"recoveryPointTime\":\"2021-07-22T16:13:46Z\"},{\"name\":\"cdhz\",\"friendlyName\":\"kbrfgdrwji\",\"testVmName\":\"whfjsrwqrxe\",\"testVmFriendlyName\":\"gcwvrrmdqntycna\",\"networkConnectionStatus\":\"hvmaxgnuyeamcmhu\",\"networkFriendlyName\":\"jecehokwc\",\"subnet\":\"twloesqr\",\"recoveryPointId\":\"vrbnyrukoil\",\"recoveryPointTime\":\"2021-09-21T11:09:08Z\"}],\"affectedObjectDetails\":{\"lh\":\"wjleip\"}}") - .toObject(FailoverJobDetails.class); - Assertions.assertEquals("wjleip", model.affectedObjectDetails().get("lh")); - Assertions.assertEquals("jcciklhsyek", model.protectedItemDetails().get(0).name()); - Assertions.assertEquals("renxolriyehqbe", model.protectedItemDetails().get(0).friendlyName()); - Assertions.assertEquals("dlh", model.protectedItemDetails().get(0).testVmName()); - Assertions.assertEquals("wbdbfg", model.protectedItemDetails().get(0).testVmFriendlyName()); - Assertions.assertEquals("punytjl", model.protectedItemDetails().get(0).networkConnectionStatus()); - Assertions.assertEquals("smmpathubt", model.protectedItemDetails().get(0).networkFriendlyName()); - Assertions.assertEquals("deani", model.protectedItemDetails().get(0).subnet()); - Assertions.assertEquals("llbvgwzsfftedous", model.protectedItemDetails().get(0).recoveryPointId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-21T04:35:12Z"), - model.protectedItemDetails().get(0).recoveryPointTime()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FailoverJobDetails model = new FailoverJobDetails().withAffectedObjectDetails(mapOf("lh", "wjleip")) - .withProtectedItemDetails(Arrays.asList( - new FailoverReplicationProtectedItemDetails().withName("jcciklhsyek") - .withFriendlyName("renxolriyehqbe") - .withTestVmName("dlh") - .withTestVmFriendlyName("wbdbfg") - .withNetworkConnectionStatus("punytjl") - .withNetworkFriendlyName("smmpathubt") - .withSubnet("deani") - .withRecoveryPointId("llbvgwzsfftedous") - .withRecoveryPointTime(OffsetDateTime.parse("2021-07-21T04:35:12Z")), - new FailoverReplicationProtectedItemDetails().withName("tgravaqogf") - .withFriendlyName("ebauzlqbtx") - .withTestVmName("pfhnjzudrt") - .withTestVmFriendlyName("kgmeb") - .withNetworkConnectionStatus("whczzqrhmng") - .withNetworkFriendlyName("edygisrzwnykdi") - .withSubnet("chl") - .withRecoveryPointId("pwctofl") - .withRecoveryPointTime(OffsetDateTime.parse("2021-07-22T16:13:46Z")), - new FailoverReplicationProtectedItemDetails().withName("cdhz") - .withFriendlyName("kbrfgdrwji") - .withTestVmName("whfjsrwqrxe") - .withTestVmFriendlyName("gcwvrrmdqntycna") - .withNetworkConnectionStatus("hvmaxgnuyeamcmhu") - .withNetworkFriendlyName("jecehokwc") - .withSubnet("twloesqr") - .withRecoveryPointId("vrbnyrukoil") - .withRecoveryPointTime(OffsetDateTime.parse("2021-09-21T11:09:08Z")))); - model = BinaryData.fromObject(model).toObject(FailoverJobDetails.class); - Assertions.assertEquals("wjleip", model.affectedObjectDetails().get("lh")); - Assertions.assertEquals("jcciklhsyek", model.protectedItemDetails().get(0).name()); - Assertions.assertEquals("renxolriyehqbe", model.protectedItemDetails().get(0).friendlyName()); - Assertions.assertEquals("dlh", model.protectedItemDetails().get(0).testVmName()); - Assertions.assertEquals("wbdbfg", model.protectedItemDetails().get(0).testVmFriendlyName()); - Assertions.assertEquals("punytjl", model.protectedItemDetails().get(0).networkConnectionStatus()); - Assertions.assertEquals("smmpathubt", model.protectedItemDetails().get(0).networkFriendlyName()); - Assertions.assertEquals("deani", model.protectedItemDetails().get(0).subnet()); - Assertions.assertEquals("llbvgwzsfftedous", model.protectedItemDetails().get(0).recoveryPointId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-21T04:35:12Z"), - model.protectedItemDetails().get(0).recoveryPointTime()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/FailoverProcessServerRequestPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/FailoverProcessServerRequestPropertiesTests.java deleted file mode 100644 index d3f27193bd26..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/FailoverProcessServerRequestPropertiesTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.FailoverProcessServerRequestProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class FailoverProcessServerRequestPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FailoverProcessServerRequestProperties model = BinaryData.fromString( - "{\"containerName\":\"l\",\"sourceProcessServerId\":\"u\",\"targetProcessServerId\":\"krlkhbzhfepg\",\"vmsToMigrate\":[\"e\"],\"updateType\":\"locx\"}") - .toObject(FailoverProcessServerRequestProperties.class); - Assertions.assertEquals("l", model.containerName()); - Assertions.assertEquals("u", model.sourceProcessServerId()); - Assertions.assertEquals("krlkhbzhfepg", model.targetProcessServerId()); - Assertions.assertEquals("e", model.vmsToMigrate().get(0)); - Assertions.assertEquals("locx", model.updateType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FailoverProcessServerRequestProperties model - = new FailoverProcessServerRequestProperties().withContainerName("l") - .withSourceProcessServerId("u") - .withTargetProcessServerId("krlkhbzhfepg") - .withVmsToMigrate(Arrays.asList("e")) - .withUpdateType("locx"); - model = BinaryData.fromObject(model).toObject(FailoverProcessServerRequestProperties.class); - Assertions.assertEquals("l", model.containerName()); - Assertions.assertEquals("u", model.sourceProcessServerId()); - Assertions.assertEquals("krlkhbzhfepg", model.targetProcessServerId()); - Assertions.assertEquals("e", model.vmsToMigrate().get(0)); - Assertions.assertEquals("locx", model.updateType()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/FailoverProcessServerRequestTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/FailoverProcessServerRequestTests.java deleted file mode 100644 index f8134cf0ace8..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/FailoverProcessServerRequestTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.FailoverProcessServerRequest; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.FailoverProcessServerRequestProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class FailoverProcessServerRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FailoverProcessServerRequest model = BinaryData.fromString( - "{\"properties\":{\"containerName\":\"xsqwpgrjbznorc\",\"sourceProcessServerId\":\"vsnb\",\"targetProcessServerId\":\"qabnmoc\",\"vmsToMigrate\":[\"shurzafbljjgpbto\"],\"updateType\":\"jmkljavbqidtqajz\"}}") - .toObject(FailoverProcessServerRequest.class); - Assertions.assertEquals("xsqwpgrjbznorc", model.properties().containerName()); - Assertions.assertEquals("vsnb", model.properties().sourceProcessServerId()); - Assertions.assertEquals("qabnmoc", model.properties().targetProcessServerId()); - Assertions.assertEquals("shurzafbljjgpbto", model.properties().vmsToMigrate().get(0)); - Assertions.assertEquals("jmkljavbqidtqajz", model.properties().updateType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FailoverProcessServerRequest model = new FailoverProcessServerRequest() - .withProperties(new FailoverProcessServerRequestProperties().withContainerName("xsqwpgrjbznorc") - .withSourceProcessServerId("vsnb") - .withTargetProcessServerId("qabnmoc") - .withVmsToMigrate(Arrays.asList("shurzafbljjgpbto")) - .withUpdateType("jmkljavbqidtqajz")); - model = BinaryData.fromObject(model).toObject(FailoverProcessServerRequest.class); - Assertions.assertEquals("xsqwpgrjbznorc", model.properties().containerName()); - Assertions.assertEquals("vsnb", model.properties().sourceProcessServerId()); - Assertions.assertEquals("qabnmoc", model.properties().targetProcessServerId()); - Assertions.assertEquals("shurzafbljjgpbto", model.properties().vmsToMigrate().get(0)); - Assertions.assertEquals("jmkljavbqidtqajz", model.properties().updateType()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/FailoverReplicationProtectedItemDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/FailoverReplicationProtectedItemDetailsTests.java deleted file mode 100644 index af016b182ca2..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/FailoverReplicationProtectedItemDetailsTests.java +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.FailoverReplicationProtectedItemDetails; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; - -public final class FailoverReplicationProtectedItemDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FailoverReplicationProtectedItemDetails model = BinaryData.fromString( - "{\"name\":\"xpzruzythqkk\",\"friendlyName\":\"bg\",\"testVmName\":\"ellv\",\"testVmFriendlyName\":\"nxdmnitmujdtv\",\"networkConnectionStatus\":\"lyymffhmjpddny\",\"networkFriendlyName\":\"zuvrzmzqmz\",\"subnet\":\"rb\",\"recoveryPointId\":\"vnmdyfoeboj\",\"recoveryPointTime\":\"2021-06-09T22:38:27Z\"}") - .toObject(FailoverReplicationProtectedItemDetails.class); - Assertions.assertEquals("xpzruzythqkk", model.name()); - Assertions.assertEquals("bg", model.friendlyName()); - Assertions.assertEquals("ellv", model.testVmName()); - Assertions.assertEquals("nxdmnitmujdtv", model.testVmFriendlyName()); - Assertions.assertEquals("lyymffhmjpddny", model.networkConnectionStatus()); - Assertions.assertEquals("zuvrzmzqmz", model.networkFriendlyName()); - Assertions.assertEquals("rb", model.subnet()); - Assertions.assertEquals("vnmdyfoeboj", model.recoveryPointId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-09T22:38:27Z"), model.recoveryPointTime()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FailoverReplicationProtectedItemDetails model - = new FailoverReplicationProtectedItemDetails().withName("xpzruzythqkk") - .withFriendlyName("bg") - .withTestVmName("ellv") - .withTestVmFriendlyName("nxdmnitmujdtv") - .withNetworkConnectionStatus("lyymffhmjpddny") - .withNetworkFriendlyName("zuvrzmzqmz") - .withSubnet("rb") - .withRecoveryPointId("vnmdyfoeboj") - .withRecoveryPointTime(OffsetDateTime.parse("2021-06-09T22:38:27Z")); - model = BinaryData.fromObject(model).toObject(FailoverReplicationProtectedItemDetails.class); - Assertions.assertEquals("xpzruzythqkk", model.name()); - Assertions.assertEquals("bg", model.friendlyName()); - Assertions.assertEquals("ellv", model.testVmName()); - Assertions.assertEquals("nxdmnitmujdtv", model.testVmFriendlyName()); - Assertions.assertEquals("lyymffhmjpddny", model.networkConnectionStatus()); - Assertions.assertEquals("zuvrzmzqmz", model.networkFriendlyName()); - Assertions.assertEquals("rb", model.subnet()); - Assertions.assertEquals("vnmdyfoeboj", model.recoveryPointId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-09T22:38:27Z"), model.recoveryPointTime()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/GatewayOperationDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/GatewayOperationDetailsTests.java deleted file mode 100644 index 963aee8b70cf..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/GatewayOperationDetailsTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.GatewayOperationDetails; - -public final class GatewayOperationDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GatewayOperationDetails model = BinaryData.fromString( - "{\"state\":\"g\",\"progressPercentage\":2029904789,\"timeElapsed\":322502128306108788,\"timeRemaining\":7668781915393184343,\"uploadSpeed\":826381918369159803,\"hostName\":\"ilaywkdcwm\",\"dataStores\":[\"ri\",\"mhxdqaolfy\",\"nkkbjpjvlywltmfw\",\"bbjwhlw\"],\"vmwareReadThroughput\":8018197232244540786}") - .toObject(GatewayOperationDetails.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GatewayOperationDetails model = new GatewayOperationDetails(); - model = BinaryData.fromObject(model).toObject(GatewayOperationDetails.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVHostDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVHostDetailsTests.java deleted file mode 100644 index e87f65a5cd6b..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVHostDetailsTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.HyperVHostDetails; - -public final class HyperVHostDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HyperVHostDetails model - = BinaryData.fromString("{\"id\":\"zocrdzgczeu\",\"name\":\"g\",\"marsAgentVersion\":\"ncaqttiekoifu\"}") - .toObject(HyperVHostDetails.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HyperVHostDetails model = new HyperVHostDetails(); - model = BinaryData.fromObject(model).toObject(HyperVHostDetails.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplica2012EventDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplica2012EventDetailsTests.java deleted file mode 100644 index 24606c438f1d..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplica2012EventDetailsTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.HyperVReplica2012EventDetails; -import org.junit.jupiter.api.Assertions; - -public final class HyperVReplica2012EventDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HyperVReplica2012EventDetails model = BinaryData.fromString( - "{\"instanceType\":\"HyperVReplica2012\",\"containerName\":\"yttzgixgyrih\",\"fabricName\":\"mgb\",\"remoteContainerName\":\"lqtxnrflkndrn\",\"remoteFabricName\":\"gfjo\"}") - .toObject(HyperVReplica2012EventDetails.class); - Assertions.assertEquals("yttzgixgyrih", model.containerName()); - Assertions.assertEquals("mgb", model.fabricName()); - Assertions.assertEquals("lqtxnrflkndrn", model.remoteContainerName()); - Assertions.assertEquals("gfjo", model.remoteFabricName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HyperVReplica2012EventDetails model = new HyperVReplica2012EventDetails().withContainerName("yttzgixgyrih") - .withFabricName("mgb") - .withRemoteContainerName("lqtxnrflkndrn") - .withRemoteFabricName("gfjo"); - model = BinaryData.fromObject(model).toObject(HyperVReplica2012EventDetails.class); - Assertions.assertEquals("yttzgixgyrih", model.containerName()); - Assertions.assertEquals("mgb", model.fabricName()); - Assertions.assertEquals("lqtxnrflkndrn", model.remoteContainerName()); - Assertions.assertEquals("gfjo", model.remoteFabricName()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplica2012R2EventDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplica2012R2EventDetailsTests.java deleted file mode 100644 index e63b768222ed..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplica2012R2EventDetailsTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.HyperVReplica2012R2EventDetails; -import org.junit.jupiter.api.Assertions; - -public final class HyperVReplica2012R2EventDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HyperVReplica2012R2EventDetails model = BinaryData.fromString( - "{\"instanceType\":\"HyperVReplica2012R2\",\"containerName\":\"daqotwfh\",\"fabricName\":\"xwgsa\",\"remoteContainerName\":\"c\",\"remoteFabricName\":\"owzafczu\"}") - .toObject(HyperVReplica2012R2EventDetails.class); - Assertions.assertEquals("daqotwfh", model.containerName()); - Assertions.assertEquals("xwgsa", model.fabricName()); - Assertions.assertEquals("c", model.remoteContainerName()); - Assertions.assertEquals("owzafczu", model.remoteFabricName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HyperVReplica2012R2EventDetails model = new HyperVReplica2012R2EventDetails().withContainerName("daqotwfh") - .withFabricName("xwgsa") - .withRemoteContainerName("c") - .withRemoteFabricName("owzafczu"); - model = BinaryData.fromObject(model).toObject(HyperVReplica2012R2EventDetails.class); - Assertions.assertEquals("daqotwfh", model.containerName()); - Assertions.assertEquals("xwgsa", model.fabricName()); - Assertions.assertEquals("c", model.remoteContainerName()); - Assertions.assertEquals("owzafczu", model.remoteFabricName()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaAzureApplyRecoveryPointInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaAzureApplyRecoveryPointInputTests.java deleted file mode 100644 index 55602f4b6b87..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaAzureApplyRecoveryPointInputTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.HyperVReplicaAzureApplyRecoveryPointInput; -import org.junit.jupiter.api.Assertions; - -public final class HyperVReplicaAzureApplyRecoveryPointInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HyperVReplicaAzureApplyRecoveryPointInput model = BinaryData.fromString( - "{\"instanceType\":\"HyperVReplicaAzure\",\"primaryKekCertificatePfx\":\"ljcirvpefycdvei\",\"secondaryKekCertificatePfx\":\"tjnsx\"}") - .toObject(HyperVReplicaAzureApplyRecoveryPointInput.class); - Assertions.assertEquals("ljcirvpefycdvei", model.primaryKekCertificatePfx()); - Assertions.assertEquals("tjnsx", model.secondaryKekCertificatePfx()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HyperVReplicaAzureApplyRecoveryPointInput model - = new HyperVReplicaAzureApplyRecoveryPointInput().withPrimaryKekCertificatePfx("ljcirvpefycdvei") - .withSecondaryKekCertificatePfx("tjnsx"); - model = BinaryData.fromObject(model).toObject(HyperVReplicaAzureApplyRecoveryPointInput.class); - Assertions.assertEquals("ljcirvpefycdvei", model.primaryKekCertificatePfx()); - Assertions.assertEquals("tjnsx", model.secondaryKekCertificatePfx()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaAzureDiskInputDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaAzureDiskInputDetailsTests.java deleted file mode 100644 index e2f621b825a4..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaAzureDiskInputDetailsTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.DiskAccountType; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.HyperVReplicaAzureDiskInputDetails; -import org.junit.jupiter.api.Assertions; - -public final class HyperVReplicaAzureDiskInputDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HyperVReplicaAzureDiskInputDetails model = BinaryData.fromString( - "{\"diskId\":\"jlnsj\",\"logStorageAccountId\":\"ju\",\"diskType\":\"StandardSSD_LRS\",\"diskEncryptionSetId\":\"xqvmvuay\"}") - .toObject(HyperVReplicaAzureDiskInputDetails.class); - Assertions.assertEquals("jlnsj", model.diskId()); - Assertions.assertEquals("ju", model.logStorageAccountId()); - Assertions.assertEquals(DiskAccountType.STANDARD_SSD_LRS, model.diskType()); - Assertions.assertEquals("xqvmvuay", model.diskEncryptionSetId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HyperVReplicaAzureDiskInputDetails model = new HyperVReplicaAzureDiskInputDetails().withDiskId("jlnsj") - .withLogStorageAccountId("ju") - .withDiskType(DiskAccountType.STANDARD_SSD_LRS) - .withDiskEncryptionSetId("xqvmvuay"); - model = BinaryData.fromObject(model).toObject(HyperVReplicaAzureDiskInputDetails.class); - Assertions.assertEquals("jlnsj", model.diskId()); - Assertions.assertEquals("ju", model.logStorageAccountId()); - Assertions.assertEquals(DiskAccountType.STANDARD_SSD_LRS, model.diskType()); - Assertions.assertEquals("xqvmvuay", model.diskEncryptionSetId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaAzureEnableProtectionInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaAzureEnableProtectionInputTests.java deleted file mode 100644 index c8f2da2d6526..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaAzureEnableProtectionInputTests.java +++ /dev/null @@ -1,144 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.DiskAccountType; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.HyperVReplicaAzureDiskInputDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.HyperVReplicaAzureEnableProtectionInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.LicenseType; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.SqlServerLicenseType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class HyperVReplicaAzureEnableProtectionInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HyperVReplicaAzureEnableProtectionInput model = BinaryData.fromString( - "{\"instanceType\":\"HyperVReplicaAzure\",\"hvHostVmId\":\"adxkxeqbwpntghy\",\"vmName\":\"a\",\"osType\":\"drnxsluvlzla\",\"vhdId\":\"t\",\"targetStorageAccountId\":\"pbqhvfdqqjwkr\",\"targetAzureNetworkId\":\"zdanojis\",\"targetAzureSubnetId\":\"lmvokat\",\"enableRdpOnTargetOption\":\"tjctibpvbkaeh\",\"targetAzureVmName\":\"mzy\",\"logStorageAccountId\":\"fwakw\",\"disksToInclude\":[\"vmakxhysowljuxl\",\"bectvtfjmskdch\"],\"targetAzureV1ResourceGroupId\":\"iubavlzwpvgm\",\"targetAzureV2ResourceGroupId\":\"lkzazmgok\",\"useManagedDisks\":\"gjqafkmkrokzr\",\"targetAvailabilitySetId\":\"qetwpqrtvaozn\",\"targetAvailabilityZone\":\"ixiezeag\",\"licenseType\":\"NotSpecified\",\"sqlServerLicenseType\":\"NotSpecified\",\"targetVmSize\":\"ugedh\",\"targetProximityPlacementGroupId\":\"jstlzmblsyj\",\"useManagedDisksForReplication\":\"olctae\",\"diskType\":\"Standard_LRS\",\"disksToIncludeForManagedDisks\":[{\"diskId\":\"edjc\",\"logStorageAccountId\":\"tb\",\"diskType\":\"StandardSSD_LRS\",\"diskEncryptionSetId\":\"gdxzvsgeafgfoseh\"},{\"diskId\":\"zsxezppkkwaae\",\"logStorageAccountId\":\"yfjlpzeqto\",\"diskType\":\"Premium_LRS\",\"diskEncryptionSetId\":\"ixlajmllpquevham\"}],\"diskEncryptionSetId\":\"wg\",\"targetVmTags\":{\"qovchiqbp\":\"mkekxpkzwaqxo\"},\"seedManagedDiskTags\":{\"ztekxbyjgmsfep\":\"idu\",\"dicxdw\":\"yihpqadagrh\",\"vcxjsgbipcukdvek\":\"jfowxwy\",\"scrdp\":\"buhoduchv\"},\"targetManagedDiskTags\":{\"szekbh\":\"dyjdussp\",\"hbfrnuybfflj\":\"lkaaggkr\"},\"targetNicTags\":{\"srexxfavs\":\"mreoagsqtaad\",\"l\":\"wudohzilfm\"}}") - .toObject(HyperVReplicaAzureEnableProtectionInput.class); - Assertions.assertEquals("adxkxeqbwpntghy", model.hvHostVmId()); - Assertions.assertEquals("a", model.vmName()); - Assertions.assertEquals("drnxsluvlzla", model.osType()); - Assertions.assertEquals("t", model.vhdId()); - Assertions.assertEquals("pbqhvfdqqjwkr", model.targetStorageAccountId()); - Assertions.assertEquals("zdanojis", model.targetAzureNetworkId()); - Assertions.assertEquals("lmvokat", model.targetAzureSubnetId()); - Assertions.assertEquals("tjctibpvbkaeh", model.enableRdpOnTargetOption()); - Assertions.assertEquals("mzy", model.targetAzureVmName()); - Assertions.assertEquals("fwakw", model.logStorageAccountId()); - Assertions.assertEquals("vmakxhysowljuxl", model.disksToInclude().get(0)); - Assertions.assertEquals("iubavlzwpvgm", model.targetAzureV1ResourceGroupId()); - Assertions.assertEquals("lkzazmgok", model.targetAzureV2ResourceGroupId()); - Assertions.assertEquals("gjqafkmkrokzr", model.useManagedDisks()); - Assertions.assertEquals("qetwpqrtvaozn", model.targetAvailabilitySetId()); - Assertions.assertEquals("ixiezeag", model.targetAvailabilityZone()); - Assertions.assertEquals(LicenseType.NOT_SPECIFIED, model.licenseType()); - Assertions.assertEquals(SqlServerLicenseType.NOT_SPECIFIED, model.sqlServerLicenseType()); - Assertions.assertEquals("ugedh", model.targetVmSize()); - Assertions.assertEquals("jstlzmblsyj", model.targetProximityPlacementGroupId()); - Assertions.assertEquals("olctae", model.useManagedDisksForReplication()); - Assertions.assertEquals(DiskAccountType.STANDARD_LRS, model.diskType()); - Assertions.assertEquals("edjc", model.disksToIncludeForManagedDisks().get(0).diskId()); - Assertions.assertEquals("tb", model.disksToIncludeForManagedDisks().get(0).logStorageAccountId()); - Assertions.assertEquals(DiskAccountType.STANDARD_SSD_LRS, - model.disksToIncludeForManagedDisks().get(0).diskType()); - Assertions.assertEquals("gdxzvsgeafgfoseh", model.disksToIncludeForManagedDisks().get(0).diskEncryptionSetId()); - Assertions.assertEquals("wg", model.diskEncryptionSetId()); - Assertions.assertEquals("mkekxpkzwaqxo", model.targetVmTags().get("qovchiqbp")); - Assertions.assertEquals("idu", model.seedManagedDiskTags().get("ztekxbyjgmsfep")); - Assertions.assertEquals("dyjdussp", model.targetManagedDiskTags().get("szekbh")); - Assertions.assertEquals("mreoagsqtaad", model.targetNicTags().get("srexxfavs")); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HyperVReplicaAzureEnableProtectionInput model - = new HyperVReplicaAzureEnableProtectionInput().withHvHostVmId("adxkxeqbwpntghy") - .withVmName("a") - .withOsType("drnxsluvlzla") - .withVhdId("t") - .withTargetStorageAccountId("pbqhvfdqqjwkr") - .withTargetAzureNetworkId("zdanojis") - .withTargetAzureSubnetId("lmvokat") - .withEnableRdpOnTargetOption("tjctibpvbkaeh") - .withTargetAzureVmName("mzy") - .withLogStorageAccountId("fwakw") - .withDisksToInclude(Arrays.asList("vmakxhysowljuxl", "bectvtfjmskdch")) - .withTargetAzureV1ResourceGroupId("iubavlzwpvgm") - .withTargetAzureV2ResourceGroupId("lkzazmgok") - .withUseManagedDisks("gjqafkmkrokzr") - .withTargetAvailabilitySetId("qetwpqrtvaozn") - .withTargetAvailabilityZone("ixiezeag") - .withLicenseType(LicenseType.NOT_SPECIFIED) - .withSqlServerLicenseType(SqlServerLicenseType.NOT_SPECIFIED) - .withTargetVmSize("ugedh") - .withTargetProximityPlacementGroupId("jstlzmblsyj") - .withUseManagedDisksForReplication("olctae") - .withDiskType(DiskAccountType.STANDARD_LRS) - .withDisksToIncludeForManagedDisks(Arrays.asList( - new HyperVReplicaAzureDiskInputDetails().withDiskId("edjc") - .withLogStorageAccountId("tb") - .withDiskType(DiskAccountType.STANDARD_SSD_LRS) - .withDiskEncryptionSetId("gdxzvsgeafgfoseh"), - new HyperVReplicaAzureDiskInputDetails().withDiskId("zsxezppkkwaae") - .withLogStorageAccountId("yfjlpzeqto") - .withDiskType(DiskAccountType.PREMIUM_LRS) - .withDiskEncryptionSetId("ixlajmllpquevham"))) - .withDiskEncryptionSetId("wg") - .withTargetVmTags(mapOf("qovchiqbp", "mkekxpkzwaqxo")) - .withSeedManagedDiskTags(mapOf("ztekxbyjgmsfep", "idu", "dicxdw", "yihpqadagrh", "vcxjsgbipcukdvek", - "jfowxwy", "scrdp", "buhoduchv")) - .withTargetManagedDiskTags(mapOf("szekbh", "dyjdussp", "hbfrnuybfflj", "lkaaggkr")) - .withTargetNicTags(mapOf("srexxfavs", "mreoagsqtaad", "l", "wudohzilfm")); - model = BinaryData.fromObject(model).toObject(HyperVReplicaAzureEnableProtectionInput.class); - Assertions.assertEquals("adxkxeqbwpntghy", model.hvHostVmId()); - Assertions.assertEquals("a", model.vmName()); - Assertions.assertEquals("drnxsluvlzla", model.osType()); - Assertions.assertEquals("t", model.vhdId()); - Assertions.assertEquals("pbqhvfdqqjwkr", model.targetStorageAccountId()); - Assertions.assertEquals("zdanojis", model.targetAzureNetworkId()); - Assertions.assertEquals("lmvokat", model.targetAzureSubnetId()); - Assertions.assertEquals("tjctibpvbkaeh", model.enableRdpOnTargetOption()); - Assertions.assertEquals("mzy", model.targetAzureVmName()); - Assertions.assertEquals("fwakw", model.logStorageAccountId()); - Assertions.assertEquals("vmakxhysowljuxl", model.disksToInclude().get(0)); - Assertions.assertEquals("iubavlzwpvgm", model.targetAzureV1ResourceGroupId()); - Assertions.assertEquals("lkzazmgok", model.targetAzureV2ResourceGroupId()); - Assertions.assertEquals("gjqafkmkrokzr", model.useManagedDisks()); - Assertions.assertEquals("qetwpqrtvaozn", model.targetAvailabilitySetId()); - Assertions.assertEquals("ixiezeag", model.targetAvailabilityZone()); - Assertions.assertEquals(LicenseType.NOT_SPECIFIED, model.licenseType()); - Assertions.assertEquals(SqlServerLicenseType.NOT_SPECIFIED, model.sqlServerLicenseType()); - Assertions.assertEquals("ugedh", model.targetVmSize()); - Assertions.assertEquals("jstlzmblsyj", model.targetProximityPlacementGroupId()); - Assertions.assertEquals("olctae", model.useManagedDisksForReplication()); - Assertions.assertEquals(DiskAccountType.STANDARD_LRS, model.diskType()); - Assertions.assertEquals("edjc", model.disksToIncludeForManagedDisks().get(0).diskId()); - Assertions.assertEquals("tb", model.disksToIncludeForManagedDisks().get(0).logStorageAccountId()); - Assertions.assertEquals(DiskAccountType.STANDARD_SSD_LRS, - model.disksToIncludeForManagedDisks().get(0).diskType()); - Assertions.assertEquals("gdxzvsgeafgfoseh", model.disksToIncludeForManagedDisks().get(0).diskEncryptionSetId()); - Assertions.assertEquals("wg", model.diskEncryptionSetId()); - Assertions.assertEquals("mkekxpkzwaqxo", model.targetVmTags().get("qovchiqbp")); - Assertions.assertEquals("idu", model.seedManagedDiskTags().get("ztekxbyjgmsfep")); - Assertions.assertEquals("dyjdussp", model.targetManagedDiskTags().get("szekbh")); - Assertions.assertEquals("mreoagsqtaad", model.targetNicTags().get("srexxfavs")); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaAzureEventDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaAzureEventDetailsTests.java deleted file mode 100644 index 7f6c745cb780..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaAzureEventDetailsTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.HyperVReplicaAzureEventDetails; -import org.junit.jupiter.api.Assertions; - -public final class HyperVReplicaAzureEventDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HyperVReplicaAzureEventDetails model = BinaryData.fromString( - "{\"instanceType\":\"HyperVReplicaAzure\",\"containerName\":\"psimsf\",\"fabricName\":\"pofqpmbhy\",\"remoteContainerName\":\"sdrmmttjxophgerh\"}") - .toObject(HyperVReplicaAzureEventDetails.class); - Assertions.assertEquals("psimsf", model.containerName()); - Assertions.assertEquals("pofqpmbhy", model.fabricName()); - Assertions.assertEquals("sdrmmttjxophgerh", model.remoteContainerName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HyperVReplicaAzureEventDetails model = new HyperVReplicaAzureEventDetails().withContainerName("psimsf") - .withFabricName("pofqpmbhy") - .withRemoteContainerName("sdrmmttjxophgerh"); - model = BinaryData.fromObject(model).toObject(HyperVReplicaAzureEventDetails.class); - Assertions.assertEquals("psimsf", model.containerName()); - Assertions.assertEquals("pofqpmbhy", model.fabricName()); - Assertions.assertEquals("sdrmmttjxophgerh", model.remoteContainerName()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaAzureFailbackProviderInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaAzureFailbackProviderInputTests.java deleted file mode 100644 index fcaf55f23f5e..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaAzureFailbackProviderInputTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.HyperVReplicaAzureFailbackProviderInput; -import org.junit.jupiter.api.Assertions; - -public final class HyperVReplicaAzureFailbackProviderInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HyperVReplicaAzureFailbackProviderInput model = BinaryData.fromString( - "{\"instanceType\":\"HyperVReplicaAzureFailback\",\"dataSyncOption\":\"vgohtw\",\"recoveryVmCreationOption\":\"qilrixysfn\",\"providerIdForAlternateRecovery\":\"sqywwwmhkru\"}") - .toObject(HyperVReplicaAzureFailbackProviderInput.class); - Assertions.assertEquals("vgohtw", model.dataSyncOption()); - Assertions.assertEquals("qilrixysfn", model.recoveryVmCreationOption()); - Assertions.assertEquals("sqywwwmhkru", model.providerIdForAlternateRecovery()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HyperVReplicaAzureFailbackProviderInput model - = new HyperVReplicaAzureFailbackProviderInput().withDataSyncOption("vgohtw") - .withRecoveryVmCreationOption("qilrixysfn") - .withProviderIdForAlternateRecovery("sqywwwmhkru"); - model = BinaryData.fromObject(model).toObject(HyperVReplicaAzureFailbackProviderInput.class); - Assertions.assertEquals("vgohtw", model.dataSyncOption()); - Assertions.assertEquals("qilrixysfn", model.recoveryVmCreationOption()); - Assertions.assertEquals("sqywwwmhkru", model.providerIdForAlternateRecovery()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaAzureManagedDiskDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaAzureManagedDiskDetailsTests.java deleted file mode 100644 index d782ccf02125..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaAzureManagedDiskDetailsTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.HyperVReplicaAzureManagedDiskDetails; -import org.junit.jupiter.api.Assertions; - -public final class HyperVReplicaAzureManagedDiskDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HyperVReplicaAzureManagedDiskDetails model = BinaryData.fromString( - "{\"diskId\":\"edrympmlqo\",\"seedManagedDiskId\":\"hzdue\",\"replicaDiskType\":\"hapfjiik\",\"diskEncryptionSetId\":\"diqfliejhpclbi\"}") - .toObject(HyperVReplicaAzureManagedDiskDetails.class); - Assertions.assertEquals("edrympmlqo", model.diskId()); - Assertions.assertEquals("hzdue", model.seedManagedDiskId()); - Assertions.assertEquals("hapfjiik", model.replicaDiskType()); - Assertions.assertEquals("diqfliejhpclbi", model.diskEncryptionSetId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HyperVReplicaAzureManagedDiskDetails model = new HyperVReplicaAzureManagedDiskDetails().withDiskId("edrympmlqo") - .withSeedManagedDiskId("hzdue") - .withReplicaDiskType("hapfjiik") - .withDiskEncryptionSetId("diqfliejhpclbi"); - model = BinaryData.fromObject(model).toObject(HyperVReplicaAzureManagedDiskDetails.class); - Assertions.assertEquals("edrympmlqo", model.diskId()); - Assertions.assertEquals("hzdue", model.seedManagedDiskId()); - Assertions.assertEquals("hapfjiik", model.replicaDiskType()); - Assertions.assertEquals("diqfliejhpclbi", model.diskEncryptionSetId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaAzurePlannedFailoverProviderInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaAzurePlannedFailoverProviderInputTests.java deleted file mode 100644 index 3465bbea7447..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaAzurePlannedFailoverProviderInputTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.HyperVReplicaAzurePlannedFailoverProviderInput; -import org.junit.jupiter.api.Assertions; - -public final class HyperVReplicaAzurePlannedFailoverProviderInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HyperVReplicaAzurePlannedFailoverProviderInput model = BinaryData.fromString( - "{\"instanceType\":\"HyperVReplicaAzure\",\"primaryKekCertificatePfx\":\"fsbw\",\"secondaryKekCertificatePfx\":\"ivbvzi\",\"recoveryPointId\":\"wxgoooxzpra\",\"osUpgradeVersion\":\"s\"}") - .toObject(HyperVReplicaAzurePlannedFailoverProviderInput.class); - Assertions.assertEquals("fsbw", model.primaryKekCertificatePfx()); - Assertions.assertEquals("ivbvzi", model.secondaryKekCertificatePfx()); - Assertions.assertEquals("wxgoooxzpra", model.recoveryPointId()); - Assertions.assertEquals("s", model.osUpgradeVersion()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HyperVReplicaAzurePlannedFailoverProviderInput model - = new HyperVReplicaAzurePlannedFailoverProviderInput().withPrimaryKekCertificatePfx("fsbw") - .withSecondaryKekCertificatePfx("ivbvzi") - .withRecoveryPointId("wxgoooxzpra") - .withOsUpgradeVersion("s"); - model = BinaryData.fromObject(model).toObject(HyperVReplicaAzurePlannedFailoverProviderInput.class); - Assertions.assertEquals("fsbw", model.primaryKekCertificatePfx()); - Assertions.assertEquals("ivbvzi", model.secondaryKekCertificatePfx()); - Assertions.assertEquals("wxgoooxzpra", model.recoveryPointId()); - Assertions.assertEquals("s", model.osUpgradeVersion()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaAzurePolicyDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaAzurePolicyDetailsTests.java deleted file mode 100644 index 0c6f29731c0f..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaAzurePolicyDetailsTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.HyperVReplicaAzurePolicyDetails; -import org.junit.jupiter.api.Assertions; - -public final class HyperVReplicaAzurePolicyDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HyperVReplicaAzurePolicyDetails model = BinaryData.fromString( - "{\"instanceType\":\"HyperVReplicaAzure\",\"recoveryPointHistoryDurationInHours\":779585791,\"applicationConsistentSnapshotFrequencyInHours\":1492620534,\"replicationInterval\":2041507399,\"onlineReplicationStartTime\":\"igjsugswhgs\",\"encryption\":\"dkwwn\",\"activeStorageAccountId\":\"foct\"}") - .toObject(HyperVReplicaAzurePolicyDetails.class); - Assertions.assertEquals(779585791, model.recoveryPointHistoryDurationInHours()); - Assertions.assertEquals(1492620534, model.applicationConsistentSnapshotFrequencyInHours()); - Assertions.assertEquals(2041507399, model.replicationInterval()); - Assertions.assertEquals("igjsugswhgs", model.onlineReplicationStartTime()); - Assertions.assertEquals("dkwwn", model.encryption()); - Assertions.assertEquals("foct", model.activeStorageAccountId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HyperVReplicaAzurePolicyDetails model - = new HyperVReplicaAzurePolicyDetails().withRecoveryPointHistoryDurationInHours(779585791) - .withApplicationConsistentSnapshotFrequencyInHours(1492620534) - .withReplicationInterval(2041507399) - .withOnlineReplicationStartTime("igjsugswhgs") - .withEncryption("dkwwn") - .withActiveStorageAccountId("foct"); - model = BinaryData.fromObject(model).toObject(HyperVReplicaAzurePolicyDetails.class); - Assertions.assertEquals(779585791, model.recoveryPointHistoryDurationInHours()); - Assertions.assertEquals(1492620534, model.applicationConsistentSnapshotFrequencyInHours()); - Assertions.assertEquals(2041507399, model.replicationInterval()); - Assertions.assertEquals("igjsugswhgs", model.onlineReplicationStartTime()); - Assertions.assertEquals("dkwwn", model.encryption()); - Assertions.assertEquals("foct", model.activeStorageAccountId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaAzurePolicyInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaAzurePolicyInputTests.java deleted file mode 100644 index 473e4ddc6ba3..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaAzurePolicyInputTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.HyperVReplicaAzurePolicyInput; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class HyperVReplicaAzurePolicyInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HyperVReplicaAzurePolicyInput model = BinaryData.fromString( - "{\"instanceType\":\"HyperVReplicaAzure\",\"recoveryPointHistoryDuration\":498645411,\"applicationConsistentSnapshotFrequencyInHours\":2120923366,\"replicationInterval\":394441796,\"onlineReplicationStartTime\":\"wsxbgnvkervqc\",\"storageAccounts\":[\"dhrsxqvzvsp\",\"bdsrgfajglzrsu\",\"klrxhjnltce\",\"jdvqy\"]}") - .toObject(HyperVReplicaAzurePolicyInput.class); - Assertions.assertEquals(498645411, model.recoveryPointHistoryDuration()); - Assertions.assertEquals(2120923366, model.applicationConsistentSnapshotFrequencyInHours()); - Assertions.assertEquals(394441796, model.replicationInterval()); - Assertions.assertEquals("wsxbgnvkervqc", model.onlineReplicationStartTime()); - Assertions.assertEquals("dhrsxqvzvsp", model.storageAccounts().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HyperVReplicaAzurePolicyInput model - = new HyperVReplicaAzurePolicyInput().withRecoveryPointHistoryDuration(498645411) - .withApplicationConsistentSnapshotFrequencyInHours(2120923366) - .withReplicationInterval(394441796) - .withOnlineReplicationStartTime("wsxbgnvkervqc") - .withStorageAccounts(Arrays.asList("dhrsxqvzvsp", "bdsrgfajglzrsu", "klrxhjnltce", "jdvqy")); - model = BinaryData.fromObject(model).toObject(HyperVReplicaAzurePolicyInput.class); - Assertions.assertEquals(498645411, model.recoveryPointHistoryDuration()); - Assertions.assertEquals(2120923366, model.applicationConsistentSnapshotFrequencyInHours()); - Assertions.assertEquals(394441796, model.replicationInterval()); - Assertions.assertEquals("wsxbgnvkervqc", model.onlineReplicationStartTime()); - Assertions.assertEquals("dhrsxqvzvsp", model.storageAccounts().get(0)); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaAzureReplicationDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaAzureReplicationDetailsTests.java deleted file mode 100644 index 01d7d23a2df4..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaAzureReplicationDetailsTests.java +++ /dev/null @@ -1,408 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.AzureVmDiskDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.HyperVReplicaAzureManagedDiskDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.HyperVReplicaAzureReplicationDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InitialReplicationDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.IpConfigDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.OSDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.OSUpgradeSupportedVersions; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VMNicDetails; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class HyperVReplicaAzureReplicationDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HyperVReplicaAzureReplicationDetails model = BinaryData.fromString( - "{\"instanceType\":\"HyperVReplicaAzure\",\"azureVmDiskDetails\":[{\"vhdType\":\"qkwaruwd\",\"vhdId\":\"qzxoebwgjxbi\",\"diskId\":\"nbau\",\"vhdName\":\"tzvp\",\"maxSizeMB\":\"lozkxbzrp\",\"targetDiskLocation\":\"plssanbtttk\",\"targetDiskName\":\"uxunrswg\",\"lunId\":\"jhboyikebhuhks\",\"diskEncryptionSetId\":\"wlokhueoijyzcq\",\"customTargetDiskName\":\"zqzu\"}],\"recoveryAzureVmName\":\"s\",\"recoveryAzureVMSize\":\"ej\",\"recoveryAzureStorageAccount\":\"dwtfx\",\"recoveryAzureLogStorageAccountId\":\"pqa\",\"lastReplicatedTime\":\"2021-12-08T02:26:36Z\",\"rpoInSeconds\":5044054827498032259,\"lastRpoCalculatedTime\":\"2021-10-17T04:21:19Z\",\"vmId\":\"bmxsnxoc\",\"vmProtectionState\":\"llojkpoyhgwwdj\",\"vmProtectionStateDescription\":\"dbdljz\",\"initialReplicationDetails\":{\"initialReplicationType\":\"rcvuqbsgzlrqhb\",\"initialReplicationProgressPercentage\":\"qogdx\"},\"vmNics\":[{\"nicId\":\"p\",\"replicaNicId\":\"x\",\"sourceNicArmId\":\"lflec\",\"vMNetworkName\":\"inxojjlux\",\"recoveryVMNetworkId\":\"hilzzdzzq\",\"ipConfigs\":[{\"name\":\"za\",\"isPrimary\":true,\"subnetName\":\"ibqlotokhtvwtaz\",\"staticIPAddress\":\"cqwwxwj\",\"ipAddressType\":\"fgwhnkbtlwljs\",\"isSeletedForFailover\":true,\"recoverySubnetName\":\"sn\",\"recoveryStaticIPAddress\":\"kpwolg\",\"recoveryIPAddressType\":\"ubxbteogfgfiijr\",\"recoveryPublicIPAddressId\":\"wlefksxqceazfpxg\",\"recoveryLBBackendAddressPoolIds\":[\"vzvluyq\",\"aiossscyvaifp\"],\"tfoSubnetName\":\"acvfyeowps\",\"tfoStaticIPAddress\":\"tjdhsoymhpvtyq\",\"tfoPublicIPAddressId\":\"tehdpboujs\",\"tfoLBBackendAddressPoolIds\":[\"vvdshxcdedsue\",\"ygnxcgjtfrnqukt\",\"fnslnlrxsmy\",\"trwntfmtbgw\"]},{\"name\":\"xwnaz\",\"isPrimary\":true,\"subnetName\":\"drey\",\"staticIPAddress\":\"whsetwwjwzzqs\",\"ipAddressType\":\"zuukykcyqhyqq\",\"isSeletedForFailover\":false,\"recoverySubnetName\":\"ykeys\",\"recoveryStaticIPAddress\":\"wfopazdazg\",\"recoveryIPAddressType\":\"qgpewqcfutmdpvoz\",\"recoveryPublicIPAddressId\":\"qjbknl\",\"recoveryLBBackendAddressPoolIds\":[\"ctzeyowmndc\",\"v\",\"wzqauxzanhmkvf\",\"uwkudrbcp\"],\"tfoSubnetName\":\"xudqyemebunaucmc\",\"tfoStaticIPAddress\":\"tneemmjauwcgxef\",\"tfoPublicIPAddressId\":\"haitranize\",\"tfoLBBackendAddressPoolIds\":[\"udasmxubvfbng\",\"coce\",\"hpriylfm\"]}],\"selectionType\":\"trauds\",\"recoveryNetworkSecurityGroupId\":\"lcdculregpq\",\"enableAcceleratedNetworkingOnRecovery\":false,\"tfoVMNetworkId\":\"hvrztnvg\",\"tfoNetworkSecurityGroupId\":\"hqrdgrtwmewjzlpy\",\"enableAcceleratedNetworkingOnTfo\":false,\"recoveryNicName\":\"zzwjcayerzrran\",\"recoveryNicResourceGroupName\":\"bylpolwzr\",\"reuseExistingNic\":true,\"tfoRecoveryNicName\":\"l\",\"tfoRecoveryNicResourceGroupName\":\"nkfscjfn\",\"tfoReuseExistingNic\":true,\"targetNicName\":\"uagfqwtltngv\"},{\"nicId\":\"e\",\"replicaNicId\":\"trklzmijajwol\",\"sourceNicArmId\":\"s\",\"vMNetworkName\":\"ghmp\",\"recoveryVMNetworkId\":\"wl\",\"ipConfigs\":[{\"name\":\"igt\",\"isPrimary\":true,\"subnetName\":\"bxqla\",\"staticIPAddress\":\"nssovyxpav\",\"ipAddressType\":\"nievwffc\",\"isSeletedForFailover\":false,\"recoverySubnetName\":\"zslp\",\"recoveryStaticIPAddress\":\"gcbdsvalpnptw\",\"recoveryIPAddressType\":\"kx\",\"recoveryPublicIPAddressId\":\"azwu\",\"recoveryLBBackendAddressPoolIds\":[\"qvn\",\"obfelhldiuhz\",\"gqlmfaewzgi\"],\"tfoSubnetName\":\"jpxpqhttqhnmhkre\",\"tfoStaticIPAddress\":\"dsuxheqdgcrux\",\"tfoPublicIPAddressId\":\"inymmqgwokmikp\",\"tfoLBBackendAddressPoolIds\":[\"bmjxuvjipf\",\"vhax\",\"vwzaehp\"]},{\"name\":\"thd\",\"isPrimary\":true,\"subnetName\":\"etatlakf\",\"staticIPAddress\":\"ixwgiksbbvtooxrp\",\"ipAddressType\":\"wp\",\"isSeletedForFailover\":true,\"recoverySubnetName\":\"jtnhtukfac\",\"recoveryStaticIPAddress\":\"mbf\",\"recoveryIPAddressType\":\"umeezbxvqxb\",\"recoveryPublicIPAddressId\":\"vwcga\",\"recoveryLBBackendAddressPoolIds\":[\"mtmjzw\",\"uqgovsxpwwztjfm\",\"khtgfredmlscgrll\",\"cnaovjo\"],\"tfoSubnetName\":\"zhpabac\",\"tfoStaticIPAddress\":\"lyotg\",\"tfoPublicIPAddressId\":\"sxnsrqorcge\",\"tfoLBBackendAddressPoolIds\":[\"c\",\"bxeetqujxcxxqn\",\"cqjkedwqu\",\"cgojmrv\"]},{\"name\":\"wjongzs\",\"isPrimary\":false,\"subnetName\":\"rsilcchskxxkansb\",\"staticIPAddress\":\"ia\",\"ipAddressType\":\"vtojrulfuctejr\",\"isSeletedForFailover\":false,\"recoverySubnetName\":\"jzhxlyubqjrost\",\"recoveryStaticIPAddress\":\"jeqmtzzbeqrzt\",\"recoveryIPAddressType\":\"alx\",\"recoveryPublicIPAddressId\":\"habsrwrsnrh\",\"recoveryLBBackendAddressPoolIds\":[\"tiwkkvyan\"],\"tfoSubnetName\":\"vvcsemsvuvdjkqxe\",\"tfoStaticIPAddress\":\"mmlivrjjxnw\",\"tfoPublicIPAddressId\":\"chp\",\"tfoLBBackendAddressPoolIds\":[\"lehzlxpgfq\",\"wzpwiibel\",\"cerwkwbpjxljtxbu\",\"qtbxxniuisdzh\"]}],\"selectionType\":\"d\",\"recoveryNetworkSecurityGroupId\":\"pagsecnad\",\"enableAcceleratedNetworkingOnRecovery\":true,\"tfoVMNetworkId\":\"r\",\"tfoNetworkSecurityGroupId\":\"fllmqiy\",\"enableAcceleratedNetworkingOnTfo\":true,\"recoveryNicName\":\"ellnkkii\",\"recoveryNicResourceGroupName\":\"mtum\",\"reuseExistingNic\":false,\"tfoRecoveryNicName\":\"djf\",\"tfoRecoveryNicResourceGroupName\":\"xroq\",\"tfoReuseExistingNic\":true,\"targetNicName\":\"lr\"}],\"selectedRecoveryAzureNetworkId\":\"ncanlduwzor\",\"selectedSourceNicId\":\"bm\",\"encryption\":\"qk\",\"oSDetails\":{\"osType\":\"mxkqvf\",\"productType\":\"pdxcltuubwy\",\"osEdition\":\"jbowcpj\",\"oSVersion\":\"uqgixex\",\"oSMajorVersion\":\"dfbwljav\",\"oSMinorVersion\":\"erkjddv\"},\"sourceVmRamSizeInMB\":436483933,\"sourceVmCpuCount\":1692980760,\"enableRdpOnTargetOption\":\"ftcvbii\",\"recoveryAzureResourceGroupId\":\"ksdwgdnk\",\"recoveryAvailabilitySetId\":\"gmwdh\",\"targetAvailabilityZone\":\"buvczldbglzoutb\",\"targetProximityPlacementGroupId\":\"qgz\",\"useManagedDisks\":\"ajclyzgsnorbjg\",\"licenseType\":\"zjotvmrxkhlo\",\"sqlServerLicenseType\":\"vjb\",\"lastRecoveryPointReceived\":\"2021-05-11T18:13:33Z\",\"targetVmTags\":{\"iyu\":\"qayfl\",\"rswhbuubpyro\":\"snuudtelvhyibdr\"},\"seedManagedDiskTags\":{\"czevjnn\":\"oxztfwfqch\",\"mhzcgkrepdqh\":\"tagfyvrtpqp\",\"mvxqab\":\"yhwqw\",\"eoxinhgre\":\"km\"},\"targetManagedDiskTags\":{\"angp\":\"whlpuzjpceezn\",\"phmsexroq\":\"bfaxyxzlbc\",\"nfee\":\"ndktxfv\"},\"targetNicTags\":{\"bgnixxoww\":\"krie\",\"p\":\"kyfwnwpiwxeiicr\",\"dm\":\"pk\"},\"protectedManagedDisks\":[{\"diskId\":\"jvskwsdgkjg\",\"seedManagedDiskId\":\"cwrase\",\"replicaDiskType\":\"efcvo\",\"diskEncryptionSetId\":\"woqartwy\"},{\"diskId\":\"i\",\"seedManagedDiskId\":\"advatdavuqmcb\",\"replicaDiskType\":\"sfobjl\",\"diskEncryptionSetId\":\"vjezcjumvpsim\"},{\"diskId\":\"yoi\",\"seedManagedDiskId\":\"kmi\",\"replicaDiskType\":\"nnraclibbfqpspkl\",\"diskEncryptionSetId\":\"ydgnha\"},{\"diskId\":\"wuk\",\"seedManagedDiskId\":\"zgpmnma\",\"replicaDiskType\":\"ddqil\",\"diskEncryptionSetId\":\"d\"}],\"allAvailableOSUpgradeConfigurations\":[{\"supportedSourceOsVersion\":\"fpcvstclgqrvwerf\",\"supportedTargetOsVersions\":[\"smtbljjehhcif\",\"wdv\",\"tbrekqhsqhtf\"]}]}") - .toObject(HyperVReplicaAzureReplicationDetails.class); - Assertions.assertEquals("qkwaruwd", model.azureVmDiskDetails().get(0).vhdType()); - Assertions.assertEquals("qzxoebwgjxbi", model.azureVmDiskDetails().get(0).vhdId()); - Assertions.assertEquals("nbau", model.azureVmDiskDetails().get(0).diskId()); - Assertions.assertEquals("tzvp", model.azureVmDiskDetails().get(0).vhdName()); - Assertions.assertEquals("lozkxbzrp", model.azureVmDiskDetails().get(0).maxSizeMB()); - Assertions.assertEquals("plssanbtttk", model.azureVmDiskDetails().get(0).targetDiskLocation()); - Assertions.assertEquals("uxunrswg", model.azureVmDiskDetails().get(0).targetDiskName()); - Assertions.assertEquals("jhboyikebhuhks", model.azureVmDiskDetails().get(0).lunId()); - Assertions.assertEquals("wlokhueoijyzcq", model.azureVmDiskDetails().get(0).diskEncryptionSetId()); - Assertions.assertEquals("zqzu", model.azureVmDiskDetails().get(0).customTargetDiskName()); - Assertions.assertEquals("s", model.recoveryAzureVmName()); - Assertions.assertEquals("ej", model.recoveryAzureVMSize()); - Assertions.assertEquals("dwtfx", model.recoveryAzureStorageAccount()); - Assertions.assertEquals("pqa", model.recoveryAzureLogStorageAccountId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-12-08T02:26:36Z"), model.lastReplicatedTime()); - Assertions.assertEquals(5044054827498032259L, model.rpoInSeconds()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-17T04:21:19Z"), model.lastRpoCalculatedTime()); - Assertions.assertEquals("bmxsnxoc", model.vmId()); - Assertions.assertEquals("llojkpoyhgwwdj", model.vmProtectionState()); - Assertions.assertEquals("dbdljz", model.vmProtectionStateDescription()); - Assertions.assertEquals("rcvuqbsgzlrqhb", model.initialReplicationDetails().initialReplicationType()); - Assertions.assertEquals("qogdx", model.initialReplicationDetails().initialReplicationProgressPercentage()); - Assertions.assertEquals("p", model.vmNics().get(0).nicId()); - Assertions.assertEquals("x", model.vmNics().get(0).replicaNicId()); - Assertions.assertEquals("lflec", model.vmNics().get(0).sourceNicArmId()); - Assertions.assertEquals("inxojjlux", model.vmNics().get(0).vMNetworkName()); - Assertions.assertEquals("hilzzdzzq", model.vmNics().get(0).recoveryVMNetworkId()); - Assertions.assertEquals("za", model.vmNics().get(0).ipConfigs().get(0).name()); - Assertions.assertEquals(true, model.vmNics().get(0).ipConfigs().get(0).isPrimary()); - Assertions.assertEquals("ibqlotokhtvwtaz", model.vmNics().get(0).ipConfigs().get(0).subnetName()); - Assertions.assertEquals("cqwwxwj", model.vmNics().get(0).ipConfigs().get(0).staticIpAddress()); - Assertions.assertEquals("fgwhnkbtlwljs", model.vmNics().get(0).ipConfigs().get(0).ipAddressType()); - Assertions.assertEquals(true, model.vmNics().get(0).ipConfigs().get(0).isSeletedForFailover()); - Assertions.assertEquals("sn", model.vmNics().get(0).ipConfigs().get(0).recoverySubnetName()); - Assertions.assertEquals("kpwolg", model.vmNics().get(0).ipConfigs().get(0).recoveryStaticIpAddress()); - Assertions.assertEquals("ubxbteogfgfiijr", model.vmNics().get(0).ipConfigs().get(0).recoveryIpAddressType()); - Assertions.assertEquals("wlefksxqceazfpxg", - model.vmNics().get(0).ipConfigs().get(0).recoveryPublicIpAddressId()); - Assertions.assertEquals("vzvluyq", - model.vmNics().get(0).ipConfigs().get(0).recoveryLBBackendAddressPoolIds().get(0)); - Assertions.assertEquals("acvfyeowps", model.vmNics().get(0).ipConfigs().get(0).tfoSubnetName()); - Assertions.assertEquals("tjdhsoymhpvtyq", model.vmNics().get(0).ipConfigs().get(0).tfoStaticIpAddress()); - Assertions.assertEquals("tehdpboujs", model.vmNics().get(0).ipConfigs().get(0).tfoPublicIpAddressId()); - Assertions.assertEquals("vvdshxcdedsue", - model.vmNics().get(0).ipConfigs().get(0).tfoLBBackendAddressPoolIds().get(0)); - Assertions.assertEquals("trauds", model.vmNics().get(0).selectionType()); - Assertions.assertEquals("lcdculregpq", model.vmNics().get(0).recoveryNetworkSecurityGroupId()); - Assertions.assertEquals(false, model.vmNics().get(0).enableAcceleratedNetworkingOnRecovery()); - Assertions.assertEquals("hvrztnvg", model.vmNics().get(0).tfoVMNetworkId()); - Assertions.assertEquals("hqrdgrtwmewjzlpy", model.vmNics().get(0).tfoNetworkSecurityGroupId()); - Assertions.assertEquals(false, model.vmNics().get(0).enableAcceleratedNetworkingOnTfo()); - Assertions.assertEquals("zzwjcayerzrran", model.vmNics().get(0).recoveryNicName()); - Assertions.assertEquals("bylpolwzr", model.vmNics().get(0).recoveryNicResourceGroupName()); - Assertions.assertEquals(true, model.vmNics().get(0).reuseExistingNic()); - Assertions.assertEquals("l", model.vmNics().get(0).tfoRecoveryNicName()); - Assertions.assertEquals("nkfscjfn", model.vmNics().get(0).tfoRecoveryNicResourceGroupName()); - Assertions.assertEquals(true, model.vmNics().get(0).tfoReuseExistingNic()); - Assertions.assertEquals("uagfqwtltngv", model.vmNics().get(0).targetNicName()); - Assertions.assertEquals("ncanlduwzor", model.selectedRecoveryAzureNetworkId()); - Assertions.assertEquals("bm", model.selectedSourceNicId()); - Assertions.assertEquals("qk", model.encryption()); - Assertions.assertEquals("mxkqvf", model.oSDetails().osType()); - Assertions.assertEquals("pdxcltuubwy", model.oSDetails().productType()); - Assertions.assertEquals("jbowcpj", model.oSDetails().osEdition()); - Assertions.assertEquals("uqgixex", model.oSDetails().oSVersion()); - Assertions.assertEquals("dfbwljav", model.oSDetails().oSMajorVersion()); - Assertions.assertEquals("erkjddv", model.oSDetails().oSMinorVersion()); - Assertions.assertEquals(436483933, model.sourceVmRamSizeInMB()); - Assertions.assertEquals(1692980760, model.sourceVmCpuCount()); - Assertions.assertEquals("ftcvbii", model.enableRdpOnTargetOption()); - Assertions.assertEquals("ksdwgdnk", model.recoveryAzureResourceGroupId()); - Assertions.assertEquals("gmwdh", model.recoveryAvailabilitySetId()); - Assertions.assertEquals("buvczldbglzoutb", model.targetAvailabilityZone()); - Assertions.assertEquals("qgz", model.targetProximityPlacementGroupId()); - Assertions.assertEquals("ajclyzgsnorbjg", model.useManagedDisks()); - Assertions.assertEquals("zjotvmrxkhlo", model.licenseType()); - Assertions.assertEquals("vjb", model.sqlServerLicenseType()); - Assertions.assertEquals("qayfl", model.targetVmTags().get("iyu")); - Assertions.assertEquals("oxztfwfqch", model.seedManagedDiskTags().get("czevjnn")); - Assertions.assertEquals("whlpuzjpceezn", model.targetManagedDiskTags().get("angp")); - Assertions.assertEquals("krie", model.targetNicTags().get("bgnixxoww")); - Assertions.assertEquals("jvskwsdgkjg", model.protectedManagedDisks().get(0).diskId()); - Assertions.assertEquals("cwrase", model.protectedManagedDisks().get(0).seedManagedDiskId()); - Assertions.assertEquals("efcvo", model.protectedManagedDisks().get(0).replicaDiskType()); - Assertions.assertEquals("woqartwy", model.protectedManagedDisks().get(0).diskEncryptionSetId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HyperVReplicaAzureReplicationDetails model - = new HyperVReplicaAzureReplicationDetails() - .withAzureVmDiskDetails(Arrays.asList(new AzureVmDiskDetails().withVhdType("qkwaruwd") - .withVhdId("qzxoebwgjxbi") - .withDiskId("nbau") - .withVhdName("tzvp") - .withMaxSizeMB("lozkxbzrp") - .withTargetDiskLocation("plssanbtttk") - .withTargetDiskName("uxunrswg") - .withLunId("jhboyikebhuhks") - .withDiskEncryptionSetId("wlokhueoijyzcq") - .withCustomTargetDiskName("zqzu"))) - .withRecoveryAzureVmName("s") - .withRecoveryAzureVMSize("ej") - .withRecoveryAzureStorageAccount("dwtfx") - .withRecoveryAzureLogStorageAccountId("pqa") - .withLastReplicatedTime(OffsetDateTime.parse("2021-12-08T02:26:36Z")) - .withRpoInSeconds(5044054827498032259L) - .withLastRpoCalculatedTime(OffsetDateTime.parse("2021-10-17T04:21:19Z")) - .withVmId("bmxsnxoc") - .withVmProtectionState("llojkpoyhgwwdj") - .withVmProtectionStateDescription("dbdljz") - .withInitialReplicationDetails( - new InitialReplicationDetails().withInitialReplicationType("rcvuqbsgzlrqhb") - .withInitialReplicationProgressPercentage("qogdx")) - .withVmNics( - Arrays - .asList( - new VMNicDetails().withNicId("p") - .withReplicaNicId("x") - .withSourceNicArmId("lflec") - .withVMNetworkName("inxojjlux") - .withRecoveryVMNetworkId("hilzzdzzq") - .withIpConfigs( - Arrays.asList( - new IpConfigDetails().withName("za") - .withIsPrimary(true) - .withSubnetName("ibqlotokhtvwtaz") - .withStaticIpAddress("cqwwxwj") - .withIpAddressType("fgwhnkbtlwljs") - .withIsSeletedForFailover(true) - .withRecoverySubnetName("sn") - .withRecoveryStaticIpAddress("kpwolg") - .withRecoveryIpAddressType("ubxbteogfgfiijr") - .withRecoveryPublicIpAddressId("wlefksxqceazfpxg") - .withRecoveryLBBackendAddressPoolIds( - Arrays.asList("vzvluyq", "aiossscyvaifp")) - .withTfoSubnetName("acvfyeowps") - .withTfoStaticIpAddress("tjdhsoymhpvtyq") - .withTfoPublicIpAddressId("tehdpboujs") - .withTfoLBBackendAddressPoolIds(Arrays.asList("vvdshxcdedsue", - "ygnxcgjtfrnqukt", "fnslnlrxsmy", "trwntfmtbgw")), - new IpConfigDetails().withName("xwnaz") - .withIsPrimary(true) - .withSubnetName("drey") - .withStaticIpAddress("whsetwwjwzzqs") - .withIpAddressType("zuukykcyqhyqq") - .withIsSeletedForFailover(false) - .withRecoverySubnetName("ykeys") - .withRecoveryStaticIpAddress("wfopazdazg") - .withRecoveryIpAddressType("qgpewqcfutmdpvoz") - .withRecoveryPublicIpAddressId("qjbknl") - .withRecoveryLBBackendAddressPoolIds( - Arrays.asList("ctzeyowmndc", "v", "wzqauxzanhmkvf", "uwkudrbcp")) - .withTfoSubnetName("xudqyemebunaucmc") - .withTfoStaticIpAddress("tneemmjauwcgxef") - .withTfoPublicIpAddressId("haitranize") - .withTfoLBBackendAddressPoolIds( - Arrays.asList("udasmxubvfbng", "coce", "hpriylfm")))) - .withSelectionType("trauds") - .withRecoveryNetworkSecurityGroupId("lcdculregpq") - .withEnableAcceleratedNetworkingOnRecovery(false) - .withTfoVMNetworkId("hvrztnvg") - .withTfoNetworkSecurityGroupId("hqrdgrtwmewjzlpy") - .withEnableAcceleratedNetworkingOnTfo(false) - .withRecoveryNicName("zzwjcayerzrran") - .withRecoveryNicResourceGroupName("bylpolwzr") - .withReuseExistingNic(true) - .withTfoRecoveryNicName("l") - .withTfoRecoveryNicResourceGroupName("nkfscjfn") - .withTfoReuseExistingNic(true) - .withTargetNicName("uagfqwtltngv"), - new VMNicDetails().withNicId("e") - .withReplicaNicId("trklzmijajwol") - .withSourceNicArmId("s") - .withVMNetworkName("ghmp") - .withRecoveryVMNetworkId("wl") - .withIpConfigs(Arrays.asList( - new IpConfigDetails().withName("igt") - .withIsPrimary(true) - .withSubnetName("bxqla") - .withStaticIpAddress("nssovyxpav") - .withIpAddressType("nievwffc") - .withIsSeletedForFailover(false) - .withRecoverySubnetName("zslp") - .withRecoveryStaticIpAddress("gcbdsvalpnptw") - .withRecoveryIpAddressType("kx") - .withRecoveryPublicIpAddressId("azwu") - .withRecoveryLBBackendAddressPoolIds( - Arrays.asList("qvn", "obfelhldiuhz", "gqlmfaewzgi")) - .withTfoSubnetName("jpxpqhttqhnmhkre") - .withTfoStaticIpAddress("dsuxheqdgcrux") - .withTfoPublicIpAddressId("inymmqgwokmikp") - .withTfoLBBackendAddressPoolIds(Arrays.asList("bmjxuvjipf", "vhax", "vwzaehp")), - new IpConfigDetails().withName("thd") - .withIsPrimary(true) - .withSubnetName("etatlakf") - .withStaticIpAddress("ixwgiksbbvtooxrp") - .withIpAddressType("wp") - .withIsSeletedForFailover(true) - .withRecoverySubnetName("jtnhtukfac") - .withRecoveryStaticIpAddress("mbf") - .withRecoveryIpAddressType("umeezbxvqxb") - .withRecoveryPublicIpAddressId("vwcga") - .withRecoveryLBBackendAddressPoolIds( - Arrays.asList("mtmjzw", "uqgovsxpwwztjfm", "khtgfredmlscgrll", "cnaovjo")) - .withTfoSubnetName("zhpabac") - .withTfoStaticIpAddress("lyotg") - .withTfoPublicIpAddressId("sxnsrqorcge") - .withTfoLBBackendAddressPoolIds( - Arrays.asList("c", "bxeetqujxcxxqn", "cqjkedwqu", "cgojmrv")), - new IpConfigDetails().withName("wjongzs") - .withIsPrimary(false) - .withSubnetName("rsilcchskxxkansb") - .withStaticIpAddress("ia") - .withIpAddressType("vtojrulfuctejr") - .withIsSeletedForFailover(false) - .withRecoverySubnetName("jzhxlyubqjrost") - .withRecoveryStaticIpAddress("jeqmtzzbeqrzt") - .withRecoveryIpAddressType("alx") - .withRecoveryPublicIpAddressId("habsrwrsnrh") - .withRecoveryLBBackendAddressPoolIds(Arrays.asList("tiwkkvyan")) - .withTfoSubnetName("vvcsemsvuvdjkqxe") - .withTfoStaticIpAddress("mmlivrjjxnw") - .withTfoPublicIpAddressId("chp") - .withTfoLBBackendAddressPoolIds(Arrays.asList("lehzlxpgfq", "wzpwiibel", - "cerwkwbpjxljtxbu", "qtbxxniuisdzh")))) - .withSelectionType("d") - .withRecoveryNetworkSecurityGroupId("pagsecnad") - .withEnableAcceleratedNetworkingOnRecovery(true) - .withTfoVMNetworkId("r") - .withTfoNetworkSecurityGroupId("fllmqiy") - .withEnableAcceleratedNetworkingOnTfo(true) - .withRecoveryNicName("ellnkkii") - .withRecoveryNicResourceGroupName("mtum") - .withReuseExistingNic(false) - .withTfoRecoveryNicName("djf") - .withTfoRecoveryNicResourceGroupName("xroq") - .withTfoReuseExistingNic(true) - .withTargetNicName("lr"))) - .withSelectedRecoveryAzureNetworkId("ncanlduwzor") - .withSelectedSourceNicId("bm") - .withEncryption("qk") - .withOSDetails(new OSDetails().withOsType("mxkqvf") - .withProductType("pdxcltuubwy") - .withOsEdition("jbowcpj") - .withOSVersion("uqgixex") - .withOSMajorVersion("dfbwljav") - .withOSMinorVersion("erkjddv")) - .withSourceVmRamSizeInMB(436483933) - .withSourceVmCpuCount(1692980760) - .withEnableRdpOnTargetOption("ftcvbii") - .withRecoveryAzureResourceGroupId("ksdwgdnk") - .withRecoveryAvailabilitySetId("gmwdh") - .withTargetAvailabilityZone("buvczldbglzoutb") - .withTargetProximityPlacementGroupId("qgz") - .withUseManagedDisks("ajclyzgsnorbjg") - .withLicenseType("zjotvmrxkhlo") - .withSqlServerLicenseType("vjb") - .withTargetVmTags(mapOf("iyu", "qayfl", "rswhbuubpyro", "snuudtelvhyibdr")) - .withSeedManagedDiskTags( - mapOf("czevjnn", "oxztfwfqch", "mhzcgkrepdqh", "tagfyvrtpqp", "mvxqab", "yhwqw", "eoxinhgre", "km")) - .withTargetManagedDiskTags(mapOf("angp", "whlpuzjpceezn", "phmsexroq", "bfaxyxzlbc", "nfee", "ndktxfv")) - .withTargetNicTags(mapOf("bgnixxoww", "krie", "p", "kyfwnwpiwxeiicr", "dm", "pk")) - .withProtectedManagedDisks(Arrays.asList( - new HyperVReplicaAzureManagedDiskDetails().withDiskId("jvskwsdgkjg") - .withSeedManagedDiskId("cwrase") - .withReplicaDiskType("efcvo") - .withDiskEncryptionSetId("woqartwy"), - new HyperVReplicaAzureManagedDiskDetails().withDiskId("i") - .withSeedManagedDiskId("advatdavuqmcb") - .withReplicaDiskType("sfobjl") - .withDiskEncryptionSetId("vjezcjumvpsim"), - new HyperVReplicaAzureManagedDiskDetails().withDiskId("yoi") - .withSeedManagedDiskId("kmi") - .withReplicaDiskType("nnraclibbfqpspkl") - .withDiskEncryptionSetId("ydgnha"), - new HyperVReplicaAzureManagedDiskDetails().withDiskId("wuk") - .withSeedManagedDiskId("zgpmnma") - .withReplicaDiskType("ddqil") - .withDiskEncryptionSetId("d"))) - .withAllAvailableOSUpgradeConfigurations(Arrays.asList(new OSUpgradeSupportedVersions())); - model = BinaryData.fromObject(model).toObject(HyperVReplicaAzureReplicationDetails.class); - Assertions.assertEquals("qkwaruwd", model.azureVmDiskDetails().get(0).vhdType()); - Assertions.assertEquals("qzxoebwgjxbi", model.azureVmDiskDetails().get(0).vhdId()); - Assertions.assertEquals("nbau", model.azureVmDiskDetails().get(0).diskId()); - Assertions.assertEquals("tzvp", model.azureVmDiskDetails().get(0).vhdName()); - Assertions.assertEquals("lozkxbzrp", model.azureVmDiskDetails().get(0).maxSizeMB()); - Assertions.assertEquals("plssanbtttk", model.azureVmDiskDetails().get(0).targetDiskLocation()); - Assertions.assertEquals("uxunrswg", model.azureVmDiskDetails().get(0).targetDiskName()); - Assertions.assertEquals("jhboyikebhuhks", model.azureVmDiskDetails().get(0).lunId()); - Assertions.assertEquals("wlokhueoijyzcq", model.azureVmDiskDetails().get(0).diskEncryptionSetId()); - Assertions.assertEquals("zqzu", model.azureVmDiskDetails().get(0).customTargetDiskName()); - Assertions.assertEquals("s", model.recoveryAzureVmName()); - Assertions.assertEquals("ej", model.recoveryAzureVMSize()); - Assertions.assertEquals("dwtfx", model.recoveryAzureStorageAccount()); - Assertions.assertEquals("pqa", model.recoveryAzureLogStorageAccountId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-12-08T02:26:36Z"), model.lastReplicatedTime()); - Assertions.assertEquals(5044054827498032259L, model.rpoInSeconds()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-17T04:21:19Z"), model.lastRpoCalculatedTime()); - Assertions.assertEquals("bmxsnxoc", model.vmId()); - Assertions.assertEquals("llojkpoyhgwwdj", model.vmProtectionState()); - Assertions.assertEquals("dbdljz", model.vmProtectionStateDescription()); - Assertions.assertEquals("rcvuqbsgzlrqhb", model.initialReplicationDetails().initialReplicationType()); - Assertions.assertEquals("qogdx", model.initialReplicationDetails().initialReplicationProgressPercentage()); - Assertions.assertEquals("p", model.vmNics().get(0).nicId()); - Assertions.assertEquals("x", model.vmNics().get(0).replicaNicId()); - Assertions.assertEquals("lflec", model.vmNics().get(0).sourceNicArmId()); - Assertions.assertEquals("inxojjlux", model.vmNics().get(0).vMNetworkName()); - Assertions.assertEquals("hilzzdzzq", model.vmNics().get(0).recoveryVMNetworkId()); - Assertions.assertEquals("za", model.vmNics().get(0).ipConfigs().get(0).name()); - Assertions.assertEquals(true, model.vmNics().get(0).ipConfigs().get(0).isPrimary()); - Assertions.assertEquals("ibqlotokhtvwtaz", model.vmNics().get(0).ipConfigs().get(0).subnetName()); - Assertions.assertEquals("cqwwxwj", model.vmNics().get(0).ipConfigs().get(0).staticIpAddress()); - Assertions.assertEquals("fgwhnkbtlwljs", model.vmNics().get(0).ipConfigs().get(0).ipAddressType()); - Assertions.assertEquals(true, model.vmNics().get(0).ipConfigs().get(0).isSeletedForFailover()); - Assertions.assertEquals("sn", model.vmNics().get(0).ipConfigs().get(0).recoverySubnetName()); - Assertions.assertEquals("kpwolg", model.vmNics().get(0).ipConfigs().get(0).recoveryStaticIpAddress()); - Assertions.assertEquals("ubxbteogfgfiijr", model.vmNics().get(0).ipConfigs().get(0).recoveryIpAddressType()); - Assertions.assertEquals("wlefksxqceazfpxg", - model.vmNics().get(0).ipConfigs().get(0).recoveryPublicIpAddressId()); - Assertions.assertEquals("vzvluyq", - model.vmNics().get(0).ipConfigs().get(0).recoveryLBBackendAddressPoolIds().get(0)); - Assertions.assertEquals("acvfyeowps", model.vmNics().get(0).ipConfigs().get(0).tfoSubnetName()); - Assertions.assertEquals("tjdhsoymhpvtyq", model.vmNics().get(0).ipConfigs().get(0).tfoStaticIpAddress()); - Assertions.assertEquals("tehdpboujs", model.vmNics().get(0).ipConfigs().get(0).tfoPublicIpAddressId()); - Assertions.assertEquals("vvdshxcdedsue", - model.vmNics().get(0).ipConfigs().get(0).tfoLBBackendAddressPoolIds().get(0)); - Assertions.assertEquals("trauds", model.vmNics().get(0).selectionType()); - Assertions.assertEquals("lcdculregpq", model.vmNics().get(0).recoveryNetworkSecurityGroupId()); - Assertions.assertEquals(false, model.vmNics().get(0).enableAcceleratedNetworkingOnRecovery()); - Assertions.assertEquals("hvrztnvg", model.vmNics().get(0).tfoVMNetworkId()); - Assertions.assertEquals("hqrdgrtwmewjzlpy", model.vmNics().get(0).tfoNetworkSecurityGroupId()); - Assertions.assertEquals(false, model.vmNics().get(0).enableAcceleratedNetworkingOnTfo()); - Assertions.assertEquals("zzwjcayerzrran", model.vmNics().get(0).recoveryNicName()); - Assertions.assertEquals("bylpolwzr", model.vmNics().get(0).recoveryNicResourceGroupName()); - Assertions.assertEquals(true, model.vmNics().get(0).reuseExistingNic()); - Assertions.assertEquals("l", model.vmNics().get(0).tfoRecoveryNicName()); - Assertions.assertEquals("nkfscjfn", model.vmNics().get(0).tfoRecoveryNicResourceGroupName()); - Assertions.assertEquals(true, model.vmNics().get(0).tfoReuseExistingNic()); - Assertions.assertEquals("uagfqwtltngv", model.vmNics().get(0).targetNicName()); - Assertions.assertEquals("ncanlduwzor", model.selectedRecoveryAzureNetworkId()); - Assertions.assertEquals("bm", model.selectedSourceNicId()); - Assertions.assertEquals("qk", model.encryption()); - Assertions.assertEquals("mxkqvf", model.oSDetails().osType()); - Assertions.assertEquals("pdxcltuubwy", model.oSDetails().productType()); - Assertions.assertEquals("jbowcpj", model.oSDetails().osEdition()); - Assertions.assertEquals("uqgixex", model.oSDetails().oSVersion()); - Assertions.assertEquals("dfbwljav", model.oSDetails().oSMajorVersion()); - Assertions.assertEquals("erkjddv", model.oSDetails().oSMinorVersion()); - Assertions.assertEquals(436483933, model.sourceVmRamSizeInMB()); - Assertions.assertEquals(1692980760, model.sourceVmCpuCount()); - Assertions.assertEquals("ftcvbii", model.enableRdpOnTargetOption()); - Assertions.assertEquals("ksdwgdnk", model.recoveryAzureResourceGroupId()); - Assertions.assertEquals("gmwdh", model.recoveryAvailabilitySetId()); - Assertions.assertEquals("buvczldbglzoutb", model.targetAvailabilityZone()); - Assertions.assertEquals("qgz", model.targetProximityPlacementGroupId()); - Assertions.assertEquals("ajclyzgsnorbjg", model.useManagedDisks()); - Assertions.assertEquals("zjotvmrxkhlo", model.licenseType()); - Assertions.assertEquals("vjb", model.sqlServerLicenseType()); - Assertions.assertEquals("qayfl", model.targetVmTags().get("iyu")); - Assertions.assertEquals("oxztfwfqch", model.seedManagedDiskTags().get("czevjnn")); - Assertions.assertEquals("whlpuzjpceezn", model.targetManagedDiskTags().get("angp")); - Assertions.assertEquals("krie", model.targetNicTags().get("bgnixxoww")); - Assertions.assertEquals("jvskwsdgkjg", model.protectedManagedDisks().get(0).diskId()); - Assertions.assertEquals("cwrase", model.protectedManagedDisks().get(0).seedManagedDiskId()); - Assertions.assertEquals("efcvo", model.protectedManagedDisks().get(0).replicaDiskType()); - Assertions.assertEquals("woqartwy", model.protectedManagedDisks().get(0).diskEncryptionSetId()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaAzureReprotectInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaAzureReprotectInputTests.java deleted file mode 100644 index 9bc015e1003e..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaAzureReprotectInputTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.HyperVReplicaAzureReprotectInput; -import org.junit.jupiter.api.Assertions; - -public final class HyperVReplicaAzureReprotectInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HyperVReplicaAzureReprotectInput model = BinaryData.fromString( - "{\"instanceType\":\"HyperVReplicaAzure\",\"hvHostVmId\":\"zbnobr\",\"vmName\":\"pbcjtrpzuyudivbx\",\"osType\":\"sqeaeonqelwg\",\"vHDId\":\"uruzy\",\"storageAccountId\":\"arogatmolji\",\"logStorageAccountId\":\"mpinmzvfkneerzzt\"}") - .toObject(HyperVReplicaAzureReprotectInput.class); - Assertions.assertEquals("zbnobr", model.hvHostVmId()); - Assertions.assertEquals("pbcjtrpzuyudivbx", model.vmName()); - Assertions.assertEquals("sqeaeonqelwg", model.osType()); - Assertions.assertEquals("uruzy", model.vHDId()); - Assertions.assertEquals("arogatmolji", model.storageAccountId()); - Assertions.assertEquals("mpinmzvfkneerzzt", model.logStorageAccountId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HyperVReplicaAzureReprotectInput model = new HyperVReplicaAzureReprotectInput().withHvHostVmId("zbnobr") - .withVmName("pbcjtrpzuyudivbx") - .withOsType("sqeaeonqelwg") - .withVHDId("uruzy") - .withStorageAccountId("arogatmolji") - .withLogStorageAccountId("mpinmzvfkneerzzt"); - model = BinaryData.fromObject(model).toObject(HyperVReplicaAzureReprotectInput.class); - Assertions.assertEquals("zbnobr", model.hvHostVmId()); - Assertions.assertEquals("pbcjtrpzuyudivbx", model.vmName()); - Assertions.assertEquals("sqeaeonqelwg", model.osType()); - Assertions.assertEquals("uruzy", model.vHDId()); - Assertions.assertEquals("arogatmolji", model.storageAccountId()); - Assertions.assertEquals("mpinmzvfkneerzzt", model.logStorageAccountId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaAzureTestFailoverInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaAzureTestFailoverInputTests.java deleted file mode 100644 index 900cc4e85a44..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaAzureTestFailoverInputTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.HyperVReplicaAzureTestFailoverInput; -import org.junit.jupiter.api.Assertions; - -public final class HyperVReplicaAzureTestFailoverInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HyperVReplicaAzureTestFailoverInput model = BinaryData.fromString( - "{\"instanceType\":\"HyperVReplicaAzure\",\"primaryKekCertificatePfx\":\"nsjulugdybnh\",\"secondaryKekCertificatePfx\":\"lelfjhkeizcpih\",\"recoveryPointId\":\"miw\",\"osUpgradeVersion\":\"kpty\"}") - .toObject(HyperVReplicaAzureTestFailoverInput.class); - Assertions.assertEquals("nsjulugdybnh", model.primaryKekCertificatePfx()); - Assertions.assertEquals("lelfjhkeizcpih", model.secondaryKekCertificatePfx()); - Assertions.assertEquals("miw", model.recoveryPointId()); - Assertions.assertEquals("kpty", model.osUpgradeVersion()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HyperVReplicaAzureTestFailoverInput model - = new HyperVReplicaAzureTestFailoverInput().withPrimaryKekCertificatePfx("nsjulugdybnh") - .withSecondaryKekCertificatePfx("lelfjhkeizcpih") - .withRecoveryPointId("miw") - .withOsUpgradeVersion("kpty"); - model = BinaryData.fromObject(model).toObject(HyperVReplicaAzureTestFailoverInput.class); - Assertions.assertEquals("nsjulugdybnh", model.primaryKekCertificatePfx()); - Assertions.assertEquals("lelfjhkeizcpih", model.secondaryKekCertificatePfx()); - Assertions.assertEquals("miw", model.recoveryPointId()); - Assertions.assertEquals("kpty", model.osUpgradeVersion()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaAzureUnplannedFailoverInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaAzureUnplannedFailoverInputTests.java deleted file mode 100644 index 1751074b803e..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaAzureUnplannedFailoverInputTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.HyperVReplicaAzureUnplannedFailoverInput; -import org.junit.jupiter.api.Assertions; - -public final class HyperVReplicaAzureUnplannedFailoverInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HyperVReplicaAzureUnplannedFailoverInput model = BinaryData.fromString( - "{\"instanceType\":\"HyperVReplicaAzure\",\"primaryKekCertificatePfx\":\"ydbjzcqymlcf\",\"secondaryKekCertificatePfx\":\"hmhsurlgwqkpm\",\"recoveryPointId\":\"pstauol\"}") - .toObject(HyperVReplicaAzureUnplannedFailoverInput.class); - Assertions.assertEquals("ydbjzcqymlcf", model.primaryKekCertificatePfx()); - Assertions.assertEquals("hmhsurlgwqkpm", model.secondaryKekCertificatePfx()); - Assertions.assertEquals("pstauol", model.recoveryPointId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HyperVReplicaAzureUnplannedFailoverInput model - = new HyperVReplicaAzureUnplannedFailoverInput().withPrimaryKekCertificatePfx("ydbjzcqymlcf") - .withSecondaryKekCertificatePfx("hmhsurlgwqkpm") - .withRecoveryPointId("pstauol"); - model = BinaryData.fromObject(model).toObject(HyperVReplicaAzureUnplannedFailoverInput.class); - Assertions.assertEquals("ydbjzcqymlcf", model.primaryKekCertificatePfx()); - Assertions.assertEquals("hmhsurlgwqkpm", model.secondaryKekCertificatePfx()); - Assertions.assertEquals("pstauol", model.recoveryPointId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaBaseEventDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaBaseEventDetailsTests.java deleted file mode 100644 index 056710d0d5b1..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaBaseEventDetailsTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.HyperVReplicaBaseEventDetails; -import org.junit.jupiter.api.Assertions; - -public final class HyperVReplicaBaseEventDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HyperVReplicaBaseEventDetails model = BinaryData.fromString( - "{\"instanceType\":\"HyperVReplicaBaseEventDetails\",\"containerName\":\"xke\",\"fabricName\":\"iraabmdlqjbedpf\",\"remoteContainerName\":\"lhupmomihzbdnpxp\",\"remoteFabricName\":\"dpr\"}") - .toObject(HyperVReplicaBaseEventDetails.class); - Assertions.assertEquals("xke", model.containerName()); - Assertions.assertEquals("iraabmdlqjbedpf", model.fabricName()); - Assertions.assertEquals("lhupmomihzbdnpxp", model.remoteContainerName()); - Assertions.assertEquals("dpr", model.remoteFabricName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HyperVReplicaBaseEventDetails model = new HyperVReplicaBaseEventDetails().withContainerName("xke") - .withFabricName("iraabmdlqjbedpf") - .withRemoteContainerName("lhupmomihzbdnpxp") - .withRemoteFabricName("dpr"); - model = BinaryData.fromObject(model).toObject(HyperVReplicaBaseEventDetails.class); - Assertions.assertEquals("xke", model.containerName()); - Assertions.assertEquals("iraabmdlqjbedpf", model.fabricName()); - Assertions.assertEquals("lhupmomihzbdnpxp", model.remoteContainerName()); - Assertions.assertEquals("dpr", model.remoteFabricName()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaBasePolicyDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaBasePolicyDetailsTests.java deleted file mode 100644 index 5b716761057c..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaBasePolicyDetailsTests.java +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.HyperVReplicaBasePolicyDetails; -import org.junit.jupiter.api.Assertions; - -public final class HyperVReplicaBasePolicyDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HyperVReplicaBasePolicyDetails model = BinaryData.fromString( - "{\"instanceType\":\"HyperVReplicaBasePolicyDetails\",\"recoveryPoints\":656606105,\"applicationConsistentSnapshotFrequencyInHours\":287145648,\"compression\":\"icghfl\",\"initialReplicationMethod\":\"fss\",\"onlineReplicationStartTime\":\"ghsfxrkbhammgmqf\",\"offlineReplicationImportPath\":\"fgvqcpdw\",\"offlineReplicationExportPath\":\"quxweyslandkd\",\"replicationPort\":27796894,\"allowedAuthenticationType\":654444535,\"replicaDeletionOption\":\"hghcgawnrrnqu\"}") - .toObject(HyperVReplicaBasePolicyDetails.class); - Assertions.assertEquals(656606105, model.recoveryPoints()); - Assertions.assertEquals(287145648, model.applicationConsistentSnapshotFrequencyInHours()); - Assertions.assertEquals("icghfl", model.compression()); - Assertions.assertEquals("fss", model.initialReplicationMethod()); - Assertions.assertEquals("ghsfxrkbhammgmqf", model.onlineReplicationStartTime()); - Assertions.assertEquals("fgvqcpdw", model.offlineReplicationImportPath()); - Assertions.assertEquals("quxweyslandkd", model.offlineReplicationExportPath()); - Assertions.assertEquals(27796894, model.replicationPort()); - Assertions.assertEquals(654444535, model.allowedAuthenticationType()); - Assertions.assertEquals("hghcgawnrrnqu", model.replicaDeletionOption()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HyperVReplicaBasePolicyDetails model = new HyperVReplicaBasePolicyDetails().withRecoveryPoints(656606105) - .withApplicationConsistentSnapshotFrequencyInHours(287145648) - .withCompression("icghfl") - .withInitialReplicationMethod("fss") - .withOnlineReplicationStartTime("ghsfxrkbhammgmqf") - .withOfflineReplicationImportPath("fgvqcpdw") - .withOfflineReplicationExportPath("quxweyslandkd") - .withReplicationPort(27796894) - .withAllowedAuthenticationType(654444535) - .withReplicaDeletionOption("hghcgawnrrnqu"); - model = BinaryData.fromObject(model).toObject(HyperVReplicaBasePolicyDetails.class); - Assertions.assertEquals(656606105, model.recoveryPoints()); - Assertions.assertEquals(287145648, model.applicationConsistentSnapshotFrequencyInHours()); - Assertions.assertEquals("icghfl", model.compression()); - Assertions.assertEquals("fss", model.initialReplicationMethod()); - Assertions.assertEquals("ghsfxrkbhammgmqf", model.onlineReplicationStartTime()); - Assertions.assertEquals("fgvqcpdw", model.offlineReplicationImportPath()); - Assertions.assertEquals("quxweyslandkd", model.offlineReplicationExportPath()); - Assertions.assertEquals(27796894, model.replicationPort()); - Assertions.assertEquals(654444535, model.allowedAuthenticationType()); - Assertions.assertEquals("hghcgawnrrnqu", model.replicaDeletionOption()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaBaseReplicationDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaBaseReplicationDetailsTests.java deleted file mode 100644 index 1c7311819f58..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaBaseReplicationDetailsTests.java +++ /dev/null @@ -1,257 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.DiskDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.HyperVReplicaBaseReplicationDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InitialReplicationDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.IpConfigDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VMNicDetails; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class HyperVReplicaBaseReplicationDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HyperVReplicaBaseReplicationDetails model = BinaryData.fromString( - "{\"instanceType\":\"HyperVReplicaBaseReplicationDetails\",\"lastReplicatedTime\":\"2021-02-01T01:04:29Z\",\"vmNics\":[{\"nicId\":\"reimseob\",\"replicaNicId\":\"xstcyilbvzm\",\"sourceNicArmId\":\"cjzlquzexokjxebj\",\"vMNetworkName\":\"zinzabwmvogljsvl\",\"recoveryVMNetworkId\":\"idnwceha\",\"ipConfigs\":[{\"name\":\"yzltgiomqo\",\"isPrimary\":true,\"subnetName\":\"iaeapfs\",\"staticIPAddress\":\"gdtpe\",\"ipAddressType\":\"acyh\",\"isSeletedForFailover\":true,\"recoverySubnetName\":\"pqqncju\",\"recoveryStaticIPAddress\":\"hjozf\",\"recoveryIPAddressType\":\"cwmbupyvqyvli\",\"recoveryPublicIPAddressId\":\"ipsejbsvsia\",\"recoveryLBBackendAddressPoolIds\":[\"whddzydisnuepyw\",\"jlnldpxottdiiaoc\",\"ibz\",\"ihweeb\"],\"tfoSubnetName\":\"hryvcjwqwoqsra\",\"tfoStaticIPAddress\":\"hdhzybspijhfr\",\"tfoPublicIPAddressId\":\"dkkagvwukhsusmm\",\"tfoLBBackendAddressPoolIds\":[\"mzhwilzzhni\"]}],\"selectionType\":\"riprlkdneytt\",\"recoveryNetworkSecurityGroupId\":\"cxiv\",\"enableAcceleratedNetworkingOnRecovery\":false,\"tfoVMNetworkId\":\"tpumltwjfluxynb\",\"tfoNetworkSecurityGroupId\":\"zlqywauyqn\",\"enableAcceleratedNetworkingOnTfo\":false,\"recoveryNicName\":\"mocgjshg\",\"recoveryNicResourceGroupName\":\"a\",\"reuseExistingNic\":false,\"tfoRecoveryNicName\":\"ixq\",\"tfoRecoveryNicResourceGroupName\":\"gljkybsj\",\"tfoReuseExistingNic\":false,\"targetNicName\":\"vtzqnrbctbhp\"},{\"nicId\":\"xpc\",\"replicaNicId\":\"dnyeita\",\"sourceNicArmId\":\"qady\",\"vMNetworkName\":\"jahwriuomzczf\",\"recoveryVMNetworkId\":\"ceevsa\",\"ipConfigs\":[{\"name\":\"p\",\"isPrimary\":false,\"subnetName\":\"khfjqebglcxkx\",\"staticIPAddress\":\"zromvygys\",\"ipAddressType\":\"tme\",\"isSeletedForFailover\":false,\"recoverySubnetName\":\"vpinkzpatqt\",\"recoveryStaticIPAddress\":\"swxspvckojaz\",\"recoveryIPAddressType\":\"gspftesu\",\"recoveryPublicIPAddressId\":\"pvpvd\",\"recoveryLBBackendAddressPoolIds\":[\"tcovqseusrfjb\",\"xzfxn\"],\"tfoSubnetName\":\"lbmuos\",\"tfoStaticIPAddress\":\"jmdihdcyyyzlw\",\"tfoPublicIPAddressId\":\"wzjnufz\",\"tfoLBBackendAddressPoolIds\":[\"m\"]},{\"name\":\"gnnbzrtf\",\"isPrimary\":true,\"subnetName\":\"uubjtvgjsxmty\",\"staticIPAddress\":\"vavdp\",\"ipAddressType\":\"obt\",\"isSeletedForFailover\":true,\"recoverySubnetName\":\"its\",\"recoveryStaticIPAddress\":\"ofw\",\"recoveryIPAddressType\":\"m\",\"recoveryPublicIPAddressId\":\"scauwazcgwdfr\",\"recoveryLBBackendAddressPoolIds\":[\"ybjpozoks\"],\"tfoSubnetName\":\"gllixdgbyfgwew\",\"tfoStaticIPAddress\":\"j\",\"tfoPublicIPAddressId\":\"prwpxsoohu\",\"tfoLBBackendAddressPoolIds\":[\"cskltezuuggg\",\"lfb\"]},{\"name\":\"dc\",\"isPrimary\":false,\"subnetName\":\"rtmdylperpil\",\"staticIPAddress\":\"jzgc\",\"ipAddressType\":\"cmfpfbodet\",\"isSeletedForFailover\":false,\"recoverySubnetName\":\"gvtshu\",\"recoveryStaticIPAddress\":\"t\",\"recoveryIPAddressType\":\"ivmuqkevzgjyp\",\"recoveryPublicIPAddressId\":\"hxmpdxxz\",\"recoveryLBBackendAddressPoolIds\":[\"wzjwotnxlkfhg\",\"h\",\"foxqwecrsn\",\"pcs\"],\"tfoSubnetName\":\"qxovppqibukk\",\"tfoStaticIPAddress\":\"zrlrmlccmetjs\",\"tfoPublicIPAddressId\":\"ivfqbqnasdsy\",\"tfoLBBackendAddressPoolIds\":[\"sieuscpl\",\"yvdgxlyzk\",\"itdshezsvkolru\",\"jovmozsaye\"]},{\"name\":\"azwzlpzbtzuykyki\",\"isPrimary\":false,\"subnetName\":\"yepfn\",\"staticIPAddress\":\"mbezacfpztg\",\"ipAddressType\":\"wyqejgaao\",\"isSeletedForFailover\":true,\"recoverySubnetName\":\"kppgkqzkcyzm\",\"recoveryStaticIPAddress\":\"ngdyfcixrhlcq\",\"recoveryIPAddressType\":\"oejgoiutgwrmkah\",\"recoveryPublicIPAddressId\":\"hazyntacihnco\",\"recoveryLBBackendAddressPoolIds\":[\"pnmliq\",\"v\",\"bhikeaqgr\"],\"tfoSubnetName\":\"pomxpu\",\"tfoStaticIPAddress\":\"tsdfjyieso\",\"tfoPublicIPAddressId\":\"iqbuou\",\"tfoLBBackendAddressPoolIds\":[\"yzgleofjs\"]}],\"selectionType\":\"bwwzvdajf\",\"recoveryNetworkSecurityGroupId\":\"n\",\"enableAcceleratedNetworkingOnRecovery\":true,\"tfoVMNetworkId\":\"ciqgjjrlhiqlwixv\",\"tfoNetworkSecurityGroupId\":\"ougu\",\"enableAcceleratedNetworkingOnTfo\":false,\"recoveryNicName\":\"opgjttba\",\"recoveryNicResourceGroupName\":\"alapdlndbe\",\"reuseExistingNic\":true,\"tfoRecoveryNicName\":\"ixv\",\"tfoRecoveryNicResourceGroupName\":\"wy\",\"tfoReuseExistingNic\":false,\"targetNicName\":\"fqvz\"}],\"vmId\":\"msp\",\"vmProtectionState\":\"zfe\",\"vmProtectionStateDescription\":\"jljmphfkyezol\",\"initialReplicationDetails\":{\"initialReplicationType\":\"mi\",\"initialReplicationProgressPercentage\":\"ydoccnxshanzb\"},\"vMDiskDetails\":[{\"maxSizeMB\":8904392733364237803,\"vhdType\":\"tecaa\",\"vhdId\":\"dohzniucbdaombwi\",\"vhdName\":\"jdllwktle\"}]}") - .toObject(HyperVReplicaBaseReplicationDetails.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-01T01:04:29Z"), model.lastReplicatedTime()); - Assertions.assertEquals("reimseob", model.vmNics().get(0).nicId()); - Assertions.assertEquals("xstcyilbvzm", model.vmNics().get(0).replicaNicId()); - Assertions.assertEquals("cjzlquzexokjxebj", model.vmNics().get(0).sourceNicArmId()); - Assertions.assertEquals("zinzabwmvogljsvl", model.vmNics().get(0).vMNetworkName()); - Assertions.assertEquals("idnwceha", model.vmNics().get(0).recoveryVMNetworkId()); - Assertions.assertEquals("yzltgiomqo", model.vmNics().get(0).ipConfigs().get(0).name()); - Assertions.assertEquals(true, model.vmNics().get(0).ipConfigs().get(0).isPrimary()); - Assertions.assertEquals("iaeapfs", model.vmNics().get(0).ipConfigs().get(0).subnetName()); - Assertions.assertEquals("gdtpe", model.vmNics().get(0).ipConfigs().get(0).staticIpAddress()); - Assertions.assertEquals("acyh", model.vmNics().get(0).ipConfigs().get(0).ipAddressType()); - Assertions.assertEquals(true, model.vmNics().get(0).ipConfigs().get(0).isSeletedForFailover()); - Assertions.assertEquals("pqqncju", model.vmNics().get(0).ipConfigs().get(0).recoverySubnetName()); - Assertions.assertEquals("hjozf", model.vmNics().get(0).ipConfigs().get(0).recoveryStaticIpAddress()); - Assertions.assertEquals("cwmbupyvqyvli", model.vmNics().get(0).ipConfigs().get(0).recoveryIpAddressType()); - Assertions.assertEquals("ipsejbsvsia", model.vmNics().get(0).ipConfigs().get(0).recoveryPublicIpAddressId()); - Assertions.assertEquals("whddzydisnuepyw", - model.vmNics().get(0).ipConfigs().get(0).recoveryLBBackendAddressPoolIds().get(0)); - Assertions.assertEquals("hryvcjwqwoqsra", model.vmNics().get(0).ipConfigs().get(0).tfoSubnetName()); - Assertions.assertEquals("hdhzybspijhfr", model.vmNics().get(0).ipConfigs().get(0).tfoStaticIpAddress()); - Assertions.assertEquals("dkkagvwukhsusmm", model.vmNics().get(0).ipConfigs().get(0).tfoPublicIpAddressId()); - Assertions.assertEquals("mzhwilzzhni", - model.vmNics().get(0).ipConfigs().get(0).tfoLBBackendAddressPoolIds().get(0)); - Assertions.assertEquals("riprlkdneytt", model.vmNics().get(0).selectionType()); - Assertions.assertEquals("cxiv", model.vmNics().get(0).recoveryNetworkSecurityGroupId()); - Assertions.assertEquals(false, model.vmNics().get(0).enableAcceleratedNetworkingOnRecovery()); - Assertions.assertEquals("tpumltwjfluxynb", model.vmNics().get(0).tfoVMNetworkId()); - Assertions.assertEquals("zlqywauyqn", model.vmNics().get(0).tfoNetworkSecurityGroupId()); - Assertions.assertEquals(false, model.vmNics().get(0).enableAcceleratedNetworkingOnTfo()); - Assertions.assertEquals("mocgjshg", model.vmNics().get(0).recoveryNicName()); - Assertions.assertEquals("a", model.vmNics().get(0).recoveryNicResourceGroupName()); - Assertions.assertEquals(false, model.vmNics().get(0).reuseExistingNic()); - Assertions.assertEquals("ixq", model.vmNics().get(0).tfoRecoveryNicName()); - Assertions.assertEquals("gljkybsj", model.vmNics().get(0).tfoRecoveryNicResourceGroupName()); - Assertions.assertEquals(false, model.vmNics().get(0).tfoReuseExistingNic()); - Assertions.assertEquals("vtzqnrbctbhp", model.vmNics().get(0).targetNicName()); - Assertions.assertEquals("msp", model.vmId()); - Assertions.assertEquals("zfe", model.vmProtectionState()); - Assertions.assertEquals("jljmphfkyezol", model.vmProtectionStateDescription()); - Assertions.assertEquals("mi", model.initialReplicationDetails().initialReplicationType()); - Assertions.assertEquals("ydoccnxshanzb", - model.initialReplicationDetails().initialReplicationProgressPercentage()); - Assertions.assertEquals(8904392733364237803L, model.vMDiskDetails().get(0).maxSizeMB()); - Assertions.assertEquals("tecaa", model.vMDiskDetails().get(0).vhdType()); - Assertions.assertEquals("dohzniucbdaombwi", model.vMDiskDetails().get(0).vhdId()); - Assertions.assertEquals("jdllwktle", model.vMDiskDetails().get(0).vhdName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HyperVReplicaBaseReplicationDetails model - = new HyperVReplicaBaseReplicationDetails() - .withLastReplicatedTime(OffsetDateTime.parse("2021-02-01T01:04:29Z")) - .withVmNics( - Arrays - .asList( - new VMNicDetails().withNicId("reimseob") - .withReplicaNicId("xstcyilbvzm") - .withSourceNicArmId("cjzlquzexokjxebj") - .withVMNetworkName("zinzabwmvogljsvl") - .withRecoveryVMNetworkId("idnwceha") - .withIpConfigs( - Arrays - .asList(new IpConfigDetails().withName("yzltgiomqo") - .withIsPrimary(true) - .withSubnetName("iaeapfs") - .withStaticIpAddress("gdtpe") - .withIpAddressType("acyh") - .withIsSeletedForFailover(true) - .withRecoverySubnetName("pqqncju") - .withRecoveryStaticIpAddress("hjozf") - .withRecoveryIpAddressType("cwmbupyvqyvli") - .withRecoveryPublicIpAddressId("ipsejbsvsia") - .withRecoveryLBBackendAddressPoolIds( - Arrays.asList("whddzydisnuepyw", "jlnldpxottdiiaoc", "ibz", "ihweeb")) - .withTfoSubnetName("hryvcjwqwoqsra") - .withTfoStaticIpAddress("hdhzybspijhfr") - .withTfoPublicIpAddressId("dkkagvwukhsusmm") - .withTfoLBBackendAddressPoolIds(Arrays.asList("mzhwilzzhni")))) - .withSelectionType("riprlkdneytt") - .withRecoveryNetworkSecurityGroupId("cxiv") - .withEnableAcceleratedNetworkingOnRecovery(false) - .withTfoVMNetworkId("tpumltwjfluxynb") - .withTfoNetworkSecurityGroupId("zlqywauyqn") - .withEnableAcceleratedNetworkingOnTfo(false) - .withRecoveryNicName("mocgjshg") - .withRecoveryNicResourceGroupName("a") - .withReuseExistingNic(false) - .withTfoRecoveryNicName("ixq") - .withTfoRecoveryNicResourceGroupName("gljkybsj") - .withTfoReuseExistingNic(false) - .withTargetNicName("vtzqnrbctbhp"), - new VMNicDetails().withNicId("xpc") - .withReplicaNicId("dnyeita") - .withSourceNicArmId("qady") - .withVMNetworkName("jahwriuomzczf") - .withRecoveryVMNetworkId("ceevsa") - .withIpConfigs( - Arrays - .asList( - new IpConfigDetails().withName("p") - .withIsPrimary(false) - .withSubnetName("khfjqebglcxkx") - .withStaticIpAddress("zromvygys") - .withIpAddressType("tme") - .withIsSeletedForFailover(false) - .withRecoverySubnetName("vpinkzpatqt") - .withRecoveryStaticIpAddress("swxspvckojaz") - .withRecoveryIpAddressType("gspftesu") - .withRecoveryPublicIpAddressId("pvpvd") - .withRecoveryLBBackendAddressPoolIds( - Arrays.asList("tcovqseusrfjb", "xzfxn")) - .withTfoSubnetName("lbmuos") - .withTfoStaticIpAddress("jmdihdcyyyzlw") - .withTfoPublicIpAddressId("wzjnufz") - .withTfoLBBackendAddressPoolIds(Arrays.asList("m")), - new IpConfigDetails().withName("gnnbzrtf") - .withIsPrimary(true) - .withSubnetName("uubjtvgjsxmty") - .withStaticIpAddress("vavdp") - .withIpAddressType("obt") - .withIsSeletedForFailover(true) - .withRecoverySubnetName("its") - .withRecoveryStaticIpAddress("ofw") - .withRecoveryIpAddressType("m") - .withRecoveryPublicIpAddressId("scauwazcgwdfr") - .withRecoveryLBBackendAddressPoolIds(Arrays.asList("ybjpozoks")) - .withTfoSubnetName("gllixdgbyfgwew") - .withTfoStaticIpAddress("j") - .withTfoPublicIpAddressId("prwpxsoohu") - .withTfoLBBackendAddressPoolIds(Arrays.asList("cskltezuuggg", "lfb")), - new IpConfigDetails().withName("dc") - .withIsPrimary(false) - .withSubnetName("rtmdylperpil") - .withStaticIpAddress("jzgc") - .withIpAddressType("cmfpfbodet") - .withIsSeletedForFailover(false) - .withRecoverySubnetName("gvtshu") - .withRecoveryStaticIpAddress("t") - .withRecoveryIpAddressType("ivmuqkevzgjyp") - .withRecoveryPublicIpAddressId("hxmpdxxz") - .withRecoveryLBBackendAddressPoolIds( - Arrays.asList("wzjwotnxlkfhg", "h", "foxqwecrsn", "pcs")) - .withTfoSubnetName("qxovppqibukk") - .withTfoStaticIpAddress("zrlrmlccmetjs") - .withTfoPublicIpAddressId("ivfqbqnasdsy") - .withTfoLBBackendAddressPoolIds(Arrays.asList("sieuscpl", "yvdgxlyzk", - "itdshezsvkolru", "jovmozsaye")), - new IpConfigDetails().withName("azwzlpzbtzuykyki") - .withIsPrimary(false) - .withSubnetName("yepfn") - .withStaticIpAddress("mbezacfpztg") - .withIpAddressType("wyqejgaao") - .withIsSeletedForFailover(true) - .withRecoverySubnetName("kppgkqzkcyzm") - .withRecoveryStaticIpAddress("ngdyfcixrhlcq") - .withRecoveryIpAddressType("oejgoiutgwrmkah") - .withRecoveryPublicIpAddressId("hazyntacihnco") - .withRecoveryLBBackendAddressPoolIds( - Arrays.asList("pnmliq", "v", "bhikeaqgr")) - .withTfoSubnetName("pomxpu") - .withTfoStaticIpAddress("tsdfjyieso") - .withTfoPublicIpAddressId("iqbuou") - .withTfoLBBackendAddressPoolIds(Arrays.asList("yzgleofjs")))) - .withSelectionType("bwwzvdajf") - .withRecoveryNetworkSecurityGroupId("n") - .withEnableAcceleratedNetworkingOnRecovery(true) - .withTfoVMNetworkId("ciqgjjrlhiqlwixv") - .withTfoNetworkSecurityGroupId("ougu") - .withEnableAcceleratedNetworkingOnTfo(false) - .withRecoveryNicName("opgjttba") - .withRecoveryNicResourceGroupName("alapdlndbe") - .withReuseExistingNic(true) - .withTfoRecoveryNicName("ixv") - .withTfoRecoveryNicResourceGroupName("wy") - .withTfoReuseExistingNic(false) - .withTargetNicName("fqvz"))) - .withVmId("msp") - .withVmProtectionState("zfe") - .withVmProtectionStateDescription("jljmphfkyezol") - .withInitialReplicationDetails(new InitialReplicationDetails().withInitialReplicationType("mi") - .withInitialReplicationProgressPercentage("ydoccnxshanzb")) - .withVMDiskDetails(Arrays.asList(new DiskDetails().withMaxSizeMB(8904392733364237803L) - .withVhdType("tecaa") - .withVhdId("dohzniucbdaombwi") - .withVhdName("jdllwktle"))); - model = BinaryData.fromObject(model).toObject(HyperVReplicaBaseReplicationDetails.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-01T01:04:29Z"), model.lastReplicatedTime()); - Assertions.assertEquals("reimseob", model.vmNics().get(0).nicId()); - Assertions.assertEquals("xstcyilbvzm", model.vmNics().get(0).replicaNicId()); - Assertions.assertEquals("cjzlquzexokjxebj", model.vmNics().get(0).sourceNicArmId()); - Assertions.assertEquals("zinzabwmvogljsvl", model.vmNics().get(0).vMNetworkName()); - Assertions.assertEquals("idnwceha", model.vmNics().get(0).recoveryVMNetworkId()); - Assertions.assertEquals("yzltgiomqo", model.vmNics().get(0).ipConfigs().get(0).name()); - Assertions.assertEquals(true, model.vmNics().get(0).ipConfigs().get(0).isPrimary()); - Assertions.assertEquals("iaeapfs", model.vmNics().get(0).ipConfigs().get(0).subnetName()); - Assertions.assertEquals("gdtpe", model.vmNics().get(0).ipConfigs().get(0).staticIpAddress()); - Assertions.assertEquals("acyh", model.vmNics().get(0).ipConfigs().get(0).ipAddressType()); - Assertions.assertEquals(true, model.vmNics().get(0).ipConfigs().get(0).isSeletedForFailover()); - Assertions.assertEquals("pqqncju", model.vmNics().get(0).ipConfigs().get(0).recoverySubnetName()); - Assertions.assertEquals("hjozf", model.vmNics().get(0).ipConfigs().get(0).recoveryStaticIpAddress()); - Assertions.assertEquals("cwmbupyvqyvli", model.vmNics().get(0).ipConfigs().get(0).recoveryIpAddressType()); - Assertions.assertEquals("ipsejbsvsia", model.vmNics().get(0).ipConfigs().get(0).recoveryPublicIpAddressId()); - Assertions.assertEquals("whddzydisnuepyw", - model.vmNics().get(0).ipConfigs().get(0).recoveryLBBackendAddressPoolIds().get(0)); - Assertions.assertEquals("hryvcjwqwoqsra", model.vmNics().get(0).ipConfigs().get(0).tfoSubnetName()); - Assertions.assertEquals("hdhzybspijhfr", model.vmNics().get(0).ipConfigs().get(0).tfoStaticIpAddress()); - Assertions.assertEquals("dkkagvwukhsusmm", model.vmNics().get(0).ipConfigs().get(0).tfoPublicIpAddressId()); - Assertions.assertEquals("mzhwilzzhni", - model.vmNics().get(0).ipConfigs().get(0).tfoLBBackendAddressPoolIds().get(0)); - Assertions.assertEquals("riprlkdneytt", model.vmNics().get(0).selectionType()); - Assertions.assertEquals("cxiv", model.vmNics().get(0).recoveryNetworkSecurityGroupId()); - Assertions.assertEquals(false, model.vmNics().get(0).enableAcceleratedNetworkingOnRecovery()); - Assertions.assertEquals("tpumltwjfluxynb", model.vmNics().get(0).tfoVMNetworkId()); - Assertions.assertEquals("zlqywauyqn", model.vmNics().get(0).tfoNetworkSecurityGroupId()); - Assertions.assertEquals(false, model.vmNics().get(0).enableAcceleratedNetworkingOnTfo()); - Assertions.assertEquals("mocgjshg", model.vmNics().get(0).recoveryNicName()); - Assertions.assertEquals("a", model.vmNics().get(0).recoveryNicResourceGroupName()); - Assertions.assertEquals(false, model.vmNics().get(0).reuseExistingNic()); - Assertions.assertEquals("ixq", model.vmNics().get(0).tfoRecoveryNicName()); - Assertions.assertEquals("gljkybsj", model.vmNics().get(0).tfoRecoveryNicResourceGroupName()); - Assertions.assertEquals(false, model.vmNics().get(0).tfoReuseExistingNic()); - Assertions.assertEquals("vtzqnrbctbhp", model.vmNics().get(0).targetNicName()); - Assertions.assertEquals("msp", model.vmId()); - Assertions.assertEquals("zfe", model.vmProtectionState()); - Assertions.assertEquals("jljmphfkyezol", model.vmProtectionStateDescription()); - Assertions.assertEquals("mi", model.initialReplicationDetails().initialReplicationType()); - Assertions.assertEquals("ydoccnxshanzb", - model.initialReplicationDetails().initialReplicationProgressPercentage()); - Assertions.assertEquals(8904392733364237803L, model.vMDiskDetails().get(0).maxSizeMB()); - Assertions.assertEquals("tecaa", model.vMDiskDetails().get(0).vhdType()); - Assertions.assertEquals("dohzniucbdaombwi", model.vMDiskDetails().get(0).vhdId()); - Assertions.assertEquals("jdllwktle", model.vMDiskDetails().get(0).vhdName()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaBluePolicyDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaBluePolicyDetailsTests.java deleted file mode 100644 index 4177a4bd8d6b..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaBluePolicyDetailsTests.java +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.HyperVReplicaBluePolicyDetails; -import org.junit.jupiter.api.Assertions; - -public final class HyperVReplicaBluePolicyDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HyperVReplicaBluePolicyDetails model = BinaryData.fromString( - "{\"instanceType\":\"HyperVReplica2012R2\",\"replicationFrequencyInSeconds\":2136761436,\"recoveryPoints\":1535856297,\"applicationConsistentSnapshotFrequencyInHours\":834618815,\"compression\":\"uajgcqwulynk\",\"initialReplicationMethod\":\"cfdruwsikxx\",\"onlineReplicationStartTime\":\"lhuulriqb\",\"offlineReplicationImportPath\":\"kvjgbzs\",\"offlineReplicationExportPath\":\"br\",\"replicationPort\":1636269751,\"allowedAuthenticationType\":1781145950,\"replicaDeletionOption\":\"hcdjwsuoardnagt\"}") - .toObject(HyperVReplicaBluePolicyDetails.class); - Assertions.assertEquals(2136761436, model.replicationFrequencyInSeconds()); - Assertions.assertEquals(1535856297, model.recoveryPoints()); - Assertions.assertEquals(834618815, model.applicationConsistentSnapshotFrequencyInHours()); - Assertions.assertEquals("uajgcqwulynk", model.compression()); - Assertions.assertEquals("cfdruwsikxx", model.initialReplicationMethod()); - Assertions.assertEquals("lhuulriqb", model.onlineReplicationStartTime()); - Assertions.assertEquals("kvjgbzs", model.offlineReplicationImportPath()); - Assertions.assertEquals("br", model.offlineReplicationExportPath()); - Assertions.assertEquals(1636269751, model.replicationPort()); - Assertions.assertEquals(1781145950, model.allowedAuthenticationType()); - Assertions.assertEquals("hcdjwsuoardnagt", model.replicaDeletionOption()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HyperVReplicaBluePolicyDetails model - = new HyperVReplicaBluePolicyDetails().withReplicationFrequencyInSeconds(2136761436) - .withRecoveryPoints(1535856297) - .withApplicationConsistentSnapshotFrequencyInHours(834618815) - .withCompression("uajgcqwulynk") - .withInitialReplicationMethod("cfdruwsikxx") - .withOnlineReplicationStartTime("lhuulriqb") - .withOfflineReplicationImportPath("kvjgbzs") - .withOfflineReplicationExportPath("br") - .withReplicationPort(1636269751) - .withAllowedAuthenticationType(1781145950) - .withReplicaDeletionOption("hcdjwsuoardnagt"); - model = BinaryData.fromObject(model).toObject(HyperVReplicaBluePolicyDetails.class); - Assertions.assertEquals(2136761436, model.replicationFrequencyInSeconds()); - Assertions.assertEquals(1535856297, model.recoveryPoints()); - Assertions.assertEquals(834618815, model.applicationConsistentSnapshotFrequencyInHours()); - Assertions.assertEquals("uajgcqwulynk", model.compression()); - Assertions.assertEquals("cfdruwsikxx", model.initialReplicationMethod()); - Assertions.assertEquals("lhuulriqb", model.onlineReplicationStartTime()); - Assertions.assertEquals("kvjgbzs", model.offlineReplicationImportPath()); - Assertions.assertEquals("br", model.offlineReplicationExportPath()); - Assertions.assertEquals(1636269751, model.replicationPort()); - Assertions.assertEquals(1781145950, model.allowedAuthenticationType()); - Assertions.assertEquals("hcdjwsuoardnagt", model.replicaDeletionOption()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaBluePolicyInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaBluePolicyInputTests.java deleted file mode 100644 index 187fffe8d3eb..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaBluePolicyInputTests.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.HyperVReplicaBluePolicyInput; -import org.junit.jupiter.api.Assertions; - -public final class HyperVReplicaBluePolicyInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HyperVReplicaBluePolicyInput model = BinaryData.fromString( - "{\"instanceType\":\"HyperVReplica2012R2\",\"replicationFrequencyInSeconds\":635322642,\"recoveryPoints\":1923596622,\"applicationConsistentSnapshotFrequencyInHours\":1537790283,\"compression\":\"nrholhujb\",\"initialReplicationMethod\":\"xiplkysolsyj\",\"onlineReplicationStartTime\":\"xslwhd\",\"offlineReplicationImportPath\":\"vhtbbzjhfvh\",\"offlineReplicationExportPath\":\"zb\",\"replicationPort\":1668972402,\"allowedAuthenticationType\":1931538005,\"replicaDeletion\":\"ihotjecohmxv\"}") - .toObject(HyperVReplicaBluePolicyInput.class); - Assertions.assertEquals(1923596622, model.recoveryPoints()); - Assertions.assertEquals(1537790283, model.applicationConsistentSnapshotFrequencyInHours()); - Assertions.assertEquals("nrholhujb", model.compression()); - Assertions.assertEquals("xiplkysolsyj", model.initialReplicationMethod()); - Assertions.assertEquals("xslwhd", model.onlineReplicationStartTime()); - Assertions.assertEquals("vhtbbzjhfvh", model.offlineReplicationImportPath()); - Assertions.assertEquals("zb", model.offlineReplicationExportPath()); - Assertions.assertEquals(1668972402, model.replicationPort()); - Assertions.assertEquals(1931538005, model.allowedAuthenticationType()); - Assertions.assertEquals("ihotjecohmxv", model.replicaDeletion()); - Assertions.assertEquals(635322642, model.replicationFrequencyInSeconds()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HyperVReplicaBluePolicyInput model = new HyperVReplicaBluePolicyInput().withRecoveryPoints(1923596622) - .withApplicationConsistentSnapshotFrequencyInHours(1537790283) - .withCompression("nrholhujb") - .withInitialReplicationMethod("xiplkysolsyj") - .withOnlineReplicationStartTime("xslwhd") - .withOfflineReplicationImportPath("vhtbbzjhfvh") - .withOfflineReplicationExportPath("zb") - .withReplicationPort(1668972402) - .withAllowedAuthenticationType(1931538005) - .withReplicaDeletion("ihotjecohmxv") - .withReplicationFrequencyInSeconds(635322642); - model = BinaryData.fromObject(model).toObject(HyperVReplicaBluePolicyInput.class); - Assertions.assertEquals(1923596622, model.recoveryPoints()); - Assertions.assertEquals(1537790283, model.applicationConsistentSnapshotFrequencyInHours()); - Assertions.assertEquals("nrholhujb", model.compression()); - Assertions.assertEquals("xiplkysolsyj", model.initialReplicationMethod()); - Assertions.assertEquals("xslwhd", model.onlineReplicationStartTime()); - Assertions.assertEquals("vhtbbzjhfvh", model.offlineReplicationImportPath()); - Assertions.assertEquals("zb", model.offlineReplicationExportPath()); - Assertions.assertEquals(1668972402, model.replicationPort()); - Assertions.assertEquals(1931538005, model.allowedAuthenticationType()); - Assertions.assertEquals("ihotjecohmxv", model.replicaDeletion()); - Assertions.assertEquals(635322642, model.replicationFrequencyInSeconds()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaBlueReplicationDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaBlueReplicationDetailsTests.java deleted file mode 100644 index f5d939b714b3..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaBlueReplicationDetailsTests.java +++ /dev/null @@ -1,327 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.DiskDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.HyperVReplicaBlueReplicationDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InitialReplicationDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.IpConfigDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VMNicDetails; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class HyperVReplicaBlueReplicationDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HyperVReplicaBlueReplicationDetails model = BinaryData.fromString( - "{\"instanceType\":\"HyperVReplica2012R2\",\"lastReplicatedTime\":\"2021-05-25T03:28:24Z\",\"vmNics\":[{\"nicId\":\"guwrjm\",\"replicaNicId\":\"vbtuqkxximwg\",\"sourceNicArmId\":\"ldeko\",\"vMNetworkName\":\"gxieqfkyfhi\",\"recoveryVMNetworkId\":\"jaqupbyynvskpaj\",\"ipConfigs\":[{\"name\":\"umexmj\",\"isPrimary\":true,\"subnetName\":\"ccwkqmtx\",\"staticIPAddress\":\"eqi\",\"ipAddressType\":\"rpilgftrqrejdaah\",\"isSeletedForFailover\":true,\"recoverySubnetName\":\"ldahlfxlmu\",\"recoveryStaticIPAddress\":\"muadjnfsncski\",\"recoveryIPAddressType\":\"shjgczetybnxg\",\"recoveryPublicIPAddressId\":\"lcgctjchfjv\",\"recoveryLBBackendAddressPoolIds\":[\"j\",\"ebecuvlbefv\",\"cljkxpyl\"],\"tfoSubnetName\":\"oxz\",\"tfoStaticIPAddress\":\"psyxjije\",\"tfoPublicIPAddressId\":\"dvrbke\",\"tfoLBBackendAddressPoolIds\":[\"dkgaw\",\"wjxildfkcefeyg\",\"q\",\"jo\"]},{\"name\":\"fmn\",\"isPrimary\":false,\"subnetName\":\"jnxumentq\",\"staticIPAddress\":\"tw\",\"ipAddressType\":\"mxymulwivqtowlhl\",\"isSeletedForFailover\":false,\"recoverySubnetName\":\"ybajasqubf\",\"recoveryStaticIPAddress\":\"cywhj\",\"recoveryIPAddressType\":\"mchqoht\",\"recoveryPublicIPAddressId\":\"cpupukiy\",\"recoveryLBBackendAddressPoolIds\":[\"pwdlvwti\",\"smosaonhqnam\",\"pultas\",\"aekewnazea\"],\"tfoSubnetName\":\"kajlcyizy\",\"tfoStaticIPAddress\":\"cvxodkrvfsxxby\",\"tfoPublicIPAddressId\":\"sqlv\",\"tfoLBBackendAddressPoolIds\":[\"pwgoljt\",\"xnmxsdobygoogxqa\",\"j\",\"vaz\"]}],\"selectionType\":\"fucsaodjnosdkvi\",\"recoveryNetworkSecurityGroupId\":\"asgmatrnzpd\",\"enableAcceleratedNetworkingOnRecovery\":false,\"tfoVMNetworkId\":\"akt\",\"tfoNetworkSecurityGroupId\":\"ktz\",\"enableAcceleratedNetworkingOnTfo\":false,\"recoveryNicName\":\"yfpqd\",\"recoveryNicResourceGroupName\":\"kpp\",\"reuseExistingNic\":false,\"tfoRecoveryNicName\":\"tfvpctfjikff\",\"tfoRecoveryNicResourceGroupName\":\"g\",\"tfoReuseExistingNic\":true,\"targetNicName\":\"nwhvuldbkkejj\"},{\"nicId\":\"igaw\",\"replicaNicId\":\"zmxjqif\",\"sourceNicArmId\":\"jjsbcmlzaahzbhur\",\"vMNetworkName\":\"lkolirhhmoj\",\"recoveryVMNetworkId\":\"u\",\"ipConfigs\":[{\"name\":\"zcvaaxoialahfxwc\",\"isPrimary\":false,\"subnetName\":\"xkukm\",\"staticIPAddress\":\"zynuh\",\"ipAddressType\":\"qeq\",\"isSeletedForFailover\":false,\"recoverySubnetName\":\"ljqkxyrqolnthbb\",\"recoveryStaticIPAddress\":\"gzukw\",\"recoveryIPAddressType\":\"nzkjthfceyjn\",\"recoveryPublicIPAddressId\":\"mlfuyfjbp\",\"recoveryLBBackendAddressPoolIds\":[\"dhlrufzcqyjmq\",\"fuiocuselq\",\"rsazrhxud\"],\"tfoSubnetName\":\"mdtff\",\"tfoStaticIPAddress\":\"jmr\",\"tfoPublicIPAddressId\":\"hmwdmdlgyqixokw\",\"tfoLBBackendAddressPoolIds\":[\"whvagnqfq\",\"dlcvmyo\"]}],\"selectionType\":\"aymjchtvsnvlaq\",\"recoveryNetworkSecurityGroupId\":\"z\",\"enableAcceleratedNetworkingOnRecovery\":true,\"tfoVMNetworkId\":\"atuwqkokbc\",\"tfoNetworkSecurityGroupId\":\"thymgobl\",\"enableAcceleratedNetworkingOnTfo\":true,\"recoveryNicName\":\"wgwima\",\"recoveryNicResourceGroupName\":\"eakhtmhobcya\",\"reuseExistingNic\":true,\"tfoRecoveryNicName\":\"qtvkh\",\"tfoRecoveryNicResourceGroupName\":\"oog\",\"tfoReuseExistingNic\":false,\"targetNicName\":\"aoaqymhccto\"},{\"nicId\":\"o\",\"replicaNicId\":\"rnskby\",\"sourceNicArmId\":\"uhczy\",\"vMNetworkName\":\"vhajpxec\",\"recoveryVMNetworkId\":\"nwh\",\"ipConfigs\":[{\"name\":\"awmvgxs\",\"isPrimary\":true,\"subnetName\":\"pwirfljfewxqouo\",\"staticIPAddress\":\"dnmckap\",\"ipAddressType\":\"knq\",\"isSeletedForFailover\":true,\"recoverySubnetName\":\"encdgmoqueqihkky\",\"recoveryStaticIPAddress\":\"ltjouwhldxwh\",\"recoveryIPAddressType\":\"proqk\",\"recoveryPublicIPAddressId\":\"fxmcvprstvk\",\"recoveryLBBackendAddressPoolIds\":[\"fjtdyot\"],\"tfoSubnetName\":\"lfa\",\"tfoStaticIPAddress\":\"occqrqxw\",\"tfoPublicIPAddressId\":\"jtdrhutf\",\"tfoLBBackendAddressPoolIds\":[\"dtxopgehpadkmdzg\"]},{\"name\":\"zxvctkbbxuharls\",\"isPrimary\":true,\"subnetName\":\"clabv\",\"staticIPAddress\":\"ngsux\",\"ipAddressType\":\"zb\",\"isSeletedForFailover\":true,\"recoverySubnetName\":\"ogh\",\"recoveryStaticIPAddress\":\"a\",\"recoveryIPAddressType\":\"janormovdxxu\",\"recoveryPublicIPAddressId\":\"tujmoil\",\"recoveryLBBackendAddressPoolIds\":[\"emhdeeljslky\",\"zdsfzjuegr\"],\"tfoSubnetName\":\"htslejtvxj\",\"tfoStaticIPAddress\":\"vgjbfio\",\"tfoPublicIPAddressId\":\"njodfcbjqqwmtq\",\"tfoLBBackendAddressPoolIds\":[\"xsazuxejgw\",\"cywnfyszza\",\"zsinqbdnddb\"]},{\"name\":\"zsyvrmkjm\",\"isPrimary\":true,\"subnetName\":\"chwudlxee\",\"staticIPAddress\":\"tpmnoe\",\"ipAddressType\":\"qlfm\",\"isSeletedForFailover\":false,\"recoverySubnetName\":\"oyrfgxk\",\"recoveryStaticIPAddress\":\"pmypgfq\",\"recoveryIPAddressType\":\"tyw\",\"recoveryPublicIPAddressId\":\"a\",\"recoveryLBBackendAddressPoolIds\":[\"ejpewpyjlfxampqc\"],\"tfoSubnetName\":\"g\",\"tfoStaticIPAddress\":\"qxbpiatwfauje\",\"tfoPublicIPAddressId\":\"d\",\"tfoLBBackendAddressPoolIds\":[\"r\"]}],\"selectionType\":\"gddhjkrukizyhgs\",\"recoveryNetworkSecurityGroupId\":\"nqskt\",\"enableAcceleratedNetworkingOnRecovery\":true,\"tfoVMNetworkId\":\"jbqggweeiwdhdm\",\"tfoNetworkSecurityGroupId\":\"gbfzu\",\"enableAcceleratedNetworkingOnTfo\":false,\"recoveryNicName\":\"unmlhxdfbklcii\",\"recoveryNicResourceGroupName\":\"gjsysmvxodgwxfkz\",\"reuseExistingNic\":true,\"tfoRecoveryNicName\":\"uvbdujgcwxvec\",\"tfoRecoveryNicResourceGroupName\":\"wjtrdxriza\",\"tfoReuseExistingNic\":false,\"targetNicName\":\"iarks\"},{\"nicId\":\"pgdqxwabzrw\",\"replicaNicId\":\"rxhaclcdosqkp\",\"sourceNicArmId\":\"qgki\",\"vMNetworkName\":\"mainwhed\",\"recoveryVMNetworkId\":\"pbqwuntobu\",\"ipConfigs\":[{\"name\":\"zelwgvydjufbnkl\",\"isPrimary\":false,\"subnetName\":\"peg\",\"staticIPAddress\":\"dabalfdxaglzfytl\",\"ipAddressType\":\"lqhopxouvmrs\",\"isSeletedForFailover\":true,\"recoverySubnetName\":\"kyypzkgxfxfmy\",\"recoveryStaticIPAddress\":\"sdbpokszanmh\",\"recoveryIPAddressType\":\"pter\",\"recoveryPublicIPAddressId\":\"uwkirk\",\"recoveryLBBackendAddressPoolIds\":[\"ztsdetjygow\"],\"tfoSubnetName\":\"cq\",\"tfoStaticIPAddress\":\"lzkgysdgzyybzo\",\"tfoPublicIPAddressId\":\"v\",\"tfoLBBackendAddressPoolIds\":[\"tvdxxhe\",\"gmlilwzghjhjvmab\",\"zbwaybfmdafbgym\"]}],\"selectionType\":\"napreojxrjnbsco\",\"recoveryNetworkSecurityGroupId\":\"avip\",\"enableAcceleratedNetworkingOnRecovery\":false,\"tfoVMNetworkId\":\"hbjizqfsgnwdx\",\"tfoNetworkSecurityGroupId\":\"dpq\",\"enableAcceleratedNetworkingOnTfo\":false,\"recoveryNicName\":\"orxipmlnfyzavfr\",\"recoveryNicResourceGroupName\":\"picdbk\",\"reuseExistingNic\":true,\"tfoRecoveryNicName\":\"aq\",\"tfoRecoveryNicResourceGroupName\":\"mqazpdgonjh\",\"tfoReuseExistingNic\":false,\"targetNicName\":\"hmgpczqulpt\"}],\"vmId\":\"vcpxtzhigqqbtimp\",\"vmProtectionState\":\"blornsih\",\"vmProtectionStateDescription\":\"uds\",\"initialReplicationDetails\":{\"initialReplicationType\":\"uaawja\",\"initialReplicationProgressPercentage\":\"wj\"},\"vMDiskDetails\":[{\"maxSizeMB\":2866605353999992316,\"vhdType\":\"iixyxvqbanosj\",\"vhdId\":\"irnb\",\"vhdName\":\"gm\"},{\"maxSizeMB\":5846955284321514944,\"vhdType\":\"mynltwmpftmfoeaj\",\"vhdId\":\"syxwetamfdd\",\"vhdName\":\"lkpzwbhnrecchd\"},{\"maxSizeMB\":8883677654958515035,\"vhdType\":\"hkahmjedbiucvkh\",\"vhdId\":\"mjpjbweunxcq\",\"vhdName\":\"ihufoihp\"}]}") - .toObject(HyperVReplicaBlueReplicationDetails.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-25T03:28:24Z"), model.lastReplicatedTime()); - Assertions.assertEquals("guwrjm", model.vmNics().get(0).nicId()); - Assertions.assertEquals("vbtuqkxximwg", model.vmNics().get(0).replicaNicId()); - Assertions.assertEquals("ldeko", model.vmNics().get(0).sourceNicArmId()); - Assertions.assertEquals("gxieqfkyfhi", model.vmNics().get(0).vMNetworkName()); - Assertions.assertEquals("jaqupbyynvskpaj", model.vmNics().get(0).recoveryVMNetworkId()); - Assertions.assertEquals("umexmj", model.vmNics().get(0).ipConfigs().get(0).name()); - Assertions.assertEquals(true, model.vmNics().get(0).ipConfigs().get(0).isPrimary()); - Assertions.assertEquals("ccwkqmtx", model.vmNics().get(0).ipConfigs().get(0).subnetName()); - Assertions.assertEquals("eqi", model.vmNics().get(0).ipConfigs().get(0).staticIpAddress()); - Assertions.assertEquals("rpilgftrqrejdaah", model.vmNics().get(0).ipConfigs().get(0).ipAddressType()); - Assertions.assertEquals(true, model.vmNics().get(0).ipConfigs().get(0).isSeletedForFailover()); - Assertions.assertEquals("ldahlfxlmu", model.vmNics().get(0).ipConfigs().get(0).recoverySubnetName()); - Assertions.assertEquals("muadjnfsncski", model.vmNics().get(0).ipConfigs().get(0).recoveryStaticIpAddress()); - Assertions.assertEquals("shjgczetybnxg", model.vmNics().get(0).ipConfigs().get(0).recoveryIpAddressType()); - Assertions.assertEquals("lcgctjchfjv", model.vmNics().get(0).ipConfigs().get(0).recoveryPublicIpAddressId()); - Assertions.assertEquals("j", model.vmNics().get(0).ipConfigs().get(0).recoveryLBBackendAddressPoolIds().get(0)); - Assertions.assertEquals("oxz", model.vmNics().get(0).ipConfigs().get(0).tfoSubnetName()); - Assertions.assertEquals("psyxjije", model.vmNics().get(0).ipConfigs().get(0).tfoStaticIpAddress()); - Assertions.assertEquals("dvrbke", model.vmNics().get(0).ipConfigs().get(0).tfoPublicIpAddressId()); - Assertions.assertEquals("dkgaw", model.vmNics().get(0).ipConfigs().get(0).tfoLBBackendAddressPoolIds().get(0)); - Assertions.assertEquals("fucsaodjnosdkvi", model.vmNics().get(0).selectionType()); - Assertions.assertEquals("asgmatrnzpd", model.vmNics().get(0).recoveryNetworkSecurityGroupId()); - Assertions.assertEquals(false, model.vmNics().get(0).enableAcceleratedNetworkingOnRecovery()); - Assertions.assertEquals("akt", model.vmNics().get(0).tfoVMNetworkId()); - Assertions.assertEquals("ktz", model.vmNics().get(0).tfoNetworkSecurityGroupId()); - Assertions.assertEquals(false, model.vmNics().get(0).enableAcceleratedNetworkingOnTfo()); - Assertions.assertEquals("yfpqd", model.vmNics().get(0).recoveryNicName()); - Assertions.assertEquals("kpp", model.vmNics().get(0).recoveryNicResourceGroupName()); - Assertions.assertEquals(false, model.vmNics().get(0).reuseExistingNic()); - Assertions.assertEquals("tfvpctfjikff", model.vmNics().get(0).tfoRecoveryNicName()); - Assertions.assertEquals("g", model.vmNics().get(0).tfoRecoveryNicResourceGroupName()); - Assertions.assertEquals(true, model.vmNics().get(0).tfoReuseExistingNic()); - Assertions.assertEquals("nwhvuldbkkejj", model.vmNics().get(0).targetNicName()); - Assertions.assertEquals("vcpxtzhigqqbtimp", model.vmId()); - Assertions.assertEquals("blornsih", model.vmProtectionState()); - Assertions.assertEquals("uds", model.vmProtectionStateDescription()); - Assertions.assertEquals("uaawja", model.initialReplicationDetails().initialReplicationType()); - Assertions.assertEquals("wj", model.initialReplicationDetails().initialReplicationProgressPercentage()); - Assertions.assertEquals(2866605353999992316L, model.vMDiskDetails().get(0).maxSizeMB()); - Assertions.assertEquals("iixyxvqbanosj", model.vMDiskDetails().get(0).vhdType()); - Assertions.assertEquals("irnb", model.vMDiskDetails().get(0).vhdId()); - Assertions.assertEquals("gm", model.vMDiskDetails().get(0).vhdName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HyperVReplicaBlueReplicationDetails model - = new HyperVReplicaBlueReplicationDetails() - .withLastReplicatedTime(OffsetDateTime.parse("2021-05-25T03:28:24Z")) - .withVmNics( - Arrays - .asList( - new VMNicDetails().withNicId("guwrjm") - .withReplicaNicId("vbtuqkxximwg") - .withSourceNicArmId("ldeko") - .withVMNetworkName("gxieqfkyfhi") - .withRecoveryVMNetworkId("jaqupbyynvskpaj") - .withIpConfigs( - Arrays.asList( - new IpConfigDetails().withName("umexmj") - .withIsPrimary(true) - .withSubnetName("ccwkqmtx") - .withStaticIpAddress("eqi") - .withIpAddressType("rpilgftrqrejdaah") - .withIsSeletedForFailover(true) - .withRecoverySubnetName("ldahlfxlmu") - .withRecoveryStaticIpAddress("muadjnfsncski") - .withRecoveryIpAddressType("shjgczetybnxg") - .withRecoveryPublicIpAddressId("lcgctjchfjv") - .withRecoveryLBBackendAddressPoolIds( - Arrays.asList("j", "ebecuvlbefv", "cljkxpyl")) - .withTfoSubnetName("oxz") - .withTfoStaticIpAddress("psyxjije") - .withTfoPublicIpAddressId("dvrbke") - .withTfoLBBackendAddressPoolIds( - Arrays.asList("dkgaw", "wjxildfkcefeyg", "q", "jo")), - new IpConfigDetails().withName("fmn") - .withIsPrimary(false) - .withSubnetName("jnxumentq") - .withStaticIpAddress("tw") - .withIpAddressType("mxymulwivqtowlhl") - .withIsSeletedForFailover(false) - .withRecoverySubnetName("ybajasqubf") - .withRecoveryStaticIpAddress("cywhj") - .withRecoveryIpAddressType("mchqoht") - .withRecoveryPublicIpAddressId("cpupukiy") - .withRecoveryLBBackendAddressPoolIds( - Arrays.asList("pwdlvwti", "smosaonhqnam", "pultas", "aekewnazea")) - .withTfoSubnetName("kajlcyizy") - .withTfoStaticIpAddress("cvxodkrvfsxxby") - .withTfoPublicIpAddressId("sqlv") - .withTfoLBBackendAddressPoolIds( - Arrays.asList("pwgoljt", "xnmxsdobygoogxqa", "j", "vaz")))) - .withSelectionType("fucsaodjnosdkvi") - .withRecoveryNetworkSecurityGroupId("asgmatrnzpd") - .withEnableAcceleratedNetworkingOnRecovery(false) - .withTfoVMNetworkId("akt") - .withTfoNetworkSecurityGroupId("ktz") - .withEnableAcceleratedNetworkingOnTfo(false) - .withRecoveryNicName("yfpqd") - .withRecoveryNicResourceGroupName("kpp") - .withReuseExistingNic(false) - .withTfoRecoveryNicName("tfvpctfjikff") - .withTfoRecoveryNicResourceGroupName("g") - .withTfoReuseExistingNic(true) - .withTargetNicName("nwhvuldbkkejj"), - new VMNicDetails().withNicId("igaw") - .withReplicaNicId("zmxjqif") - .withSourceNicArmId("jjsbcmlzaahzbhur") - .withVMNetworkName("lkolirhhmoj") - .withRecoveryVMNetworkId("u") - .withIpConfigs(Arrays.asList(new IpConfigDetails().withName("zcvaaxoialahfxwc") - .withIsPrimary(false) - .withSubnetName("xkukm") - .withStaticIpAddress("zynuh") - .withIpAddressType("qeq") - .withIsSeletedForFailover(false) - .withRecoverySubnetName("ljqkxyrqolnthbb") - .withRecoveryStaticIpAddress("gzukw") - .withRecoveryIpAddressType("nzkjthfceyjn") - .withRecoveryPublicIpAddressId("mlfuyfjbp") - .withRecoveryLBBackendAddressPoolIds( - Arrays.asList("dhlrufzcqyjmq", "fuiocuselq", "rsazrhxud")) - .withTfoSubnetName("mdtff") - .withTfoStaticIpAddress("jmr") - .withTfoPublicIpAddressId("hmwdmdlgyqixokw") - .withTfoLBBackendAddressPoolIds(Arrays.asList("whvagnqfq", "dlcvmyo")))) - .withSelectionType("aymjchtvsnvlaq") - .withRecoveryNetworkSecurityGroupId("z") - .withEnableAcceleratedNetworkingOnRecovery(true) - .withTfoVMNetworkId("atuwqkokbc") - .withTfoNetworkSecurityGroupId("thymgobl") - .withEnableAcceleratedNetworkingOnTfo(true) - .withRecoveryNicName("wgwima") - .withRecoveryNicResourceGroupName("eakhtmhobcya") - .withReuseExistingNic(true) - .withTfoRecoveryNicName("qtvkh") - .withTfoRecoveryNicResourceGroupName("oog") - .withTfoReuseExistingNic(false) - .withTargetNicName("aoaqymhccto"), - new VMNicDetails().withNicId("o") - .withReplicaNicId("rnskby") - .withSourceNicArmId("uhczy") - .withVMNetworkName("vhajpxec") - .withRecoveryVMNetworkId("nwh") - .withIpConfigs(Arrays.asList(new IpConfigDetails() - .withName("awmvgxs") - .withIsPrimary(true) - .withSubnetName("pwirfljfewxqouo") - .withStaticIpAddress("dnmckap") - .withIpAddressType("knq") - .withIsSeletedForFailover(true) - .withRecoverySubnetName("encdgmoqueqihkky") - .withRecoveryStaticIpAddress("ltjouwhldxwh") - .withRecoveryIpAddressType("proqk") - .withRecoveryPublicIpAddressId("fxmcvprstvk") - .withRecoveryLBBackendAddressPoolIds(Arrays.asList("fjtdyot")) - .withTfoSubnetName("lfa") - .withTfoStaticIpAddress("occqrqxw") - .withTfoPublicIpAddressId("jtdrhutf") - .withTfoLBBackendAddressPoolIds(Arrays.asList("dtxopgehpadkmdzg")), - new IpConfigDetails().withName("zxvctkbbxuharls") - .withIsPrimary(true) - .withSubnetName("clabv") - .withStaticIpAddress("ngsux") - .withIpAddressType("zb") - .withIsSeletedForFailover(true) - .withRecoverySubnetName("ogh") - .withRecoveryStaticIpAddress("a") - .withRecoveryIpAddressType("janormovdxxu") - .withRecoveryPublicIpAddressId("tujmoil") - .withRecoveryLBBackendAddressPoolIds( - Arrays.asList("emhdeeljslky", "zdsfzjuegr")) - .withTfoSubnetName("htslejtvxj") - .withTfoStaticIpAddress("vgjbfio") - .withTfoPublicIpAddressId("njodfcbjqqwmtq") - .withTfoLBBackendAddressPoolIds( - Arrays.asList("xsazuxejgw", "cywnfyszza", "zsinqbdnddb")), - new IpConfigDetails().withName("zsyvrmkjm") - .withIsPrimary(true) - .withSubnetName("chwudlxee") - .withStaticIpAddress("tpmnoe") - .withIpAddressType("qlfm") - .withIsSeletedForFailover(false) - .withRecoverySubnetName("oyrfgxk") - .withRecoveryStaticIpAddress("pmypgfq") - .withRecoveryIpAddressType("tyw") - .withRecoveryPublicIpAddressId("a") - .withRecoveryLBBackendAddressPoolIds(Arrays.asList("ejpewpyjlfxampqc")) - .withTfoSubnetName("g") - .withTfoStaticIpAddress("qxbpiatwfauje") - .withTfoPublicIpAddressId("d") - .withTfoLBBackendAddressPoolIds(Arrays.asList("r")))) - .withSelectionType("gddhjkrukizyhgs") - .withRecoveryNetworkSecurityGroupId("nqskt") - .withEnableAcceleratedNetworkingOnRecovery(true) - .withTfoVMNetworkId("jbqggweeiwdhdm") - .withTfoNetworkSecurityGroupId("gbfzu") - .withEnableAcceleratedNetworkingOnTfo(false) - .withRecoveryNicName("unmlhxdfbklcii") - .withRecoveryNicResourceGroupName("gjsysmvxodgwxfkz") - .withReuseExistingNic(true) - .withTfoRecoveryNicName("uvbdujgcwxvec") - .withTfoRecoveryNicResourceGroupName("wjtrdxriza") - .withTfoReuseExistingNic(false) - .withTargetNicName("iarks"), - new VMNicDetails().withNicId("pgdqxwabzrw") - .withReplicaNicId("rxhaclcdosqkp") - .withSourceNicArmId("qgki") - .withVMNetworkName("mainwhed") - .withRecoveryVMNetworkId("pbqwuntobu") - .withIpConfigs(Arrays.asList(new IpConfigDetails().withName("zelwgvydjufbnkl") - .withIsPrimary(false) - .withSubnetName("peg") - .withStaticIpAddress("dabalfdxaglzfytl") - .withIpAddressType("lqhopxouvmrs") - .withIsSeletedForFailover(true) - .withRecoverySubnetName("kyypzkgxfxfmy") - .withRecoveryStaticIpAddress("sdbpokszanmh") - .withRecoveryIpAddressType("pter") - .withRecoveryPublicIpAddressId("uwkirk") - .withRecoveryLBBackendAddressPoolIds(Arrays.asList("ztsdetjygow")) - .withTfoSubnetName("cq") - .withTfoStaticIpAddress("lzkgysdgzyybzo") - .withTfoPublicIpAddressId("v") - .withTfoLBBackendAddressPoolIds( - Arrays.asList("tvdxxhe", "gmlilwzghjhjvmab", "zbwaybfmdafbgym")))) - .withSelectionType("napreojxrjnbsco") - .withRecoveryNetworkSecurityGroupId("avip") - .withEnableAcceleratedNetworkingOnRecovery(false) - .withTfoVMNetworkId("hbjizqfsgnwdx") - .withTfoNetworkSecurityGroupId("dpq") - .withEnableAcceleratedNetworkingOnTfo(false) - .withRecoveryNicName("orxipmlnfyzavfr") - .withRecoveryNicResourceGroupName("picdbk") - .withReuseExistingNic(true) - .withTfoRecoveryNicName("aq") - .withTfoRecoveryNicResourceGroupName("mqazpdgonjh") - .withTfoReuseExistingNic(false) - .withTargetNicName("hmgpczqulpt"))) - .withVmId("vcpxtzhigqqbtimp") - .withVmProtectionState("blornsih") - .withVmProtectionStateDescription("uds") - .withInitialReplicationDetails(new InitialReplicationDetails().withInitialReplicationType("uaawja") - .withInitialReplicationProgressPercentage("wj")) - .withVMDiskDetails(Arrays.asList( - new DiskDetails().withMaxSizeMB(2866605353999992316L) - .withVhdType("iixyxvqbanosj") - .withVhdId("irnb") - .withVhdName("gm"), - new DiskDetails().withMaxSizeMB(5846955284321514944L) - .withVhdType("mynltwmpftmfoeaj") - .withVhdId("syxwetamfdd") - .withVhdName("lkpzwbhnrecchd"), - new DiskDetails().withMaxSizeMB(8883677654958515035L) - .withVhdType("hkahmjedbiucvkh") - .withVhdId("mjpjbweunxcq") - .withVhdName("ihufoihp"))); - model = BinaryData.fromObject(model).toObject(HyperVReplicaBlueReplicationDetails.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-25T03:28:24Z"), model.lastReplicatedTime()); - Assertions.assertEquals("guwrjm", model.vmNics().get(0).nicId()); - Assertions.assertEquals("vbtuqkxximwg", model.vmNics().get(0).replicaNicId()); - Assertions.assertEquals("ldeko", model.vmNics().get(0).sourceNicArmId()); - Assertions.assertEquals("gxieqfkyfhi", model.vmNics().get(0).vMNetworkName()); - Assertions.assertEquals("jaqupbyynvskpaj", model.vmNics().get(0).recoveryVMNetworkId()); - Assertions.assertEquals("umexmj", model.vmNics().get(0).ipConfigs().get(0).name()); - Assertions.assertEquals(true, model.vmNics().get(0).ipConfigs().get(0).isPrimary()); - Assertions.assertEquals("ccwkqmtx", model.vmNics().get(0).ipConfigs().get(0).subnetName()); - Assertions.assertEquals("eqi", model.vmNics().get(0).ipConfigs().get(0).staticIpAddress()); - Assertions.assertEquals("rpilgftrqrejdaah", model.vmNics().get(0).ipConfigs().get(0).ipAddressType()); - Assertions.assertEquals(true, model.vmNics().get(0).ipConfigs().get(0).isSeletedForFailover()); - Assertions.assertEquals("ldahlfxlmu", model.vmNics().get(0).ipConfigs().get(0).recoverySubnetName()); - Assertions.assertEquals("muadjnfsncski", model.vmNics().get(0).ipConfigs().get(0).recoveryStaticIpAddress()); - Assertions.assertEquals("shjgczetybnxg", model.vmNics().get(0).ipConfigs().get(0).recoveryIpAddressType()); - Assertions.assertEquals("lcgctjchfjv", model.vmNics().get(0).ipConfigs().get(0).recoveryPublicIpAddressId()); - Assertions.assertEquals("j", model.vmNics().get(0).ipConfigs().get(0).recoveryLBBackendAddressPoolIds().get(0)); - Assertions.assertEquals("oxz", model.vmNics().get(0).ipConfigs().get(0).tfoSubnetName()); - Assertions.assertEquals("psyxjije", model.vmNics().get(0).ipConfigs().get(0).tfoStaticIpAddress()); - Assertions.assertEquals("dvrbke", model.vmNics().get(0).ipConfigs().get(0).tfoPublicIpAddressId()); - Assertions.assertEquals("dkgaw", model.vmNics().get(0).ipConfigs().get(0).tfoLBBackendAddressPoolIds().get(0)); - Assertions.assertEquals("fucsaodjnosdkvi", model.vmNics().get(0).selectionType()); - Assertions.assertEquals("asgmatrnzpd", model.vmNics().get(0).recoveryNetworkSecurityGroupId()); - Assertions.assertEquals(false, model.vmNics().get(0).enableAcceleratedNetworkingOnRecovery()); - Assertions.assertEquals("akt", model.vmNics().get(0).tfoVMNetworkId()); - Assertions.assertEquals("ktz", model.vmNics().get(0).tfoNetworkSecurityGroupId()); - Assertions.assertEquals(false, model.vmNics().get(0).enableAcceleratedNetworkingOnTfo()); - Assertions.assertEquals("yfpqd", model.vmNics().get(0).recoveryNicName()); - Assertions.assertEquals("kpp", model.vmNics().get(0).recoveryNicResourceGroupName()); - Assertions.assertEquals(false, model.vmNics().get(0).reuseExistingNic()); - Assertions.assertEquals("tfvpctfjikff", model.vmNics().get(0).tfoRecoveryNicName()); - Assertions.assertEquals("g", model.vmNics().get(0).tfoRecoveryNicResourceGroupName()); - Assertions.assertEquals(true, model.vmNics().get(0).tfoReuseExistingNic()); - Assertions.assertEquals("nwhvuldbkkejj", model.vmNics().get(0).targetNicName()); - Assertions.assertEquals("vcpxtzhigqqbtimp", model.vmId()); - Assertions.assertEquals("blornsih", model.vmProtectionState()); - Assertions.assertEquals("uds", model.vmProtectionStateDescription()); - Assertions.assertEquals("uaawja", model.initialReplicationDetails().initialReplicationType()); - Assertions.assertEquals("wj", model.initialReplicationDetails().initialReplicationProgressPercentage()); - Assertions.assertEquals(2866605353999992316L, model.vMDiskDetails().get(0).maxSizeMB()); - Assertions.assertEquals("iixyxvqbanosj", model.vMDiskDetails().get(0).vhdType()); - Assertions.assertEquals("irnb", model.vMDiskDetails().get(0).vhdId()); - Assertions.assertEquals("gm", model.vMDiskDetails().get(0).vhdName()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaPolicyDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaPolicyDetailsTests.java deleted file mode 100644 index 4573ad4c5722..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaPolicyDetailsTests.java +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.HyperVReplicaPolicyDetails; -import org.junit.jupiter.api.Assertions; - -public final class HyperVReplicaPolicyDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HyperVReplicaPolicyDetails model = BinaryData.fromString( - "{\"instanceType\":\"HyperVReplica2012\",\"recoveryPoints\":1458640473,\"applicationConsistentSnapshotFrequencyInHours\":1422455142,\"compression\":\"gnzuzpbgkzcsc\",\"initialReplicationMethod\":\"uzvkunhdimjuk\",\"onlineReplicationStartTime\":\"r\",\"offlineReplicationImportPath\":\"a\",\"offlineReplicationExportPath\":\"pucdocf\",\"replicationPort\":1596172374,\"allowedAuthenticationType\":657887640,\"replicaDeletionOption\":\"f\"}") - .toObject(HyperVReplicaPolicyDetails.class); - Assertions.assertEquals(1458640473, model.recoveryPoints()); - Assertions.assertEquals(1422455142, model.applicationConsistentSnapshotFrequencyInHours()); - Assertions.assertEquals("gnzuzpbgkzcsc", model.compression()); - Assertions.assertEquals("uzvkunhdimjuk", model.initialReplicationMethod()); - Assertions.assertEquals("r", model.onlineReplicationStartTime()); - Assertions.assertEquals("a", model.offlineReplicationImportPath()); - Assertions.assertEquals("pucdocf", model.offlineReplicationExportPath()); - Assertions.assertEquals(1596172374, model.replicationPort()); - Assertions.assertEquals(657887640, model.allowedAuthenticationType()); - Assertions.assertEquals("f", model.replicaDeletionOption()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HyperVReplicaPolicyDetails model = new HyperVReplicaPolicyDetails().withRecoveryPoints(1458640473) - .withApplicationConsistentSnapshotFrequencyInHours(1422455142) - .withCompression("gnzuzpbgkzcsc") - .withInitialReplicationMethod("uzvkunhdimjuk") - .withOnlineReplicationStartTime("r") - .withOfflineReplicationImportPath("a") - .withOfflineReplicationExportPath("pucdocf") - .withReplicationPort(1596172374) - .withAllowedAuthenticationType(657887640) - .withReplicaDeletionOption("f"); - model = BinaryData.fromObject(model).toObject(HyperVReplicaPolicyDetails.class); - Assertions.assertEquals(1458640473, model.recoveryPoints()); - Assertions.assertEquals(1422455142, model.applicationConsistentSnapshotFrequencyInHours()); - Assertions.assertEquals("gnzuzpbgkzcsc", model.compression()); - Assertions.assertEquals("uzvkunhdimjuk", model.initialReplicationMethod()); - Assertions.assertEquals("r", model.onlineReplicationStartTime()); - Assertions.assertEquals("a", model.offlineReplicationImportPath()); - Assertions.assertEquals("pucdocf", model.offlineReplicationExportPath()); - Assertions.assertEquals(1596172374, model.replicationPort()); - Assertions.assertEquals(657887640, model.allowedAuthenticationType()); - Assertions.assertEquals("f", model.replicaDeletionOption()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaPolicyInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaPolicyInputTests.java deleted file mode 100644 index 6a99cb533334..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaPolicyInputTests.java +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.HyperVReplicaPolicyInput; -import org.junit.jupiter.api.Assertions; - -public final class HyperVReplicaPolicyInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HyperVReplicaPolicyInput model = BinaryData.fromString( - "{\"instanceType\":\"HyperVReplica2012\",\"recoveryPoints\":1848793230,\"applicationConsistentSnapshotFrequencyInHours\":60033751,\"compression\":\"apbxwieexuyade\",\"initialReplicationMethod\":\"tfo\",\"onlineReplicationStartTime\":\"k\",\"offlineReplicationImportPath\":\"imyc\",\"offlineReplicationExportPath\":\"r\",\"replicationPort\":360310908,\"allowedAuthenticationType\":1678727382,\"replicaDeletion\":\"nnuifersej\"}") - .toObject(HyperVReplicaPolicyInput.class); - Assertions.assertEquals(1848793230, model.recoveryPoints()); - Assertions.assertEquals(60033751, model.applicationConsistentSnapshotFrequencyInHours()); - Assertions.assertEquals("apbxwieexuyade", model.compression()); - Assertions.assertEquals("tfo", model.initialReplicationMethod()); - Assertions.assertEquals("k", model.onlineReplicationStartTime()); - Assertions.assertEquals("imyc", model.offlineReplicationImportPath()); - Assertions.assertEquals("r", model.offlineReplicationExportPath()); - Assertions.assertEquals(360310908, model.replicationPort()); - Assertions.assertEquals(1678727382, model.allowedAuthenticationType()); - Assertions.assertEquals("nnuifersej", model.replicaDeletion()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HyperVReplicaPolicyInput model = new HyperVReplicaPolicyInput().withRecoveryPoints(1848793230) - .withApplicationConsistentSnapshotFrequencyInHours(60033751) - .withCompression("apbxwieexuyade") - .withInitialReplicationMethod("tfo") - .withOnlineReplicationStartTime("k") - .withOfflineReplicationImportPath("imyc") - .withOfflineReplicationExportPath("r") - .withReplicationPort(360310908) - .withAllowedAuthenticationType(1678727382) - .withReplicaDeletion("nnuifersej"); - model = BinaryData.fromObject(model).toObject(HyperVReplicaPolicyInput.class); - Assertions.assertEquals(1848793230, model.recoveryPoints()); - Assertions.assertEquals(60033751, model.applicationConsistentSnapshotFrequencyInHours()); - Assertions.assertEquals("apbxwieexuyade", model.compression()); - Assertions.assertEquals("tfo", model.initialReplicationMethod()); - Assertions.assertEquals("k", model.onlineReplicationStartTime()); - Assertions.assertEquals("imyc", model.offlineReplicationImportPath()); - Assertions.assertEquals("r", model.offlineReplicationExportPath()); - Assertions.assertEquals(360310908, model.replicationPort()); - Assertions.assertEquals(1678727382, model.allowedAuthenticationType()); - Assertions.assertEquals("nnuifersej", model.replicaDeletion()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaReplicationDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaReplicationDetailsTests.java deleted file mode 100644 index 35828e7aa3cb..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVReplicaReplicationDetailsTests.java +++ /dev/null @@ -1,332 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.DiskDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.HyperVReplicaReplicationDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InitialReplicationDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.IpConfigDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VMNicDetails; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class HyperVReplicaReplicationDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HyperVReplicaReplicationDetails model = BinaryData.fromString( - "{\"instanceType\":\"HyperVReplica2012\",\"lastReplicatedTime\":\"2021-02-08T01:34:17Z\",\"vmNics\":[{\"nicId\":\"lvzkl\",\"replicaNicId\":\"bgikyjtkakvlbi\",\"sourceNicArmId\":\"jvpzaptuoskaoiz\",\"vMNetworkName\":\"xwfgcdiykkcx\",\"recoveryVMNetworkId\":\"ujvqynvavit\",\"ipConfigs\":[{\"name\":\"qohhihra\",\"isPrimary\":false,\"subnetName\":\"drwjcljbrhlh\",\"staticIPAddress\":\"zadbwe\",\"ipAddressType\":\"inafhxrzfrm\",\"isSeletedForFailover\":false,\"recoverySubnetName\":\"ucwviqllukhkrcq\",\"recoveryStaticIPAddress\":\"cbvzarmqcb\",\"recoveryIPAddressType\":\"kst\",\"recoveryPublicIPAddressId\":\"nvago\",\"recoveryLBBackendAddressPoolIds\":[\"hdrx\",\"rdvcehqwhit\"],\"tfoSubnetName\":\"mxgnmguzbuwv\",\"tfoStaticIPAddress\":\"balkjnbkbdhl\",\"tfoPublicIPAddressId\":\"q\",\"tfoLBBackendAddressPoolIds\":[\"kqsy\",\"xiynecovagzk\",\"eubanlxunpqcc\",\"qiawzl\"]},{\"name\":\"laslgacizux\",\"isPrimary\":false,\"subnetName\":\"wp\",\"staticIPAddress\":\"saudoejtighsx\",\"ipAddressType\":\"ytnkqb\",\"isSeletedForFailover\":false,\"recoverySubnetName\":\"ovu\",\"recoveryStaticIPAddress\":\"xhmehjnhjiotif\",\"recoveryIPAddressType\":\"bcngkegxc\",\"recoveryPublicIPAddressId\":\"xbbfetwil\",\"recoveryLBBackendAddressPoolIds\":[\"oxpdxq\"],\"tfoSubnetName\":\"r\",\"tfoStaticIPAddress\":\"qownkiuajewnahw\",\"tfoPublicIPAddressId\":\"jjmztnlmsoodtmv\",\"tfoLBBackendAddressPoolIds\":[\"hdyswcrptveajc\",\"xvl\",\"srg\",\"rfizr\"]}],\"selectionType\":\"wlp\",\"recoveryNetworkSecurityGroupId\":\"uqhrlmcskykp\",\"enableAcceleratedNetworkingOnRecovery\":false,\"tfoVMNetworkId\":\"ixcnpcf\",\"tfoNetworkSecurityGroupId\":\"kpyyc\",\"enableAcceleratedNetworkingOnTfo\":false,\"recoveryNicName\":\"pjprdpwr\",\"recoveryNicResourceGroupName\":\"fpcfjf\",\"reuseExistingNic\":true,\"tfoRecoveryNicName\":\"z\",\"tfoRecoveryNicResourceGroupName\":\"kgyepe\",\"tfoReuseExistingNic\":true,\"targetNicName\":\"nidmdiaw\"},{\"nicId\":\"xkzrn\",\"replicaNicId\":\"kctd\",\"sourceNicArmId\":\"osgwqpsqazihqo\",\"vMNetworkName\":\"qgcnbhcbmjk\",\"recoveryVMNetworkId\":\"ibniynts\",\"ipConfigs\":[{\"name\":\"mef\",\"isPrimary\":false,\"subnetName\":\"moogjrhskbwgm\",\"staticIPAddress\":\"rulcfogx\",\"ipAddressType\":\"xnwjtpfdzxcouz\",\"isSeletedForFailover\":true,\"recoverySubnetName\":\"wakukzkdtzxs\",\"recoveryStaticIPAddress\":\"dnlwglihezomuc\",\"recoveryIPAddressType\":\"g\",\"recoveryPublicIPAddressId\":\"nione\",\"recoveryLBBackendAddressPoolIds\":[\"dr\"],\"tfoSubnetName\":\"uenxkgtlzlmt\",\"tfoStaticIPAddress\":\"xcznnhzkb\",\"tfoPublicIPAddressId\":\"mxlxmwtygeq\",\"tfoLBBackendAddressPoolIds\":[\"itoqcahfsg\"]},{\"name\":\"mlree\",\"isPrimary\":true,\"subnetName\":\"sszvlcw\",\"staticIPAddress\":\"solntfxxcrqmipf\",\"ipAddressType\":\"foygizmshxxba\",\"isSeletedForFailover\":false,\"recoverySubnetName\":\"ulnvgskj\",\"recoveryStaticIPAddress\":\"xjdzjs\",\"recoveryIPAddressType\":\"nvhxqqmqip\",\"recoveryPublicIPAddressId\":\"dhfnzocxmtfshksn\",\"recoveryLBBackendAddressPoolIds\":[\"spamwbwmbnls\",\"cefiqdkt\",\"tkvi\",\"lpfliwoyn\"],\"tfoSubnetName\":\"uzhwvladpcmhjhau\",\"tfoStaticIPAddress\":\"b\",\"tfoPublicIPAddressId\":\"kymffztsils\",\"tfoLBBackendAddressPoolIds\":[\"syeiih\"]},{\"name\":\"mkouihyeseuugci\",\"isPrimary\":true,\"subnetName\":\"gsmgb\",\"staticIPAddress\":\"tdwrqbebjnfve\",\"ipAddressType\":\"abtvkbi\",\"isSeletedForFailover\":false,\"recoverySubnetName\":\"tfgfic\",\"recoveryStaticIPAddress\":\"yhizpaczmu\",\"recoveryIPAddressType\":\"cakznhokhoitwhrj\",\"recoveryPublicIPAddressId\":\"mmazdnckid\",\"recoveryLBBackendAddressPoolIds\":[\"glhzqp\",\"zbawkikcdgfh\"],\"tfoSubnetName\":\"sd\",\"tfoStaticIPAddress\":\"ey\",\"tfoPublicIPAddressId\":\"xdede\",\"tfoLBBackendAddressPoolIds\":[\"wh\",\"gxsur\",\"jqrshz\"]}],\"selectionType\":\"g\",\"recoveryNetworkSecurityGroupId\":\"lcxiqqzjko\",\"enableAcceleratedNetworkingOnRecovery\":true,\"tfoVMNetworkId\":\"n\",\"tfoNetworkSecurityGroupId\":\"gl\",\"enableAcceleratedNetworkingOnTfo\":true,\"recoveryNicName\":\"gd\",\"recoveryNicResourceGroupName\":\"ivj\",\"reuseExistingNic\":false,\"tfoRecoveryNicName\":\"dqqigdydkghpc\",\"tfoRecoveryNicResourceGroupName\":\"wqirvtktyhhm\",\"tfoReuseExistingNic\":true,\"targetNicName\":\"apj\"},{\"nicId\":\"odmkrrwepgqv\",\"replicaNicId\":\"kqlujqgira\",\"sourceNicArmId\":\"lyvxchp\",\"vMNetworkName\":\"ctsfaeuhwwsknst\",\"recoveryVMNetworkId\":\"uzhasupmlppdpgz\",\"ipConfigs\":[{\"name\":\"z\",\"isPrimary\":false,\"subnetName\":\"rkptgongruats\",\"staticIPAddress\":\"y\",\"ipAddressType\":\"qheni\",\"isSeletedForFailover\":false,\"recoverySubnetName\":\"ngu\",\"recoveryStaticIPAddress\":\"byjdeayscse\",\"recoveryIPAddressType\":\"zjemexmnvkvm\",\"recoveryPublicIPAddressId\":\"rxl\",\"recoveryLBBackendAddressPoolIds\":[\"m\",\"pm\",\"rdlhvdvmiphbe\",\"eqjzm\"],\"tfoSubnetName\":\"dclacroczfmun\",\"tfoStaticIPAddress\":\"keluxz\",\"tfoPublicIPAddressId\":\"xzezbzuzudlevzs\",\"tfoLBBackendAddressPoolIds\":[\"cgwfsgqkstyecu\",\"yu\",\"jparda\"]},{\"name\":\"jcfmazpzdqw\",\"isPrimary\":false,\"subnetName\":\"mcokxizeku\",\"staticIPAddress\":\"rjwuca\",\"ipAddressType\":\"zvajbvbnkrdem\",\"isSeletedForFailover\":false,\"recoverySubnetName\":\"ckzidgzwdydami\",\"recoveryStaticIPAddress\":\"pztdivyk\",\"recoveryIPAddressType\":\"kqejtpjfojiunr\",\"recoveryPublicIPAddressId\":\"hxuk\",\"recoveryLBBackendAddressPoolIds\":[\"kdtoiboancdr\"],\"tfoSubnetName\":\"anvxuldxonckb\",\"tfoStaticIPAddress\":\"blfxlupibaqzi\",\"tfoPublicIPAddressId\":\"zpzwegh\",\"tfoLBBackendAddressPoolIds\":[\"bogvgfklqiy\",\"dve\",\"elsbfvd\"]},{\"name\":\"rk\",\"isPrimary\":false,\"subnetName\":\"tznsvl\",\"staticIPAddress\":\"smovpi\",\"ipAddressType\":\"ndnoxaxnrqaq\",\"isSeletedForFailover\":false,\"recoverySubnetName\":\"dxolousdv\",\"recoveryStaticIPAddress\":\"ptqmawzjdrpiz\",\"recoveryIPAddressType\":\"l\",\"recoveryPublicIPAddressId\":\"ctsdbtqgkujds\",\"recoveryLBBackendAddressPoolIds\":[\"r\",\"w\"],\"tfoSubnetName\":\"urbti\",\"tfoStaticIPAddress\":\"pdyarikeejdpd\",\"tfoPublicIPAddressId\":\"twmmkfqbriqu\",\"tfoLBBackendAddressPoolIds\":[\"trj\",\"eqkvyhzokpoyu\",\"h\",\"ensnaa\"]},{\"name\":\"hmpoe\",\"isPrimary\":false,\"subnetName\":\"pwsadaxjsumxpe\",\"staticIPAddress\":\"oio\",\"ipAddressType\":\"rmfqzwq\",\"isSeletedForFailover\":true,\"recoverySubnetName\":\"eedcnwmywx\",\"recoveryStaticIPAddress\":\"zkvemy\",\"recoveryIPAddressType\":\"pczaqpqif\",\"recoveryPublicIPAddressId\":\"m\",\"recoveryLBBackendAddressPoolIds\":[\"wtxzuisam\"],\"tfoSubnetName\":\"at\",\"tfoStaticIPAddress\":\"zexroqsqjgh\",\"tfoPublicIPAddressId\":\"thsplwsttxsr\",\"tfoLBBackendAddressPoolIds\":[\"qpaniceovxgzwhs\"]}],\"selectionType\":\"rujmti\",\"recoveryNetworkSecurityGroupId\":\"s\",\"enableAcceleratedNetworkingOnRecovery\":false,\"tfoVMNetworkId\":\"ohzixyqhfnkvycqq\",\"tfoNetworkSecurityGroupId\":\"seip\",\"enableAcceleratedNetworkingOnTfo\":false,\"recoveryNicName\":\"zxhrptyodlhkfktl\",\"recoveryNicResourceGroupName\":\"dsobjopnouhbq\",\"reuseExistingNic\":false,\"tfoRecoveryNicName\":\"xs\",\"tfoRecoveryNicResourceGroupName\":\"uzyigfcvcewbwqhd\",\"tfoReuseExistingNic\":false,\"targetNicName\":\"atm\"}],\"vmId\":\"c\",\"vmProtectionState\":\"zdfsqxhyqmr\",\"vmProtectionStateDescription\":\"parn\",\"initialReplicationDetails\":{\"initialReplicationType\":\"rsz\",\"initialReplicationProgressPercentage\":\"wtdrcwg\"},\"vMDiskDetails\":[{\"maxSizeMB\":4300016577167436223,\"vhdType\":\"hhfi\",\"vhdId\":\"cfculzj\",\"vhdName\":\"hp\"}]}") - .toObject(HyperVReplicaReplicationDetails.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-08T01:34:17Z"), model.lastReplicatedTime()); - Assertions.assertEquals("lvzkl", model.vmNics().get(0).nicId()); - Assertions.assertEquals("bgikyjtkakvlbi", model.vmNics().get(0).replicaNicId()); - Assertions.assertEquals("jvpzaptuoskaoiz", model.vmNics().get(0).sourceNicArmId()); - Assertions.assertEquals("xwfgcdiykkcx", model.vmNics().get(0).vMNetworkName()); - Assertions.assertEquals("ujvqynvavit", model.vmNics().get(0).recoveryVMNetworkId()); - Assertions.assertEquals("qohhihra", model.vmNics().get(0).ipConfigs().get(0).name()); - Assertions.assertEquals(false, model.vmNics().get(0).ipConfigs().get(0).isPrimary()); - Assertions.assertEquals("drwjcljbrhlh", model.vmNics().get(0).ipConfigs().get(0).subnetName()); - Assertions.assertEquals("zadbwe", model.vmNics().get(0).ipConfigs().get(0).staticIpAddress()); - Assertions.assertEquals("inafhxrzfrm", model.vmNics().get(0).ipConfigs().get(0).ipAddressType()); - Assertions.assertEquals(false, model.vmNics().get(0).ipConfigs().get(0).isSeletedForFailover()); - Assertions.assertEquals("ucwviqllukhkrcq", model.vmNics().get(0).ipConfigs().get(0).recoverySubnetName()); - Assertions.assertEquals("cbvzarmqcb", model.vmNics().get(0).ipConfigs().get(0).recoveryStaticIpAddress()); - Assertions.assertEquals("kst", model.vmNics().get(0).ipConfigs().get(0).recoveryIpAddressType()); - Assertions.assertEquals("nvago", model.vmNics().get(0).ipConfigs().get(0).recoveryPublicIpAddressId()); - Assertions.assertEquals("hdrx", - model.vmNics().get(0).ipConfigs().get(0).recoveryLBBackendAddressPoolIds().get(0)); - Assertions.assertEquals("mxgnmguzbuwv", model.vmNics().get(0).ipConfigs().get(0).tfoSubnetName()); - Assertions.assertEquals("balkjnbkbdhl", model.vmNics().get(0).ipConfigs().get(0).tfoStaticIpAddress()); - Assertions.assertEquals("q", model.vmNics().get(0).ipConfigs().get(0).tfoPublicIpAddressId()); - Assertions.assertEquals("kqsy", model.vmNics().get(0).ipConfigs().get(0).tfoLBBackendAddressPoolIds().get(0)); - Assertions.assertEquals("wlp", model.vmNics().get(0).selectionType()); - Assertions.assertEquals("uqhrlmcskykp", model.vmNics().get(0).recoveryNetworkSecurityGroupId()); - Assertions.assertEquals(false, model.vmNics().get(0).enableAcceleratedNetworkingOnRecovery()); - Assertions.assertEquals("ixcnpcf", model.vmNics().get(0).tfoVMNetworkId()); - Assertions.assertEquals("kpyyc", model.vmNics().get(0).tfoNetworkSecurityGroupId()); - Assertions.assertEquals(false, model.vmNics().get(0).enableAcceleratedNetworkingOnTfo()); - Assertions.assertEquals("pjprdpwr", model.vmNics().get(0).recoveryNicName()); - Assertions.assertEquals("fpcfjf", model.vmNics().get(0).recoveryNicResourceGroupName()); - Assertions.assertEquals(true, model.vmNics().get(0).reuseExistingNic()); - Assertions.assertEquals("z", model.vmNics().get(0).tfoRecoveryNicName()); - Assertions.assertEquals("kgyepe", model.vmNics().get(0).tfoRecoveryNicResourceGroupName()); - Assertions.assertEquals(true, model.vmNics().get(0).tfoReuseExistingNic()); - Assertions.assertEquals("nidmdiaw", model.vmNics().get(0).targetNicName()); - Assertions.assertEquals("c", model.vmId()); - Assertions.assertEquals("zdfsqxhyqmr", model.vmProtectionState()); - Assertions.assertEquals("parn", model.vmProtectionStateDescription()); - Assertions.assertEquals("rsz", model.initialReplicationDetails().initialReplicationType()); - Assertions.assertEquals("wtdrcwg", model.initialReplicationDetails().initialReplicationProgressPercentage()); - Assertions.assertEquals(4300016577167436223L, model.vMDiskDetails().get(0).maxSizeMB()); - Assertions.assertEquals("hhfi", model.vMDiskDetails().get(0).vhdType()); - Assertions.assertEquals("cfculzj", model.vMDiskDetails().get(0).vhdId()); - Assertions.assertEquals("hp", model.vMDiskDetails().get(0).vhdName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HyperVReplicaReplicationDetails model - = new HyperVReplicaReplicationDetails().withLastReplicatedTime(OffsetDateTime.parse("2021-02-08T01:34:17Z")) - .withVmNics( - Arrays - .asList( - new VMNicDetails().withNicId("lvzkl") - .withReplicaNicId("bgikyjtkakvlbi") - .withSourceNicArmId("jvpzaptuoskaoiz") - .withVMNetworkName("xwfgcdiykkcx") - .withRecoveryVMNetworkId("ujvqynvavit") - .withIpConfigs( - Arrays - .asList( - new IpConfigDetails().withName("qohhihra") - .withIsPrimary(false) - .withSubnetName("drwjcljbrhlh") - .withStaticIpAddress("zadbwe") - .withIpAddressType("inafhxrzfrm") - .withIsSeletedForFailover(false) - .withRecoverySubnetName("ucwviqllukhkrcq") - .withRecoveryStaticIpAddress("cbvzarmqcb") - .withRecoveryIpAddressType("kst") - .withRecoveryPublicIpAddressId("nvago") - .withRecoveryLBBackendAddressPoolIds( - Arrays.asList("hdrx", "rdvcehqwhit")) - .withTfoSubnetName("mxgnmguzbuwv") - .withTfoStaticIpAddress("balkjnbkbdhl") - .withTfoPublicIpAddressId("q") - .withTfoLBBackendAddressPoolIds( - Arrays.asList("kqsy", "xiynecovagzk", "eubanlxunpqcc", "qiawzl")), - new IpConfigDetails().withName("laslgacizux") - .withIsPrimary(false) - .withSubnetName("wp") - .withStaticIpAddress("saudoejtighsx") - .withIpAddressType("ytnkqb") - .withIsSeletedForFailover(false) - .withRecoverySubnetName("ovu") - .withRecoveryStaticIpAddress("xhmehjnhjiotif") - .withRecoveryIpAddressType("bcngkegxc") - .withRecoveryPublicIpAddressId("xbbfetwil") - .withRecoveryLBBackendAddressPoolIds(Arrays.asList("oxpdxq")) - .withTfoSubnetName("r") - .withTfoStaticIpAddress("qownkiuajewnahw") - .withTfoPublicIpAddressId("jjmztnlmsoodtmv") - .withTfoLBBackendAddressPoolIds( - Arrays.asList("hdyswcrptveajc", "xvl", "srg", "rfizr")))) - .withSelectionType("wlp") - .withRecoveryNetworkSecurityGroupId("uqhrlmcskykp") - .withEnableAcceleratedNetworkingOnRecovery(false) - .withTfoVMNetworkId("ixcnpcf") - .withTfoNetworkSecurityGroupId("kpyyc") - .withEnableAcceleratedNetworkingOnTfo(false) - .withRecoveryNicName("pjprdpwr") - .withRecoveryNicResourceGroupName("fpcfjf") - .withReuseExistingNic(true) - .withTfoRecoveryNicName("z") - .withTfoRecoveryNicResourceGroupName("kgyepe") - .withTfoReuseExistingNic(true) - .withTargetNicName("nidmdiaw"), - new VMNicDetails().withNicId("xkzrn") - .withReplicaNicId("kctd") - .withSourceNicArmId("osgwqpsqazihqo") - .withVMNetworkName("qgcnbhcbmjk") - .withRecoveryVMNetworkId("ibniynts") - .withIpConfigs(Arrays.asList( - new IpConfigDetails().withName("mef") - .withIsPrimary(false) - .withSubnetName("moogjrhskbwgm") - .withStaticIpAddress("rulcfogx") - .withIpAddressType("xnwjtpfdzxcouz") - .withIsSeletedForFailover(true) - .withRecoverySubnetName("wakukzkdtzxs") - .withRecoveryStaticIpAddress("dnlwglihezomuc") - .withRecoveryIpAddressType("g") - .withRecoveryPublicIpAddressId("nione") - .withRecoveryLBBackendAddressPoolIds(Arrays.asList("dr")) - .withTfoSubnetName("uenxkgtlzlmt") - .withTfoStaticIpAddress("xcznnhzkb") - .withTfoPublicIpAddressId("mxlxmwtygeq") - .withTfoLBBackendAddressPoolIds(Arrays.asList("itoqcahfsg")), - new IpConfigDetails().withName("mlree") - .withIsPrimary(true) - .withSubnetName("sszvlcw") - .withStaticIpAddress("solntfxxcrqmipf") - .withIpAddressType("foygizmshxxba") - .withIsSeletedForFailover(false) - .withRecoverySubnetName("ulnvgskj") - .withRecoveryStaticIpAddress("xjdzjs") - .withRecoveryIpAddressType("nvhxqqmqip") - .withRecoveryPublicIpAddressId("dhfnzocxmtfshksn") - .withRecoveryLBBackendAddressPoolIds( - Arrays.asList("spamwbwmbnls", "cefiqdkt", "tkvi", "lpfliwoyn")) - .withTfoSubnetName("uzhwvladpcmhjhau") - .withTfoStaticIpAddress("b") - .withTfoPublicIpAddressId("kymffztsils") - .withTfoLBBackendAddressPoolIds(Arrays.asList("syeiih")), - new IpConfigDetails().withName("mkouihyeseuugci") - .withIsPrimary(true) - .withSubnetName("gsmgb") - .withStaticIpAddress("tdwrqbebjnfve") - .withIpAddressType("abtvkbi") - .withIsSeletedForFailover(false) - .withRecoverySubnetName("tfgfic") - .withRecoveryStaticIpAddress("yhizpaczmu") - .withRecoveryIpAddressType("cakznhokhoitwhrj") - .withRecoveryPublicIpAddressId("mmazdnckid") - .withRecoveryLBBackendAddressPoolIds(Arrays.asList("glhzqp", "zbawkikcdgfh")) - .withTfoSubnetName("sd") - .withTfoStaticIpAddress("ey") - .withTfoPublicIpAddressId("xdede") - .withTfoLBBackendAddressPoolIds(Arrays.asList("wh", "gxsur", "jqrshz")))) - .withSelectionType("g") - .withRecoveryNetworkSecurityGroupId("lcxiqqzjko") - .withEnableAcceleratedNetworkingOnRecovery(true) - .withTfoVMNetworkId("n") - .withTfoNetworkSecurityGroupId("gl") - .withEnableAcceleratedNetworkingOnTfo(true) - .withRecoveryNicName("gd") - .withRecoveryNicResourceGroupName("ivj") - .withReuseExistingNic(false) - .withTfoRecoveryNicName("dqqigdydkghpc") - .withTfoRecoveryNicResourceGroupName("wqirvtktyhhm") - .withTfoReuseExistingNic(true) - .withTargetNicName("apj"), - new VMNicDetails().withNicId("odmkrrwepgqv") - .withReplicaNicId("kqlujqgira") - .withSourceNicArmId("lyvxchp") - .withVMNetworkName("ctsfaeuhwwsknst") - .withRecoveryVMNetworkId("uzhasupmlppdpgz") - .withIpConfigs(Arrays.asList( - new IpConfigDetails().withName("z") - .withIsPrimary(false) - .withSubnetName("rkptgongruats") - .withStaticIpAddress("y") - .withIpAddressType("qheni") - .withIsSeletedForFailover(false) - .withRecoverySubnetName("ngu") - .withRecoveryStaticIpAddress("byjdeayscse") - .withRecoveryIpAddressType("zjemexmnvkvm") - .withRecoveryPublicIpAddressId("rxl") - .withRecoveryLBBackendAddressPoolIds( - Arrays.asList("m", "pm", "rdlhvdvmiphbe", "eqjzm")) - .withTfoSubnetName("dclacroczfmun") - .withTfoStaticIpAddress("keluxz") - .withTfoPublicIpAddressId("xzezbzuzudlevzs") - .withTfoLBBackendAddressPoolIds( - Arrays.asList("cgwfsgqkstyecu", "yu", "jparda")), - new IpConfigDetails().withName("jcfmazpzdqw") - .withIsPrimary(false) - .withSubnetName("mcokxizeku") - .withStaticIpAddress("rjwuca") - .withIpAddressType("zvajbvbnkrdem") - .withIsSeletedForFailover(false) - .withRecoverySubnetName("ckzidgzwdydami") - .withRecoveryStaticIpAddress("pztdivyk") - .withRecoveryIpAddressType("kqejtpjfojiunr") - .withRecoveryPublicIpAddressId("hxuk") - .withRecoveryLBBackendAddressPoolIds(Arrays.asList("kdtoiboancdr")) - .withTfoSubnetName("anvxuldxonckb") - .withTfoStaticIpAddress("blfxlupibaqzi") - .withTfoPublicIpAddressId("zpzwegh") - .withTfoLBBackendAddressPoolIds(Arrays.asList("bogvgfklqiy", "dve", "elsbfvd")), - new IpConfigDetails().withName("rk") - .withIsPrimary(false) - .withSubnetName("tznsvl") - .withStaticIpAddress("smovpi") - .withIpAddressType("ndnoxaxnrqaq") - .withIsSeletedForFailover(false) - .withRecoverySubnetName("dxolousdv") - .withRecoveryStaticIpAddress("ptqmawzjdrpiz") - .withRecoveryIpAddressType("l") - .withRecoveryPublicIpAddressId("ctsdbtqgkujds") - .withRecoveryLBBackendAddressPoolIds(Arrays.asList("r", "w")) - .withTfoSubnetName("urbti") - .withTfoStaticIpAddress("pdyarikeejdpd") - .withTfoPublicIpAddressId("twmmkfqbriqu") - .withTfoLBBackendAddressPoolIds( - Arrays.asList("trj", "eqkvyhzokpoyu", "h", "ensnaa")), - new IpConfigDetails().withName("hmpoe") - .withIsPrimary(false) - .withSubnetName("pwsadaxjsumxpe") - .withStaticIpAddress("oio") - .withIpAddressType("rmfqzwq") - .withIsSeletedForFailover(true) - .withRecoverySubnetName("eedcnwmywx") - .withRecoveryStaticIpAddress("zkvemy") - .withRecoveryIpAddressType("pczaqpqif") - .withRecoveryPublicIpAddressId("m") - .withRecoveryLBBackendAddressPoolIds(Arrays.asList("wtxzuisam")) - .withTfoSubnetName("at") - .withTfoStaticIpAddress("zexroqsqjgh") - .withTfoPublicIpAddressId("thsplwsttxsr") - .withTfoLBBackendAddressPoolIds(Arrays.asList("qpaniceovxgzwhs")))) - .withSelectionType("rujmti") - .withRecoveryNetworkSecurityGroupId("s") - .withEnableAcceleratedNetworkingOnRecovery(false) - .withTfoVMNetworkId("ohzixyqhfnkvycqq") - .withTfoNetworkSecurityGroupId("seip") - .withEnableAcceleratedNetworkingOnTfo(false) - .withRecoveryNicName("zxhrptyodlhkfktl") - .withRecoveryNicResourceGroupName("dsobjopnouhbq") - .withReuseExistingNic(false) - .withTfoRecoveryNicName("xs") - .withTfoRecoveryNicResourceGroupName("uzyigfcvcewbwqhd") - .withTfoReuseExistingNic(false) - .withTargetNicName("atm"))) - .withVmId("c") - .withVmProtectionState("zdfsqxhyqmr") - .withVmProtectionStateDescription("parn") - .withInitialReplicationDetails(new InitialReplicationDetails().withInitialReplicationType("rsz") - .withInitialReplicationProgressPercentage("wtdrcwg")) - .withVMDiskDetails(Arrays.asList(new DiskDetails().withMaxSizeMB(4300016577167436223L) - .withVhdType("hhfi") - .withVhdId("cfculzj") - .withVhdName("hp"))); - model = BinaryData.fromObject(model).toObject(HyperVReplicaReplicationDetails.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-08T01:34:17Z"), model.lastReplicatedTime()); - Assertions.assertEquals("lvzkl", model.vmNics().get(0).nicId()); - Assertions.assertEquals("bgikyjtkakvlbi", model.vmNics().get(0).replicaNicId()); - Assertions.assertEquals("jvpzaptuoskaoiz", model.vmNics().get(0).sourceNicArmId()); - Assertions.assertEquals("xwfgcdiykkcx", model.vmNics().get(0).vMNetworkName()); - Assertions.assertEquals("ujvqynvavit", model.vmNics().get(0).recoveryVMNetworkId()); - Assertions.assertEquals("qohhihra", model.vmNics().get(0).ipConfigs().get(0).name()); - Assertions.assertEquals(false, model.vmNics().get(0).ipConfigs().get(0).isPrimary()); - Assertions.assertEquals("drwjcljbrhlh", model.vmNics().get(0).ipConfigs().get(0).subnetName()); - Assertions.assertEquals("zadbwe", model.vmNics().get(0).ipConfigs().get(0).staticIpAddress()); - Assertions.assertEquals("inafhxrzfrm", model.vmNics().get(0).ipConfigs().get(0).ipAddressType()); - Assertions.assertEquals(false, model.vmNics().get(0).ipConfigs().get(0).isSeletedForFailover()); - Assertions.assertEquals("ucwviqllukhkrcq", model.vmNics().get(0).ipConfigs().get(0).recoverySubnetName()); - Assertions.assertEquals("cbvzarmqcb", model.vmNics().get(0).ipConfigs().get(0).recoveryStaticIpAddress()); - Assertions.assertEquals("kst", model.vmNics().get(0).ipConfigs().get(0).recoveryIpAddressType()); - Assertions.assertEquals("nvago", model.vmNics().get(0).ipConfigs().get(0).recoveryPublicIpAddressId()); - Assertions.assertEquals("hdrx", - model.vmNics().get(0).ipConfigs().get(0).recoveryLBBackendAddressPoolIds().get(0)); - Assertions.assertEquals("mxgnmguzbuwv", model.vmNics().get(0).ipConfigs().get(0).tfoSubnetName()); - Assertions.assertEquals("balkjnbkbdhl", model.vmNics().get(0).ipConfigs().get(0).tfoStaticIpAddress()); - Assertions.assertEquals("q", model.vmNics().get(0).ipConfigs().get(0).tfoPublicIpAddressId()); - Assertions.assertEquals("kqsy", model.vmNics().get(0).ipConfigs().get(0).tfoLBBackendAddressPoolIds().get(0)); - Assertions.assertEquals("wlp", model.vmNics().get(0).selectionType()); - Assertions.assertEquals("uqhrlmcskykp", model.vmNics().get(0).recoveryNetworkSecurityGroupId()); - Assertions.assertEquals(false, model.vmNics().get(0).enableAcceleratedNetworkingOnRecovery()); - Assertions.assertEquals("ixcnpcf", model.vmNics().get(0).tfoVMNetworkId()); - Assertions.assertEquals("kpyyc", model.vmNics().get(0).tfoNetworkSecurityGroupId()); - Assertions.assertEquals(false, model.vmNics().get(0).enableAcceleratedNetworkingOnTfo()); - Assertions.assertEquals("pjprdpwr", model.vmNics().get(0).recoveryNicName()); - Assertions.assertEquals("fpcfjf", model.vmNics().get(0).recoveryNicResourceGroupName()); - Assertions.assertEquals(true, model.vmNics().get(0).reuseExistingNic()); - Assertions.assertEquals("z", model.vmNics().get(0).tfoRecoveryNicName()); - Assertions.assertEquals("kgyepe", model.vmNics().get(0).tfoRecoveryNicResourceGroupName()); - Assertions.assertEquals(true, model.vmNics().get(0).tfoReuseExistingNic()); - Assertions.assertEquals("nidmdiaw", model.vmNics().get(0).targetNicName()); - Assertions.assertEquals("c", model.vmId()); - Assertions.assertEquals("zdfsqxhyqmr", model.vmProtectionState()); - Assertions.assertEquals("parn", model.vmProtectionStateDescription()); - Assertions.assertEquals("rsz", model.initialReplicationDetails().initialReplicationType()); - Assertions.assertEquals("wtdrcwg", model.initialReplicationDetails().initialReplicationProgressPercentage()); - Assertions.assertEquals(4300016577167436223L, model.vMDiskDetails().get(0).maxSizeMB()); - Assertions.assertEquals("hhfi", model.vMDiskDetails().get(0).vhdType()); - Assertions.assertEquals("cfculzj", model.vMDiskDetails().get(0).vhdId()); - Assertions.assertEquals("hp", model.vMDiskDetails().get(0).vhdName()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVSiteDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVSiteDetailsTests.java deleted file mode 100644 index 58750eb16eb6..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVSiteDetailsTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.HyperVHostDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.HyperVSiteDetails; -import java.util.Arrays; - -public final class HyperVSiteDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HyperVSiteDetails model = BinaryData.fromString( - "{\"instanceType\":\"HyperVSite\",\"hyperVHosts\":[{\"id\":\"yldqpzfzxsox\",\"name\":\"unjlzkdrocq\",\"marsAgentVersion\":\"ytqqtcmi\"},{\"id\":\"w\",\"name\":\"vn\",\"marsAgentVersion\":\"ylajam\"},{\"id\":\"jyh\",\"name\":\"p\",\"marsAgentVersion\":\"rryklleynqan\"}]}") - .toObject(HyperVSiteDetails.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HyperVSiteDetails model = new HyperVSiteDetails() - .withHyperVHosts(Arrays.asList(new HyperVHostDetails(), new HyperVHostDetails(), new HyperVHostDetails())); - model = BinaryData.fromObject(model).toObject(HyperVSiteDetails.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVVirtualMachineDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVVirtualMachineDetailsTests.java deleted file mode 100644 index e5142fe6b016..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/HyperVVirtualMachineDetailsTests.java +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.DiskDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.HyperVVirtualMachineDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.OSDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.PresenceStatus; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class HyperVVirtualMachineDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HyperVVirtualMachineDetails model = BinaryData.fromString( - "{\"instanceType\":\"HyperVVirtualMachine\",\"sourceItemId\":\"igglclwalhvub\",\"generation\":\"zphetxdqcm\",\"osDetails\":{\"osType\":\"ajqzj\",\"productType\":\"lecxbibiwks\",\"osEdition\":\"gyxs\",\"oSVersion\":\"pzvoikv\",\"oSMajorVersion\":\"wczfzwushlcx\",\"oSMinorVersion\":\"lalhhezpfkiss\"},\"diskDetails\":[{\"maxSizeMB\":8933439553335588786,\"vhdType\":\"aoq\",\"vhdId\":\"gpto\",\"vhdName\":\"jq\"},{\"maxSizeMB\":8153507398057204968,\"vhdType\":\"nlrtbfijzz\",\"vhdId\":\"o\",\"vhdName\":\"olbuauktwieope\"},{\"maxSizeMB\":6227229278544049294,\"vhdType\":\"dwrswyiljpi\",\"vhdId\":\"gxyxyauxredd\",\"vhdName\":\"mcnltmwytkujsqyc\"}],\"hasPhysicalDisk\":\"NotPresent\",\"hasFibreChannelAdapter\":\"Present\",\"hasSharedVhd\":\"Present\",\"hyperVHostId\":\"qgpwbmwhr\"}") - .toObject(HyperVVirtualMachineDetails.class); - Assertions.assertEquals("igglclwalhvub", model.sourceItemId()); - Assertions.assertEquals("zphetxdqcm", model.generation()); - Assertions.assertEquals("ajqzj", model.osDetails().osType()); - Assertions.assertEquals("lecxbibiwks", model.osDetails().productType()); - Assertions.assertEquals("gyxs", model.osDetails().osEdition()); - Assertions.assertEquals("pzvoikv", model.osDetails().oSVersion()); - Assertions.assertEquals("wczfzwushlcx", model.osDetails().oSMajorVersion()); - Assertions.assertEquals("lalhhezpfkiss", model.osDetails().oSMinorVersion()); - Assertions.assertEquals(8933439553335588786L, model.diskDetails().get(0).maxSizeMB()); - Assertions.assertEquals("aoq", model.diskDetails().get(0).vhdType()); - Assertions.assertEquals("gpto", model.diskDetails().get(0).vhdId()); - Assertions.assertEquals("jq", model.diskDetails().get(0).vhdName()); - Assertions.assertEquals(PresenceStatus.NOT_PRESENT, model.hasPhysicalDisk()); - Assertions.assertEquals(PresenceStatus.PRESENT, model.hasFibreChannelAdapter()); - Assertions.assertEquals(PresenceStatus.PRESENT, model.hasSharedVhd()); - Assertions.assertEquals("qgpwbmwhr", model.hyperVHostId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HyperVVirtualMachineDetails model = new HyperVVirtualMachineDetails().withSourceItemId("igglclwalhvub") - .withGeneration("zphetxdqcm") - .withOsDetails(new OSDetails().withOsType("ajqzj") - .withProductType("lecxbibiwks") - .withOsEdition("gyxs") - .withOSVersion("pzvoikv") - .withOSMajorVersion("wczfzwushlcx") - .withOSMinorVersion("lalhhezpfkiss")) - .withDiskDetails(Arrays.asList( - new DiskDetails().withMaxSizeMB(8933439553335588786L) - .withVhdType("aoq") - .withVhdId("gpto") - .withVhdName("jq"), - new DiskDetails().withMaxSizeMB(8153507398057204968L) - .withVhdType("nlrtbfijzz") - .withVhdId("o") - .withVhdName("olbuauktwieope"), - new DiskDetails().withMaxSizeMB(6227229278544049294L) - .withVhdType("dwrswyiljpi") - .withVhdId("gxyxyauxredd") - .withVhdName("mcnltmwytkujsqyc"))) - .withHasPhysicalDisk(PresenceStatus.NOT_PRESENT) - .withHasFibreChannelAdapter(PresenceStatus.PRESENT) - .withHasSharedVhd(PresenceStatus.PRESENT) - .withHyperVHostId("qgpwbmwhr"); - model = BinaryData.fromObject(model).toObject(HyperVVirtualMachineDetails.class); - Assertions.assertEquals("igglclwalhvub", model.sourceItemId()); - Assertions.assertEquals("zphetxdqcm", model.generation()); - Assertions.assertEquals("ajqzj", model.osDetails().osType()); - Assertions.assertEquals("lecxbibiwks", model.osDetails().productType()); - Assertions.assertEquals("gyxs", model.osDetails().osEdition()); - Assertions.assertEquals("pzvoikv", model.osDetails().oSVersion()); - Assertions.assertEquals("wczfzwushlcx", model.osDetails().oSMajorVersion()); - Assertions.assertEquals("lalhhezpfkiss", model.osDetails().oSMinorVersion()); - Assertions.assertEquals(8933439553335588786L, model.diskDetails().get(0).maxSizeMB()); - Assertions.assertEquals("aoq", model.diskDetails().get(0).vhdType()); - Assertions.assertEquals("gpto", model.diskDetails().get(0).vhdId()); - Assertions.assertEquals("jq", model.diskDetails().get(0).vhdName()); - Assertions.assertEquals(PresenceStatus.NOT_PRESENT, model.hasPhysicalDisk()); - Assertions.assertEquals(PresenceStatus.PRESENT, model.hasFibreChannelAdapter()); - Assertions.assertEquals(PresenceStatus.PRESENT, model.hasSharedVhd()); - Assertions.assertEquals("qgpwbmwhr", model.hyperVHostId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/IdentityProviderDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/IdentityProviderDetailsTests.java deleted file mode 100644 index 62375cdf7767..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/IdentityProviderDetailsTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.IdentityProviderDetails; -import org.junit.jupiter.api.Assertions; - -public final class IdentityProviderDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IdentityProviderDetails model = BinaryData.fromString( - "{\"tenantId\":\"brn\",\"applicationId\":\"u\",\"objectId\":\"prafwgckhoc\",\"audience\":\"d\",\"aadAuthority\":\"fwafqrouda\"}") - .toObject(IdentityProviderDetails.class); - Assertions.assertEquals("brn", model.tenantId()); - Assertions.assertEquals("u", model.applicationId()); - Assertions.assertEquals("prafwgckhoc", model.objectId()); - Assertions.assertEquals("d", model.audience()); - Assertions.assertEquals("fwafqrouda", model.aadAuthority()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IdentityProviderDetails model = new IdentityProviderDetails().withTenantId("brn") - .withApplicationId("u") - .withObjectId("prafwgckhoc") - .withAudience("d") - .withAadAuthority("fwafqrouda"); - model = BinaryData.fromObject(model).toObject(IdentityProviderDetails.class); - Assertions.assertEquals("brn", model.tenantId()); - Assertions.assertEquals("u", model.applicationId()); - Assertions.assertEquals("prafwgckhoc", model.objectId()); - Assertions.assertEquals("d", model.audience()); - Assertions.assertEquals("fwafqrouda", model.aadAuthority()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/IdentityProviderInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/IdentityProviderInputTests.java deleted file mode 100644 index 7b192f27cd0b..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/IdentityProviderInputTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.IdentityProviderInput; -import org.junit.jupiter.api.Assertions; - -public final class IdentityProviderInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IdentityProviderInput model = BinaryData.fromString( - "{\"tenantId\":\"lqxihhrmooiz\",\"applicationId\":\"seypxiutcxapz\",\"objectId\":\"y\",\"audience\":\"petogebjox\",\"aadAuthority\":\"lhvnhlab\"}") - .toObject(IdentityProviderInput.class); - Assertions.assertEquals("lqxihhrmooiz", model.tenantId()); - Assertions.assertEquals("seypxiutcxapz", model.applicationId()); - Assertions.assertEquals("y", model.objectId()); - Assertions.assertEquals("petogebjox", model.audience()); - Assertions.assertEquals("lhvnhlab", model.aadAuthority()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IdentityProviderInput model = new IdentityProviderInput().withTenantId("lqxihhrmooiz") - .withApplicationId("seypxiutcxapz") - .withObjectId("y") - .withAudience("petogebjox") - .withAadAuthority("lhvnhlab"); - model = BinaryData.fromObject(model).toObject(IdentityProviderInput.class); - Assertions.assertEquals("lqxihhrmooiz", model.tenantId()); - Assertions.assertEquals("seypxiutcxapz", model.applicationId()); - Assertions.assertEquals("y", model.objectId()); - Assertions.assertEquals("petogebjox", model.audience()); - Assertions.assertEquals("lhvnhlab", model.aadAuthority()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageAgentDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageAgentDetailsTests.java deleted file mode 100644 index 4dadff2b3ea4..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageAgentDetailsTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageAgentDetails; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; - -public final class InMageAgentDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageAgentDetails model = BinaryData.fromString( - "{\"agentVersion\":\"wyambhba\",\"agentUpdateStatus\":\"bz\",\"postUpdateRebootStatus\":\"k\",\"agentExpiryDate\":\"2021-01-13T18:27:32Z\"}") - .toObject(InMageAgentDetails.class); - Assertions.assertEquals("wyambhba", model.agentVersion()); - Assertions.assertEquals("bz", model.agentUpdateStatus()); - Assertions.assertEquals("k", model.postUpdateRebootStatus()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-13T18:27:32Z"), model.agentExpiryDate()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageAgentDetails model = new InMageAgentDetails().withAgentVersion("wyambhba") - .withAgentUpdateStatus("bz") - .withPostUpdateRebootStatus("k") - .withAgentExpiryDate(OffsetDateTime.parse("2021-01-13T18:27:32Z")); - model = BinaryData.fromObject(model).toObject(InMageAgentDetails.class); - Assertions.assertEquals("wyambhba", model.agentVersion()); - Assertions.assertEquals("bz", model.agentUpdateStatus()); - Assertions.assertEquals("k", model.postUpdateRebootStatus()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-13T18:27:32Z"), model.agentExpiryDate()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageAzureV2ApplyRecoveryPointInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageAzureV2ApplyRecoveryPointInputTests.java deleted file mode 100644 index 1cda7d027471..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageAzureV2ApplyRecoveryPointInputTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageAzureV2ApplyRecoveryPointInput; - -public final class InMageAzureV2ApplyRecoveryPointInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageAzureV2ApplyRecoveryPointInput model = BinaryData.fromString("{\"instanceType\":\"InMageAzureV2\"}") - .toObject(InMageAzureV2ApplyRecoveryPointInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageAzureV2ApplyRecoveryPointInput model = new InMageAzureV2ApplyRecoveryPointInput(); - model = BinaryData.fromObject(model).toObject(InMageAzureV2ApplyRecoveryPointInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageAzureV2DiskInputDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageAzureV2DiskInputDetailsTests.java deleted file mode 100644 index 2694271b1275..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageAzureV2DiskInputDetailsTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.DiskAccountType; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageAzureV2DiskInputDetails; -import org.junit.jupiter.api.Assertions; - -public final class InMageAzureV2DiskInputDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageAzureV2DiskInputDetails model = BinaryData.fromString( - "{\"diskId\":\"ibhlenntrv\",\"logStorageAccountId\":\"psabdu\",\"diskType\":\"Premium_LRS\",\"diskEncryptionSetId\":\"lghnysvlp\"}") - .toObject(InMageAzureV2DiskInputDetails.class); - Assertions.assertEquals("ibhlenntrv", model.diskId()); - Assertions.assertEquals("psabdu", model.logStorageAccountId()); - Assertions.assertEquals(DiskAccountType.PREMIUM_LRS, model.diskType()); - Assertions.assertEquals("lghnysvlp", model.diskEncryptionSetId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageAzureV2DiskInputDetails model = new InMageAzureV2DiskInputDetails().withDiskId("ibhlenntrv") - .withLogStorageAccountId("psabdu") - .withDiskType(DiskAccountType.PREMIUM_LRS) - .withDiskEncryptionSetId("lghnysvlp"); - model = BinaryData.fromObject(model).toObject(InMageAzureV2DiskInputDetails.class); - Assertions.assertEquals("ibhlenntrv", model.diskId()); - Assertions.assertEquals("psabdu", model.logStorageAccountId()); - Assertions.assertEquals(DiskAccountType.PREMIUM_LRS, model.diskType()); - Assertions.assertEquals("lghnysvlp", model.diskEncryptionSetId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageAzureV2EnableProtectionInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageAzureV2EnableProtectionInputTests.java deleted file mode 100644 index 625030b0de2b..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageAzureV2EnableProtectionInputTests.java +++ /dev/null @@ -1,135 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.DiskAccountType; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageAzureV2DiskInputDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageAzureV2EnableProtectionInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.LicenseType; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.SqlServerLicenseType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class InMageAzureV2EnableProtectionInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageAzureV2EnableProtectionInput model = BinaryData.fromString( - "{\"instanceType\":\"InMageAzureV2\",\"masterTargetId\":\"uukppdixqb\",\"processServerId\":\"xvhhyqq\",\"storageAccountId\":\"at\",\"runAsAccountId\":\"rznmginmtsdixc\",\"multiVmGroupId\":\"kibmgjymn\",\"multiVmGroupName\":\"cag\",\"disksToInclude\":[{\"diskId\":\"cqzoofjnqjsve\",\"logStorageAccountId\":\"bhtleberpy\",\"diskType\":\"StandardSSD_LRS\",\"diskEncryptionSetId\":\"nfqnwj\"},{\"diskId\":\"xowkdnj\",\"logStorageAccountId\":\"gkr\",\"diskType\":\"StandardSSD_LRS\",\"diskEncryptionSetId\":\"hycpnowawonoe\"}],\"targetAzureNetworkId\":\"guqlhfwa\",\"targetAzureSubnetId\":\"jzmpy\",\"enableRdpOnTargetOption\":\"uyfazbkoc\",\"targetAzureVmName\":\"gvthrmxkbcjww\",\"logStorageAccountId\":\"omraw\",\"targetAzureV1ResourceGroupId\":\"keboo\",\"targetAzureV2ResourceGroupId\":\"l\",\"diskType\":\"StandardSSD_LRS\",\"targetAvailabilitySetId\":\"gaedaoiq\",\"targetAvailabilityZone\":\"mgd\",\"targetProximityPlacementGroupId\":\"gabdxfkuzbwjeco\",\"licenseType\":\"NoLicenseType\",\"sqlServerLicenseType\":\"NotSpecified\",\"targetVmSize\":\"qbpel\",\"diskEncryptionSetId\":\"ibncgagdvcd\",\"targetVmTags\":{\"df\":\"tzbpyfao\"},\"seedManagedDiskTags\":{\"rf\":\"ncwmhjob\",\"dc\":\"ri\",\"f\":\"h\",\"oorssatfy\":\"cvbzwgwhgkgsoa\"},\"targetManagedDiskTags\":{\"dqn\":\"ufdmxuq\",\"fqayopbtsix\":\"sttuxv\",\"jay\":\"gvbhxmndztgs\"},\"targetNicTags\":{\"q\":\"rxneibpgbrhbj\",\"nmotpuwnnoh\":\"nh\",\"wyiulaynosu\":\"mzngocfrjuy\"}}") - .toObject(InMageAzureV2EnableProtectionInput.class); - Assertions.assertEquals("uukppdixqb", model.masterTargetId()); - Assertions.assertEquals("xvhhyqq", model.processServerId()); - Assertions.assertEquals("at", model.storageAccountId()); - Assertions.assertEquals("rznmginmtsdixc", model.runAsAccountId()); - Assertions.assertEquals("kibmgjymn", model.multiVmGroupId()); - Assertions.assertEquals("cag", model.multiVmGroupName()); - Assertions.assertEquals("cqzoofjnqjsve", model.disksToInclude().get(0).diskId()); - Assertions.assertEquals("bhtleberpy", model.disksToInclude().get(0).logStorageAccountId()); - Assertions.assertEquals(DiskAccountType.STANDARD_SSD_LRS, model.disksToInclude().get(0).diskType()); - Assertions.assertEquals("nfqnwj", model.disksToInclude().get(0).diskEncryptionSetId()); - Assertions.assertEquals("guqlhfwa", model.targetAzureNetworkId()); - Assertions.assertEquals("jzmpy", model.targetAzureSubnetId()); - Assertions.assertEquals("uyfazbkoc", model.enableRdpOnTargetOption()); - Assertions.assertEquals("gvthrmxkbcjww", model.targetAzureVmName()); - Assertions.assertEquals("omraw", model.logStorageAccountId()); - Assertions.assertEquals("keboo", model.targetAzureV1ResourceGroupId()); - Assertions.assertEquals("l", model.targetAzureV2ResourceGroupId()); - Assertions.assertEquals(DiskAccountType.STANDARD_SSD_LRS, model.diskType()); - Assertions.assertEquals("gaedaoiq", model.targetAvailabilitySetId()); - Assertions.assertEquals("mgd", model.targetAvailabilityZone()); - Assertions.assertEquals("gabdxfkuzbwjeco", model.targetProximityPlacementGroupId()); - Assertions.assertEquals(LicenseType.NO_LICENSE_TYPE, model.licenseType()); - Assertions.assertEquals(SqlServerLicenseType.NOT_SPECIFIED, model.sqlServerLicenseType()); - Assertions.assertEquals("qbpel", model.targetVmSize()); - Assertions.assertEquals("ibncgagdvcd", model.diskEncryptionSetId()); - Assertions.assertEquals("tzbpyfao", model.targetVmTags().get("df")); - Assertions.assertEquals("ncwmhjob", model.seedManagedDiskTags().get("rf")); - Assertions.assertEquals("ufdmxuq", model.targetManagedDiskTags().get("dqn")); - Assertions.assertEquals("rxneibpgbrhbj", model.targetNicTags().get("q")); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageAzureV2EnableProtectionInput model - = new InMageAzureV2EnableProtectionInput().withMasterTargetId("uukppdixqb") - .withProcessServerId("xvhhyqq") - .withStorageAccountId("at") - .withRunAsAccountId("rznmginmtsdixc") - .withMultiVmGroupId("kibmgjymn") - .withMultiVmGroupName("cag") - .withDisksToInclude(Arrays.asList( - new InMageAzureV2DiskInputDetails().withDiskId("cqzoofjnqjsve") - .withLogStorageAccountId("bhtleberpy") - .withDiskType(DiskAccountType.STANDARD_SSD_LRS) - .withDiskEncryptionSetId("nfqnwj"), - new InMageAzureV2DiskInputDetails().withDiskId("xowkdnj") - .withLogStorageAccountId("gkr") - .withDiskType(DiskAccountType.STANDARD_SSD_LRS) - .withDiskEncryptionSetId("hycpnowawonoe"))) - .withTargetAzureNetworkId("guqlhfwa") - .withTargetAzureSubnetId("jzmpy") - .withEnableRdpOnTargetOption("uyfazbkoc") - .withTargetAzureVmName("gvthrmxkbcjww") - .withLogStorageAccountId("omraw") - .withTargetAzureV1ResourceGroupId("keboo") - .withTargetAzureV2ResourceGroupId("l") - .withDiskType(DiskAccountType.STANDARD_SSD_LRS) - .withTargetAvailabilitySetId("gaedaoiq") - .withTargetAvailabilityZone("mgd") - .withTargetProximityPlacementGroupId("gabdxfkuzbwjeco") - .withLicenseType(LicenseType.NO_LICENSE_TYPE) - .withSqlServerLicenseType(SqlServerLicenseType.NOT_SPECIFIED) - .withTargetVmSize("qbpel") - .withDiskEncryptionSetId("ibncgagdvcd") - .withTargetVmTags(mapOf("df", "tzbpyfao")) - .withSeedManagedDiskTags(mapOf("rf", "ncwmhjob", "dc", "ri", "f", "h", "oorssatfy", "cvbzwgwhgkgsoa")) - .withTargetManagedDiskTags(mapOf("dqn", "ufdmxuq", "fqayopbtsix", "sttuxv", "jay", "gvbhxmndztgs")) - .withTargetNicTags(mapOf("q", "rxneibpgbrhbj", "nmotpuwnnoh", "nh", "wyiulaynosu", "mzngocfrjuy")); - model = BinaryData.fromObject(model).toObject(InMageAzureV2EnableProtectionInput.class); - Assertions.assertEquals("uukppdixqb", model.masterTargetId()); - Assertions.assertEquals("xvhhyqq", model.processServerId()); - Assertions.assertEquals("at", model.storageAccountId()); - Assertions.assertEquals("rznmginmtsdixc", model.runAsAccountId()); - Assertions.assertEquals("kibmgjymn", model.multiVmGroupId()); - Assertions.assertEquals("cag", model.multiVmGroupName()); - Assertions.assertEquals("cqzoofjnqjsve", model.disksToInclude().get(0).diskId()); - Assertions.assertEquals("bhtleberpy", model.disksToInclude().get(0).logStorageAccountId()); - Assertions.assertEquals(DiskAccountType.STANDARD_SSD_LRS, model.disksToInclude().get(0).diskType()); - Assertions.assertEquals("nfqnwj", model.disksToInclude().get(0).diskEncryptionSetId()); - Assertions.assertEquals("guqlhfwa", model.targetAzureNetworkId()); - Assertions.assertEquals("jzmpy", model.targetAzureSubnetId()); - Assertions.assertEquals("uyfazbkoc", model.enableRdpOnTargetOption()); - Assertions.assertEquals("gvthrmxkbcjww", model.targetAzureVmName()); - Assertions.assertEquals("omraw", model.logStorageAccountId()); - Assertions.assertEquals("keboo", model.targetAzureV1ResourceGroupId()); - Assertions.assertEquals("l", model.targetAzureV2ResourceGroupId()); - Assertions.assertEquals(DiskAccountType.STANDARD_SSD_LRS, model.diskType()); - Assertions.assertEquals("gaedaoiq", model.targetAvailabilitySetId()); - Assertions.assertEquals("mgd", model.targetAvailabilityZone()); - Assertions.assertEquals("gabdxfkuzbwjeco", model.targetProximityPlacementGroupId()); - Assertions.assertEquals(LicenseType.NO_LICENSE_TYPE, model.licenseType()); - Assertions.assertEquals(SqlServerLicenseType.NOT_SPECIFIED, model.sqlServerLicenseType()); - Assertions.assertEquals("qbpel", model.targetVmSize()); - Assertions.assertEquals("ibncgagdvcd", model.diskEncryptionSetId()); - Assertions.assertEquals("tzbpyfao", model.targetVmTags().get("df")); - Assertions.assertEquals("ncwmhjob", model.seedManagedDiskTags().get("rf")); - Assertions.assertEquals("ufdmxuq", model.targetManagedDiskTags().get("dqn")); - Assertions.assertEquals("rxneibpgbrhbj", model.targetNicTags().get("q")); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageAzureV2EventDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageAzureV2EventDetailsTests.java deleted file mode 100644 index 121b6ece170d..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageAzureV2EventDetailsTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageAzureV2EventDetails; -import org.junit.jupiter.api.Assertions; - -public final class InMageAzureV2EventDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageAzureV2EventDetails model = BinaryData.fromString( - "{\"instanceType\":\"InMageAzureV2\",\"eventType\":\"fhaxttpf\",\"category\":\"wgsghqucumldd\",\"component\":\"qm\",\"correctiveAction\":\"feothxu\",\"details\":\"igrjdljlkqhvkrbz\",\"summary\":\"astax\",\"siteName\":\"pruulhg\"}") - .toObject(InMageAzureV2EventDetails.class); - Assertions.assertEquals("fhaxttpf", model.eventType()); - Assertions.assertEquals("wgsghqucumldd", model.category()); - Assertions.assertEquals("qm", model.component()); - Assertions.assertEquals("feothxu", model.correctiveAction()); - Assertions.assertEquals("igrjdljlkqhvkrbz", model.details()); - Assertions.assertEquals("astax", model.summary()); - Assertions.assertEquals("pruulhg", model.siteName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageAzureV2EventDetails model = new InMageAzureV2EventDetails().withEventType("fhaxttpf") - .withCategory("wgsghqucumldd") - .withComponent("qm") - .withCorrectiveAction("feothxu") - .withDetails("igrjdljlkqhvkrbz") - .withSummary("astax") - .withSiteName("pruulhg"); - model = BinaryData.fromObject(model).toObject(InMageAzureV2EventDetails.class); - Assertions.assertEquals("fhaxttpf", model.eventType()); - Assertions.assertEquals("wgsghqucumldd", model.category()); - Assertions.assertEquals("qm", model.component()); - Assertions.assertEquals("feothxu", model.correctiveAction()); - Assertions.assertEquals("igrjdljlkqhvkrbz", model.details()); - Assertions.assertEquals("astax", model.summary()); - Assertions.assertEquals("pruulhg", model.siteName()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageAzureV2ManagedDiskDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageAzureV2ManagedDiskDetailsTests.java deleted file mode 100644 index 29ae4b009a24..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageAzureV2ManagedDiskDetailsTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageAzureV2ManagedDiskDetails; -import org.junit.jupiter.api.Assertions; - -public final class InMageAzureV2ManagedDiskDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageAzureV2ManagedDiskDetails model = BinaryData.fromString( - "{\"diskId\":\"oizwxvs\",\"seedManagedDiskId\":\"sgfy\",\"replicaDiskType\":\"ky\",\"diskEncryptionSetId\":\"gafxczvf\",\"targetDiskName\":\"kwrt\"}") - .toObject(InMageAzureV2ManagedDiskDetails.class); - Assertions.assertEquals("oizwxvs", model.diskId()); - Assertions.assertEquals("sgfy", model.seedManagedDiskId()); - Assertions.assertEquals("ky", model.replicaDiskType()); - Assertions.assertEquals("gafxczvf", model.diskEncryptionSetId()); - Assertions.assertEquals("kwrt", model.targetDiskName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageAzureV2ManagedDiskDetails model = new InMageAzureV2ManagedDiskDetails().withDiskId("oizwxvs") - .withSeedManagedDiskId("sgfy") - .withReplicaDiskType("ky") - .withDiskEncryptionSetId("gafxczvf") - .withTargetDiskName("kwrt"); - model = BinaryData.fromObject(model).toObject(InMageAzureV2ManagedDiskDetails.class); - Assertions.assertEquals("oizwxvs", model.diskId()); - Assertions.assertEquals("sgfy", model.seedManagedDiskId()); - Assertions.assertEquals("ky", model.replicaDiskType()); - Assertions.assertEquals("gafxczvf", model.diskEncryptionSetId()); - Assertions.assertEquals("kwrt", model.targetDiskName()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageAzureV2PolicyDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageAzureV2PolicyDetailsTests.java deleted file mode 100644 index be8539af7b6a..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageAzureV2PolicyDetailsTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageAzureV2PolicyDetails; -import org.junit.jupiter.api.Assertions; - -public final class InMageAzureV2PolicyDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageAzureV2PolicyDetails model = BinaryData.fromString( - "{\"instanceType\":\"InMageAzureV2\",\"crashConsistentFrequencyInMinutes\":699440843,\"recoveryPointThresholdInMinutes\":1580992750,\"recoveryPointHistory\":893679063,\"appConsistentFrequencyInMinutes\":710111101,\"multiVmSyncStatus\":\"tlh\"}") - .toObject(InMageAzureV2PolicyDetails.class); - Assertions.assertEquals(699440843, model.crashConsistentFrequencyInMinutes()); - Assertions.assertEquals(1580992750, model.recoveryPointThresholdInMinutes()); - Assertions.assertEquals(893679063, model.recoveryPointHistory()); - Assertions.assertEquals(710111101, model.appConsistentFrequencyInMinutes()); - Assertions.assertEquals("tlh", model.multiVmSyncStatus()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageAzureV2PolicyDetails model - = new InMageAzureV2PolicyDetails().withCrashConsistentFrequencyInMinutes(699440843) - .withRecoveryPointThresholdInMinutes(1580992750) - .withRecoveryPointHistory(893679063) - .withAppConsistentFrequencyInMinutes(710111101) - .withMultiVmSyncStatus("tlh"); - model = BinaryData.fromObject(model).toObject(InMageAzureV2PolicyDetails.class); - Assertions.assertEquals(699440843, model.crashConsistentFrequencyInMinutes()); - Assertions.assertEquals(1580992750, model.recoveryPointThresholdInMinutes()); - Assertions.assertEquals(893679063, model.recoveryPointHistory()); - Assertions.assertEquals(710111101, model.appConsistentFrequencyInMinutes()); - Assertions.assertEquals("tlh", model.multiVmSyncStatus()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageAzureV2PolicyInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageAzureV2PolicyInputTests.java deleted file mode 100644 index 86ac2febd779..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageAzureV2PolicyInputTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageAzureV2PolicyInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.SetMultiVmSyncStatus; -import org.junit.jupiter.api.Assertions; - -public final class InMageAzureV2PolicyInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageAzureV2PolicyInput model = BinaryData.fromString( - "{\"instanceType\":\"InMageAzureV2\",\"recoveryPointThresholdInMinutes\":1444761559,\"recoveryPointHistory\":2116742025,\"crashConsistentFrequencyInMinutes\":852718126,\"appConsistentFrequencyInMinutes\":1922243610,\"multiVmSyncStatus\":\"Enable\"}") - .toObject(InMageAzureV2PolicyInput.class); - Assertions.assertEquals(1444761559, model.recoveryPointThresholdInMinutes()); - Assertions.assertEquals(2116742025, model.recoveryPointHistory()); - Assertions.assertEquals(852718126, model.crashConsistentFrequencyInMinutes()); - Assertions.assertEquals(1922243610, model.appConsistentFrequencyInMinutes()); - Assertions.assertEquals(SetMultiVmSyncStatus.ENABLE, model.multiVmSyncStatus()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageAzureV2PolicyInput model = new InMageAzureV2PolicyInput().withRecoveryPointThresholdInMinutes(1444761559) - .withRecoveryPointHistory(2116742025) - .withCrashConsistentFrequencyInMinutes(852718126) - .withAppConsistentFrequencyInMinutes(1922243610) - .withMultiVmSyncStatus(SetMultiVmSyncStatus.ENABLE); - model = BinaryData.fromObject(model).toObject(InMageAzureV2PolicyInput.class); - Assertions.assertEquals(1444761559, model.recoveryPointThresholdInMinutes()); - Assertions.assertEquals(2116742025, model.recoveryPointHistory()); - Assertions.assertEquals(852718126, model.crashConsistentFrequencyInMinutes()); - Assertions.assertEquals(1922243610, model.appConsistentFrequencyInMinutes()); - Assertions.assertEquals(SetMultiVmSyncStatus.ENABLE, model.multiVmSyncStatus()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageAzureV2RecoveryPointDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageAzureV2RecoveryPointDetailsTests.java deleted file mode 100644 index 910272801405..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageAzureV2RecoveryPointDetailsTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageAzureV2RecoveryPointDetails; -import org.junit.jupiter.api.Assertions; - -public final class InMageAzureV2RecoveryPointDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageAzureV2RecoveryPointDetails model - = BinaryData.fromString("{\"instanceType\":\"InMageAzureV2\",\"isMultiVmSyncPoint\":\"ihqlcoqks\"}") - .toObject(InMageAzureV2RecoveryPointDetails.class); - Assertions.assertEquals("ihqlcoqks", model.isMultiVmSyncPoint()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageAzureV2RecoveryPointDetails model - = new InMageAzureV2RecoveryPointDetails().withIsMultiVmSyncPoint("ihqlcoqks"); - model = BinaryData.fromObject(model).toObject(InMageAzureV2RecoveryPointDetails.class); - Assertions.assertEquals("ihqlcoqks", model.isMultiVmSyncPoint()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageAzureV2ReprotectInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageAzureV2ReprotectInputTests.java deleted file mode 100644 index 030042693515..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageAzureV2ReprotectInputTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageAzureV2ReprotectInput; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class InMageAzureV2ReprotectInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageAzureV2ReprotectInput model = BinaryData.fromString( - "{\"instanceType\":\"InMageAzureV2\",\"masterTargetId\":\"sqsqkpdmioyjpnml\",\"processServerId\":\"qcpszp\",\"storageAccountId\":\"vqdvrdmvxyrxdhg\",\"runAsAccountId\":\"oj\",\"policyId\":\"aotcgbzxmbtp\",\"logStorageAccountId\":\"foioyidoxzn\",\"disksToInclude\":[\"dtmuuvd\",\"wsxmrszb\"]}") - .toObject(InMageAzureV2ReprotectInput.class); - Assertions.assertEquals("sqsqkpdmioyjpnml", model.masterTargetId()); - Assertions.assertEquals("qcpszp", model.processServerId()); - Assertions.assertEquals("vqdvrdmvxyrxdhg", model.storageAccountId()); - Assertions.assertEquals("oj", model.runAsAccountId()); - Assertions.assertEquals("aotcgbzxmbtp", model.policyId()); - Assertions.assertEquals("foioyidoxzn", model.logStorageAccountId()); - Assertions.assertEquals("dtmuuvd", model.disksToInclude().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageAzureV2ReprotectInput model = new InMageAzureV2ReprotectInput().withMasterTargetId("sqsqkpdmioyjpnml") - .withProcessServerId("qcpszp") - .withStorageAccountId("vqdvrdmvxyrxdhg") - .withRunAsAccountId("oj") - .withPolicyId("aotcgbzxmbtp") - .withLogStorageAccountId("foioyidoxzn") - .withDisksToInclude(Arrays.asList("dtmuuvd", "wsxmrszb")); - model = BinaryData.fromObject(model).toObject(InMageAzureV2ReprotectInput.class); - Assertions.assertEquals("sqsqkpdmioyjpnml", model.masterTargetId()); - Assertions.assertEquals("qcpszp", model.processServerId()); - Assertions.assertEquals("vqdvrdmvxyrxdhg", model.storageAccountId()); - Assertions.assertEquals("oj", model.runAsAccountId()); - Assertions.assertEquals("aotcgbzxmbtp", model.policyId()); - Assertions.assertEquals("foioyidoxzn", model.logStorageAccountId()); - Assertions.assertEquals("dtmuuvd", model.disksToInclude().get(0)); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageAzureV2SwitchProviderDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageAzureV2SwitchProviderDetailsTests.java deleted file mode 100644 index 70650f6a381b..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageAzureV2SwitchProviderDetailsTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageAzureV2SwitchProviderDetails; - -public final class InMageAzureV2SwitchProviderDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageAzureV2SwitchProviderDetails model = BinaryData.fromString( - "{\"targetVaultId\":\"asmcolmugpyvaos\",\"targetResourceId\":\"l\",\"targetFabricId\":\"zxeygzvtye\",\"targetApplianceId\":\"hubnobgu\"}") - .toObject(InMageAzureV2SwitchProviderDetails.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageAzureV2SwitchProviderDetails model = new InMageAzureV2SwitchProviderDetails(); - model = BinaryData.fromObject(model).toObject(InMageAzureV2SwitchProviderDetails.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageAzureV2SwitchProviderInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageAzureV2SwitchProviderInputTests.java deleted file mode 100644 index aca6bb328e8c..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageAzureV2SwitchProviderInputTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageAzureV2SwitchProviderInput; -import org.junit.jupiter.api.Assertions; - -public final class InMageAzureV2SwitchProviderInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageAzureV2SwitchProviderInput model = BinaryData.fromString( - "{\"instanceType\":\"InMageAzureV2\",\"targetVaultID\":\"nimx\",\"targetFabricID\":\"pnerxrzut\",\"targetApplianceID\":\"lcurzaqmnbx\"}") - .toObject(InMageAzureV2SwitchProviderInput.class); - Assertions.assertEquals("nimx", model.targetVaultId()); - Assertions.assertEquals("pnerxrzut", model.targetFabricId()); - Assertions.assertEquals("lcurzaqmnbx", model.targetApplianceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageAzureV2SwitchProviderInput model = new InMageAzureV2SwitchProviderInput().withTargetVaultId("nimx") - .withTargetFabricId("pnerxrzut") - .withTargetApplianceId("lcurzaqmnbx"); - model = BinaryData.fromObject(model).toObject(InMageAzureV2SwitchProviderInput.class); - Assertions.assertEquals("nimx", model.targetVaultId()); - Assertions.assertEquals("pnerxrzut", model.targetFabricId()); - Assertions.assertEquals("lcurzaqmnbx", model.targetApplianceId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageAzureV2TestFailoverInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageAzureV2TestFailoverInputTests.java deleted file mode 100644 index 7c94e579fedc..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageAzureV2TestFailoverInputTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageAzureV2TestFailoverInput; -import org.junit.jupiter.api.Assertions; - -public final class InMageAzureV2TestFailoverInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageAzureV2TestFailoverInput model = BinaryData.fromString( - "{\"instanceType\":\"InMageAzureV2\",\"recoveryPointId\":\"ehtd\",\"osUpgradeVersion\":\"mbnvynfaooeacted\"}") - .toObject(InMageAzureV2TestFailoverInput.class); - Assertions.assertEquals("ehtd", model.recoveryPointId()); - Assertions.assertEquals("mbnvynfaooeacted", model.osUpgradeVersion()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageAzureV2TestFailoverInput model - = new InMageAzureV2TestFailoverInput().withRecoveryPointId("ehtd").withOsUpgradeVersion("mbnvynfaooeacted"); - model = BinaryData.fromObject(model).toObject(InMageAzureV2TestFailoverInput.class); - Assertions.assertEquals("ehtd", model.recoveryPointId()); - Assertions.assertEquals("mbnvynfaooeacted", model.osUpgradeVersion()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageAzureV2UnplannedFailoverInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageAzureV2UnplannedFailoverInputTests.java deleted file mode 100644 index 3955e1f571a3..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageAzureV2UnplannedFailoverInputTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageAzureV2UnplannedFailoverInput; -import org.junit.jupiter.api.Assertions; - -public final class InMageAzureV2UnplannedFailoverInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageAzureV2UnplannedFailoverInput model = BinaryData - .fromString( - "{\"instanceType\":\"InMageAzureV2\",\"recoveryPointId\":\"lsk\",\"osUpgradeVersion\":\"ddida\"}") - .toObject(InMageAzureV2UnplannedFailoverInput.class); - Assertions.assertEquals("lsk", model.recoveryPointId()); - Assertions.assertEquals("ddida", model.osUpgradeVersion()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageAzureV2UnplannedFailoverInput model - = new InMageAzureV2UnplannedFailoverInput().withRecoveryPointId("lsk").withOsUpgradeVersion("ddida"); - model = BinaryData.fromObject(model).toObject(InMageAzureV2UnplannedFailoverInput.class); - Assertions.assertEquals("lsk", model.recoveryPointId()); - Assertions.assertEquals("ddida", model.osUpgradeVersion()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageAzureV2UpdateReplicationProtectedItemInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageAzureV2UpdateReplicationProtectedItemInputTests.java deleted file mode 100644 index a852a6ea0f14..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageAzureV2UpdateReplicationProtectedItemInputTests.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageAzureV2UpdateReplicationProtectedItemInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.SqlServerLicenseType; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.UpdateDiskInput; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class InMageAzureV2UpdateReplicationProtectedItemInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageAzureV2UpdateReplicationProtectedItemInput model = BinaryData.fromString( - "{\"instanceType\":\"InMageAzureV2\",\"recoveryAzureV1ResourceGroupId\":\"llrqmtlpbyxro\",\"recoveryAzureV2ResourceGroupId\":\"uyqyp\",\"useManagedDisks\":\"mnoiicsudy\",\"targetProximityPlacementGroupId\":\"rjjtalxrdsjrho\",\"targetAvailabilityZone\":\"qwgusxxhdo\",\"targetVmTags\":{\"bdmvsby\":\"wyblv\",\"kmkwjfbo\":\"daelqpv\",\"v\":\"loggdusxursu\",\"qrizfwihvaan\":\"xcjkcoqwczsy\"},\"targetManagedDiskTags\":{\"bbaex\":\"nhjrfdmfd\",\"vmuafmc\":\"jfwtgdfkkaui\",\"vpltidajjvy\":\"fedyuep\"},\"targetNicTags\":{\"yelsyasvfnk\":\"cfkumcfjxo\",\"jekrknfd\":\"myg\",\"lcr\":\"ugjqyckgtxkrdt\",\"tcsubmzoo\":\"jdkl\"},\"sqlServerLicenseType\":\"NotSpecified\",\"vmDisks\":[{\"diskId\":\"chkxfpwhdysl\",\"targetDiskName\":\"lglmnnkkwayqsh\"}]}") - .toObject(InMageAzureV2UpdateReplicationProtectedItemInput.class); - Assertions.assertEquals("llrqmtlpbyxro", model.recoveryAzureV1ResourceGroupId()); - Assertions.assertEquals("uyqyp", model.recoveryAzureV2ResourceGroupId()); - Assertions.assertEquals("mnoiicsudy", model.useManagedDisks()); - Assertions.assertEquals("rjjtalxrdsjrho", model.targetProximityPlacementGroupId()); - Assertions.assertEquals("qwgusxxhdo", model.targetAvailabilityZone()); - Assertions.assertEquals("wyblv", model.targetVmTags().get("bdmvsby")); - Assertions.assertEquals("nhjrfdmfd", model.targetManagedDiskTags().get("bbaex")); - Assertions.assertEquals("cfkumcfjxo", model.targetNicTags().get("yelsyasvfnk")); - Assertions.assertEquals(SqlServerLicenseType.NOT_SPECIFIED, model.sqlServerLicenseType()); - Assertions.assertEquals("chkxfpwhdysl", model.vmDisks().get(0).diskId()); - Assertions.assertEquals("lglmnnkkwayqsh", model.vmDisks().get(0).targetDiskName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageAzureV2UpdateReplicationProtectedItemInput model = new InMageAzureV2UpdateReplicationProtectedItemInput() - .withRecoveryAzureV1ResourceGroupId("llrqmtlpbyxro") - .withRecoveryAzureV2ResourceGroupId("uyqyp") - .withUseManagedDisks("mnoiicsudy") - .withTargetProximityPlacementGroupId("rjjtalxrdsjrho") - .withTargetAvailabilityZone("qwgusxxhdo") - .withTargetVmTags( - mapOf("bdmvsby", "wyblv", "kmkwjfbo", "daelqpv", "v", "loggdusxursu", "qrizfwihvaan", "xcjkcoqwczsy")) - .withTargetManagedDiskTags(mapOf("bbaex", "nhjrfdmfd", "vmuafmc", "jfwtgdfkkaui", "vpltidajjvy", "fedyuep")) - .withTargetNicTags( - mapOf("yelsyasvfnk", "cfkumcfjxo", "jekrknfd", "myg", "lcr", "ugjqyckgtxkrdt", "tcsubmzoo", "jdkl")) - .withSqlServerLicenseType(SqlServerLicenseType.NOT_SPECIFIED) - .withVmDisks( - Arrays.asList(new UpdateDiskInput().withDiskId("chkxfpwhdysl").withTargetDiskName("lglmnnkkwayqsh"))); - model = BinaryData.fromObject(model).toObject(InMageAzureV2UpdateReplicationProtectedItemInput.class); - Assertions.assertEquals("llrqmtlpbyxro", model.recoveryAzureV1ResourceGroupId()); - Assertions.assertEquals("uyqyp", model.recoveryAzureV2ResourceGroupId()); - Assertions.assertEquals("mnoiicsudy", model.useManagedDisks()); - Assertions.assertEquals("rjjtalxrdsjrho", model.targetProximityPlacementGroupId()); - Assertions.assertEquals("qwgusxxhdo", model.targetAvailabilityZone()); - Assertions.assertEquals("wyblv", model.targetVmTags().get("bdmvsby")); - Assertions.assertEquals("nhjrfdmfd", model.targetManagedDiskTags().get("bbaex")); - Assertions.assertEquals("cfkumcfjxo", model.targetNicTags().get("yelsyasvfnk")); - Assertions.assertEquals(SqlServerLicenseType.NOT_SPECIFIED, model.sqlServerLicenseType()); - Assertions.assertEquals("chkxfpwhdysl", model.vmDisks().get(0).diskId()); - Assertions.assertEquals("lglmnnkkwayqsh", model.vmDisks().get(0).targetDiskName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageBasePolicyDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageBasePolicyDetailsTests.java deleted file mode 100644 index 77d24401c7a8..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageBasePolicyDetailsTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageBasePolicyDetails; -import org.junit.jupiter.api.Assertions; - -public final class InMageBasePolicyDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageBasePolicyDetails model = BinaryData.fromString( - "{\"instanceType\":\"InMageBasePolicyDetails\",\"recoveryPointThresholdInMinutes\":1501835760,\"recoveryPointHistory\":1196368599,\"appConsistentFrequencyInMinutes\":612698857,\"multiVmSyncStatus\":\"tb\"}") - .toObject(InMageBasePolicyDetails.class); - Assertions.assertEquals(1501835760, model.recoveryPointThresholdInMinutes()); - Assertions.assertEquals(1196368599, model.recoveryPointHistory()); - Assertions.assertEquals(612698857, model.appConsistentFrequencyInMinutes()); - Assertions.assertEquals("tb", model.multiVmSyncStatus()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageBasePolicyDetails model = new InMageBasePolicyDetails().withRecoveryPointThresholdInMinutes(1501835760) - .withRecoveryPointHistory(1196368599) - .withAppConsistentFrequencyInMinutes(612698857) - .withMultiVmSyncStatus("tb"); - model = BinaryData.fromObject(model).toObject(InMageBasePolicyDetails.class); - Assertions.assertEquals(1501835760, model.recoveryPointThresholdInMinutes()); - Assertions.assertEquals(1196368599, model.recoveryPointHistory()); - Assertions.assertEquals(612698857, model.appConsistentFrequencyInMinutes()); - Assertions.assertEquals("tb", model.multiVmSyncStatus()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageDisableProtectionProviderSpecificInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageDisableProtectionProviderSpecificInputTests.java deleted file mode 100644 index 1463a5e79fb1..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageDisableProtectionProviderSpecificInputTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageDisableProtectionProviderSpecificInput; -import org.junit.jupiter.api.Assertions; - -public final class InMageDisableProtectionProviderSpecificInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageDisableProtectionProviderSpecificInput model - = BinaryData.fromString("{\"instanceType\":\"InMage\",\"replicaVmDeletionStatus\":\"q\"}") - .toObject(InMageDisableProtectionProviderSpecificInput.class); - Assertions.assertEquals("q", model.replicaVmDeletionStatus()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageDisableProtectionProviderSpecificInput model - = new InMageDisableProtectionProviderSpecificInput().withReplicaVmDeletionStatus("q"); - model = BinaryData.fromObject(model).toObject(InMageDisableProtectionProviderSpecificInput.class); - Assertions.assertEquals("q", model.replicaVmDeletionStatus()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageDiskDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageDiskDetailsTests.java deleted file mode 100644 index 041a189a1d39..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageDiskDetailsTests.java +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.DiskVolumeDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageDiskDetails; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class InMageDiskDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageDiskDetails model = BinaryData.fromString( - "{\"diskId\":\"kgxqwqueuuylztpz\",\"diskName\":\"zevjykofve\",\"diskSizeInMB\":\"fkhkqtwqlep\",\"diskType\":\"zkca\",\"diskConfiguration\":\"wz\",\"volumeList\":[{\"label\":\"gffjw\",\"name\":\"nrtwz\"},{\"label\":\"qkifmxawostfz\",\"name\":\"hrkmjqncfv\"},{\"label\":\"cnhemvwfnq\",\"name\":\"ypvndrw\"},{\"label\":\"od\",\"name\":\"grssgw\"}]}") - .toObject(InMageDiskDetails.class); - Assertions.assertEquals("kgxqwqueuuylztpz", model.diskId()); - Assertions.assertEquals("zevjykofve", model.diskName()); - Assertions.assertEquals("fkhkqtwqlep", model.diskSizeInMB()); - Assertions.assertEquals("zkca", model.diskType()); - Assertions.assertEquals("wz", model.diskConfiguration()); - Assertions.assertEquals("gffjw", model.volumeList().get(0).label()); - Assertions.assertEquals("nrtwz", model.volumeList().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageDiskDetails model = new InMageDiskDetails().withDiskId("kgxqwqueuuylztpz") - .withDiskName("zevjykofve") - .withDiskSizeInMB("fkhkqtwqlep") - .withDiskType("zkca") - .withDiskConfiguration("wz") - .withVolumeList(Arrays.asList(new DiskVolumeDetails().withLabel("gffjw").withName("nrtwz"), - new DiskVolumeDetails().withLabel("qkifmxawostfz").withName("hrkmjqncfv"), - new DiskVolumeDetails().withLabel("cnhemvwfnq").withName("ypvndrw"), - new DiskVolumeDetails().withLabel("od").withName("grssgw"))); - model = BinaryData.fromObject(model).toObject(InMageDiskDetails.class); - Assertions.assertEquals("kgxqwqueuuylztpz", model.diskId()); - Assertions.assertEquals("zevjykofve", model.diskName()); - Assertions.assertEquals("fkhkqtwqlep", model.diskSizeInMB()); - Assertions.assertEquals("zkca", model.diskType()); - Assertions.assertEquals("wz", model.diskConfiguration()); - Assertions.assertEquals("gffjw", model.volumeList().get(0).label()); - Assertions.assertEquals("nrtwz", model.volumeList().get(0).name()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageDiskExclusionInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageDiskExclusionInputTests.java deleted file mode 100644 index e496f2eddac0..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageDiskExclusionInputTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageDiskExclusionInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageDiskSignatureExclusionOptions; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageVolumeExclusionOptions; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class InMageDiskExclusionInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageDiskExclusionInput model = BinaryData.fromString( - "{\"volumeOptions\":[{\"volumeLabel\":\"injmuymve\",\"onlyExcludeIfSingleVolume\":\"ztscbgmusaictds\"},{\"volumeLabel\":\"kzzohnrddc\",\"onlyExcludeIfSingleVolume\":\"eqozrehlbz\"},{\"volumeLabel\":\"xbnjrqvzyuexoz\",\"onlyExcludeIfSingleVolume\":\"ynp\"},{\"volumeLabel\":\"eudpab\",\"onlyExcludeIfSingleVolume\":\"euwzosgyjxvc\"}],\"diskSignatureOptions\":[{\"diskSignature\":\"rmrexzvdube\"},{\"diskSignature\":\"zygba\"}]}") - .toObject(InMageDiskExclusionInput.class); - Assertions.assertEquals("injmuymve", model.volumeOptions().get(0).volumeLabel()); - Assertions.assertEquals("ztscbgmusaictds", model.volumeOptions().get(0).onlyExcludeIfSingleVolume()); - Assertions.assertEquals("rmrexzvdube", model.diskSignatureOptions().get(0).diskSignature()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageDiskExclusionInput model = new InMageDiskExclusionInput().withVolumeOptions(Arrays.asList( - new InMageVolumeExclusionOptions().withVolumeLabel("injmuymve") - .withOnlyExcludeIfSingleVolume("ztscbgmusaictds"), - new InMageVolumeExclusionOptions().withVolumeLabel("kzzohnrddc") - .withOnlyExcludeIfSingleVolume("eqozrehlbz"), - new InMageVolumeExclusionOptions().withVolumeLabel("xbnjrqvzyuexoz").withOnlyExcludeIfSingleVolume("ynp"), - new InMageVolumeExclusionOptions().withVolumeLabel("eudpab").withOnlyExcludeIfSingleVolume("euwzosgyjxvc"))) - .withDiskSignatureOptions( - Arrays.asList(new InMageDiskSignatureExclusionOptions().withDiskSignature("rmrexzvdube"), - new InMageDiskSignatureExclusionOptions().withDiskSignature("zygba"))); - model = BinaryData.fromObject(model).toObject(InMageDiskExclusionInput.class); - Assertions.assertEquals("injmuymve", model.volumeOptions().get(0).volumeLabel()); - Assertions.assertEquals("ztscbgmusaictds", model.volumeOptions().get(0).onlyExcludeIfSingleVolume()); - Assertions.assertEquals("rmrexzvdube", model.diskSignatureOptions().get(0).diskSignature()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageDiskSignatureExclusionOptionsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageDiskSignatureExclusionOptionsTests.java deleted file mode 100644 index f2a5f0055ad6..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageDiskSignatureExclusionOptionsTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageDiskSignatureExclusionOptions; -import org.junit.jupiter.api.Assertions; - -public final class InMageDiskSignatureExclusionOptionsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageDiskSignatureExclusionOptions model = BinaryData.fromString("{\"diskSignature\":\"fvppkeqsifj\"}") - .toObject(InMageDiskSignatureExclusionOptions.class); - Assertions.assertEquals("fvppkeqsifj", model.diskSignature()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageDiskSignatureExclusionOptions model - = new InMageDiskSignatureExclusionOptions().withDiskSignature("fvppkeqsifj"); - model = BinaryData.fromObject(model).toObject(InMageDiskSignatureExclusionOptions.class); - Assertions.assertEquals("fvppkeqsifj", model.diskSignature()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageEnableProtectionInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageEnableProtectionInputTests.java deleted file mode 100644 index 4ffb2a9e55a7..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageEnableProtectionInputTests.java +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageDiskExclusionInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageDiskSignatureExclusionOptions; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageEnableProtectionInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageVolumeExclusionOptions; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class InMageEnableProtectionInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageEnableProtectionInput model = BinaryData.fromString( - "{\"instanceType\":\"InMage\",\"vmFriendlyName\":\"lng\",\"masterTargetId\":\"gnhrkombcdtajdo\",\"processServerId\":\"ggorwjoqt\",\"retentionDrive\":\"otpvclp\",\"runAsAccountId\":\"yrlmwkptsk\",\"multiVmGroupId\":\"xjgvh\",\"multiVmGroupName\":\"ccbmkakm\",\"datastoreName\":\"okbputm\",\"diskExclusionInput\":{\"volumeOptions\":[{\"volumeLabel\":\"akmlwktfowzkroyr\",\"onlyExcludeIfSingleVolume\":\"r\"},{\"volumeLabel\":\"lzqjimejtgzjxx\",\"onlyExcludeIfSingleVolume\":\"e\"}],\"diskSignatureOptions\":[{\"diskSignature\":\"qloiwyayyziv\"},{\"diskSignature\":\"itcdqlhchwhrk\"},{\"diskSignature\":\"l\"},{\"diskSignature\":\"fibfiplhx\"}]},\"disksToInclude\":[\"mycjowlyey\"]}") - .toObject(InMageEnableProtectionInput.class); - Assertions.assertEquals("lng", model.vmFriendlyName()); - Assertions.assertEquals("gnhrkombcdtajdo", model.masterTargetId()); - Assertions.assertEquals("ggorwjoqt", model.processServerId()); - Assertions.assertEquals("otpvclp", model.retentionDrive()); - Assertions.assertEquals("yrlmwkptsk", model.runAsAccountId()); - Assertions.assertEquals("xjgvh", model.multiVmGroupId()); - Assertions.assertEquals("ccbmkakm", model.multiVmGroupName()); - Assertions.assertEquals("okbputm", model.datastoreName()); - Assertions.assertEquals("akmlwktfowzkroyr", model.diskExclusionInput().volumeOptions().get(0).volumeLabel()); - Assertions.assertEquals("r", model.diskExclusionInput().volumeOptions().get(0).onlyExcludeIfSingleVolume()); - Assertions.assertEquals("qloiwyayyziv", - model.diskExclusionInput().diskSignatureOptions().get(0).diskSignature()); - Assertions.assertEquals("mycjowlyey", model.disksToInclude().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageEnableProtectionInput model = new InMageEnableProtectionInput().withVmFriendlyName("lng") - .withMasterTargetId("gnhrkombcdtajdo") - .withProcessServerId("ggorwjoqt") - .withRetentionDrive("otpvclp") - .withRunAsAccountId("yrlmwkptsk") - .withMultiVmGroupId("xjgvh") - .withMultiVmGroupName("ccbmkakm") - .withDatastoreName("okbputm") - .withDiskExclusionInput(new InMageDiskExclusionInput() - .withVolumeOptions(Arrays.asList( - new InMageVolumeExclusionOptions().withVolumeLabel("akmlwktfowzkroyr") - .withOnlyExcludeIfSingleVolume("r"), - new InMageVolumeExclusionOptions().withVolumeLabel("lzqjimejtgzjxx") - .withOnlyExcludeIfSingleVolume("e"))) - .withDiskSignatureOptions( - Arrays.asList(new InMageDiskSignatureExclusionOptions().withDiskSignature("qloiwyayyziv"), - new InMageDiskSignatureExclusionOptions().withDiskSignature("itcdqlhchwhrk"), - new InMageDiskSignatureExclusionOptions().withDiskSignature("l"), - new InMageDiskSignatureExclusionOptions().withDiskSignature("fibfiplhx")))) - .withDisksToInclude(Arrays.asList("mycjowlyey")); - model = BinaryData.fromObject(model).toObject(InMageEnableProtectionInput.class); - Assertions.assertEquals("lng", model.vmFriendlyName()); - Assertions.assertEquals("gnhrkombcdtajdo", model.masterTargetId()); - Assertions.assertEquals("ggorwjoqt", model.processServerId()); - Assertions.assertEquals("otpvclp", model.retentionDrive()); - Assertions.assertEquals("yrlmwkptsk", model.runAsAccountId()); - Assertions.assertEquals("xjgvh", model.multiVmGroupId()); - Assertions.assertEquals("ccbmkakm", model.multiVmGroupName()); - Assertions.assertEquals("okbputm", model.datastoreName()); - Assertions.assertEquals("akmlwktfowzkroyr", model.diskExclusionInput().volumeOptions().get(0).volumeLabel()); - Assertions.assertEquals("r", model.diskExclusionInput().volumeOptions().get(0).onlyExcludeIfSingleVolume()); - Assertions.assertEquals("qloiwyayyziv", - model.diskExclusionInput().diskSignatureOptions().get(0).diskSignature()); - Assertions.assertEquals("mycjowlyey", model.disksToInclude().get(0)); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMagePolicyDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMagePolicyDetailsTests.java deleted file mode 100644 index f36bc6d55a1a..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMagePolicyDetailsTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMagePolicyDetails; -import org.junit.jupiter.api.Assertions; - -public final class InMagePolicyDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMagePolicyDetails model = BinaryData.fromString( - "{\"instanceType\":\"InMage\",\"recoveryPointThresholdInMinutes\":841361482,\"recoveryPointHistory\":1070639613,\"appConsistentFrequencyInMinutes\":977949832,\"multiVmSyncStatus\":\"ac\"}") - .toObject(InMagePolicyDetails.class); - Assertions.assertEquals(841361482, model.recoveryPointThresholdInMinutes()); - Assertions.assertEquals(1070639613, model.recoveryPointHistory()); - Assertions.assertEquals(977949832, model.appConsistentFrequencyInMinutes()); - Assertions.assertEquals("ac", model.multiVmSyncStatus()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMagePolicyDetails model = new InMagePolicyDetails().withRecoveryPointThresholdInMinutes(841361482) - .withRecoveryPointHistory(1070639613) - .withAppConsistentFrequencyInMinutes(977949832) - .withMultiVmSyncStatus("ac"); - model = BinaryData.fromObject(model).toObject(InMagePolicyDetails.class); - Assertions.assertEquals(841361482, model.recoveryPointThresholdInMinutes()); - Assertions.assertEquals(1070639613, model.recoveryPointHistory()); - Assertions.assertEquals(977949832, model.appConsistentFrequencyInMinutes()); - Assertions.assertEquals("ac", model.multiVmSyncStatus()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMagePolicyInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMagePolicyInputTests.java deleted file mode 100644 index a7c67c1ce1fb..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMagePolicyInputTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMagePolicyInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.SetMultiVmSyncStatus; -import org.junit.jupiter.api.Assertions; - -public final class InMagePolicyInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMagePolicyInput model = BinaryData.fromString( - "{\"instanceType\":\"InMage\",\"recoveryPointThresholdInMinutes\":1710079987,\"recoveryPointHistory\":902786810,\"appConsistentFrequencyInMinutes\":1471706402,\"multiVmSyncStatus\":\"Enable\"}") - .toObject(InMagePolicyInput.class); - Assertions.assertEquals(1710079987, model.recoveryPointThresholdInMinutes()); - Assertions.assertEquals(902786810, model.recoveryPointHistory()); - Assertions.assertEquals(1471706402, model.appConsistentFrequencyInMinutes()); - Assertions.assertEquals(SetMultiVmSyncStatus.ENABLE, model.multiVmSyncStatus()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMagePolicyInput model = new InMagePolicyInput().withRecoveryPointThresholdInMinutes(1710079987) - .withRecoveryPointHistory(902786810) - .withAppConsistentFrequencyInMinutes(1471706402) - .withMultiVmSyncStatus(SetMultiVmSyncStatus.ENABLE); - model = BinaryData.fromObject(model).toObject(InMagePolicyInput.class); - Assertions.assertEquals(1710079987, model.recoveryPointThresholdInMinutes()); - Assertions.assertEquals(902786810, model.recoveryPointHistory()); - Assertions.assertEquals(1471706402, model.appConsistentFrequencyInMinutes()); - Assertions.assertEquals(SetMultiVmSyncStatus.ENABLE, model.multiVmSyncStatus()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmApplyRecoveryPointInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmApplyRecoveryPointInputTests.java deleted file mode 100644 index cd82bee21998..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmApplyRecoveryPointInputTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageRcmApplyRecoveryPointInput; -import org.junit.jupiter.api.Assertions; - -public final class InMageRcmApplyRecoveryPointInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageRcmApplyRecoveryPointInput model - = BinaryData.fromString("{\"instanceType\":\"InMageRcm\",\"recoveryPointId\":\"mvhzfovanyrvaprt\"}") - .toObject(InMageRcmApplyRecoveryPointInput.class); - Assertions.assertEquals("mvhzfovanyrvaprt", model.recoveryPointId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageRcmApplyRecoveryPointInput model - = new InMageRcmApplyRecoveryPointInput().withRecoveryPointId("mvhzfovanyrvaprt"); - model = BinaryData.fromObject(model).toObject(InMageRcmApplyRecoveryPointInput.class); - Assertions.assertEquals("mvhzfovanyrvaprt", model.recoveryPointId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmDiscoveredProtectedVmDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmDiscoveredProtectedVmDetailsTests.java deleted file mode 100644 index 68f46428cd31..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmDiscoveredProtectedVmDetailsTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageRcmDiscoveredProtectedVmDetails; - -public final class InMageRcmDiscoveredProtectedVmDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageRcmDiscoveredProtectedVmDetails model = BinaryData.fromString( - "{\"vCenterId\":\"l\",\"vCenterFqdn\":\"ewikfyaqandmym\",\"datastores\":[\"qjumovs\",\"bpbvzopaxmf\"],\"ipAddresses\":[\"mcwoxfaxd\",\"nqifb\",\"atroiaue\"],\"vmwareToolsStatus\":\"gmocpcjycboelrgt\",\"powerStatus\":\"fldsiuorin\",\"vmFqdn\":\"cedpksriwmmtmqrx\",\"osName\":\"qvvyczyay\",\"createdTimestamp\":\"2021-05-28T18:44:37Z\",\"updatedTimestamp\":\"2021-06-17T16:30:32Z\",\"isDeleted\":false,\"lastDiscoveryTimeInUtc\":\"2020-12-27T23:56:34Z\"}") - .toObject(InMageRcmDiscoveredProtectedVmDetails.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageRcmDiscoveredProtectedVmDetails model = new InMageRcmDiscoveredProtectedVmDetails(); - model = BinaryData.fromObject(model).toObject(InMageRcmDiscoveredProtectedVmDetails.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmDiskInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmDiskInputTests.java deleted file mode 100644 index 6dd07dba1636..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmDiskInputTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.DiskAccountType; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageRcmDiskInput; -import org.junit.jupiter.api.Assertions; - -public final class InMageRcmDiskInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageRcmDiskInput model = BinaryData.fromString( - "{\"diskId\":\"ahr\",\"logStorageAccountId\":\"gpx\",\"diskType\":\"Standard_LRS\",\"diskEncryptionSetId\":\"plnupoyryef\"}") - .toObject(InMageRcmDiskInput.class); - Assertions.assertEquals("ahr", model.diskId()); - Assertions.assertEquals("gpx", model.logStorageAccountId()); - Assertions.assertEquals(DiskAccountType.STANDARD_LRS, model.diskType()); - Assertions.assertEquals("plnupoyryef", model.diskEncryptionSetId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageRcmDiskInput model = new InMageRcmDiskInput().withDiskId("ahr") - .withLogStorageAccountId("gpx") - .withDiskType(DiskAccountType.STANDARD_LRS) - .withDiskEncryptionSetId("plnupoyryef"); - model = BinaryData.fromObject(model).toObject(InMageRcmDiskInput.class); - Assertions.assertEquals("ahr", model.diskId()); - Assertions.assertEquals("gpx", model.logStorageAccountId()); - Assertions.assertEquals(DiskAccountType.STANDARD_LRS, model.diskType()); - Assertions.assertEquals("plnupoyryef", model.diskEncryptionSetId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmDisksDefaultInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmDisksDefaultInputTests.java deleted file mode 100644 index a730cc5be3a8..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmDisksDefaultInputTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.DiskAccountType; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageRcmDisksDefaultInput; -import org.junit.jupiter.api.Assertions; - -public final class InMageRcmDisksDefaultInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageRcmDisksDefaultInput model = BinaryData.fromString( - "{\"logStorageAccountId\":\"mwovyztxlnomfpb\",\"diskType\":\"StandardSSD_LRS\",\"diskEncryptionSetId\":\"egvyieztkutnj\"}") - .toObject(InMageRcmDisksDefaultInput.class); - Assertions.assertEquals("mwovyztxlnomfpb", model.logStorageAccountId()); - Assertions.assertEquals(DiskAccountType.STANDARD_SSD_LRS, model.diskType()); - Assertions.assertEquals("egvyieztkutnj", model.diskEncryptionSetId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageRcmDisksDefaultInput model = new InMageRcmDisksDefaultInput().withLogStorageAccountId("mwovyztxlnomfpb") - .withDiskType(DiskAccountType.STANDARD_SSD_LRS) - .withDiskEncryptionSetId("egvyieztkutnj"); - model = BinaryData.fromObject(model).toObject(InMageRcmDisksDefaultInput.class); - Assertions.assertEquals("mwovyztxlnomfpb", model.logStorageAccountId()); - Assertions.assertEquals(DiskAccountType.STANDARD_SSD_LRS, model.diskType()); - Assertions.assertEquals("egvyieztkutnj", model.diskEncryptionSetId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmEnableProtectionInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmEnableProtectionInputTests.java deleted file mode 100644 index 62bd6327d93c..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmEnableProtectionInputTests.java +++ /dev/null @@ -1,107 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.DiskAccountType; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageRcmDiskInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageRcmDisksDefaultInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageRcmEnableProtectionInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.LicenseType; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class InMageRcmEnableProtectionInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageRcmEnableProtectionInput model = BinaryData.fromString( - "{\"instanceType\":\"InMageRcm\",\"fabricDiscoveryMachineId\":\"llukkreh\",\"disksToInclude\":[{\"diskId\":\"mjodu\",\"logStorageAccountId\":\"fvulxfaryr\",\"diskType\":\"Standard_LRS\",\"diskEncryptionSetId\":\"gdezvjqwahoy\"},{\"diskId\":\"yaxqvjweiwtczkd\",\"logStorageAccountId\":\"nvovbooqbmdqrxy\",\"diskType\":\"StandardSSD_LRS\",\"diskEncryptionSetId\":\"et\"},{\"diskId\":\"cflwtjdtlr\",\"logStorageAccountId\":\"e\",\"diskType\":\"Premium_LRS\",\"diskEncryptionSetId\":\"y\"}],\"disksDefault\":{\"logStorageAccountId\":\"uxdtzcq\",\"diskType\":\"Standard_LRS\",\"diskEncryptionSetId\":\"dudgcozzomeh\"},\"targetResourceGroupId\":\"lantolamlb\",\"targetNetworkId\":\"uxkqllczipvwdt\",\"testNetworkId\":\"kzdqiqdlratrkwxo\",\"targetSubnetName\":\"wxsuy\",\"testSubnetName\":\"nhrfgslgl\",\"targetVmName\":\"ry\",\"targetVmSize\":\"zihuioaeo\",\"licenseType\":\"NoLicenseType\",\"targetAvailabilitySetId\":\"tfeyvk\",\"targetAvailabilityZone\":\"gdd\",\"targetProximityPlacementGroupId\":\"hdccxb\",\"targetBootDiagnosticsStorageAccountId\":\"uqutkzwtjww\",\"runAsAccountId\":\"zytijcx\",\"processServerId\":\"nondegjdyd\",\"multiVmGroupName\":\"kkkbjuckcatuqbh\"}") - .toObject(InMageRcmEnableProtectionInput.class); - Assertions.assertEquals("llukkreh", model.fabricDiscoveryMachineId()); - Assertions.assertEquals("mjodu", model.disksToInclude().get(0).diskId()); - Assertions.assertEquals("fvulxfaryr", model.disksToInclude().get(0).logStorageAccountId()); - Assertions.assertEquals(DiskAccountType.STANDARD_LRS, model.disksToInclude().get(0).diskType()); - Assertions.assertEquals("gdezvjqwahoy", model.disksToInclude().get(0).diskEncryptionSetId()); - Assertions.assertEquals("uxdtzcq", model.disksDefault().logStorageAccountId()); - Assertions.assertEquals(DiskAccountType.STANDARD_LRS, model.disksDefault().diskType()); - Assertions.assertEquals("dudgcozzomeh", model.disksDefault().diskEncryptionSetId()); - Assertions.assertEquals("lantolamlb", model.targetResourceGroupId()); - Assertions.assertEquals("uxkqllczipvwdt", model.targetNetworkId()); - Assertions.assertEquals("kzdqiqdlratrkwxo", model.testNetworkId()); - Assertions.assertEquals("wxsuy", model.targetSubnetName()); - Assertions.assertEquals("nhrfgslgl", model.testSubnetName()); - Assertions.assertEquals("ry", model.targetVmName()); - Assertions.assertEquals("zihuioaeo", model.targetVmSize()); - Assertions.assertEquals(LicenseType.NO_LICENSE_TYPE, model.licenseType()); - Assertions.assertEquals("tfeyvk", model.targetAvailabilitySetId()); - Assertions.assertEquals("gdd", model.targetAvailabilityZone()); - Assertions.assertEquals("hdccxb", model.targetProximityPlacementGroupId()); - Assertions.assertEquals("uqutkzwtjww", model.targetBootDiagnosticsStorageAccountId()); - Assertions.assertEquals("zytijcx", model.runAsAccountId()); - Assertions.assertEquals("nondegjdyd", model.processServerId()); - Assertions.assertEquals("kkkbjuckcatuqbh", model.multiVmGroupName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageRcmEnableProtectionInput model - = new InMageRcmEnableProtectionInput().withFabricDiscoveryMachineId("llukkreh") - .withDisksToInclude(Arrays.asList( - new InMageRcmDiskInput().withDiskId("mjodu") - .withLogStorageAccountId("fvulxfaryr") - .withDiskType(DiskAccountType.STANDARD_LRS) - .withDiskEncryptionSetId("gdezvjqwahoy"), - new InMageRcmDiskInput().withDiskId("yaxqvjweiwtczkd") - .withLogStorageAccountId("nvovbooqbmdqrxy") - .withDiskType(DiskAccountType.STANDARD_SSD_LRS) - .withDiskEncryptionSetId("et"), - new InMageRcmDiskInput().withDiskId("cflwtjdtlr") - .withLogStorageAccountId("e") - .withDiskType(DiskAccountType.PREMIUM_LRS) - .withDiskEncryptionSetId("y"))) - .withDisksDefault(new InMageRcmDisksDefaultInput().withLogStorageAccountId("uxdtzcq") - .withDiskType(DiskAccountType.STANDARD_LRS) - .withDiskEncryptionSetId("dudgcozzomeh")) - .withTargetResourceGroupId("lantolamlb") - .withTargetNetworkId("uxkqllczipvwdt") - .withTestNetworkId("kzdqiqdlratrkwxo") - .withTargetSubnetName("wxsuy") - .withTestSubnetName("nhrfgslgl") - .withTargetVmName("ry") - .withTargetVmSize("zihuioaeo") - .withLicenseType(LicenseType.NO_LICENSE_TYPE) - .withTargetAvailabilitySetId("tfeyvk") - .withTargetAvailabilityZone("gdd") - .withTargetProximityPlacementGroupId("hdccxb") - .withTargetBootDiagnosticsStorageAccountId("uqutkzwtjww") - .withRunAsAccountId("zytijcx") - .withProcessServerId("nondegjdyd") - .withMultiVmGroupName("kkkbjuckcatuqbh"); - model = BinaryData.fromObject(model).toObject(InMageRcmEnableProtectionInput.class); - Assertions.assertEquals("llukkreh", model.fabricDiscoveryMachineId()); - Assertions.assertEquals("mjodu", model.disksToInclude().get(0).diskId()); - Assertions.assertEquals("fvulxfaryr", model.disksToInclude().get(0).logStorageAccountId()); - Assertions.assertEquals(DiskAccountType.STANDARD_LRS, model.disksToInclude().get(0).diskType()); - Assertions.assertEquals("gdezvjqwahoy", model.disksToInclude().get(0).diskEncryptionSetId()); - Assertions.assertEquals("uxdtzcq", model.disksDefault().logStorageAccountId()); - Assertions.assertEquals(DiskAccountType.STANDARD_LRS, model.disksDefault().diskType()); - Assertions.assertEquals("dudgcozzomeh", model.disksDefault().diskEncryptionSetId()); - Assertions.assertEquals("lantolamlb", model.targetResourceGroupId()); - Assertions.assertEquals("uxkqllczipvwdt", model.targetNetworkId()); - Assertions.assertEquals("kzdqiqdlratrkwxo", model.testNetworkId()); - Assertions.assertEquals("wxsuy", model.targetSubnetName()); - Assertions.assertEquals("nhrfgslgl", model.testSubnetName()); - Assertions.assertEquals("ry", model.targetVmName()); - Assertions.assertEquals("zihuioaeo", model.targetVmSize()); - Assertions.assertEquals(LicenseType.NO_LICENSE_TYPE, model.licenseType()); - Assertions.assertEquals("tfeyvk", model.targetAvailabilitySetId()); - Assertions.assertEquals("gdd", model.targetAvailabilityZone()); - Assertions.assertEquals("hdccxb", model.targetProximityPlacementGroupId()); - Assertions.assertEquals("uqutkzwtjww", model.targetBootDiagnosticsStorageAccountId()); - Assertions.assertEquals("zytijcx", model.runAsAccountId()); - Assertions.assertEquals("nondegjdyd", model.processServerId()); - Assertions.assertEquals("kkkbjuckcatuqbh", model.multiVmGroupName()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmEventDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmEventDetailsTests.java deleted file mode 100644 index 2b75c47e1e20..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmEventDetailsTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageRcmEventDetails; - -public final class InMageRcmEventDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageRcmEventDetails model = BinaryData.fromString( - "{\"instanceType\":\"InMageRcm\",\"protectedItemName\":\"wcnxtpzdlyseid\",\"vmName\":\"akatprytg\",\"latestAgentVersion\":\"zbqfdpfawrptvcsh\",\"jobId\":\"utzcttbqgdirda\",\"fabricName\":\"tzjgcfjfxtbwj\",\"applianceName\":\"rmuydgfttmdofg\",\"serverType\":\"agfuoftnxod\",\"componentDisplayName\":\"m\"}") - .toObject(InMageRcmEventDetails.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageRcmEventDetails model = new InMageRcmEventDetails(); - model = BinaryData.fromObject(model).toObject(InMageRcmEventDetails.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmFabricCreationInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmFabricCreationInputTests.java deleted file mode 100644 index 1d07dd8d9ec6..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmFabricCreationInputTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.IdentityProviderInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageRcmFabricCreationInput; -import org.junit.jupiter.api.Assertions; - -public final class InMageRcmFabricCreationInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageRcmFabricCreationInput model = BinaryData.fromString( - "{\"instanceType\":\"InMageRcm\",\"vmwareSiteId\":\"aj\",\"physicalSiteId\":\"iygmgs\",\"sourceAgentIdentity\":{\"tenantId\":\"vmdmzenlr\",\"applicationId\":\"tgfczljdncidtjva\",\"objectId\":\"yyznmrgcdogcvuc\",\"audience\":\"ytoxuwhttnzq\",\"aadAuthority\":\"aqm\"}}") - .toObject(InMageRcmFabricCreationInput.class); - Assertions.assertEquals("aj", model.vmwareSiteId()); - Assertions.assertEquals("iygmgs", model.physicalSiteId()); - Assertions.assertEquals("vmdmzenlr", model.sourceAgentIdentity().tenantId()); - Assertions.assertEquals("tgfczljdncidtjva", model.sourceAgentIdentity().applicationId()); - Assertions.assertEquals("yyznmrgcdogcvuc", model.sourceAgentIdentity().objectId()); - Assertions.assertEquals("ytoxuwhttnzq", model.sourceAgentIdentity().audience()); - Assertions.assertEquals("aqm", model.sourceAgentIdentity().aadAuthority()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageRcmFabricCreationInput model = new InMageRcmFabricCreationInput().withVmwareSiteId("aj") - .withPhysicalSiteId("iygmgs") - .withSourceAgentIdentity(new IdentityProviderInput().withTenantId("vmdmzenlr") - .withApplicationId("tgfczljdncidtjva") - .withObjectId("yyznmrgcdogcvuc") - .withAudience("ytoxuwhttnzq") - .withAadAuthority("aqm")); - model = BinaryData.fromObject(model).toObject(InMageRcmFabricCreationInput.class); - Assertions.assertEquals("aj", model.vmwareSiteId()); - Assertions.assertEquals("iygmgs", model.physicalSiteId()); - Assertions.assertEquals("vmdmzenlr", model.sourceAgentIdentity().tenantId()); - Assertions.assertEquals("tgfczljdncidtjva", model.sourceAgentIdentity().applicationId()); - Assertions.assertEquals("yyznmrgcdogcvuc", model.sourceAgentIdentity().objectId()); - Assertions.assertEquals("ytoxuwhttnzq", model.sourceAgentIdentity().audience()); - Assertions.assertEquals("aqm", model.sourceAgentIdentity().aadAuthority()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmFailbackDiscoveredProtectedVmDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmFailbackDiscoveredProtectedVmDetailsTests.java deleted file mode 100644 index 2a2fff902f03..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmFailbackDiscoveredProtectedVmDetailsTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageRcmFailbackDiscoveredProtectedVmDetails; - -public final class InMageRcmFailbackDiscoveredProtectedVmDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageRcmFailbackDiscoveredProtectedVmDetails model = BinaryData.fromString( - "{\"vCenterId\":\"zkdolrndwdbvxvza\",\"vCenterFqdn\":\"doyqx\",\"datastores\":[\"kft\",\"mcxqqxmyzklao\",\"n\",\"ohrvmz\"],\"ipAddresses\":[\"azad\",\"vznllaslkskhjqj\",\"vbaihxjt\",\"zgtai\"],\"vmwareToolsStatus\":\"b\",\"powerStatus\":\"roigbsfsgsaenwld\",\"vmFqdn\":\"hljqlxsp\",\"osName\":\"jc\",\"createdTimestamp\":\"2021-06-14T00:46:05Z\",\"updatedTimestamp\":\"2021-03-22T03:50:23Z\",\"isDeleted\":true,\"lastDiscoveryTimeInUtc\":\"2021-08-20T07:36Z\"}") - .toObject(InMageRcmFailbackDiscoveredProtectedVmDetails.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageRcmFailbackDiscoveredProtectedVmDetails model = new InMageRcmFailbackDiscoveredProtectedVmDetails(); - model = BinaryData.fromObject(model).toObject(InMageRcmFailbackDiscoveredProtectedVmDetails.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmFailbackEventDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmFailbackEventDetailsTests.java deleted file mode 100644 index d15e3bd89b7e..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmFailbackEventDetailsTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageRcmFailbackEventDetails; - -public final class InMageRcmFailbackEventDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageRcmFailbackEventDetails model = BinaryData.fromString( - "{\"instanceType\":\"InMageRcmFailback\",\"protectedItemName\":\"hsxrznmgsdaluyc\",\"vmName\":\"efrbhseuerbg\",\"applianceName\":\"ebjludc\",\"serverType\":\"tujraxdtpryjm\",\"componentDisplayName\":\"nsewouxl\"}") - .toObject(InMageRcmFailbackEventDetails.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageRcmFailbackEventDetails model = new InMageRcmFailbackEventDetails(); - model = BinaryData.fromObject(model).toObject(InMageRcmFailbackEventDetails.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmFailbackMobilityAgentDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmFailbackMobilityAgentDetailsTests.java deleted file mode 100644 index 46f3a0f37531..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmFailbackMobilityAgentDetailsTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageRcmFailbackMobilityAgentDetails; - -public final class InMageRcmFailbackMobilityAgentDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageRcmFailbackMobilityAgentDetails model = BinaryData.fromString( - "{\"version\":\"s\",\"latestVersion\":\"yljurkeposehqqyl\",\"driverVersion\":\"ctwjwdsdlzm\",\"latestUpgradableVersionWithoutReboot\":\"erxxxoteehkhowgo\",\"agentVersionExpiryDate\":\"2021-04-11T20:48:45Z\",\"driverVersionExpiryDate\":\"2021-03-02T05:47:55Z\",\"lastHeartbeatUtc\":\"2021-02-03T22:17:50Z\",\"reasonsBlockingUpgrade\":[\"AgentNoHeartbeat\"],\"isUpgradeable\":\"pnp\"}") - .toObject(InMageRcmFailbackMobilityAgentDetails.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageRcmFailbackMobilityAgentDetails model = new InMageRcmFailbackMobilityAgentDetails(); - model = BinaryData.fromObject(model).toObject(InMageRcmFailbackMobilityAgentDetails.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmFailbackNicDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmFailbackNicDetailsTests.java deleted file mode 100644 index 7ea85621f91b..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmFailbackNicDetailsTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageRcmFailbackNicDetails; - -public final class InMageRcmFailbackNicDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageRcmFailbackNicDetails model = BinaryData.fromString( - "{\"macAddress\":\"aqawbmpspfeylql\",\"networkName\":\"vvujex\",\"adapterType\":\"glxrkgjnm\",\"sourceIpAddress\":\"aslavxj\"}") - .toObject(InMageRcmFailbackNicDetails.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageRcmFailbackNicDetails model = new InMageRcmFailbackNicDetails(); - model = BinaryData.fromObject(model).toObject(InMageRcmFailbackNicDetails.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmFailbackPlannedFailoverProviderInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmFailbackPlannedFailoverProviderInputTests.java deleted file mode 100644 index 1114198d4bbc..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmFailbackPlannedFailoverProviderInputTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageRcmFailbackPlannedFailoverProviderInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageRcmFailbackRecoveryPointType; -import org.junit.jupiter.api.Assertions; - -public final class InMageRcmFailbackPlannedFailoverProviderInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageRcmFailbackPlannedFailoverProviderInput model = BinaryData - .fromString("{\"instanceType\":\"InMageRcmFailback\",\"recoveryPointType\":\"CrashConsistent\"}") - .toObject(InMageRcmFailbackPlannedFailoverProviderInput.class); - Assertions.assertEquals(InMageRcmFailbackRecoveryPointType.CRASH_CONSISTENT, model.recoveryPointType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageRcmFailbackPlannedFailoverProviderInput model = new InMageRcmFailbackPlannedFailoverProviderInput() - .withRecoveryPointType(InMageRcmFailbackRecoveryPointType.CRASH_CONSISTENT); - model = BinaryData.fromObject(model).toObject(InMageRcmFailbackPlannedFailoverProviderInput.class); - Assertions.assertEquals(InMageRcmFailbackRecoveryPointType.CRASH_CONSISTENT, model.recoveryPointType()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmFailbackPolicyCreationInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmFailbackPolicyCreationInputTests.java deleted file mode 100644 index d7cb82781a2b..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmFailbackPolicyCreationInputTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageRcmFailbackPolicyCreationInput; -import org.junit.jupiter.api.Assertions; - -public final class InMageRcmFailbackPolicyCreationInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageRcmFailbackPolicyCreationInput model = BinaryData.fromString( - "{\"instanceType\":\"InMageRcmFailback\",\"crashConsistentFrequencyInMinutes\":10286473,\"appConsistentFrequencyInMinutes\":875885958}") - .toObject(InMageRcmFailbackPolicyCreationInput.class); - Assertions.assertEquals(10286473, model.crashConsistentFrequencyInMinutes()); - Assertions.assertEquals(875885958, model.appConsistentFrequencyInMinutes()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageRcmFailbackPolicyCreationInput model - = new InMageRcmFailbackPolicyCreationInput().withCrashConsistentFrequencyInMinutes(10286473) - .withAppConsistentFrequencyInMinutes(875885958); - model = BinaryData.fromObject(model).toObject(InMageRcmFailbackPolicyCreationInput.class); - Assertions.assertEquals(10286473, model.crashConsistentFrequencyInMinutes()); - Assertions.assertEquals(875885958, model.appConsistentFrequencyInMinutes()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmFailbackPolicyDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmFailbackPolicyDetailsTests.java deleted file mode 100644 index f0d8a8e35b79..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmFailbackPolicyDetailsTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageRcmFailbackPolicyDetails; -import org.junit.jupiter.api.Assertions; - -public final class InMageRcmFailbackPolicyDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageRcmFailbackPolicyDetails model = BinaryData.fromString( - "{\"instanceType\":\"InMageRcmFailback\",\"appConsistentFrequencyInMinutes\":1741536205,\"crashConsistentFrequencyInMinutes\":516106077}") - .toObject(InMageRcmFailbackPolicyDetails.class); - Assertions.assertEquals(1741536205, model.appConsistentFrequencyInMinutes()); - Assertions.assertEquals(516106077, model.crashConsistentFrequencyInMinutes()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageRcmFailbackPolicyDetails model - = new InMageRcmFailbackPolicyDetails().withAppConsistentFrequencyInMinutes(1741536205) - .withCrashConsistentFrequencyInMinutes(516106077); - model = BinaryData.fromObject(model).toObject(InMageRcmFailbackPolicyDetails.class); - Assertions.assertEquals(1741536205, model.appConsistentFrequencyInMinutes()); - Assertions.assertEquals(516106077, model.crashConsistentFrequencyInMinutes()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmFailbackProtectedDiskDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmFailbackProtectedDiskDetailsTests.java deleted file mode 100644 index 04be6f2fa0d3..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmFailbackProtectedDiskDetailsTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageRcmFailbackProtectedDiskDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageRcmFailbackSyncDetails; - -public final class InMageRcmFailbackProtectedDiskDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageRcmFailbackProtectedDiskDetails model = BinaryData.fromString( - "{\"diskId\":\"lvs\",\"diskName\":\"ywjopac\",\"isOSDisk\":\"hydv\",\"capacityInBytes\":7196910522233474156,\"diskUuid\":\"gpmillxgjs\",\"dataPendingInLogDataStoreInMB\":70.24965275674056,\"dataPendingAtSourceAgentInMB\":88.82129123990158,\"isInitialReplicationComplete\":\"iobijeiydyeuynhb\",\"irDetails\":{\"progressHealth\":\"InProgress\",\"transferredBytes\":8991689761064995996,\"last15MinutesTransferredBytes\":870519523900353978,\"lastDataTransferTimeUtc\":\"opdweoft\",\"processedBytes\":6885598853699298526,\"startTime\":\"igsioctqkm\",\"lastRefreshTime\":\"a\",\"progressPercentage\":1045792223},\"resyncDetails\":{\"progressHealth\":\"NoProgress\",\"transferredBytes\":5944613768997801995,\"last15MinutesTransferredBytes\":8824443803915143462,\"lastDataTransferTimeUtc\":\"sstfjxtvlxx\",\"processedBytes\":5911202779481860995,\"startTime\":\"rr\",\"lastRefreshTime\":\"mxeezwyh\",\"progressPercentage\":1081801760},\"lastSyncTime\":\"2021-10-30T12:38:01Z\"}") - .toObject(InMageRcmFailbackProtectedDiskDetails.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageRcmFailbackProtectedDiskDetails model - = new InMageRcmFailbackProtectedDiskDetails().withIrDetails(new InMageRcmFailbackSyncDetails()) - .withResyncDetails(new InMageRcmFailbackSyncDetails()); - model = BinaryData.fromObject(model).toObject(InMageRcmFailbackProtectedDiskDetails.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmFailbackReplicationDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmFailbackReplicationDetailsTests.java deleted file mode 100644 index 6fe6801ac128..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmFailbackReplicationDetailsTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageRcmFailbackDiscoveredProtectedVmDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageRcmFailbackMobilityAgentDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageRcmFailbackNicDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageRcmFailbackProtectedDiskDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageRcmFailbackReplicationDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageRcmFailbackSyncDetails; -import java.util.Arrays; - -public final class InMageRcmFailbackReplicationDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageRcmFailbackReplicationDetails model = BinaryData.fromString( - "{\"instanceType\":\"InMageRcmFailback\",\"internalIdentifier\":\"kwuyck\",\"azureVirtualMachineId\":\"nensmuffi\",\"multiVmGroupName\":\"bctvbpzuj\",\"reprotectAgentId\":\"totdxposcslh\",\"reprotectAgentName\":\"usiecktybhjuxid\",\"osType\":\"xomi\",\"logStorageAccountId\":\"dxjxdu\",\"targetvCenterId\":\"wjwi\",\"targetDataStoreName\":\"qrslaate\",\"targetVmName\":\"wuj\",\"initialReplicationProgressPercentage\":1719572322,\"initialReplicationProcessedBytes\":2452628822919259817,\"initialReplicationTransferredBytes\":7089184561517940356,\"initialReplicationProgressHealth\":\"InProgress\",\"resyncProgressPercentage\":863933371,\"resyncProcessedBytes\":5368716982368064306,\"resyncTransferredBytes\":9053528371962850431,\"resyncProgressHealth\":\"NoProgress\",\"resyncRequired\":\"bkkteo\",\"resyncState\":\"None\",\"protectedDisks\":[{\"diskId\":\"korvvm\",\"diskName\":\"cof\",\"isOSDisk\":\"h\",\"capacityInBytes\":8046745281500152828,\"diskUuid\":\"snqliwkmzojfe\",\"dataPendingInLogDataStoreInMB\":62.18165218206391,\"dataPendingAtSourceAgentInMB\":10.8838970496698,\"isInitialReplicationComplete\":\"knazgbjbhrpgiqst\",\"irDetails\":{\"progressHealth\":\"NoProgress\",\"transferredBytes\":2601716801597782877,\"last15MinutesTransferredBytes\":6484962639003043577,\"lastDataTransferTimeUtc\":\"p\",\"processedBytes\":7215078064868025353,\"startTime\":\"f\",\"lastRefreshTime\":\"ksldttohqclnaih\",\"progressPercentage\":670450081},\"resyncDetails\":{\"progressHealth\":\"InProgress\",\"transferredBytes\":4232005255626679607,\"last15MinutesTransferredBytes\":8113305415938188854,\"lastDataTransferTimeUtc\":\"p\",\"processedBytes\":5677806131765604590,\"startTime\":\"oi\",\"lastRefreshTime\":\"trawrqkza\",\"progressPercentage\":505721663},\"lastSyncTime\":\"2021-11-01T13:53:11Z\"}],\"mobilityAgentDetails\":{\"version\":\"klwzlw\",\"latestVersion\":\"prnejzltkaszf\",\"driverVersion\":\"xscbduxapgrcqe\",\"latestUpgradableVersionWithoutReboot\":\"vrdjomln\",\"agentVersionExpiryDate\":\"2021-01-15T20:00:26Z\",\"driverVersionExpiryDate\":\"2021-01-31T05:26:55Z\",\"lastHeartbeatUtc\":\"2021-02-13T00:13:07Z\",\"reasonsBlockingUpgrade\":[\"RebootRequired\",\"RcmProxyNoHeartbeat\",\"InvalidAgentVersion\"],\"isUpgradeable\":\"esdfedsb\"},\"vmNics\":[{\"macAddress\":\"coinmphymcqi\",\"networkName\":\"ltvdhqnufbx\",\"adapterType\":\"iibntojo\",\"sourceIpAddress\":\"nybydhuihaouwud\"},{\"macAddress\":\"aorhjkehwvumo\",\"networkName\":\"ircamqprlo\",\"adapterType\":\"ugejcvjkjyczcmt\",\"sourceIpAddress\":\"elajdyol\"},{\"macAddress\":\"qy\",\"networkName\":\"fmzsizzhravr\",\"adapterType\":\"kjymgqbgcxh\",\"sourceIpAddress\":\"xgzxlermkmer\"},{\"macAddress\":\"skirhn\",\"networkName\":\"pkcbkfukdljq\",\"adapterType\":\"tsdyds\",\"sourceIpAddress\":\"pafyalo\"}],\"lastPlannedFailoverStartTime\":\"2021-03-06T00:52:24Z\",\"lastPlannedFailoverStatus\":\"Succeeded\",\"discoveredVmDetails\":{\"vCenterId\":\"nyufpqzstif\",\"vCenterFqdn\":\"fyjfd\",\"datastores\":[\"yvndjokgwesym\",\"qh\",\"qpfzlpejtznxlue\"],\"ipAddresses\":[\"q\",\"bgsimwejlwbkbp\",\"zobdwbcp\",\"aswkuhydtnaczkf\"],\"vmwareToolsStatus\":\"atgawphnsk\",\"powerStatus\":\"dwgtqcumecsaa\",\"vmFqdn\":\"oqbd\",\"osName\":\"ycsbskowkrbhzhr\",\"createdTimestamp\":\"2021-05-08T23:12:06Z\",\"updatedTimestamp\":\"2021-03-04T08:22:41Z\",\"isDeleted\":true,\"lastDiscoveryTimeInUtc\":\"2020-12-21T04:50:26Z\"},\"lastUsedPolicyId\":\"asfgqgucyhfaimqv\",\"lastUsedPolicyFriendlyName\":\"uozkgyf\",\"isAgentRegistrationSuccessfulAfterFailover\":true}") - .toObject(InMageRcmFailbackReplicationDetails.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageRcmFailbackReplicationDetails model = new InMageRcmFailbackReplicationDetails() - .withProtectedDisks(Arrays - .asList(new InMageRcmFailbackProtectedDiskDetails().withIrDetails(new InMageRcmFailbackSyncDetails()) - .withResyncDetails(new InMageRcmFailbackSyncDetails()))) - .withMobilityAgentDetails(new InMageRcmFailbackMobilityAgentDetails()) - .withVmNics(Arrays.asList(new InMageRcmFailbackNicDetails(), new InMageRcmFailbackNicDetails(), - new InMageRcmFailbackNicDetails(), new InMageRcmFailbackNicDetails())) - .withDiscoveredVmDetails(new InMageRcmFailbackDiscoveredProtectedVmDetails()); - model = BinaryData.fromObject(model).toObject(InMageRcmFailbackReplicationDetails.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmFailbackReprotectInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmFailbackReprotectInputTests.java deleted file mode 100644 index a0ca62dba8ea..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmFailbackReprotectInputTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageRcmFailbackReprotectInput; -import org.junit.jupiter.api.Assertions; - -public final class InMageRcmFailbackReprotectInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageRcmFailbackReprotectInput model = BinaryData.fromString( - "{\"instanceType\":\"InMageRcmFailback\",\"processServerId\":\"e\",\"runAsAccountId\":\"fm\",\"policyId\":\"mskkixvlzjxplhpe\"}") - .toObject(InMageRcmFailbackReprotectInput.class); - Assertions.assertEquals("e", model.processServerId()); - Assertions.assertEquals("fm", model.runAsAccountId()); - Assertions.assertEquals("mskkixvlzjxplhpe", model.policyId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageRcmFailbackReprotectInput model = new InMageRcmFailbackReprotectInput().withProcessServerId("e") - .withRunAsAccountId("fm") - .withPolicyId("mskkixvlzjxplhpe"); - model = BinaryData.fromObject(model).toObject(InMageRcmFailbackReprotectInput.class); - Assertions.assertEquals("e", model.processServerId()); - Assertions.assertEquals("fm", model.runAsAccountId()); - Assertions.assertEquals("mskkixvlzjxplhpe", model.policyId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmFailbackSyncDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmFailbackSyncDetailsTests.java deleted file mode 100644 index a8e1ba6366cd..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmFailbackSyncDetailsTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageRcmFailbackSyncDetails; - -public final class InMageRcmFailbackSyncDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageRcmFailbackSyncDetails model = BinaryData.fromString( - "{\"progressHealth\":\"SlowProgress\",\"transferredBytes\":1904677758535173364,\"last15MinutesTransferredBytes\":8784333877422486679,\"lastDataTransferTimeUtc\":\"hc\",\"processedBytes\":2105673643027071231,\"startTime\":\"dkgd\",\"lastRefreshTime\":\"szwcan\",\"progressPercentage\":830454539}") - .toObject(InMageRcmFailbackSyncDetails.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageRcmFailbackSyncDetails model = new InMageRcmFailbackSyncDetails(); - model = BinaryData.fromObject(model).toObject(InMageRcmFailbackSyncDetails.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmMobilityAgentDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmMobilityAgentDetailsTests.java deleted file mode 100644 index ce8c95964177..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmMobilityAgentDetailsTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageRcmMobilityAgentDetails; - -public final class InMageRcmMobilityAgentDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageRcmMobilityAgentDetails model = BinaryData.fromString( - "{\"version\":\"ielbqrv\",\"latestVersion\":\"qvknmpecqxgiq\",\"latestAgentReleaseDate\":\"ifubnsnstlpwqp\",\"driverVersion\":\"xjkhtupsv\",\"latestUpgradableVersionWithoutReboot\":\"uweuiy\",\"agentVersionExpiryDate\":\"2021-02-16T23:45:49Z\",\"driverVersionExpiryDate\":\"2021-01-05T18:40:56Z\",\"lastHeartbeatUtc\":\"2021-09-02T16:14:15Z\",\"reasonsBlockingUpgrade\":[\"DistroIsNotReported\"],\"isUpgradeable\":\"evyllznfhkqyt\"}") - .toObject(InMageRcmMobilityAgentDetails.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageRcmMobilityAgentDetails model = new InMageRcmMobilityAgentDetails(); - model = BinaryData.fromObject(model).toObject(InMageRcmMobilityAgentDetails.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmNicDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmNicDetailsTests.java deleted file mode 100644 index 8cd2c04a3ef5..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmNicDetailsTests.java +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.EthernetAddressType; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageRcmNicDetails; -import org.junit.jupiter.api.Assertions; - -public final class InMageRcmNicDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageRcmNicDetails model = BinaryData.fromString( - "{\"nicId\":\"tadopgfzdg\",\"isPrimaryNic\":\"c\",\"isSelectedForFailover\":\"rsvloy\",\"sourceIPAddress\":\"igqkzjuqwqa\",\"sourceIPAddressType\":\"Dynamic\",\"sourceNetworkId\":\"x\",\"sourceSubnetName\":\"xhyoip\",\"targetIPAddress\":\"dbgsosc\",\"targetIPAddressType\":\"Static\",\"targetSubnetName\":\"zfvbennmfkbpj\",\"testSubnetName\":\"tekwwnthropm\",\"testIPAddress\":\"d\",\"testIPAddressType\":\"Dynamic\"}") - .toObject(InMageRcmNicDetails.class); - Assertions.assertEquals("c", model.isPrimaryNic()); - Assertions.assertEquals("rsvloy", model.isSelectedForFailover()); - Assertions.assertEquals("dbgsosc", model.targetIpAddress()); - Assertions.assertEquals(EthernetAddressType.STATIC, model.targetIpAddressType()); - Assertions.assertEquals("zfvbennmfkbpj", model.targetSubnetName()); - Assertions.assertEquals("tekwwnthropm", model.testSubnetName()); - Assertions.assertEquals("d", model.testIpAddress()); - Assertions.assertEquals(EthernetAddressType.DYNAMIC, model.testIpAddressType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageRcmNicDetails model = new InMageRcmNicDetails().withIsPrimaryNic("c") - .withIsSelectedForFailover("rsvloy") - .withTargetIpAddress("dbgsosc") - .withTargetIpAddressType(EthernetAddressType.STATIC) - .withTargetSubnetName("zfvbennmfkbpj") - .withTestSubnetName("tekwwnthropm") - .withTestIpAddress("d") - .withTestIpAddressType(EthernetAddressType.DYNAMIC); - model = BinaryData.fromObject(model).toObject(InMageRcmNicDetails.class); - Assertions.assertEquals("c", model.isPrimaryNic()); - Assertions.assertEquals("rsvloy", model.isSelectedForFailover()); - Assertions.assertEquals("dbgsosc", model.targetIpAddress()); - Assertions.assertEquals(EthernetAddressType.STATIC, model.targetIpAddressType()); - Assertions.assertEquals("zfvbennmfkbpj", model.targetSubnetName()); - Assertions.assertEquals("tekwwnthropm", model.testSubnetName()); - Assertions.assertEquals("d", model.testIpAddress()); - Assertions.assertEquals(EthernetAddressType.DYNAMIC, model.testIpAddressType()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmNicInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmNicInputTests.java deleted file mode 100644 index 575c88235a41..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmNicInputTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageRcmNicInput; -import org.junit.jupiter.api.Assertions; - -public final class InMageRcmNicInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageRcmNicInput model = BinaryData.fromString( - "{\"nicId\":\"urz\",\"isPrimaryNic\":\"vktjhffecqkoq\",\"isSelectedForFailover\":\"uergaghpuzxkpye\",\"targetSubnetName\":\"fdyldhgyed\",\"targetStaticIPAddress\":\"zqiyuqhtder\",\"testSubnetName\":\"n\",\"testStaticIPAddress\":\"a\"}") - .toObject(InMageRcmNicInput.class); - Assertions.assertEquals("urz", model.nicId()); - Assertions.assertEquals("vktjhffecqkoq", model.isPrimaryNic()); - Assertions.assertEquals("uergaghpuzxkpye", model.isSelectedForFailover()); - Assertions.assertEquals("fdyldhgyed", model.targetSubnetName()); - Assertions.assertEquals("zqiyuqhtder", model.targetStaticIpAddress()); - Assertions.assertEquals("n", model.testSubnetName()); - Assertions.assertEquals("a", model.testStaticIpAddress()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageRcmNicInput model = new InMageRcmNicInput().withNicId("urz") - .withIsPrimaryNic("vktjhffecqkoq") - .withIsSelectedForFailover("uergaghpuzxkpye") - .withTargetSubnetName("fdyldhgyed") - .withTargetStaticIpAddress("zqiyuqhtder") - .withTestSubnetName("n") - .withTestStaticIpAddress("a"); - model = BinaryData.fromObject(model).toObject(InMageRcmNicInput.class); - Assertions.assertEquals("urz", model.nicId()); - Assertions.assertEquals("vktjhffecqkoq", model.isPrimaryNic()); - Assertions.assertEquals("uergaghpuzxkpye", model.isSelectedForFailover()); - Assertions.assertEquals("fdyldhgyed", model.targetSubnetName()); - Assertions.assertEquals("zqiyuqhtder", model.targetStaticIpAddress()); - Assertions.assertEquals("n", model.testSubnetName()); - Assertions.assertEquals("a", model.testStaticIpAddress()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmPolicyCreationInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmPolicyCreationInputTests.java deleted file mode 100644 index 1620746f46ee..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmPolicyCreationInputTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageRcmPolicyCreationInput; -import org.junit.jupiter.api.Assertions; - -public final class InMageRcmPolicyCreationInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageRcmPolicyCreationInput model = BinaryData.fromString( - "{\"instanceType\":\"InMageRcm\",\"recoveryPointHistoryInMinutes\":1480236782,\"crashConsistentFrequencyInMinutes\":1722632251,\"appConsistentFrequencyInMinutes\":2131568654,\"enableMultiVmSync\":\"yxedznmx\"}") - .toObject(InMageRcmPolicyCreationInput.class); - Assertions.assertEquals(1480236782, model.recoveryPointHistoryInMinutes()); - Assertions.assertEquals(1722632251, model.crashConsistentFrequencyInMinutes()); - Assertions.assertEquals(2131568654, model.appConsistentFrequencyInMinutes()); - Assertions.assertEquals("yxedznmx", model.enableMultiVmSync()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageRcmPolicyCreationInput model - = new InMageRcmPolicyCreationInput().withRecoveryPointHistoryInMinutes(1480236782) - .withCrashConsistentFrequencyInMinutes(1722632251) - .withAppConsistentFrequencyInMinutes(2131568654) - .withEnableMultiVmSync("yxedznmx"); - model = BinaryData.fromObject(model).toObject(InMageRcmPolicyCreationInput.class); - Assertions.assertEquals(1480236782, model.recoveryPointHistoryInMinutes()); - Assertions.assertEquals(1722632251, model.crashConsistentFrequencyInMinutes()); - Assertions.assertEquals(2131568654, model.appConsistentFrequencyInMinutes()); - Assertions.assertEquals("yxedznmx", model.enableMultiVmSync()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmPolicyDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmPolicyDetailsTests.java deleted file mode 100644 index 6651adce0567..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmPolicyDetailsTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageRcmPolicyDetails; -import org.junit.jupiter.api.Assertions; - -public final class InMageRcmPolicyDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageRcmPolicyDetails model = BinaryData.fromString( - "{\"instanceType\":\"InMageRcm\",\"recoveryPointHistoryInMinutes\":1469596791,\"appConsistentFrequencyInMinutes\":1577824897,\"crashConsistentFrequencyInMinutes\":2133269081,\"enableMultiVmSync\":\"vmyifopxf\"}") - .toObject(InMageRcmPolicyDetails.class); - Assertions.assertEquals(1469596791, model.recoveryPointHistoryInMinutes()); - Assertions.assertEquals(1577824897, model.appConsistentFrequencyInMinutes()); - Assertions.assertEquals(2133269081, model.crashConsistentFrequencyInMinutes()); - Assertions.assertEquals("vmyifopxf", model.enableMultiVmSync()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageRcmPolicyDetails model = new InMageRcmPolicyDetails().withRecoveryPointHistoryInMinutes(1469596791) - .withAppConsistentFrequencyInMinutes(1577824897) - .withCrashConsistentFrequencyInMinutes(2133269081) - .withEnableMultiVmSync("vmyifopxf"); - model = BinaryData.fromObject(model).toObject(InMageRcmPolicyDetails.class); - Assertions.assertEquals(1469596791, model.recoveryPointHistoryInMinutes()); - Assertions.assertEquals(1577824897, model.appConsistentFrequencyInMinutes()); - Assertions.assertEquals(2133269081, model.crashConsistentFrequencyInMinutes()); - Assertions.assertEquals("vmyifopxf", model.enableMultiVmSync()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmProtectedDiskDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmProtectedDiskDetailsTests.java deleted file mode 100644 index 53391cef89d7..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmProtectedDiskDetailsTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.DiskAccountType; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageRcmProtectedDiskDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageRcmSyncDetails; -import org.junit.jupiter.api.Assertions; - -public final class InMageRcmProtectedDiskDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageRcmProtectedDiskDetails model = BinaryData.fromString( - "{\"diskId\":\"tpdyzoutxfptof\",\"diskName\":\"nuywe\",\"isOSDisk\":\"gvad\",\"capacityInBytes\":9185978745071534533,\"logStorageAccountId\":\"vkgjpytpmpvd\",\"diskEncryptionSetId\":\"gehlufbortbnu\",\"seedManagedDiskId\":\"faxzsvbxxyjissk\",\"seedBlobUri\":\"qocl\",\"targetManagedDiskId\":\"ioewyhxes\",\"diskType\":\"StandardSSD_LRS\",\"dataPendingInLogDataStoreInMB\":56.49629137496913,\"dataPendingAtSourceAgentInMB\":18.951668101900808,\"isInitialReplicationComplete\":\"qfbdxmdses\",\"irDetails\":{\"progressHealth\":\"NoProgress\",\"transferredBytes\":3596991969048751162,\"last15MinutesTransferredBytes\":4059127042163303518,\"lastDataTransferTimeUtc\":\"lpdib\",\"processedBytes\":1471676215734551835,\"startTime\":\"eatnejrnminzq\",\"lastRefreshTime\":\"gtkihonikzsr\",\"progressPercentage\":785240806},\"resyncDetails\":{\"progressHealth\":\"Queued\",\"transferredBytes\":778176165721909518,\"last15MinutesTransferredBytes\":3766908090253531975,\"lastDataTransferTimeUtc\":\"ogkensckhbmcar\",\"processedBytes\":5626892338199425573,\"startTime\":\"xkwyk\",\"lastRefreshTime\":\"dndx\",\"progressPercentage\":470451433}}") - .toObject(InMageRcmProtectedDiskDetails.class); - Assertions.assertEquals(DiskAccountType.STANDARD_SSD_LRS, model.diskType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageRcmProtectedDiskDetails model - = new InMageRcmProtectedDiskDetails().withDiskType(DiskAccountType.STANDARD_SSD_LRS) - .withIrDetails(new InMageRcmSyncDetails()) - .withResyncDetails(new InMageRcmSyncDetails()); - model = BinaryData.fromObject(model).toObject(InMageRcmProtectedDiskDetails.class); - Assertions.assertEquals(DiskAccountType.STANDARD_SSD_LRS, model.diskType()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmProtectionContainerMappingDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmProtectionContainerMappingDetailsTests.java deleted file mode 100644 index f1dcffe882d8..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmProtectionContainerMappingDetailsTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageRcmProtectionContainerMappingDetails; - -public final class InMageRcmProtectionContainerMappingDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageRcmProtectionContainerMappingDetails model - = BinaryData.fromString("{\"instanceType\":\"InMageRcm\",\"enableAgentAutoUpgrade\":\"bgacnr\"}") - .toObject(InMageRcmProtectionContainerMappingDetails.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageRcmProtectionContainerMappingDetails model = new InMageRcmProtectionContainerMappingDetails(); - model = BinaryData.fromObject(model).toObject(InMageRcmProtectionContainerMappingDetails.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmRecoveryPointDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmRecoveryPointDetailsTests.java deleted file mode 100644 index 3d61c8898469..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmRecoveryPointDetailsTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageRcmRecoveryPointDetails; - -public final class InMageRcmRecoveryPointDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageRcmRecoveryPointDetails model - = BinaryData.fromString("{\"instanceType\":\"InMageRcm\",\"isMultiVmSyncPoint\":\"dtncmsps\"}") - .toObject(InMageRcmRecoveryPointDetails.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageRcmRecoveryPointDetails model = new InMageRcmRecoveryPointDetails(); - model = BinaryData.fromObject(model).toObject(InMageRcmRecoveryPointDetails.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmReprotectInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmReprotectInputTests.java deleted file mode 100644 index e57d09dcf8ed..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmReprotectInputTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageRcmReprotectInput; -import org.junit.jupiter.api.Assertions; - -public final class InMageRcmReprotectInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageRcmReprotectInput model = BinaryData.fromString( - "{\"instanceType\":\"InMageRcm\",\"reprotectAgentId\":\"cwwtzqzclo\",\"datastoreName\":\"hy\",\"logStorageAccountId\":\"pgidhzgyresgzsdt\",\"policyId\":\"byorjplb\"}") - .toObject(InMageRcmReprotectInput.class); - Assertions.assertEquals("cwwtzqzclo", model.reprotectAgentId()); - Assertions.assertEquals("hy", model.datastoreName()); - Assertions.assertEquals("pgidhzgyresgzsdt", model.logStorageAccountId()); - Assertions.assertEquals("byorjplb", model.policyId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageRcmReprotectInput model = new InMageRcmReprotectInput().withReprotectAgentId("cwwtzqzclo") - .withDatastoreName("hy") - .withLogStorageAccountId("pgidhzgyresgzsdt") - .withPolicyId("byorjplb"); - model = BinaryData.fromObject(model).toObject(InMageRcmReprotectInput.class); - Assertions.assertEquals("cwwtzqzclo", model.reprotectAgentId()); - Assertions.assertEquals("hy", model.datastoreName()); - Assertions.assertEquals("pgidhzgyresgzsdt", model.logStorageAccountId()); - Assertions.assertEquals("byorjplb", model.policyId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmSyncDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmSyncDetailsTests.java deleted file mode 100644 index ea16c18304e9..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmSyncDetailsTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageRcmSyncDetails; - -public final class InMageRcmSyncDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageRcmSyncDetails model = BinaryData.fromString( - "{\"progressHealth\":\"SlowProgress\",\"transferredBytes\":8514603100054710213,\"last15MinutesTransferredBytes\":468712523679187650,\"lastDataTransferTimeUtc\":\"t\",\"processedBytes\":7769561351472935025,\"startTime\":\"scdx\",\"lastRefreshTime\":\"rnjr\",\"progressPercentage\":1625515673}") - .toObject(InMageRcmSyncDetails.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageRcmSyncDetails model = new InMageRcmSyncDetails(); - model = BinaryData.fromObject(model).toObject(InMageRcmSyncDetails.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmTestFailoverInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmTestFailoverInputTests.java deleted file mode 100644 index 5122b9674601..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmTestFailoverInputTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageRcmTestFailoverInput; -import org.junit.jupiter.api.Assertions; - -public final class InMageRcmTestFailoverInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageRcmTestFailoverInput model = BinaryData - .fromString("{\"instanceType\":\"InMageRcm\",\"networkId\":\"ychakvy\",\"recoveryPointId\":\"bqvum\"}") - .toObject(InMageRcmTestFailoverInput.class); - Assertions.assertEquals("ychakvy", model.networkId()); - Assertions.assertEquals("bqvum", model.recoveryPointId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageRcmTestFailoverInput model - = new InMageRcmTestFailoverInput().withNetworkId("ychakvy").withRecoveryPointId("bqvum"); - model = BinaryData.fromObject(model).toObject(InMageRcmTestFailoverInput.class); - Assertions.assertEquals("ychakvy", model.networkId()); - Assertions.assertEquals("bqvum", model.recoveryPointId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmUnplannedFailoverInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmUnplannedFailoverInputTests.java deleted file mode 100644 index 175b0f3ab435..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmUnplannedFailoverInputTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageRcmUnplannedFailoverInput; -import org.junit.jupiter.api.Assertions; - -public final class InMageRcmUnplannedFailoverInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageRcmUnplannedFailoverInput model = BinaryData - .fromString( - "{\"instanceType\":\"InMageRcm\",\"performShutdown\":\"xqjsiuepm\",\"recoveryPointId\":\"fnzlpqmp\"}") - .toObject(InMageRcmUnplannedFailoverInput.class); - Assertions.assertEquals("xqjsiuepm", model.performShutdown()); - Assertions.assertEquals("fnzlpqmp", model.recoveryPointId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageRcmUnplannedFailoverInput model - = new InMageRcmUnplannedFailoverInput().withPerformShutdown("xqjsiuepm").withRecoveryPointId("fnzlpqmp"); - model = BinaryData.fromObject(model).toObject(InMageRcmUnplannedFailoverInput.class); - Assertions.assertEquals("xqjsiuepm", model.performShutdown()); - Assertions.assertEquals("fnzlpqmp", model.recoveryPointId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmUpdateContainerMappingInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmUpdateContainerMappingInputTests.java deleted file mode 100644 index 5ee9e2bf2274..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmUpdateContainerMappingInputTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageRcmUpdateContainerMappingInput; -import org.junit.jupiter.api.Assertions; - -public final class InMageRcmUpdateContainerMappingInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageRcmUpdateContainerMappingInput model - = BinaryData.fromString("{\"instanceType\":\"InMageRcm\",\"enableAgentAutoUpgrade\":\"ulbl\"}") - .toObject(InMageRcmUpdateContainerMappingInput.class); - Assertions.assertEquals("ulbl", model.enableAgentAutoUpgrade()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageRcmUpdateContainerMappingInput model - = new InMageRcmUpdateContainerMappingInput().withEnableAgentAutoUpgrade("ulbl"); - model = BinaryData.fromObject(model).toObject(InMageRcmUpdateContainerMappingInput.class); - Assertions.assertEquals("ulbl", model.enableAgentAutoUpgrade()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmUpdateReplicationProtectedItemInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmUpdateReplicationProtectedItemInputTests.java deleted file mode 100644 index 2fc9a912640f..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageRcmUpdateReplicationProtectedItemInputTests.java +++ /dev/null @@ -1,86 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageRcmNicInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageRcmUpdateReplicationProtectedItemInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.LicenseType; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class InMageRcmUpdateReplicationProtectedItemInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageRcmUpdateReplicationProtectedItemInput model = BinaryData.fromString( - "{\"instanceType\":\"InMageRcm\",\"targetVmName\":\"tuxy\",\"targetVmSize\":\"hfcaeo\",\"targetResourceGroupId\":\"fqd\",\"targetAvailabilitySetId\":\"jflobhahqmomf\",\"targetAvailabilityZone\":\"o\",\"targetProximityPlacementGroupId\":\"fr\",\"targetBootDiagnosticsStorageAccountId\":\"gbmxldjmz\",\"targetNetworkId\":\"bjesylslur\",\"testNetworkId\":\"fygpnyhgd\",\"vmNics\":[{\"nicId\":\"sc\",\"isPrimaryNic\":\"gqyvouprsytqzss\",\"isSelectedForFailover\":\"mgw\",\"targetSubnetName\":\"ivrxpfduiol\",\"targetStaticIPAddress\":\"yqvpbfjpo\",\"testSubnetName\":\"ucfzluczdquu\",\"testStaticIPAddress\":\"ormvh\"},{\"nicId\":\"zielbprnq\",\"isPrimaryNic\":\"jywzcqyg\",\"isSelectedForFailover\":\"nwsvhbngqiwye\",\"targetSubnetName\":\"ob\",\"targetStaticIPAddress\":\"rpnrehkunsbfjh\",\"testSubnetName\":\"w\",\"testStaticIPAddress\":\"kvegeattbzkgtzq\"}],\"licenseType\":\"NoLicenseType\"}") - .toObject(InMageRcmUpdateReplicationProtectedItemInput.class); - Assertions.assertEquals("tuxy", model.targetVmName()); - Assertions.assertEquals("hfcaeo", model.targetVmSize()); - Assertions.assertEquals("fqd", model.targetResourceGroupId()); - Assertions.assertEquals("jflobhahqmomf", model.targetAvailabilitySetId()); - Assertions.assertEquals("o", model.targetAvailabilityZone()); - Assertions.assertEquals("fr", model.targetProximityPlacementGroupId()); - Assertions.assertEquals("gbmxldjmz", model.targetBootDiagnosticsStorageAccountId()); - Assertions.assertEquals("bjesylslur", model.targetNetworkId()); - Assertions.assertEquals("fygpnyhgd", model.testNetworkId()); - Assertions.assertEquals("sc", model.vmNics().get(0).nicId()); - Assertions.assertEquals("gqyvouprsytqzss", model.vmNics().get(0).isPrimaryNic()); - Assertions.assertEquals("mgw", model.vmNics().get(0).isSelectedForFailover()); - Assertions.assertEquals("ivrxpfduiol", model.vmNics().get(0).targetSubnetName()); - Assertions.assertEquals("yqvpbfjpo", model.vmNics().get(0).targetStaticIpAddress()); - Assertions.assertEquals("ucfzluczdquu", model.vmNics().get(0).testSubnetName()); - Assertions.assertEquals("ormvh", model.vmNics().get(0).testStaticIpAddress()); - Assertions.assertEquals(LicenseType.NO_LICENSE_TYPE, model.licenseType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageRcmUpdateReplicationProtectedItemInput model - = new InMageRcmUpdateReplicationProtectedItemInput().withTargetVmName("tuxy") - .withTargetVmSize("hfcaeo") - .withTargetResourceGroupId("fqd") - .withTargetAvailabilitySetId("jflobhahqmomf") - .withTargetAvailabilityZone("o") - .withTargetProximityPlacementGroupId("fr") - .withTargetBootDiagnosticsStorageAccountId("gbmxldjmz") - .withTargetNetworkId("bjesylslur") - .withTestNetworkId("fygpnyhgd") - .withVmNics(Arrays.asList( - new InMageRcmNicInput().withNicId("sc") - .withIsPrimaryNic("gqyvouprsytqzss") - .withIsSelectedForFailover("mgw") - .withTargetSubnetName("ivrxpfduiol") - .withTargetStaticIpAddress("yqvpbfjpo") - .withTestSubnetName("ucfzluczdquu") - .withTestStaticIpAddress("ormvh"), - new InMageRcmNicInput().withNicId("zielbprnq") - .withIsPrimaryNic("jywzcqyg") - .withIsSelectedForFailover("nwsvhbngqiwye") - .withTargetSubnetName("ob") - .withTargetStaticIpAddress("rpnrehkunsbfjh") - .withTestSubnetName("w") - .withTestStaticIpAddress("kvegeattbzkgtzq"))) - .withLicenseType(LicenseType.NO_LICENSE_TYPE); - model = BinaryData.fromObject(model).toObject(InMageRcmUpdateReplicationProtectedItemInput.class); - Assertions.assertEquals("tuxy", model.targetVmName()); - Assertions.assertEquals("hfcaeo", model.targetVmSize()); - Assertions.assertEquals("fqd", model.targetResourceGroupId()); - Assertions.assertEquals("jflobhahqmomf", model.targetAvailabilitySetId()); - Assertions.assertEquals("o", model.targetAvailabilityZone()); - Assertions.assertEquals("fr", model.targetProximityPlacementGroupId()); - Assertions.assertEquals("gbmxldjmz", model.targetBootDiagnosticsStorageAccountId()); - Assertions.assertEquals("bjesylslur", model.targetNetworkId()); - Assertions.assertEquals("fygpnyhgd", model.testNetworkId()); - Assertions.assertEquals("sc", model.vmNics().get(0).nicId()); - Assertions.assertEquals("gqyvouprsytqzss", model.vmNics().get(0).isPrimaryNic()); - Assertions.assertEquals("mgw", model.vmNics().get(0).isSelectedForFailover()); - Assertions.assertEquals("ivrxpfduiol", model.vmNics().get(0).targetSubnetName()); - Assertions.assertEquals("yqvpbfjpo", model.vmNics().get(0).targetStaticIpAddress()); - Assertions.assertEquals("ucfzluczdquu", model.vmNics().get(0).testSubnetName()); - Assertions.assertEquals("ormvh", model.vmNics().get(0).testStaticIpAddress()); - Assertions.assertEquals(LicenseType.NO_LICENSE_TYPE, model.licenseType()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageReprotectInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageReprotectInputTests.java deleted file mode 100644 index fee198eaac1f..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageReprotectInputTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageDiskExclusionInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageDiskSignatureExclusionOptions; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageReprotectInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageVolumeExclusionOptions; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class InMageReprotectInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageReprotectInput model = BinaryData.fromString( - "{\"instanceType\":\"InMage\",\"masterTargetId\":\"ujjgnfgrzxbarc\",\"processServerId\":\"paefzqsy\",\"retentionDrive\":\"jwenjcytesmf\",\"runAsAccountId\":\"r\",\"datastoreName\":\"odqhuauzmzivrt\",\"diskExclusionInput\":{\"volumeOptions\":[{\"volumeLabel\":\"ezvhj\",\"onlyExcludeIfSingleVolume\":\"xdyyrud\"},{\"volumeLabel\":\"hswtvdkxbqssgfe\",\"onlyExcludeIfSingleVolume\":\"fdxbvwfqjchiv\"},{\"volumeLabel\":\"ija\",\"onlyExcludeIfSingleVolume\":\"ndmuvardlmz\"}],\"diskSignatureOptions\":[{\"diskSignature\":\"r\"}]},\"profileId\":\"muhcuhtuzl\",\"disksToInclude\":[\"yo\",\"garp\",\"ctwrapcz\",\"ojqyvzes\"]}") - .toObject(InMageReprotectInput.class); - Assertions.assertEquals("ujjgnfgrzxbarc", model.masterTargetId()); - Assertions.assertEquals("paefzqsy", model.processServerId()); - Assertions.assertEquals("jwenjcytesmf", model.retentionDrive()); - Assertions.assertEquals("r", model.runAsAccountId()); - Assertions.assertEquals("odqhuauzmzivrt", model.datastoreName()); - Assertions.assertEquals("ezvhj", model.diskExclusionInput().volumeOptions().get(0).volumeLabel()); - Assertions.assertEquals("xdyyrud", - model.diskExclusionInput().volumeOptions().get(0).onlyExcludeIfSingleVolume()); - Assertions.assertEquals("r", model.diskExclusionInput().diskSignatureOptions().get(0).diskSignature()); - Assertions.assertEquals("muhcuhtuzl", model.profileId()); - Assertions.assertEquals("yo", model.disksToInclude().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageReprotectInput model = new InMageReprotectInput().withMasterTargetId("ujjgnfgrzxbarc") - .withProcessServerId("paefzqsy") - .withRetentionDrive("jwenjcytesmf") - .withRunAsAccountId("r") - .withDatastoreName("odqhuauzmzivrt") - .withDiskExclusionInput(new InMageDiskExclusionInput().withVolumeOptions(Arrays.asList( - new InMageVolumeExclusionOptions().withVolumeLabel("ezvhj").withOnlyExcludeIfSingleVolume("xdyyrud"), - new InMageVolumeExclusionOptions().withVolumeLabel("hswtvdkxbqssgfe") - .withOnlyExcludeIfSingleVolume("fdxbvwfqjchiv"), - new InMageVolumeExclusionOptions().withVolumeLabel("ija").withOnlyExcludeIfSingleVolume("ndmuvardlmz"))) - .withDiskSignatureOptions( - Arrays.asList(new InMageDiskSignatureExclusionOptions().withDiskSignature("r")))) - .withProfileId("muhcuhtuzl") - .withDisksToInclude(Arrays.asList("yo", "garp", "ctwrapcz", "ojqyvzes")); - model = BinaryData.fromObject(model).toObject(InMageReprotectInput.class); - Assertions.assertEquals("ujjgnfgrzxbarc", model.masterTargetId()); - Assertions.assertEquals("paefzqsy", model.processServerId()); - Assertions.assertEquals("jwenjcytesmf", model.retentionDrive()); - Assertions.assertEquals("r", model.runAsAccountId()); - Assertions.assertEquals("odqhuauzmzivrt", model.datastoreName()); - Assertions.assertEquals("ezvhj", model.diskExclusionInput().volumeOptions().get(0).volumeLabel()); - Assertions.assertEquals("xdyyrud", - model.diskExclusionInput().volumeOptions().get(0).onlyExcludeIfSingleVolume()); - Assertions.assertEquals("r", model.diskExclusionInput().diskSignatureOptions().get(0).diskSignature()); - Assertions.assertEquals("muhcuhtuzl", model.profileId()); - Assertions.assertEquals("yo", model.disksToInclude().get(0)); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageTestFailoverInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageTestFailoverInputTests.java deleted file mode 100644 index 8dcd2824a481..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageTestFailoverInputTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageTestFailoverInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPointType; -import org.junit.jupiter.api.Assertions; - -public final class InMageTestFailoverInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageTestFailoverInput model = BinaryData - .fromString("{\"instanceType\":\"InMage\",\"recoveryPointType\":\"Custom\",\"recoveryPointId\":\"snj\"}") - .toObject(InMageTestFailoverInput.class); - Assertions.assertEquals(RecoveryPointType.CUSTOM, model.recoveryPointType()); - Assertions.assertEquals("snj", model.recoveryPointId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageTestFailoverInput model - = new InMageTestFailoverInput().withRecoveryPointType(RecoveryPointType.CUSTOM).withRecoveryPointId("snj"); - model = BinaryData.fromObject(model).toObject(InMageTestFailoverInput.class); - Assertions.assertEquals(RecoveryPointType.CUSTOM, model.recoveryPointType()); - Assertions.assertEquals("snj", model.recoveryPointId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageUnplannedFailoverInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageUnplannedFailoverInputTests.java deleted file mode 100644 index ec222942dec2..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageUnplannedFailoverInputTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageUnplannedFailoverInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPointType; -import org.junit.jupiter.api.Assertions; - -public final class InMageUnplannedFailoverInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageUnplannedFailoverInput model = BinaryData.fromString( - "{\"instanceType\":\"InMage\",\"recoveryPointType\":\"LatestTag\",\"recoveryPointId\":\"aadcndazabundt\"}") - .toObject(InMageUnplannedFailoverInput.class); - Assertions.assertEquals(RecoveryPointType.LATEST_TAG, model.recoveryPointType()); - Assertions.assertEquals("aadcndazabundt", model.recoveryPointId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageUnplannedFailoverInput model - = new InMageUnplannedFailoverInput().withRecoveryPointType(RecoveryPointType.LATEST_TAG) - .withRecoveryPointId("aadcndazabundt"); - model = BinaryData.fromObject(model).toObject(InMageUnplannedFailoverInput.class); - Assertions.assertEquals(RecoveryPointType.LATEST_TAG, model.recoveryPointType()); - Assertions.assertEquals("aadcndazabundt", model.recoveryPointId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageVolumeExclusionOptionsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageVolumeExclusionOptionsTests.java deleted file mode 100644 index 1965e5d2a312..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InMageVolumeExclusionOptionsTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageVolumeExclusionOptions; -import org.junit.jupiter.api.Assertions; - -public final class InMageVolumeExclusionOptionsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InMageVolumeExclusionOptions model - = BinaryData.fromString("{\"volumeLabel\":\"vecovsdqhzr\",\"onlyExcludeIfSingleVolume\":\"bakrli\"}") - .toObject(InMageVolumeExclusionOptions.class); - Assertions.assertEquals("vecovsdqhzr", model.volumeLabel()); - Assertions.assertEquals("bakrli", model.onlyExcludeIfSingleVolume()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InMageVolumeExclusionOptions model - = new InMageVolumeExclusionOptions().withVolumeLabel("vecovsdqhzr").withOnlyExcludeIfSingleVolume("bakrli"); - model = BinaryData.fromObject(model).toObject(InMageVolumeExclusionOptions.class); - Assertions.assertEquals("vecovsdqhzr", model.volumeLabel()); - Assertions.assertEquals("bakrli", model.onlyExcludeIfSingleVolume()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InconsistentVmDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InconsistentVmDetailsTests.java deleted file mode 100644 index 3f6c74b47eda..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InconsistentVmDetailsTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InconsistentVmDetails; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class InconsistentVmDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InconsistentVmDetails model = BinaryData.fromString( - "{\"vmName\":\"laimouxwk\",\"cloudName\":\"mud\",\"details\":[\"oibi\",\"ziuswsw\",\"rk\",\"qsj\"],\"errorIds\":[\"qqvyfscyrfw\",\"iv\"]}") - .toObject(InconsistentVmDetails.class); - Assertions.assertEquals("laimouxwk", model.vmName()); - Assertions.assertEquals("mud", model.cloudName()); - Assertions.assertEquals("oibi", model.details().get(0)); - Assertions.assertEquals("qqvyfscyrfw", model.errorIds().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InconsistentVmDetails model = new InconsistentVmDetails().withVmName("laimouxwk") - .withCloudName("mud") - .withDetails(Arrays.asList("oibi", "ziuswsw", "rk", "qsj")) - .withErrorIds(Arrays.asList("qqvyfscyrfw", "iv")); - model = BinaryData.fromObject(model).toObject(InconsistentVmDetails.class); - Assertions.assertEquals("laimouxwk", model.vmName()); - Assertions.assertEquals("mud", model.cloudName()); - Assertions.assertEquals("oibi", model.details().get(0)); - Assertions.assertEquals("qqvyfscyrfw", model.errorIds().get(0)); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InitialReplicationDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InitialReplicationDetailsTests.java deleted file mode 100644 index d6d82a7c93e8..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InitialReplicationDetailsTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InitialReplicationDetails; -import org.junit.jupiter.api.Assertions; - -public final class InitialReplicationDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InitialReplicationDetails model = BinaryData - .fromString("{\"initialReplicationType\":\"pqbye\",\"initialReplicationProgressPercentage\":\"wy\"}") - .toObject(InitialReplicationDetails.class); - Assertions.assertEquals("pqbye", model.initialReplicationType()); - Assertions.assertEquals("wy", model.initialReplicationProgressPercentage()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InitialReplicationDetails model = new InitialReplicationDetails().withInitialReplicationType("pqbye") - .withInitialReplicationProgressPercentage("wy"); - model = BinaryData.fromObject(model).toObject(InitialReplicationDetails.class); - Assertions.assertEquals("pqbye", model.initialReplicationType()); - Assertions.assertEquals("wy", model.initialReplicationProgressPercentage()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InputEndpointTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InputEndpointTests.java deleted file mode 100644 index 60821b7da7df..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/InputEndpointTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InputEndpoint; -import org.junit.jupiter.api.Assertions; - -public final class InputEndpointTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InputEndpoint model = BinaryData - .fromString( - "{\"endpointName\":\"gna\",\"privatePort\":58413214,\"publicPort\":45173211,\"protocol\":\"bktyjmfc\"}") - .toObject(InputEndpoint.class); - Assertions.assertEquals("gna", model.endpointName()); - Assertions.assertEquals(58413214, model.privatePort()); - Assertions.assertEquals(45173211, model.publicPort()); - Assertions.assertEquals("bktyjmfc", model.protocol()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InputEndpoint model = new InputEndpoint().withEndpointName("gna") - .withPrivatePort(58413214) - .withPublicPort(45173211) - .withProtocol("bktyjmfc"); - model = BinaryData.fromObject(model).toObject(InputEndpoint.class); - Assertions.assertEquals("gna", model.endpointName()); - Assertions.assertEquals(58413214, model.privatePort()); - Assertions.assertEquals(45173211, model.publicPort()); - Assertions.assertEquals("bktyjmfc", model.protocol()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/IpConfigDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/IpConfigDetailsTests.java deleted file mode 100644 index 9b4b11ef0a4d..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/IpConfigDetailsTests.java +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.IpConfigDetails; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class IpConfigDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IpConfigDetails model = BinaryData.fromString( - "{\"name\":\"r\",\"isPrimary\":true,\"subnetName\":\"gaxwmzwdfkbnrzo\",\"staticIPAddress\":\"dltb\",\"ipAddressType\":\"tqjfgxxsaet\",\"isSeletedForFailover\":false,\"recoverySubnetName\":\"vpyigdaqq\",\"recoveryStaticIPAddress\":\"zdcduwjoedxng\",\"recoveryIPAddressType\":\"aifpaurwwgil\",\"recoveryPublicIPAddressId\":\"qqa\",\"recoveryLBBackendAddressPoolIds\":[\"kxwxdcvjwcyziake\",\"iqch\",\"rtui\",\"dsiwdfmmp\"],\"tfoSubnetName\":\"zzwvywrgyng\",\"tfoStaticIPAddress\":\"grpxncakiqaondjr\",\"tfoPublicIPAddressId\":\"lamgglvlmfejdo\",\"tfoLBBackendAddressPoolIds\":[\"kgltyg\",\"hqfgqkayejsx\"]}") - .toObject(IpConfigDetails.class); - Assertions.assertEquals("r", model.name()); - Assertions.assertEquals(true, model.isPrimary()); - Assertions.assertEquals("gaxwmzwdfkbnrzo", model.subnetName()); - Assertions.assertEquals("dltb", model.staticIpAddress()); - Assertions.assertEquals("tqjfgxxsaet", model.ipAddressType()); - Assertions.assertEquals(false, model.isSeletedForFailover()); - Assertions.assertEquals("vpyigdaqq", model.recoverySubnetName()); - Assertions.assertEquals("zdcduwjoedxng", model.recoveryStaticIpAddress()); - Assertions.assertEquals("aifpaurwwgil", model.recoveryIpAddressType()); - Assertions.assertEquals("qqa", model.recoveryPublicIpAddressId()); - Assertions.assertEquals("kxwxdcvjwcyziake", model.recoveryLBBackendAddressPoolIds().get(0)); - Assertions.assertEquals("zzwvywrgyng", model.tfoSubnetName()); - Assertions.assertEquals("grpxncakiqaondjr", model.tfoStaticIpAddress()); - Assertions.assertEquals("lamgglvlmfejdo", model.tfoPublicIpAddressId()); - Assertions.assertEquals("kgltyg", model.tfoLBBackendAddressPoolIds().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IpConfigDetails model = new IpConfigDetails().withName("r") - .withIsPrimary(true) - .withSubnetName("gaxwmzwdfkbnrzo") - .withStaticIpAddress("dltb") - .withIpAddressType("tqjfgxxsaet") - .withIsSeletedForFailover(false) - .withRecoverySubnetName("vpyigdaqq") - .withRecoveryStaticIpAddress("zdcduwjoedxng") - .withRecoveryIpAddressType("aifpaurwwgil") - .withRecoveryPublicIpAddressId("qqa") - .withRecoveryLBBackendAddressPoolIds(Arrays.asList("kxwxdcvjwcyziake", "iqch", "rtui", "dsiwdfmmp")) - .withTfoSubnetName("zzwvywrgyng") - .withTfoStaticIpAddress("grpxncakiqaondjr") - .withTfoPublicIpAddressId("lamgglvlmfejdo") - .withTfoLBBackendAddressPoolIds(Arrays.asList("kgltyg", "hqfgqkayejsx")); - model = BinaryData.fromObject(model).toObject(IpConfigDetails.class); - Assertions.assertEquals("r", model.name()); - Assertions.assertEquals(true, model.isPrimary()); - Assertions.assertEquals("gaxwmzwdfkbnrzo", model.subnetName()); - Assertions.assertEquals("dltb", model.staticIpAddress()); - Assertions.assertEquals("tqjfgxxsaet", model.ipAddressType()); - Assertions.assertEquals(false, model.isSeletedForFailover()); - Assertions.assertEquals("vpyigdaqq", model.recoverySubnetName()); - Assertions.assertEquals("zdcduwjoedxng", model.recoveryStaticIpAddress()); - Assertions.assertEquals("aifpaurwwgil", model.recoveryIpAddressType()); - Assertions.assertEquals("qqa", model.recoveryPublicIpAddressId()); - Assertions.assertEquals("kxwxdcvjwcyziake", model.recoveryLBBackendAddressPoolIds().get(0)); - Assertions.assertEquals("zzwvywrgyng", model.tfoSubnetName()); - Assertions.assertEquals("grpxncakiqaondjr", model.tfoStaticIpAddress()); - Assertions.assertEquals("lamgglvlmfejdo", model.tfoPublicIpAddressId()); - Assertions.assertEquals("kgltyg", model.tfoLBBackendAddressPoolIds().get(0)); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/IpConfigInputDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/IpConfigInputDetailsTests.java deleted file mode 100644 index 58dd2ed9a1a2..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/IpConfigInputDetailsTests.java +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.IpConfigInputDetails; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class IpConfigInputDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IpConfigInputDetails model = BinaryData.fromString( - "{\"ipConfigName\":\"pelmcuvhixbjxyf\",\"isPrimary\":false,\"isSeletedForFailover\":false,\"recoverySubnetName\":\"ool\",\"recoveryStaticIPAddress\":\"tpkiwkkbnujry\",\"recoveryPublicIPAddressId\":\"tylbfpncurdoiw\",\"recoveryLBBackendAddressPoolIds\":[\"htywubxcbihwq\",\"nfdn\"],\"tfoSubnetName\":\"jchrdgoihxumw\",\"tfoStaticIPAddress\":\"ond\",\"tfoPublicIPAddressId\":\"luudfdlwggytsb\",\"tfoLBBackendAddressPoolIds\":[\"vvt\",\"seinqfiuf\",\"qknp\",\"rgnepttwqmsniffc\"]}") - .toObject(IpConfigInputDetails.class); - Assertions.assertEquals("pelmcuvhixbjxyf", model.ipConfigName()); - Assertions.assertEquals(false, model.isPrimary()); - Assertions.assertEquals(false, model.isSeletedForFailover()); - Assertions.assertEquals("ool", model.recoverySubnetName()); - Assertions.assertEquals("tpkiwkkbnujry", model.recoveryStaticIpAddress()); - Assertions.assertEquals("tylbfpncurdoiw", model.recoveryPublicIpAddressId()); - Assertions.assertEquals("htywubxcbihwq", model.recoveryLBBackendAddressPoolIds().get(0)); - Assertions.assertEquals("jchrdgoihxumw", model.tfoSubnetName()); - Assertions.assertEquals("ond", model.tfoStaticIpAddress()); - Assertions.assertEquals("luudfdlwggytsb", model.tfoPublicIpAddressId()); - Assertions.assertEquals("vvt", model.tfoLBBackendAddressPoolIds().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IpConfigInputDetails model = new IpConfigInputDetails().withIpConfigName("pelmcuvhixbjxyf") - .withIsPrimary(false) - .withIsSeletedForFailover(false) - .withRecoverySubnetName("ool") - .withRecoveryStaticIpAddress("tpkiwkkbnujry") - .withRecoveryPublicIpAddressId("tylbfpncurdoiw") - .withRecoveryLBBackendAddressPoolIds(Arrays.asList("htywubxcbihwq", "nfdn")) - .withTfoSubnetName("jchrdgoihxumw") - .withTfoStaticIpAddress("ond") - .withTfoPublicIpAddressId("luudfdlwggytsb") - .withTfoLBBackendAddressPoolIds(Arrays.asList("vvt", "seinqfiuf", "qknp", "rgnepttwqmsniffc")); - model = BinaryData.fromObject(model).toObject(IpConfigInputDetails.class); - Assertions.assertEquals("pelmcuvhixbjxyf", model.ipConfigName()); - Assertions.assertEquals(false, model.isPrimary()); - Assertions.assertEquals(false, model.isSeletedForFailover()); - Assertions.assertEquals("ool", model.recoverySubnetName()); - Assertions.assertEquals("tpkiwkkbnujry", model.recoveryStaticIpAddress()); - Assertions.assertEquals("tylbfpncurdoiw", model.recoveryPublicIpAddressId()); - Assertions.assertEquals("htywubxcbihwq", model.recoveryLBBackendAddressPoolIds().get(0)); - Assertions.assertEquals("jchrdgoihxumw", model.tfoSubnetName()); - Assertions.assertEquals("ond", model.tfoStaticIpAddress()); - Assertions.assertEquals("luudfdlwggytsb", model.tfoPublicIpAddressId()); - Assertions.assertEquals("vvt", model.tfoLBBackendAddressPoolIds().get(0)); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/JobCollectionTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/JobCollectionTests.java deleted file mode 100644 index 9601f6d71f71..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/JobCollectionTests.java +++ /dev/null @@ -1,276 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.JobInner; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.AsrTask; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.GroupTaskDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.JobCollection; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.JobDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.JobErrorDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.JobProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ProviderError; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ServiceError; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.TaskTypeDetails; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class JobCollectionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - JobCollection model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"activityId\":\"jeuut\",\"scenarioName\":\"xezw\",\"friendlyName\":\"okvbwnhhtqlgehg\",\"state\":\"ipifhpfeoajvg\",\"stateDescription\":\"txjcsheafidlt\",\"tasks\":[{\"taskId\":\"esmkssjhoiftxfkf\",\"name\":\"gpr\",\"startTime\":\"2021-06-29T04:06:59Z\",\"endTime\":\"2021-04-05T10:55:26Z\",\"allowedActions\":[\"cbiqtgdqoh\"],\"friendlyName\":\"wsldrizetpwbr\",\"state\":\"llibphbqzmizak\",\"stateDescription\":\"ankjpdnjzh\",\"taskType\":\"oylhjlmuoyxprimr\",\"customDetails\":{\"instanceType\":\"TaskTypeDetails\"},\"groupTaskCustomDetails\":{\"instanceType\":\"GroupTaskDetails\"},\"errors\":[{},{}]}],\"errors\":[{\"serviceErrorDetails\":{},\"providerErrorDetails\":{},\"errorLevel\":\"islstv\",\"creationTime\":\"2021-10-17T18:13:46Z\",\"taskId\":\"wxdzaumweoohgu\"},{\"serviceErrorDetails\":{},\"providerErrorDetails\":{},\"errorLevel\":\"boyjathwt\",\"creationTime\":\"2021-03-19T17:17:36Z\",\"taskId\":\"a\"},{\"serviceErrorDetails\":{},\"providerErrorDetails\":{},\"errorLevel\":\"dxmeb\",\"creationTime\":\"2021-01-03T03:25:45Z\",\"taskId\":\"jpahlxvea\"},{\"serviceErrorDetails\":{},\"providerErrorDetails\":{},\"errorLevel\":\"nmwmqtibx\",\"creationTime\":\"2021-03-01T23:53:32Z\",\"taskId\":\"dt\"}],\"startTime\":\"2021-11-15T06:45:30Z\",\"endTime\":\"2021-02-14T10:50:47Z\",\"allowedActions\":[\"ijaeukm\"],\"targetObjectId\":\"ieekpndzaa\",\"targetObjectName\":\"udqmeqwigpibudq\",\"targetInstanceType\":\"xebeybpmz\",\"customDetails\":{\"instanceType\":\"JobDetails\",\"affectedObjectDetails\":{\"aqi\":\"ff\",\"ioqaqhvs\":\"mhh\"}}},\"location\":\"fuqyrxpdlcgqlsi\",\"id\":\"mjqfrddgamquhio\",\"name\":\"rsjuivfcdisyir\",\"type\":\"xzhczexrxz\"},{\"properties\":{\"activityId\":\"rtrhqvwrevkhgnl\",\"scenarioName\":\"onzlr\",\"friendlyName\":\"qywncvjtsz\",\"state\":\"fizehtdhgbjk\",\"stateDescription\":\"eljeamurvzmlovua\",\"tasks\":[{\"taskId\":\"cxlpmjerb\",\"name\":\"elvidizozsdbccx\",\"startTime\":\"2021-04-03T14:05:40Z\",\"endTime\":\"2021-06-04T20:01:35Z\",\"allowedActions\":[\"nwncypuuw\",\"ltv\",\"qjctzenkeif\",\"zhmkdasvflyh\"],\"friendlyName\":\"cu\",\"state\":\"hxgsrboldfor\",\"stateDescription\":\"wjlvizbfhfov\",\"taskType\":\"cqpbtuo\",\"customDetails\":{\"instanceType\":\"TaskTypeDetails\"},\"groupTaskCustomDetails\":{\"instanceType\":\"GroupTaskDetails\"},\"errors\":[{}]},{\"taskId\":\"bbelawumuaslzk\",\"name\":\"rwoycqucwyh\",\"startTime\":\"2021-12-05T11:23:21Z\",\"endTime\":\"2021-01-03T22:26:02Z\",\"allowedActions\":[\"kywuhpsvfuu\",\"utlwexxwla\",\"niexzsrzpgepq\"],\"friendlyName\":\"bb\",\"state\":\"pgdakchzyvli\",\"stateDescription\":\"nrkcxkj\",\"taskType\":\"nxm\",\"customDetails\":{\"instanceType\":\"TaskTypeDetails\"},\"groupTaskCustomDetails\":{\"instanceType\":\"GroupTaskDetails\"},\"errors\":[{},{},{}]},{\"taskId\":\"qrntv\",\"name\":\"ijpstte\",\"startTime\":\"2021-11-08T06:52:34Z\",\"endTime\":\"2021-02-04T20:26:02Z\",\"allowedActions\":[\"yyufmhruncuw\",\"qspkcdqzhlctd\"],\"friendlyName\":\"nqndyfpchrqbn\",\"state\":\"rcgegydcwboxjum\",\"stateDescription\":\"qoli\",\"taskType\":\"raiouaubrjtl\",\"customDetails\":{\"instanceType\":\"TaskTypeDetails\"},\"groupTaskCustomDetails\":{\"instanceType\":\"GroupTaskDetails\"},\"errors\":[{},{},{}]},{\"taskId\":\"jrngif\",\"name\":\"z\",\"startTime\":\"2021-09-29T00:55:24Z\",\"endTime\":\"2021-10-27T11:43:24Z\",\"allowedActions\":[\"uimzdlyjd\"],\"friendlyName\":\"wmkyoqufdvruzsl\",\"state\":\"j\",\"stateDescription\":\"ctfnmdxotng\",\"taskType\":\"gugey\",\"customDetails\":{\"instanceType\":\"TaskTypeDetails\"},\"groupTaskCustomDetails\":{\"instanceType\":\"GroupTaskDetails\"},\"errors\":[{},{}]}],\"errors\":[{\"serviceErrorDetails\":{},\"providerErrorDetails\":{},\"errorLevel\":\"absnmfpp\",\"creationTime\":\"2021-09-09T02:17:02Z\",\"taskId\":\"evy\"}],\"startTime\":\"2021-01-30T15:37:24Z\",\"endTime\":\"2021-07-27T14:52:36Z\",\"allowedActions\":[\"czbgomfgbeg\",\"qgleohibetnluank\"],\"targetObjectId\":\"fxeeebtijvacvbm\",\"targetObjectName\":\"bqqxlaj\",\"targetInstanceType\":\"wxacevehj\",\"customDetails\":{\"instanceType\":\"JobDetails\",\"affectedObjectDetails\":{\"faey\":\"oafgaoql\",\"hriypoqeyhlqhy\":\"inmfgvxirp\",\"nuciqdsmexiit\":\"prlpy\",\"stgnl\":\"fuxtyasiibmiybnn\"}}},\"location\":\"nmgixh\",\"id\":\"mavmq\",\"name\":\"oudorhcgyyp\",\"type\":\"otwypundmb\"},{\"properties\":{\"activityId\":\"gcmjkavl\",\"scenarioName\":\"rb\",\"friendlyName\":\"tp\",\"state\":\"tzfjltf\",\"stateDescription\":\"zcyjtot\",\"tasks\":[{\"taskId\":\"vpbdbzqgq\",\"name\":\"hedsvqwthmkyib\",\"startTime\":\"2021-03-21T07:03:22Z\",\"endTime\":\"2021-11-13T09:58:30Z\",\"allowedActions\":[\"qcwdhoh\",\"dtmcd\",\"sufco\",\"dxbzlmcmuap\"],\"friendlyName\":\"hdbevwqqxeyskon\",\"state\":\"inkfkbgbz\",\"stateDescription\":\"wxeqocljmygvkzqk\",\"taskType\":\"eokbze\",\"customDetails\":{\"instanceType\":\"TaskTypeDetails\"},\"groupTaskCustomDetails\":{\"instanceType\":\"GroupTaskDetails\"},\"errors\":[{},{}]}],\"errors\":[{\"serviceErrorDetails\":{},\"providerErrorDetails\":{},\"errorLevel\":\"tleipqxbkw\",\"creationTime\":\"2021-04-24T16:12:29Z\",\"taskId\":\"zvd\"},{\"serviceErrorDetails\":{},\"providerErrorDetails\":{},\"errorLevel\":\"ixz\",\"creationTime\":\"2021-05-22T10:48:30Z\",\"taskId\":\"odawopqhewjptmcg\"}],\"startTime\":\"2021-04-24T18:57:19Z\",\"endTime\":\"2021-03-17T12:43:28Z\",\"allowedActions\":[\"lnd\"],\"targetObjectId\":\"tutmzl\",\"targetObjectName\":\"ojlvfhrbbpneqvc\",\"targetInstanceType\":\"yyurmochpprprsnm\",\"customDetails\":{\"instanceType\":\"JobDetails\",\"affectedObjectDetails\":{\"kpbz\":\"zejnhl\",\"a\":\"cpilj\",\"chndbnwie\":\"zv\"}}},\"location\":\"lewjwiuubwef\",\"id\":\"sfapaqtferrq\",\"name\":\"ex\",\"type\":\"kmfx\"}],\"nextLink\":\"jwogqqnobpudc\"}") - .toObject(JobCollection.class); - Assertions.assertEquals("jeuut", model.value().get(0).properties().activityId()); - Assertions.assertEquals("xezw", model.value().get(0).properties().scenarioName()); - Assertions.assertEquals("okvbwnhhtqlgehg", model.value().get(0).properties().friendlyName()); - Assertions.assertEquals("ipifhpfeoajvg", model.value().get(0).properties().state()); - Assertions.assertEquals("txjcsheafidlt", model.value().get(0).properties().stateDescription()); - Assertions.assertEquals("esmkssjhoiftxfkf", model.value().get(0).properties().tasks().get(0).taskId()); - Assertions.assertEquals("gpr", model.value().get(0).properties().tasks().get(0).name()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-29T04:06:59Z"), - model.value().get(0).properties().tasks().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-05T10:55:26Z"), - model.value().get(0).properties().tasks().get(0).endTime()); - Assertions.assertEquals("cbiqtgdqoh", model.value().get(0).properties().tasks().get(0).allowedActions().get(0)); - Assertions.assertEquals("wsldrizetpwbr", model.value().get(0).properties().tasks().get(0).friendlyName()); - Assertions.assertEquals("llibphbqzmizak", model.value().get(0).properties().tasks().get(0).state()); - Assertions.assertEquals("ankjpdnjzh", model.value().get(0).properties().tasks().get(0).stateDescription()); - Assertions.assertEquals("oylhjlmuoyxprimr", model.value().get(0).properties().tasks().get(0).taskType()); - Assertions.assertEquals("islstv", model.value().get(0).properties().errors().get(0).errorLevel()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-17T18:13:46Z"), - model.value().get(0).properties().errors().get(0).creationTime()); - Assertions.assertEquals("wxdzaumweoohgu", model.value().get(0).properties().errors().get(0).taskId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-15T06:45:30Z"), - model.value().get(0).properties().startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-14T10:50:47Z"), - model.value().get(0).properties().endTime()); - Assertions.assertEquals("ijaeukm", model.value().get(0).properties().allowedActions().get(0)); - Assertions.assertEquals("ieekpndzaa", model.value().get(0).properties().targetObjectId()); - Assertions.assertEquals("udqmeqwigpibudq", model.value().get(0).properties().targetObjectName()); - Assertions.assertEquals("xebeybpmz", model.value().get(0).properties().targetInstanceType()); - Assertions.assertEquals("ff", - model.value().get(0).properties().customDetails().affectedObjectDetails().get("aqi")); - Assertions.assertEquals("fuqyrxpdlcgqlsi", model.value().get(0).location()); - Assertions.assertEquals("jwogqqnobpudc", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JobCollection model - = new JobCollection() - .withValue(Arrays.asList(new JobInner() - .withProperties( - new JobProperties().withActivityId("jeuut") - .withScenarioName("xezw") - .withFriendlyName("okvbwnhhtqlgehg") - .withState("ipifhpfeoajvg") - .withStateDescription("txjcsheafidlt") - .withTasks(Arrays.asList(new AsrTask().withTaskId("esmkssjhoiftxfkf") - .withName("gpr") - .withStartTime(OffsetDateTime.parse("2021-06-29T04:06:59Z")) - .withEndTime(OffsetDateTime.parse("2021-04-05T10:55:26Z")) - .withAllowedActions(Arrays.asList("cbiqtgdqoh")) - .withFriendlyName("wsldrizetpwbr") - .withState("llibphbqzmizak") - .withStateDescription("ankjpdnjzh") - .withTaskType("oylhjlmuoyxprimr") - .withCustomDetails(new TaskTypeDetails()) - .withGroupTaskCustomDetails(new GroupTaskDetails()) - .withErrors(Arrays.asList(new JobErrorDetails(), new JobErrorDetails())))) - .withErrors( - Arrays.asList( - new JobErrorDetails().withServiceErrorDetails(new ServiceError()) - .withProviderErrorDetails(new ProviderError()) - .withErrorLevel("islstv") - .withCreationTime(OffsetDateTime.parse("2021-10-17T18:13:46Z")) - .withTaskId("wxdzaumweoohgu"), - new JobErrorDetails().withServiceErrorDetails(new ServiceError()) - .withProviderErrorDetails(new ProviderError()) - .withErrorLevel("boyjathwt") - .withCreationTime(OffsetDateTime.parse("2021-03-19T17:17:36Z")) - .withTaskId("a"), - new JobErrorDetails().withServiceErrorDetails(new ServiceError()) - .withProviderErrorDetails(new ProviderError()) - .withErrorLevel("dxmeb") - .withCreationTime(OffsetDateTime.parse("2021-01-03T03:25:45Z")) - .withTaskId("jpahlxvea"), - new JobErrorDetails().withServiceErrorDetails(new ServiceError()) - .withProviderErrorDetails(new ProviderError()) - .withErrorLevel("nmwmqtibx") - .withCreationTime(OffsetDateTime.parse("2021-03-01T23:53:32Z")) - .withTaskId("dt"))) - .withStartTime(OffsetDateTime.parse("2021-11-15T06:45:30Z")) - .withEndTime(OffsetDateTime.parse("2021-02-14T10:50:47Z")) - .withAllowedActions(Arrays.asList("ijaeukm")) - .withTargetObjectId("ieekpndzaa") - .withTargetObjectName("udqmeqwigpibudq") - .withTargetInstanceType("xebeybpmz") - .withCustomDetails( - new JobDetails().withAffectedObjectDetails(mapOf("aqi", "ff", "ioqaqhvs", "mhh")))) - .withLocation("fuqyrxpdlcgqlsi"), - new JobInner() - .withProperties(new JobProperties().withActivityId("rtrhqvwrevkhgnl") - .withScenarioName("onzlr") - .withFriendlyName("qywncvjtsz") - .withState("fizehtdhgbjk") - .withStateDescription("eljeamurvzmlovua") - .withTasks(Arrays.asList( - new AsrTask().withTaskId("cxlpmjerb") - .withName("elvidizozsdbccx") - .withStartTime(OffsetDateTime.parse("2021-04-03T14:05:40Z")) - .withEndTime(OffsetDateTime.parse("2021-06-04T20:01:35Z")) - .withAllowedActions( - Arrays.asList("nwncypuuw", "ltv", "qjctzenkeif", "zhmkdasvflyh")) - .withFriendlyName("cu") - .withState("hxgsrboldfor") - .withStateDescription("wjlvizbfhfov") - .withTaskType("cqpbtuo") - .withCustomDetails(new TaskTypeDetails()) - .withGroupTaskCustomDetails(new GroupTaskDetails()) - .withErrors(Arrays.asList(new JobErrorDetails())), - new AsrTask().withTaskId("bbelawumuaslzk") - .withName("rwoycqucwyh") - .withStartTime(OffsetDateTime.parse("2021-12-05T11:23:21Z")) - .withEndTime(OffsetDateTime.parse("2021-01-03T22:26:02Z")) - .withAllowedActions(Arrays.asList("kywuhpsvfuu", "utlwexxwla", "niexzsrzpgepq")) - .withFriendlyName("bb") - .withState("pgdakchzyvli") - .withStateDescription("nrkcxkj") - .withTaskType("nxm") - .withCustomDetails(new TaskTypeDetails()) - .withGroupTaskCustomDetails(new GroupTaskDetails()) - .withErrors(Arrays.asList(new JobErrorDetails(), new JobErrorDetails(), - new JobErrorDetails())), - new AsrTask().withTaskId("qrntv") - .withName("ijpstte") - .withStartTime(OffsetDateTime.parse("2021-11-08T06:52:34Z")) - .withEndTime(OffsetDateTime.parse("2021-02-04T20:26:02Z")) - .withAllowedActions(Arrays.asList("yyufmhruncuw", "qspkcdqzhlctd")) - .withFriendlyName("nqndyfpchrqbn") - .withState("rcgegydcwboxjum") - .withStateDescription("qoli") - .withTaskType("raiouaubrjtl") - .withCustomDetails(new TaskTypeDetails()) - .withGroupTaskCustomDetails(new GroupTaskDetails()) - .withErrors(Arrays.asList(new JobErrorDetails(), new JobErrorDetails(), - new JobErrorDetails())), - new AsrTask().withTaskId("jrngif") - .withName("z") - .withStartTime(OffsetDateTime.parse("2021-09-29T00:55:24Z")) - .withEndTime(OffsetDateTime.parse("2021-10-27T11:43:24Z")) - .withAllowedActions(Arrays.asList("uimzdlyjd")) - .withFriendlyName("wmkyoqufdvruzsl") - .withState("j") - .withStateDescription("ctfnmdxotng") - .withTaskType("gugey") - .withCustomDetails(new TaskTypeDetails()) - .withGroupTaskCustomDetails(new GroupTaskDetails()) - .withErrors(Arrays.asList(new JobErrorDetails(), new JobErrorDetails())))) - .withErrors(Arrays.asList(new JobErrorDetails().withServiceErrorDetails(new ServiceError()) - .withProviderErrorDetails(new ProviderError()) - .withErrorLevel("absnmfpp") - .withCreationTime(OffsetDateTime.parse("2021-09-09T02:17:02Z")) - .withTaskId("evy"))) - .withStartTime(OffsetDateTime.parse("2021-01-30T15:37:24Z")) - .withEndTime(OffsetDateTime.parse("2021-07-27T14:52:36Z")) - .withAllowedActions(Arrays.asList("czbgomfgbeg", "qgleohibetnluank")) - .withTargetObjectId("fxeeebtijvacvbm") - .withTargetObjectName("bqqxlaj") - .withTargetInstanceType("wxacevehj") - .withCustomDetails( - new JobDetails().withAffectedObjectDetails(mapOf("faey", "oafgaoql", "hriypoqeyhlqhy", - "inmfgvxirp", "nuciqdsmexiit", "prlpy", "stgnl", "fuxtyasiibmiybnn")))) - .withLocation("nmgixh"), - new JobInner() - .withProperties(new JobProperties().withActivityId("gcmjkavl") - .withScenarioName("rb") - .withFriendlyName("tp") - .withState("tzfjltf") - .withStateDescription("zcyjtot") - .withTasks(Arrays.asList(new AsrTask().withTaskId("vpbdbzqgq") - .withName("hedsvqwthmkyib") - .withStartTime(OffsetDateTime.parse("2021-03-21T07:03:22Z")) - .withEndTime(OffsetDateTime.parse("2021-11-13T09:58:30Z")) - .withAllowedActions(Arrays.asList("qcwdhoh", "dtmcd", "sufco", "dxbzlmcmuap")) - .withFriendlyName("hdbevwqqxeyskon") - .withState("inkfkbgbz") - .withStateDescription("wxeqocljmygvkzqk") - .withTaskType("eokbze") - .withCustomDetails(new TaskTypeDetails()) - .withGroupTaskCustomDetails(new GroupTaskDetails()) - .withErrors(Arrays.asList(new JobErrorDetails(), new JobErrorDetails())))) - .withErrors(Arrays.asList( - new JobErrorDetails().withServiceErrorDetails(new ServiceError()) - .withProviderErrorDetails(new ProviderError()) - .withErrorLevel("tleipqxbkw") - .withCreationTime(OffsetDateTime.parse("2021-04-24T16:12:29Z")) - .withTaskId("zvd"), - new JobErrorDetails().withServiceErrorDetails(new ServiceError()) - .withProviderErrorDetails(new ProviderError()) - .withErrorLevel("ixz") - .withCreationTime(OffsetDateTime.parse("2021-05-22T10:48:30Z")) - .withTaskId("odawopqhewjptmcg"))) - .withStartTime(OffsetDateTime.parse("2021-04-24T18:57:19Z")) - .withEndTime(OffsetDateTime.parse("2021-03-17T12:43:28Z")) - .withAllowedActions(Arrays.asList("lnd")) - .withTargetObjectId("tutmzl") - .withTargetObjectName("ojlvfhrbbpneqvc") - .withTargetInstanceType("yyurmochpprprsnm") - .withCustomDetails(new JobDetails() - .withAffectedObjectDetails(mapOf("kpbz", "zejnhl", "a", "cpilj", "chndbnwie", "zv")))) - .withLocation("lewjwiuubwef"))) - .withNextLink("jwogqqnobpudc"); - model = BinaryData.fromObject(model).toObject(JobCollection.class); - Assertions.assertEquals("jeuut", model.value().get(0).properties().activityId()); - Assertions.assertEquals("xezw", model.value().get(0).properties().scenarioName()); - Assertions.assertEquals("okvbwnhhtqlgehg", model.value().get(0).properties().friendlyName()); - Assertions.assertEquals("ipifhpfeoajvg", model.value().get(0).properties().state()); - Assertions.assertEquals("txjcsheafidlt", model.value().get(0).properties().stateDescription()); - Assertions.assertEquals("esmkssjhoiftxfkf", model.value().get(0).properties().tasks().get(0).taskId()); - Assertions.assertEquals("gpr", model.value().get(0).properties().tasks().get(0).name()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-29T04:06:59Z"), - model.value().get(0).properties().tasks().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-05T10:55:26Z"), - model.value().get(0).properties().tasks().get(0).endTime()); - Assertions.assertEquals("cbiqtgdqoh", model.value().get(0).properties().tasks().get(0).allowedActions().get(0)); - Assertions.assertEquals("wsldrizetpwbr", model.value().get(0).properties().tasks().get(0).friendlyName()); - Assertions.assertEquals("llibphbqzmizak", model.value().get(0).properties().tasks().get(0).state()); - Assertions.assertEquals("ankjpdnjzh", model.value().get(0).properties().tasks().get(0).stateDescription()); - Assertions.assertEquals("oylhjlmuoyxprimr", model.value().get(0).properties().tasks().get(0).taskType()); - Assertions.assertEquals("islstv", model.value().get(0).properties().errors().get(0).errorLevel()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-17T18:13:46Z"), - model.value().get(0).properties().errors().get(0).creationTime()); - Assertions.assertEquals("wxdzaumweoohgu", model.value().get(0).properties().errors().get(0).taskId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-15T06:45:30Z"), - model.value().get(0).properties().startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-14T10:50:47Z"), - model.value().get(0).properties().endTime()); - Assertions.assertEquals("ijaeukm", model.value().get(0).properties().allowedActions().get(0)); - Assertions.assertEquals("ieekpndzaa", model.value().get(0).properties().targetObjectId()); - Assertions.assertEquals("udqmeqwigpibudq", model.value().get(0).properties().targetObjectName()); - Assertions.assertEquals("xebeybpmz", model.value().get(0).properties().targetInstanceType()); - Assertions.assertEquals("ff", - model.value().get(0).properties().customDetails().affectedObjectDetails().get("aqi")); - Assertions.assertEquals("fuqyrxpdlcgqlsi", model.value().get(0).location()); - Assertions.assertEquals("jwogqqnobpudc", model.nextLink()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/JobDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/JobDetailsTests.java deleted file mode 100644 index 81daad9b86ea..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/JobDetailsTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.JobDetails; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class JobDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - JobDetails model = BinaryData.fromString( - "{\"instanceType\":\"JobDetails\",\"affectedObjectDetails\":{\"jwpfilkm\":\"qlafcbahhpzpofoi\",\"dviauogp\":\"kholvd\",\"kyefchnmnahmnxhk\":\"uartvti\",\"ooxf\":\"jqirwrw\"}}") - .toObject(JobDetails.class); - Assertions.assertEquals("qlafcbahhpzpofoi", model.affectedObjectDetails().get("jwpfilkm")); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JobDetails model = new JobDetails().withAffectedObjectDetails(mapOf("jwpfilkm", "qlafcbahhpzpofoi", "dviauogp", - "kholvd", "kyefchnmnahmnxhk", "uartvti", "ooxf", "jqirwrw")); - model = BinaryData.fromObject(model).toObject(JobDetails.class); - Assertions.assertEquals("qlafcbahhpzpofoi", model.affectedObjectDetails().get("jwpfilkm")); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/JobEntityTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/JobEntityTests.java deleted file mode 100644 index 73ad83bc0bd3..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/JobEntityTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.JobEntity; -import org.junit.jupiter.api.Assertions; - -public final class JobEntityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - JobEntity model = BinaryData.fromString( - "{\"jobId\":\"xpno\",\"jobFriendlyName\":\"oanfbcswqagyw\",\"targetObjectId\":\"xigvjrktpgaeuk\",\"targetObjectName\":\"wohpmwhqnucs\",\"targetInstanceType\":\"hsidsjtdlpbnin\",\"jobScenarioName\":\"azlsvbzfcpuo\"}") - .toObject(JobEntity.class); - Assertions.assertEquals("xpno", model.jobId()); - Assertions.assertEquals("oanfbcswqagyw", model.jobFriendlyName()); - Assertions.assertEquals("xigvjrktpgaeuk", model.targetObjectId()); - Assertions.assertEquals("wohpmwhqnucs", model.targetObjectName()); - Assertions.assertEquals("hsidsjtdlpbnin", model.targetInstanceType()); - Assertions.assertEquals("azlsvbzfcpuo", model.jobScenarioName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JobEntity model = new JobEntity().withJobId("xpno") - .withJobFriendlyName("oanfbcswqagyw") - .withTargetObjectId("xigvjrktpgaeuk") - .withTargetObjectName("wohpmwhqnucs") - .withTargetInstanceType("hsidsjtdlpbnin") - .withJobScenarioName("azlsvbzfcpuo"); - model = BinaryData.fromObject(model).toObject(JobEntity.class); - Assertions.assertEquals("xpno", model.jobId()); - Assertions.assertEquals("oanfbcswqagyw", model.jobFriendlyName()); - Assertions.assertEquals("xigvjrktpgaeuk", model.targetObjectId()); - Assertions.assertEquals("wohpmwhqnucs", model.targetObjectName()); - Assertions.assertEquals("hsidsjtdlpbnin", model.targetInstanceType()); - Assertions.assertEquals("azlsvbzfcpuo", model.jobScenarioName()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/JobQueryParameterTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/JobQueryParameterTests.java deleted file mode 100644 index 2cfa2e00ced5..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/JobQueryParameterTests.java +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ExportJobOutputSerializationType; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.JobQueryParameter; -import org.junit.jupiter.api.Assertions; - -public final class JobQueryParameterTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - JobQueryParameter model = BinaryData.fromString( - "{\"startTime\":\"amhsycxhxzgazt\",\"endTime\":\"boi\",\"fabricId\":\"mfqhppubowse\",\"affectedObjectTypes\":\"fgkmtdhern\",\"jobStatus\":\"tcjuahokqto\",\"jobOutputType\":\"Excel\",\"jobName\":\"xof\",\"timezoneOffset\":37.56433108394144}") - .toObject(JobQueryParameter.class); - Assertions.assertEquals("amhsycxhxzgazt", model.startTime()); - Assertions.assertEquals("boi", model.endTime()); - Assertions.assertEquals("mfqhppubowse", model.fabricId()); - Assertions.assertEquals("fgkmtdhern", model.affectedObjectTypes()); - Assertions.assertEquals("tcjuahokqto", model.jobStatus()); - Assertions.assertEquals(ExportJobOutputSerializationType.EXCEL, model.jobOutputType()); - Assertions.assertEquals("xof", model.jobName()); - Assertions.assertEquals(37.56433108394144D, model.timezoneOffset()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JobQueryParameter model = new JobQueryParameter().withStartTime("amhsycxhxzgazt") - .withEndTime("boi") - .withFabricId("mfqhppubowse") - .withAffectedObjectTypes("fgkmtdhern") - .withJobStatus("tcjuahokqto") - .withJobOutputType(ExportJobOutputSerializationType.EXCEL) - .withJobName("xof") - .withTimezoneOffset(37.56433108394144D); - model = BinaryData.fromObject(model).toObject(JobQueryParameter.class); - Assertions.assertEquals("amhsycxhxzgazt", model.startTime()); - Assertions.assertEquals("boi", model.endTime()); - Assertions.assertEquals("mfqhppubowse", model.fabricId()); - Assertions.assertEquals("fgkmtdhern", model.affectedObjectTypes()); - Assertions.assertEquals("tcjuahokqto", model.jobStatus()); - Assertions.assertEquals(ExportJobOutputSerializationType.EXCEL, model.jobOutputType()); - Assertions.assertEquals("xof", model.jobName()); - Assertions.assertEquals(37.56433108394144D, model.timezoneOffset()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/JobStatusEventDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/JobStatusEventDetailsTests.java deleted file mode 100644 index 7810bd781511..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/JobStatusEventDetailsTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.JobStatusEventDetails; -import org.junit.jupiter.api.Assertions; - -public final class JobStatusEventDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - JobStatusEventDetails model = BinaryData.fromString( - "{\"instanceType\":\"JobStatus\",\"jobId\":\"wkaupwhlz\",\"jobFriendlyName\":\"kremgjl\",\"jobStatus\":\"vdorsirx\",\"affectedObjectType\":\"yrkqa\"}") - .toObject(JobStatusEventDetails.class); - Assertions.assertEquals("wkaupwhlz", model.jobId()); - Assertions.assertEquals("kremgjl", model.jobFriendlyName()); - Assertions.assertEquals("vdorsirx", model.jobStatus()); - Assertions.assertEquals("yrkqa", model.affectedObjectType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JobStatusEventDetails model = new JobStatusEventDetails().withJobId("wkaupwhlz") - .withJobFriendlyName("kremgjl") - .withJobStatus("vdorsirx") - .withAffectedObjectType("yrkqa"); - model = BinaryData.fromObject(model).toObject(JobStatusEventDetails.class); - Assertions.assertEquals("wkaupwhlz", model.jobId()); - Assertions.assertEquals("kremgjl", model.jobFriendlyName()); - Assertions.assertEquals("vdorsirx", model.jobStatus()); - Assertions.assertEquals("yrkqa", model.affectedObjectType()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/JobTaskDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/JobTaskDetailsTests.java deleted file mode 100644 index 165498241ca0..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/JobTaskDetailsTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.JobEntity; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.JobTaskDetails; -import org.junit.jupiter.api.Assertions; - -public final class JobTaskDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - JobTaskDetails model = BinaryData.fromString( - "{\"instanceType\":\"JobTaskDetails\",\"jobTask\":{\"jobId\":\"wwmjs\",\"jobFriendlyName\":\"na\",\"targetObjectId\":\"amecle\",\"targetObjectName\":\"oulndhzyoeojhto\",\"targetInstanceType\":\"h\",\"jobScenarioName\":\"idmytzln\"}}") - .toObject(JobTaskDetails.class); - Assertions.assertEquals("wwmjs", model.jobTask().jobId()); - Assertions.assertEquals("na", model.jobTask().jobFriendlyName()); - Assertions.assertEquals("amecle", model.jobTask().targetObjectId()); - Assertions.assertEquals("oulndhzyoeojhto", model.jobTask().targetObjectName()); - Assertions.assertEquals("h", model.jobTask().targetInstanceType()); - Assertions.assertEquals("idmytzln", model.jobTask().jobScenarioName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JobTaskDetails model = new JobTaskDetails().withJobTask(new JobEntity().withJobId("wwmjs") - .withJobFriendlyName("na") - .withTargetObjectId("amecle") - .withTargetObjectName("oulndhzyoeojhto") - .withTargetInstanceType("h") - .withJobScenarioName("idmytzln")); - model = BinaryData.fromObject(model).toObject(JobTaskDetails.class); - Assertions.assertEquals("wwmjs", model.jobTask().jobId()); - Assertions.assertEquals("na", model.jobTask().jobFriendlyName()); - Assertions.assertEquals("amecle", model.jobTask().targetObjectId()); - Assertions.assertEquals("oulndhzyoeojhto", model.jobTask().targetObjectName()); - Assertions.assertEquals("h", model.jobTask().targetInstanceType()); - Assertions.assertEquals("idmytzln", model.jobTask().jobScenarioName()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/LogicalNetworkCollectionTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/LogicalNetworkCollectionTests.java deleted file mode 100644 index 768add753d3e..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/LogicalNetworkCollectionTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.LogicalNetworkInner; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.LogicalNetworkCollection; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.LogicalNetworkProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class LogicalNetworkCollectionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LogicalNetworkCollection model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"friendlyName\":\"j\",\"networkVirtualizationStatus\":\"dxob\",\"logicalNetworkUsage\":\"dxkqpx\",\"logicalNetworkDefinitionsStatus\":\"ajionpimexgstxg\"},\"location\":\"odgmaajrmvdjwz\",\"id\":\"lovmclwhijcoe\",\"name\":\"ctbzaq\",\"type\":\"qsycbkbfkgu\"}],\"nextLink\":\"kexxppof\"}") - .toObject(LogicalNetworkCollection.class); - Assertions.assertEquals("j", model.value().get(0).properties().friendlyName()); - Assertions.assertEquals("dxob", model.value().get(0).properties().networkVirtualizationStatus()); - Assertions.assertEquals("dxkqpx", model.value().get(0).properties().logicalNetworkUsage()); - Assertions.assertEquals("ajionpimexgstxg", model.value().get(0).properties().logicalNetworkDefinitionsStatus()); - Assertions.assertEquals("odgmaajrmvdjwz", model.value().get(0).location()); - Assertions.assertEquals("kexxppof", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LogicalNetworkCollection model - = new LogicalNetworkCollection() - .withValue( - Arrays - .asList(new LogicalNetworkInner() - .withProperties(new LogicalNetworkProperties().withFriendlyName("j") - .withNetworkVirtualizationStatus("dxob") - .withLogicalNetworkUsage("dxkqpx") - .withLogicalNetworkDefinitionsStatus("ajionpimexgstxg")) - .withLocation("odgmaajrmvdjwz"))) - .withNextLink("kexxppof"); - model = BinaryData.fromObject(model).toObject(LogicalNetworkCollection.class); - Assertions.assertEquals("j", model.value().get(0).properties().friendlyName()); - Assertions.assertEquals("dxob", model.value().get(0).properties().networkVirtualizationStatus()); - Assertions.assertEquals("dxkqpx", model.value().get(0).properties().logicalNetworkUsage()); - Assertions.assertEquals("ajionpimexgstxg", model.value().get(0).properties().logicalNetworkDefinitionsStatus()); - Assertions.assertEquals("odgmaajrmvdjwz", model.value().get(0).location()); - Assertions.assertEquals("kexxppof", model.nextLink()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/LogicalNetworkInnerTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/LogicalNetworkInnerTests.java deleted file mode 100644 index 669b2d315de0..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/LogicalNetworkInnerTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.LogicalNetworkInner; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.LogicalNetworkProperties; -import org.junit.jupiter.api.Assertions; - -public final class LogicalNetworkInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LogicalNetworkInner model = BinaryData.fromString( - "{\"properties\":{\"friendlyName\":\"x\",\"networkVirtualizationStatus\":\"jpgd\",\"logicalNetworkUsage\":\"ocjjxhvpmouexh\",\"logicalNetworkDefinitionsStatus\":\"xibqeojnx\"},\"location\":\"zvddntwndeicbtwn\",\"id\":\"zao\",\"name\":\"vuhrhcffcyddgl\",\"type\":\"jthjqkwpyei\"}") - .toObject(LogicalNetworkInner.class); - Assertions.assertEquals("x", model.properties().friendlyName()); - Assertions.assertEquals("jpgd", model.properties().networkVirtualizationStatus()); - Assertions.assertEquals("ocjjxhvpmouexh", model.properties().logicalNetworkUsage()); - Assertions.assertEquals("xibqeojnx", model.properties().logicalNetworkDefinitionsStatus()); - Assertions.assertEquals("zvddntwndeicbtwn", model.location()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LogicalNetworkInner model - = new LogicalNetworkInner().withProperties(new LogicalNetworkProperties().withFriendlyName("x") - .withNetworkVirtualizationStatus("jpgd") - .withLogicalNetworkUsage("ocjjxhvpmouexh") - .withLogicalNetworkDefinitionsStatus("xibqeojnx")).withLocation("zvddntwndeicbtwn"); - model = BinaryData.fromObject(model).toObject(LogicalNetworkInner.class); - Assertions.assertEquals("x", model.properties().friendlyName()); - Assertions.assertEquals("jpgd", model.properties().networkVirtualizationStatus()); - Assertions.assertEquals("ocjjxhvpmouexh", model.properties().logicalNetworkUsage()); - Assertions.assertEquals("xibqeojnx", model.properties().logicalNetworkDefinitionsStatus()); - Assertions.assertEquals("zvddntwndeicbtwn", model.location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/LogicalNetworkPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/LogicalNetworkPropertiesTests.java deleted file mode 100644 index f92bcf5a7da6..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/LogicalNetworkPropertiesTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.LogicalNetworkProperties; -import org.junit.jupiter.api.Assertions; - -public final class LogicalNetworkPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LogicalNetworkProperties model = BinaryData.fromString( - "{\"friendlyName\":\"mqc\",\"networkVirtualizationStatus\":\"q\",\"logicalNetworkUsage\":\"khixuigdtopbo\",\"logicalNetworkDefinitionsStatus\":\"og\"}") - .toObject(LogicalNetworkProperties.class); - Assertions.assertEquals("mqc", model.friendlyName()); - Assertions.assertEquals("q", model.networkVirtualizationStatus()); - Assertions.assertEquals("khixuigdtopbo", model.logicalNetworkUsage()); - Assertions.assertEquals("og", model.logicalNetworkDefinitionsStatus()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LogicalNetworkProperties model = new LogicalNetworkProperties().withFriendlyName("mqc") - .withNetworkVirtualizationStatus("q") - .withLogicalNetworkUsage("khixuigdtopbo") - .withLogicalNetworkDefinitionsStatus("og"); - model = BinaryData.fromObject(model).toObject(LogicalNetworkProperties.class); - Assertions.assertEquals("mqc", model.friendlyName()); - Assertions.assertEquals("q", model.networkVirtualizationStatus()); - Assertions.assertEquals("khixuigdtopbo", model.logicalNetworkUsage()); - Assertions.assertEquals("og", model.logicalNetworkDefinitionsStatus()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ManualActionTaskDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ManualActionTaskDetailsTests.java deleted file mode 100644 index d6bf16e9f80a..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ManualActionTaskDetailsTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ManualActionTaskDetails; -import org.junit.jupiter.api.Assertions; - -public final class ManualActionTaskDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManualActionTaskDetails model = BinaryData.fromString( - "{\"instanceType\":\"ManualActionTaskDetails\",\"name\":\"fajfreprfvmki\",\"instructions\":\"teyrqshi\",\"observation\":\"cejo\"}") - .toObject(ManualActionTaskDetails.class); - Assertions.assertEquals("fajfreprfvmki", model.name()); - Assertions.assertEquals("teyrqshi", model.instructions()); - Assertions.assertEquals("cejo", model.observation()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManualActionTaskDetails model = new ManualActionTaskDetails().withName("fajfreprfvmki") - .withInstructions("teyrqshi") - .withObservation("cejo"); - model = BinaryData.fromObject(model).toObject(ManualActionTaskDetails.class); - Assertions.assertEquals("fajfreprfvmki", model.name()); - Assertions.assertEquals("teyrqshi", model.instructions()); - Assertions.assertEquals("cejo", model.observation()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/MigrateInputPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/MigrateInputPropertiesTests.java deleted file mode 100644 index 9b7bcc432cc8..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/MigrateInputPropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.MigrateInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.MigrateProviderSpecificInput; - -public final class MigrateInputPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MigrateInputProperties model - = BinaryData.fromString("{\"providerSpecificDetails\":{\"instanceType\":\"MigrateProviderSpecificInput\"}}") - .toObject(MigrateInputProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MigrateInputProperties model - = new MigrateInputProperties().withProviderSpecificDetails(new MigrateProviderSpecificInput()); - model = BinaryData.fromObject(model).toObject(MigrateInputProperties.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/MigrateInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/MigrateInputTests.java deleted file mode 100644 index 39f968f1f392..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/MigrateInputTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.MigrateInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.MigrateInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.MigrateProviderSpecificInput; - -public final class MigrateInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MigrateInput model = BinaryData - .fromString( - "{\"properties\":{\"providerSpecificDetails\":{\"instanceType\":\"MigrateProviderSpecificInput\"}}}") - .toObject(MigrateInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MigrateInput model = new MigrateInput().withProperties( - new MigrateInputProperties().withProviderSpecificDetails(new MigrateProviderSpecificInput())); - model = BinaryData.fromObject(model).toObject(MigrateInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/MigrateProviderSpecificInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/MigrateProviderSpecificInputTests.java deleted file mode 100644 index cb0e8dcbd03b..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/MigrateProviderSpecificInputTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.MigrateProviderSpecificInput; - -public final class MigrateProviderSpecificInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MigrateProviderSpecificInput model - = BinaryData.fromString("{\"instanceType\":\"MigrateProviderSpecificInput\"}") - .toObject(MigrateProviderSpecificInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MigrateProviderSpecificInput model = new MigrateProviderSpecificInput(); - model = BinaryData.fromObject(model).toObject(MigrateProviderSpecificInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/MigrationProviderSpecificSettingsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/MigrationProviderSpecificSettingsTests.java deleted file mode 100644 index ad46a3fc1650..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/MigrationProviderSpecificSettingsTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.MigrationProviderSpecificSettings; - -public final class MigrationProviderSpecificSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MigrationProviderSpecificSettings model - = BinaryData.fromString("{\"instanceType\":\"MigrationProviderSpecificSettings\"}") - .toObject(MigrationProviderSpecificSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MigrationProviderSpecificSettings model = new MigrationProviderSpecificSettings(); - model = BinaryData.fromObject(model).toObject(MigrationProviderSpecificSettings.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/MigrationRecoveryPointCollectionTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/MigrationRecoveryPointCollectionTests.java deleted file mode 100644 index 55fcbddef3be..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/MigrationRecoveryPointCollectionTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.MigrationRecoveryPointInner; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.MigrationRecoveryPointCollection; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.MigrationRecoveryPointProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class MigrationRecoveryPointCollectionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MigrationRecoveryPointCollection model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"recoveryPointTime\":\"2021-08-18T20:27:18Z\",\"recoveryPointType\":\"ApplicationConsistent\"},\"location\":\"htxongmtsavjc\",\"id\":\"pwxqp\",\"name\":\"rknftguvriuhprwm\",\"type\":\"yvxqtayriwwroy\"},{\"properties\":{\"recoveryPointTime\":\"2021-11-30T11:12:46Z\",\"recoveryPointType\":\"NotSpecified\"},\"location\":\"qibycnojvknm\",\"id\":\"fqsgzvahapjy\",\"name\":\"hpvgqz\",\"type\":\"j\"},{\"properties\":{\"recoveryPointTime\":\"2021-04-03T19:52:37Z\",\"recoveryPointType\":\"NotSpecified\"},\"location\":\"mwlxk\",\"id\":\"ug\",\"name\":\"hzovawjvzunlut\",\"type\":\"nnprn\"}],\"nextLink\":\"peilpjzuaejxdu\"}") - .toObject(MigrationRecoveryPointCollection.class); - Assertions.assertEquals("htxongmtsavjc", model.value().get(0).location()); - Assertions.assertEquals("peilpjzuaejxdu", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MigrationRecoveryPointCollection model = new MigrationRecoveryPointCollection().withValue(Arrays.asList( - new MigrationRecoveryPointInner().withProperties(new MigrationRecoveryPointProperties()) - .withLocation("htxongmtsavjc"), - new MigrationRecoveryPointInner().withProperties(new MigrationRecoveryPointProperties()) - .withLocation("qibycnojvknm"), - new MigrationRecoveryPointInner().withProperties(new MigrationRecoveryPointProperties()) - .withLocation("mwlxk"))) - .withNextLink("peilpjzuaejxdu"); - model = BinaryData.fromObject(model).toObject(MigrationRecoveryPointCollection.class); - Assertions.assertEquals("htxongmtsavjc", model.value().get(0).location()); - Assertions.assertEquals("peilpjzuaejxdu", model.nextLink()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/MigrationRecoveryPointInnerTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/MigrationRecoveryPointInnerTests.java deleted file mode 100644 index fd3656b92da2..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/MigrationRecoveryPointInnerTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.MigrationRecoveryPointInner; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.MigrationRecoveryPointProperties; -import org.junit.jupiter.api.Assertions; - -public final class MigrationRecoveryPointInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MigrationRecoveryPointInner model = BinaryData.fromString( - "{\"properties\":{\"recoveryPointTime\":\"2021-03-19T18:16:56Z\",\"recoveryPointType\":\"NotSpecified\"},\"location\":\"tdzumveekgpw\",\"id\":\"zuhkfpbsjyof\",\"name\":\"xl\",\"type\":\"us\"}") - .toObject(MigrationRecoveryPointInner.class); - Assertions.assertEquals("tdzumveekgpw", model.location()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MigrationRecoveryPointInner model - = new MigrationRecoveryPointInner().withProperties(new MigrationRecoveryPointProperties()) - .withLocation("tdzumveekgpw"); - model = BinaryData.fromObject(model).toObject(MigrationRecoveryPointInner.class); - Assertions.assertEquals("tdzumveekgpw", model.location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/MigrationRecoveryPointPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/MigrationRecoveryPointPropertiesTests.java deleted file mode 100644 index 1f269caac765..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/MigrationRecoveryPointPropertiesTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.MigrationRecoveryPointProperties; - -public final class MigrationRecoveryPointPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MigrationRecoveryPointProperties model = BinaryData - .fromString( - "{\"recoveryPointTime\":\"2021-04-08T00:20:33Z\",\"recoveryPointType\":\"ApplicationConsistent\"}") - .toObject(MigrationRecoveryPointProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MigrationRecoveryPointProperties model = new MigrationRecoveryPointProperties(); - model = BinaryData.fromObject(model).toObject(MigrationRecoveryPointProperties.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/MigrationRecoveryPointsGetWithResponseMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/MigrationRecoveryPointsGetWithResponseMockTests.java deleted file mode 100644 index e0f62567bbd9..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/MigrationRecoveryPointsGetWithResponseMockTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.MigrationRecoveryPoint; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class MigrationRecoveryPointsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"recoveryPointTime\":\"2021-05-17T00:20:24Z\",\"recoveryPointType\":\"ApplicationConsistent\"},\"location\":\"hlsfjfouqjpzhea\",\"id\":\"uvkqxqkvadmj\",\"name\":\"ymudj\",\"type\":\"aajzdebhsermcl\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - MigrationRecoveryPoint response = manager.migrationRecoveryPoints() - .getWithResponse("bfb", "divixzhpjgqzmiao", "weacfxaubu", "ruetcnx", "iqzzdckhsqdrrjsu", "nowobwx", - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("hlsfjfouqjpzhea", response.location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/MigrationRecoveryPointsListByReplicationMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/MigrationRecoveryPointsListByReplicationMockTests.java deleted file mode 100644 index 287e57a52dde..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/MigrationRecoveryPointsListByReplicationMockTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.MigrationRecoveryPoint; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class MigrationRecoveryPointsListByReplicationMockTests { - @Test - public void testListByReplicationMigrationItems() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"recoveryPointTime\":\"2021-07-07T21:49:56Z\",\"recoveryPointType\":\"ApplicationConsistent\"},\"location\":\"lgfaphwuu\",\"id\":\"wtsaynrtvj\",\"name\":\"qreeo\",\"type\":\"vqjmrnblihs\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.migrationRecoveryPoints() - .listByReplicationMigrationItems("wynepktvmwgvco", "ysebjij", "hpxnikouox", "alokb", "kkyporsyn", - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("lgfaphwuu", response.iterator().next().location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/MobilityServiceUpdateTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/MobilityServiceUpdateTests.java deleted file mode 100644 index 177171d03e00..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/MobilityServiceUpdateTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.MobilityServiceUpdate; -import org.junit.jupiter.api.Assertions; - -public final class MobilityServiceUpdateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MobilityServiceUpdate model = BinaryData - .fromString("{\"version\":\"cdsgxceluji\",\"rebootStatus\":\"lluunxh\",\"osType\":\"lfxzfwuge\"}") - .toObject(MobilityServiceUpdate.class); - Assertions.assertEquals("cdsgxceluji", model.version()); - Assertions.assertEquals("lluunxh", model.rebootStatus()); - Assertions.assertEquals("lfxzfwuge", model.osType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MobilityServiceUpdate model = new MobilityServiceUpdate().withVersion("cdsgxceluji") - .withRebootStatus("lluunxh") - .withOsType("lfxzfwuge"); - model = BinaryData.fromObject(model).toObject(MobilityServiceUpdate.class); - Assertions.assertEquals("cdsgxceluji", model.version()); - Assertions.assertEquals("lluunxh", model.rebootStatus()); - Assertions.assertEquals("lfxzfwuge", model.osType()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/NetworkCollectionTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/NetworkCollectionTests.java deleted file mode 100644 index aba933136303..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/NetworkCollectionTests.java +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.NetworkInner; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.NetworkCollection; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.NetworkProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.Subnet; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class NetworkCollectionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - NetworkCollection model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"fabricType\":\"a\",\"subnets\":[{\"name\":\"rzayv\",\"friendlyName\":\"pgvdf\",\"addressList\":[\"tkftutqxlngx\",\"efgugnxk\",\"xdqmidtthzrvqdra\",\"hjybigehoqfbo\"]},{\"name\":\"kanyktzlcuiywg\",\"friendlyName\":\"wgndrvynhzgpp\",\"addressList\":[\"gyncocpecfvmmc\",\"ofsx\",\"zevgb\"]},{\"name\":\"jqabcypmivkwlzuv\",\"friendlyName\":\"fwnfnb\",\"addressList\":[\"ionle\",\"x\"]}],\"friendlyName\":\"qgtz\",\"networkType\":\"pnqbqqwxrjfe\"},\"location\":\"lnwsubisn\",\"id\":\"ampmngnz\",\"name\":\"c\",\"type\":\"aqw\"}],\"nextLink\":\"chcbonqvpkvlrxnj\"}") - .toObject(NetworkCollection.class); - Assertions.assertEquals("a", model.value().get(0).properties().fabricType()); - Assertions.assertEquals("rzayv", model.value().get(0).properties().subnets().get(0).name()); - Assertions.assertEquals("pgvdf", model.value().get(0).properties().subnets().get(0).friendlyName()); - Assertions.assertEquals("tkftutqxlngx", - model.value().get(0).properties().subnets().get(0).addressList().get(0)); - Assertions.assertEquals("qgtz", model.value().get(0).properties().friendlyName()); - Assertions.assertEquals("pnqbqqwxrjfe", model.value().get(0).properties().networkType()); - Assertions.assertEquals("lnwsubisn", model.value().get(0).location()); - Assertions.assertEquals("chcbonqvpkvlrxnj", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NetworkCollection model - = new NetworkCollection().withValue(Arrays.asList( - new NetworkInner() - .withProperties( - new NetworkProperties().withFabricType("a") - .withSubnets( - Arrays.asList( - new Subnet().withName("rzayv") - .withFriendlyName("pgvdf") - .withAddressList(Arrays.asList("tkftutqxlngx", "efgugnxk", "xdqmidtthzrvqdra", - "hjybigehoqfbo")), - new Subnet().withName("kanyktzlcuiywg") - .withFriendlyName("wgndrvynhzgpp") - .withAddressList(Arrays.asList("gyncocpecfvmmc", "ofsx", "zevgb")), - new Subnet().withName("jqabcypmivkwlzuv") - .withFriendlyName("fwnfnb") - .withAddressList(Arrays.asList("ionle", "x")))) - .withFriendlyName("qgtz") - .withNetworkType("pnqbqqwxrjfe")) - .withLocation("lnwsubisn"))) - .withNextLink("chcbonqvpkvlrxnj"); - model = BinaryData.fromObject(model).toObject(NetworkCollection.class); - Assertions.assertEquals("a", model.value().get(0).properties().fabricType()); - Assertions.assertEquals("rzayv", model.value().get(0).properties().subnets().get(0).name()); - Assertions.assertEquals("pgvdf", model.value().get(0).properties().subnets().get(0).friendlyName()); - Assertions.assertEquals("tkftutqxlngx", - model.value().get(0).properties().subnets().get(0).addressList().get(0)); - Assertions.assertEquals("qgtz", model.value().get(0).properties().friendlyName()); - Assertions.assertEquals("pnqbqqwxrjfe", model.value().get(0).properties().networkType()); - Assertions.assertEquals("lnwsubisn", model.value().get(0).location()); - Assertions.assertEquals("chcbonqvpkvlrxnj", model.nextLink()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/NetworkInnerTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/NetworkInnerTests.java deleted file mode 100644 index 81ce06a5d29b..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/NetworkInnerTests.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.NetworkInner; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.NetworkProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.Subnet; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class NetworkInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - NetworkInner model = BinaryData.fromString( - "{\"properties\":{\"fabricType\":\"eipheoflokeyy\",\"subnets\":[{\"name\":\"bdlwtgrhpdjpj\",\"friendlyName\":\"asxazjpqyegualhb\",\"addressList\":[\"e\",\"jzzvdud\"]}],\"friendlyName\":\"dslfhotwmcy\",\"networkType\":\"wlbjnpgacftade\"},\"location\":\"nltyfsoppusuesnz\",\"id\":\"dejbavo\",\"name\":\"xzdmohctb\",\"type\":\"vudwx\"}") - .toObject(NetworkInner.class); - Assertions.assertEquals("eipheoflokeyy", model.properties().fabricType()); - Assertions.assertEquals("bdlwtgrhpdjpj", model.properties().subnets().get(0).name()); - Assertions.assertEquals("asxazjpqyegualhb", model.properties().subnets().get(0).friendlyName()); - Assertions.assertEquals("e", model.properties().subnets().get(0).addressList().get(0)); - Assertions.assertEquals("dslfhotwmcy", model.properties().friendlyName()); - Assertions.assertEquals("wlbjnpgacftade", model.properties().networkType()); - Assertions.assertEquals("nltyfsoppusuesnz", model.location()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NetworkInner model = new NetworkInner().withProperties(new NetworkProperties().withFabricType("eipheoflokeyy") - .withSubnets(Arrays.asList(new Subnet().withName("bdlwtgrhpdjpj") - .withFriendlyName("asxazjpqyegualhb") - .withAddressList(Arrays.asList("e", "jzzvdud")))) - .withFriendlyName("dslfhotwmcy") - .withNetworkType("wlbjnpgacftade")).withLocation("nltyfsoppusuesnz"); - model = BinaryData.fromObject(model).toObject(NetworkInner.class); - Assertions.assertEquals("eipheoflokeyy", model.properties().fabricType()); - Assertions.assertEquals("bdlwtgrhpdjpj", model.properties().subnets().get(0).name()); - Assertions.assertEquals("asxazjpqyegualhb", model.properties().subnets().get(0).friendlyName()); - Assertions.assertEquals("e", model.properties().subnets().get(0).addressList().get(0)); - Assertions.assertEquals("dslfhotwmcy", model.properties().friendlyName()); - Assertions.assertEquals("wlbjnpgacftade", model.properties().networkType()); - Assertions.assertEquals("nltyfsoppusuesnz", model.location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/NetworkMappingCollectionTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/NetworkMappingCollectionTests.java deleted file mode 100644 index a697302f594b..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/NetworkMappingCollectionTests.java +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.NetworkMappingInner; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.NetworkMappingCollection; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.NetworkMappingFabricSpecificSettings; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.NetworkMappingProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class NetworkMappingCollectionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - NetworkMappingCollection model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"state\":\"yiuokktwh\",\"primaryNetworkFriendlyName\":\"xw\",\"primaryNetworkId\":\"wqsmbsur\",\"primaryFabricFriendlyName\":\"imoryocfsfksym\",\"recoveryNetworkFriendlyName\":\"ys\",\"recoveryNetworkId\":\"i\",\"recoveryFabricArmId\":\"xhqyudxorrqnb\",\"recoveryFabricFriendlyName\":\"czvyifq\",\"fabricSpecificSettings\":{\"instanceType\":\"NetworkMappingFabricSpecificSettings\"}},\"location\":\"dvjsllrmvvdf\",\"id\":\"atkpnp\",\"name\":\"lexxbczwtru\",\"type\":\"iqzbq\"}],\"nextLink\":\"sovmyokacspkwl\"}") - .toObject(NetworkMappingCollection.class); - Assertions.assertEquals("yiuokktwh", model.value().get(0).properties().state()); - Assertions.assertEquals("xw", model.value().get(0).properties().primaryNetworkFriendlyName()); - Assertions.assertEquals("wqsmbsur", model.value().get(0).properties().primaryNetworkId()); - Assertions.assertEquals("imoryocfsfksym", model.value().get(0).properties().primaryFabricFriendlyName()); - Assertions.assertEquals("ys", model.value().get(0).properties().recoveryNetworkFriendlyName()); - Assertions.assertEquals("i", model.value().get(0).properties().recoveryNetworkId()); - Assertions.assertEquals("xhqyudxorrqnb", model.value().get(0).properties().recoveryFabricArmId()); - Assertions.assertEquals("czvyifq", model.value().get(0).properties().recoveryFabricFriendlyName()); - Assertions.assertEquals("dvjsllrmvvdf", model.value().get(0).location()); - Assertions.assertEquals("sovmyokacspkwl", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NetworkMappingCollection model - = new NetworkMappingCollection().withValue(Arrays.asList(new NetworkMappingInner() - .withProperties(new NetworkMappingProperties().withState("yiuokktwh") - .withPrimaryNetworkFriendlyName("xw") - .withPrimaryNetworkId("wqsmbsur") - .withPrimaryFabricFriendlyName("imoryocfsfksym") - .withRecoveryNetworkFriendlyName("ys") - .withRecoveryNetworkId("i") - .withRecoveryFabricArmId("xhqyudxorrqnb") - .withRecoveryFabricFriendlyName("czvyifq") - .withFabricSpecificSettings(new NetworkMappingFabricSpecificSettings())) - .withLocation("dvjsllrmvvdf"))).withNextLink("sovmyokacspkwl"); - model = BinaryData.fromObject(model).toObject(NetworkMappingCollection.class); - Assertions.assertEquals("yiuokktwh", model.value().get(0).properties().state()); - Assertions.assertEquals("xw", model.value().get(0).properties().primaryNetworkFriendlyName()); - Assertions.assertEquals("wqsmbsur", model.value().get(0).properties().primaryNetworkId()); - Assertions.assertEquals("imoryocfsfksym", model.value().get(0).properties().primaryFabricFriendlyName()); - Assertions.assertEquals("ys", model.value().get(0).properties().recoveryNetworkFriendlyName()); - Assertions.assertEquals("i", model.value().get(0).properties().recoveryNetworkId()); - Assertions.assertEquals("xhqyudxorrqnb", model.value().get(0).properties().recoveryFabricArmId()); - Assertions.assertEquals("czvyifq", model.value().get(0).properties().recoveryFabricFriendlyName()); - Assertions.assertEquals("dvjsllrmvvdf", model.value().get(0).location()); - Assertions.assertEquals("sovmyokacspkwl", model.nextLink()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/NetworkMappingFabricSpecificSettingsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/NetworkMappingFabricSpecificSettingsTests.java deleted file mode 100644 index d6f266d9a2ef..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/NetworkMappingFabricSpecificSettingsTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.NetworkMappingFabricSpecificSettings; - -public final class NetworkMappingFabricSpecificSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - NetworkMappingFabricSpecificSettings model - = BinaryData.fromString("{\"instanceType\":\"NetworkMappingFabricSpecificSettings\"}") - .toObject(NetworkMappingFabricSpecificSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NetworkMappingFabricSpecificSettings model = new NetworkMappingFabricSpecificSettings(); - model = BinaryData.fromObject(model).toObject(NetworkMappingFabricSpecificSettings.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/NetworkMappingInnerTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/NetworkMappingInnerTests.java deleted file mode 100644 index 81fd60431fbe..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/NetworkMappingInnerTests.java +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.NetworkMappingInner; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.NetworkMappingFabricSpecificSettings; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.NetworkMappingProperties; -import org.junit.jupiter.api.Assertions; - -public final class NetworkMappingInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - NetworkMappingInner model = BinaryData.fromString( - "{\"properties\":{\"state\":\"obpxjmflbvvn\",\"primaryNetworkFriendlyName\":\"rkcciwwzjuqk\",\"primaryNetworkId\":\"sa\",\"primaryFabricFriendlyName\":\"wkuofoskghsauu\",\"recoveryNetworkFriendlyName\":\"jmvxie\",\"recoveryNetworkId\":\"ugidyjrr\",\"recoveryFabricArmId\":\"y\",\"recoveryFabricFriendlyName\":\"svexcsonpclhoco\",\"fabricSpecificSettings\":{\"instanceType\":\"NetworkMappingFabricSpecificSettings\"}},\"location\":\"kevle\",\"id\":\"gz\",\"name\":\"buhfmvfaxkffeiit\",\"type\":\"lvmezyvshxmzsbbz\"}") - .toObject(NetworkMappingInner.class); - Assertions.assertEquals("obpxjmflbvvn", model.properties().state()); - Assertions.assertEquals("rkcciwwzjuqk", model.properties().primaryNetworkFriendlyName()); - Assertions.assertEquals("sa", model.properties().primaryNetworkId()); - Assertions.assertEquals("wkuofoskghsauu", model.properties().primaryFabricFriendlyName()); - Assertions.assertEquals("jmvxie", model.properties().recoveryNetworkFriendlyName()); - Assertions.assertEquals("ugidyjrr", model.properties().recoveryNetworkId()); - Assertions.assertEquals("y", model.properties().recoveryFabricArmId()); - Assertions.assertEquals("svexcsonpclhoco", model.properties().recoveryFabricFriendlyName()); - Assertions.assertEquals("kevle", model.location()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NetworkMappingInner model - = new NetworkMappingInner().withProperties(new NetworkMappingProperties().withState("obpxjmflbvvn") - .withPrimaryNetworkFriendlyName("rkcciwwzjuqk") - .withPrimaryNetworkId("sa") - .withPrimaryFabricFriendlyName("wkuofoskghsauu") - .withRecoveryNetworkFriendlyName("jmvxie") - .withRecoveryNetworkId("ugidyjrr") - .withRecoveryFabricArmId("y") - .withRecoveryFabricFriendlyName("svexcsonpclhoco") - .withFabricSpecificSettings(new NetworkMappingFabricSpecificSettings())).withLocation("kevle"); - model = BinaryData.fromObject(model).toObject(NetworkMappingInner.class); - Assertions.assertEquals("obpxjmflbvvn", model.properties().state()); - Assertions.assertEquals("rkcciwwzjuqk", model.properties().primaryNetworkFriendlyName()); - Assertions.assertEquals("sa", model.properties().primaryNetworkId()); - Assertions.assertEquals("wkuofoskghsauu", model.properties().primaryFabricFriendlyName()); - Assertions.assertEquals("jmvxie", model.properties().recoveryNetworkFriendlyName()); - Assertions.assertEquals("ugidyjrr", model.properties().recoveryNetworkId()); - Assertions.assertEquals("y", model.properties().recoveryFabricArmId()); - Assertions.assertEquals("svexcsonpclhoco", model.properties().recoveryFabricFriendlyName()); - Assertions.assertEquals("kevle", model.location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/NetworkMappingPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/NetworkMappingPropertiesTests.java deleted file mode 100644 index c5477a60fb81..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/NetworkMappingPropertiesTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.NetworkMappingFabricSpecificSettings; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.NetworkMappingProperties; -import org.junit.jupiter.api.Assertions; - -public final class NetworkMappingPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - NetworkMappingProperties model = BinaryData.fromString( - "{\"state\":\"gigr\",\"primaryNetworkFriendlyName\":\"burvjxxjnspy\",\"primaryNetworkId\":\"tko\",\"primaryFabricFriendlyName\":\"kouknvudwtiu\",\"recoveryNetworkFriendlyName\":\"ldngkpoci\",\"recoveryNetworkId\":\"z\",\"recoveryFabricArmId\":\"o\",\"recoveryFabricFriendlyName\":\"ukgjnpiucgygevq\",\"fabricSpecificSettings\":{\"instanceType\":\"NetworkMappingFabricSpecificSettings\"}}") - .toObject(NetworkMappingProperties.class); - Assertions.assertEquals("gigr", model.state()); - Assertions.assertEquals("burvjxxjnspy", model.primaryNetworkFriendlyName()); - Assertions.assertEquals("tko", model.primaryNetworkId()); - Assertions.assertEquals("kouknvudwtiu", model.primaryFabricFriendlyName()); - Assertions.assertEquals("ldngkpoci", model.recoveryNetworkFriendlyName()); - Assertions.assertEquals("z", model.recoveryNetworkId()); - Assertions.assertEquals("o", model.recoveryFabricArmId()); - Assertions.assertEquals("ukgjnpiucgygevq", model.recoveryFabricFriendlyName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NetworkMappingProperties model = new NetworkMappingProperties().withState("gigr") - .withPrimaryNetworkFriendlyName("burvjxxjnspy") - .withPrimaryNetworkId("tko") - .withPrimaryFabricFriendlyName("kouknvudwtiu") - .withRecoveryNetworkFriendlyName("ldngkpoci") - .withRecoveryNetworkId("z") - .withRecoveryFabricArmId("o") - .withRecoveryFabricFriendlyName("ukgjnpiucgygevq") - .withFabricSpecificSettings(new NetworkMappingFabricSpecificSettings()); - model = BinaryData.fromObject(model).toObject(NetworkMappingProperties.class); - Assertions.assertEquals("gigr", model.state()); - Assertions.assertEquals("burvjxxjnspy", model.primaryNetworkFriendlyName()); - Assertions.assertEquals("tko", model.primaryNetworkId()); - Assertions.assertEquals("kouknvudwtiu", model.primaryFabricFriendlyName()); - Assertions.assertEquals("ldngkpoci", model.recoveryNetworkFriendlyName()); - Assertions.assertEquals("z", model.recoveryNetworkId()); - Assertions.assertEquals("o", model.recoveryFabricArmId()); - Assertions.assertEquals("ukgjnpiucgygevq", model.recoveryFabricFriendlyName()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/NetworkPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/NetworkPropertiesTests.java deleted file mode 100644 index 140ee2cb2a46..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/NetworkPropertiesTests.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.NetworkProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.Subnet; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class NetworkPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - NetworkProperties model = BinaryData.fromString( - "{\"fabricType\":\"dnvowg\",\"subnets\":[{\"name\":\"gwdkcglhsl\",\"friendlyName\":\"jdyggdtji\",\"addressList\":[\"kuofqweykhme\"]},{\"name\":\"vfyexfw\",\"friendlyName\":\"bcibvyvdcsitynn\",\"addressList\":[\"dectehfiqsc\",\"eypvhezrkg\",\"hcjrefovgmk\",\"sle\"]},{\"name\":\"vxyqjpkcattpngjc\",\"friendlyName\":\"czsqpjhvm\",\"addressList\":[\"v\",\"ysou\",\"q\"]}],\"friendlyName\":\"a\",\"networkType\":\"ae\"}") - .toObject(NetworkProperties.class); - Assertions.assertEquals("dnvowg", model.fabricType()); - Assertions.assertEquals("gwdkcglhsl", model.subnets().get(0).name()); - Assertions.assertEquals("jdyggdtji", model.subnets().get(0).friendlyName()); - Assertions.assertEquals("kuofqweykhme", model.subnets().get(0).addressList().get(0)); - Assertions.assertEquals("a", model.friendlyName()); - Assertions.assertEquals("ae", model.networkType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NetworkProperties model = new NetworkProperties().withFabricType("dnvowg") - .withSubnets(Arrays.asList( - new Subnet().withName("gwdkcglhsl") - .withFriendlyName("jdyggdtji") - .withAddressList(Arrays.asList("kuofqweykhme")), - new Subnet().withName("vfyexfw") - .withFriendlyName("bcibvyvdcsitynn") - .withAddressList(Arrays.asList("dectehfiqsc", "eypvhezrkg", "hcjrefovgmk", "sle")), - new Subnet().withName("vxyqjpkcattpngjc") - .withFriendlyName("czsqpjhvm") - .withAddressList(Arrays.asList("v", "ysou", "q")))) - .withFriendlyName("a") - .withNetworkType("ae"); - model = BinaryData.fromObject(model).toObject(NetworkProperties.class); - Assertions.assertEquals("dnvowg", model.fabricType()); - Assertions.assertEquals("gwdkcglhsl", model.subnets().get(0).name()); - Assertions.assertEquals("jdyggdtji", model.subnets().get(0).friendlyName()); - Assertions.assertEquals("kuofqweykhme", model.subnets().get(0).addressList().get(0)); - Assertions.assertEquals("a", model.friendlyName()); - Assertions.assertEquals("ae", model.networkType()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/NewProtectionProfileTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/NewProtectionProfileTests.java deleted file mode 100644 index b4d087672901..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/NewProtectionProfileTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.NewProtectionProfile; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.SetMultiVmSyncStatus; -import org.junit.jupiter.api.Assertions; - -public final class NewProtectionProfileTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - NewProtectionProfile model = BinaryData.fromString( - "{\"resourceType\":\"New\",\"policyName\":\"pc\",\"recoveryPointHistory\":1754737974,\"crashConsistentFrequencyInMinutes\":381406744,\"appConsistentFrequencyInMinutes\":198630766,\"multiVmSyncStatus\":\"Enable\"}") - .toObject(NewProtectionProfile.class); - Assertions.assertEquals("pc", model.policyName()); - Assertions.assertEquals(1754737974, model.recoveryPointHistory()); - Assertions.assertEquals(381406744, model.crashConsistentFrequencyInMinutes()); - Assertions.assertEquals(198630766, model.appConsistentFrequencyInMinutes()); - Assertions.assertEquals(SetMultiVmSyncStatus.ENABLE, model.multiVmSyncStatus()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NewProtectionProfile model = new NewProtectionProfile().withPolicyName("pc") - .withRecoveryPointHistory(1754737974) - .withCrashConsistentFrequencyInMinutes(381406744) - .withAppConsistentFrequencyInMinutes(198630766) - .withMultiVmSyncStatus(SetMultiVmSyncStatus.ENABLE); - model = BinaryData.fromObject(model).toObject(NewProtectionProfile.class); - Assertions.assertEquals("pc", model.policyName()); - Assertions.assertEquals(1754737974, model.recoveryPointHistory()); - Assertions.assertEquals(381406744, model.crashConsistentFrequencyInMinutes()); - Assertions.assertEquals(198630766, model.appConsistentFrequencyInMinutes()); - Assertions.assertEquals(SetMultiVmSyncStatus.ENABLE, model.multiVmSyncStatus()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/NewRecoveryVirtualNetworkTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/NewRecoveryVirtualNetworkTests.java deleted file mode 100644 index b41b0316f9d8..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/NewRecoveryVirtualNetworkTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.NewRecoveryVirtualNetwork; -import org.junit.jupiter.api.Assertions; - -public final class NewRecoveryVirtualNetworkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - NewRecoveryVirtualNetwork model = BinaryData.fromString( - "{\"resourceType\":\"New\",\"recoveryVirtualNetworkResourceGroupName\":\"vfpsj\",\"recoveryVirtualNetworkName\":\"ngsy\"}") - .toObject(NewRecoveryVirtualNetwork.class); - Assertions.assertEquals("vfpsj", model.recoveryVirtualNetworkResourceGroupName()); - Assertions.assertEquals("ngsy", model.recoveryVirtualNetworkName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NewRecoveryVirtualNetwork model - = new NewRecoveryVirtualNetwork().withRecoveryVirtualNetworkResourceGroupName("vfpsj") - .withRecoveryVirtualNetworkName("ngsy"); - model = BinaryData.fromObject(model).toObject(NewRecoveryVirtualNetwork.class); - Assertions.assertEquals("vfpsj", model.recoveryVirtualNetworkResourceGroupName()); - Assertions.assertEquals("ngsy", model.recoveryVirtualNetworkName()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/OSDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/OSDetailsTests.java deleted file mode 100644 index 7d66ad8c8b4b..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/OSDetailsTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.OSDetails; -import org.junit.jupiter.api.Assertions; - -public final class OSDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OSDetails model = BinaryData.fromString( - "{\"osType\":\"dqigmg\",\"productType\":\"inztxl\",\"osEdition\":\"khnjcmrnkfm\",\"oSVersion\":\"cqtwmlmhjnqtq\",\"oSMajorVersion\":\"hj\",\"oSMinorVersion\":\"vragpokddx\"}") - .toObject(OSDetails.class); - Assertions.assertEquals("dqigmg", model.osType()); - Assertions.assertEquals("inztxl", model.productType()); - Assertions.assertEquals("khnjcmrnkfm", model.osEdition()); - Assertions.assertEquals("cqtwmlmhjnqtq", model.oSVersion()); - Assertions.assertEquals("hj", model.oSMajorVersion()); - Assertions.assertEquals("vragpokddx", model.oSMinorVersion()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OSDetails model = new OSDetails().withOsType("dqigmg") - .withProductType("inztxl") - .withOsEdition("khnjcmrnkfm") - .withOSVersion("cqtwmlmhjnqtq") - .withOSMajorVersion("hj") - .withOSMinorVersion("vragpokddx"); - model = BinaryData.fromObject(model).toObject(OSDetails.class); - Assertions.assertEquals("dqigmg", model.osType()); - Assertions.assertEquals("inztxl", model.productType()); - Assertions.assertEquals("khnjcmrnkfm", model.osEdition()); - Assertions.assertEquals("cqtwmlmhjnqtq", model.oSVersion()); - Assertions.assertEquals("hj", model.oSMajorVersion()); - Assertions.assertEquals("vragpokddx", model.oSMinorVersion()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/OSDiskDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/OSDiskDetailsTests.java deleted file mode 100644 index b965f22a8ebf..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/OSDiskDetailsTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.OSDiskDetails; -import org.junit.jupiter.api.Assertions; - -public final class OSDiskDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OSDiskDetails model = BinaryData - .fromString("{\"osVhdId\":\"hrjqfyaytvslyek\",\"osType\":\"niuarlcjiwgsxfai\",\"vhdName\":\"wd\"}") - .toObject(OSDiskDetails.class); - Assertions.assertEquals("hrjqfyaytvslyek", model.osVhdId()); - Assertions.assertEquals("niuarlcjiwgsxfai", model.osType()); - Assertions.assertEquals("wd", model.vhdName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OSDiskDetails model - = new OSDiskDetails().withOsVhdId("hrjqfyaytvslyek").withOsType("niuarlcjiwgsxfai").withVhdName("wd"); - model = BinaryData.fromObject(model).toObject(OSDiskDetails.class); - Assertions.assertEquals("hrjqfyaytvslyek", model.osVhdId()); - Assertions.assertEquals("niuarlcjiwgsxfai", model.osType()); - Assertions.assertEquals("wd", model.vhdName()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/OSUpgradeSupportedVersionsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/OSUpgradeSupportedVersionsTests.java deleted file mode 100644 index 87a00eeb975a..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/OSUpgradeSupportedVersionsTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.OSUpgradeSupportedVersions; - -public final class OSUpgradeSupportedVersionsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OSUpgradeSupportedVersions model = BinaryData.fromString( - "{\"supportedSourceOsVersion\":\"hhkvguavtptbk\",\"supportedTargetOsVersions\":[\"qynspgbvoffb\",\"kwvdxa\",\"xqokmyrlji\"]}") - .toObject(OSUpgradeSupportedVersions.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OSUpgradeSupportedVersions model = new OSUpgradeSupportedVersions(); - model = BinaryData.fromObject(model).toObject(OSUpgradeSupportedVersions.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/OSVersionWrapperTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/OSVersionWrapperTests.java deleted file mode 100644 index 9bc9b6b12285..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/OSVersionWrapperTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.OSVersionWrapper; -import org.junit.jupiter.api.Assertions; - -public final class OSVersionWrapperTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OSVersionWrapper model = BinaryData.fromString("{\"version\":\"wjh\",\"servicePack\":\"biwetpo\"}") - .toObject(OSVersionWrapper.class); - Assertions.assertEquals("wjh", model.version()); - Assertions.assertEquals("biwetpo", model.servicePack()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OSVersionWrapper model = new OSVersionWrapper().withVersion("wjh").withServicePack("biwetpo"); - model = BinaryData.fromObject(model).toObject(OSVersionWrapper.class); - Assertions.assertEquals("wjh", model.version()); - Assertions.assertEquals("biwetpo", model.servicePack()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/OperationsDiscoveryCollectionTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/OperationsDiscoveryCollectionTests.java deleted file mode 100644 index c56f9d48ae3d..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/OperationsDiscoveryCollectionTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.OperationsDiscoveryInner; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.Display; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.OperationsDiscoveryCollection; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class OperationsDiscoveryCollectionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationsDiscoveryCollection model = BinaryData.fromString( - "{\"value\":[{\"name\":\"quvgjxpybczme\",\"display\":{\"provider\":\"zopbsphrupidgs\",\"resource\":\"bejhphoycmsxa\",\"operation\":\"hdxbmtqio\",\"description\":\"zehtbmu\"},\"origin\":\"ownoizhw\",\"properties\":\"dataxybqsoqij\"},{\"name\":\"dmbpazlobcufpdz\",\"display\":{\"provider\":\"t\",\"resource\":\"qjnqglhqgnufoooj\",\"operation\":\"ifsqesaagdfmg\",\"description\":\"lhjxr\"},\"origin\":\"kwm\",\"properties\":\"dataktsizntocipaou\"},{\"name\":\"psqucmpoyf\",\"display\":{\"provider\":\"ogknygjofjdd\",\"resource\":\"s\",\"operation\":\"eupewnwreitjz\",\"description\":\"lusarh\"},\"origin\":\"fcqhsmyurkd\",\"properties\":\"datalx\"}],\"nextLink\":\"kuksjtxukcdm\"}") - .toObject(OperationsDiscoveryCollection.class); - Assertions.assertEquals("quvgjxpybczme", model.value().get(0).name()); - Assertions.assertEquals("zopbsphrupidgs", model.value().get(0).display().provider()); - Assertions.assertEquals("bejhphoycmsxa", model.value().get(0).display().resource()); - Assertions.assertEquals("hdxbmtqio", model.value().get(0).display().operation()); - Assertions.assertEquals("zehtbmu", model.value().get(0).display().description()); - Assertions.assertEquals("ownoizhw", model.value().get(0).origin()); - Assertions.assertEquals("kuksjtxukcdm", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationsDiscoveryCollection model = new OperationsDiscoveryCollection().withValue(Arrays.asList( - new OperationsDiscoveryInner().withName("quvgjxpybczme") - .withDisplay(new Display().withProvider("zopbsphrupidgs") - .withResource("bejhphoycmsxa") - .withOperation("hdxbmtqio") - .withDescription("zehtbmu")) - .withOrigin("ownoizhw") - .withProperties("dataxybqsoqij"), - new OperationsDiscoveryInner().withName("dmbpazlobcufpdz") - .withDisplay(new Display().withProvider("t") - .withResource("qjnqglhqgnufoooj") - .withOperation("ifsqesaagdfmg") - .withDescription("lhjxr")) - .withOrigin("kwm") - .withProperties("dataktsizntocipaou"), - new OperationsDiscoveryInner().withName("psqucmpoyf") - .withDisplay(new Display().withProvider("ogknygjofjdd") - .withResource("s") - .withOperation("eupewnwreitjz") - .withDescription("lusarh")) - .withOrigin("fcqhsmyurkd") - .withProperties("datalx"))) - .withNextLink("kuksjtxukcdm"); - model = BinaryData.fromObject(model).toObject(OperationsDiscoveryCollection.class); - Assertions.assertEquals("quvgjxpybczme", model.value().get(0).name()); - Assertions.assertEquals("zopbsphrupidgs", model.value().get(0).display().provider()); - Assertions.assertEquals("bejhphoycmsxa", model.value().get(0).display().resource()); - Assertions.assertEquals("hdxbmtqio", model.value().get(0).display().operation()); - Assertions.assertEquals("zehtbmu", model.value().get(0).display().description()); - Assertions.assertEquals("ownoizhw", model.value().get(0).origin()); - Assertions.assertEquals("kuksjtxukcdm", model.nextLink()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/OperationsDiscoveryInnerTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/OperationsDiscoveryInnerTests.java deleted file mode 100644 index c01af70144f7..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/OperationsDiscoveryInnerTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.OperationsDiscoveryInner; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.Display; -import org.junit.jupiter.api.Assertions; - -public final class OperationsDiscoveryInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationsDiscoveryInner model = BinaryData.fromString( - "{\"name\":\"rcryuanzwuxzdxta\",\"display\":{\"provider\":\"hmwhfpmrqo\",\"resource\":\"tu\",\"operation\":\"nryrtihf\",\"description\":\"ijbpzvgnwzsymgl\"},\"origin\":\"fcyzkohdbihanufh\",\"properties\":\"databj\"}") - .toObject(OperationsDiscoveryInner.class); - Assertions.assertEquals("rcryuanzwuxzdxta", model.name()); - Assertions.assertEquals("hmwhfpmrqo", model.display().provider()); - Assertions.assertEquals("tu", model.display().resource()); - Assertions.assertEquals("nryrtihf", model.display().operation()); - Assertions.assertEquals("ijbpzvgnwzsymgl", model.display().description()); - Assertions.assertEquals("fcyzkohdbihanufh", model.origin()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationsDiscoveryInner model = new OperationsDiscoveryInner().withName("rcryuanzwuxzdxta") - .withDisplay(new Display().withProvider("hmwhfpmrqo") - .withResource("tu") - .withOperation("nryrtihf") - .withDescription("ijbpzvgnwzsymgl")) - .withOrigin("fcyzkohdbihanufh") - .withProperties("databj"); - model = BinaryData.fromObject(model).toObject(OperationsDiscoveryInner.class); - Assertions.assertEquals("rcryuanzwuxzdxta", model.name()); - Assertions.assertEquals("hmwhfpmrqo", model.display().provider()); - Assertions.assertEquals("tu", model.display().resource()); - Assertions.assertEquals("nryrtihf", model.display().operation()); - Assertions.assertEquals("ijbpzvgnwzsymgl", model.display().description()); - Assertions.assertEquals("fcyzkohdbihanufh", model.origin()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/OperationsListByResourceGroupMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/OperationsListByResourceGroupMockTests.java deleted file mode 100644 index 644d8723ed6c..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/OperationsListByResourceGroupMockTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.OperationsDiscovery; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class OperationsListByResourceGroupMockTests { - @Test - public void testListByResourceGroup() throws Exception { - String responseStr - = "{\"value\":[{\"name\":\"oojjfuktub\",\"display\":{\"provider\":\"nhgbtzvxxvsbc\",\"resource\":\"fkrfnkcni\",\"operation\":\"swxmfurqm\",\"description\":\"wwp\"},\"origin\":\"um\",\"properties\":\"dataahbqsvnkxm\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.operations().listByResourceGroup("flbrouszxacdwuko", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("oojjfuktub", response.iterator().next().name()); - Assertions.assertEquals("nhgbtzvxxvsbc", response.iterator().next().display().provider()); - Assertions.assertEquals("fkrfnkcni", response.iterator().next().display().resource()); - Assertions.assertEquals("swxmfurqm", response.iterator().next().display().operation()); - Assertions.assertEquals("wwp", response.iterator().next().display().description()); - Assertions.assertEquals("um", response.iterator().next().origin()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/PauseReplicationInputPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/PauseReplicationInputPropertiesTests.java deleted file mode 100644 index fb347ca50a38..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/PauseReplicationInputPropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.PauseReplicationInputProperties; -import org.junit.jupiter.api.Assertions; - -public final class PauseReplicationInputPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PauseReplicationInputProperties model - = BinaryData.fromString("{\"instanceType\":\"qvkelnsm\"}").toObject(PauseReplicationInputProperties.class); - Assertions.assertEquals("qvkelnsm", model.instanceType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PauseReplicationInputProperties model = new PauseReplicationInputProperties().withInstanceType("qvkelnsm"); - model = BinaryData.fromObject(model).toObject(PauseReplicationInputProperties.class); - Assertions.assertEquals("qvkelnsm", model.instanceType()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/PauseReplicationInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/PauseReplicationInputTests.java deleted file mode 100644 index 0d4ab5c2a4fc..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/PauseReplicationInputTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.PauseReplicationInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.PauseReplicationInputProperties; -import org.junit.jupiter.api.Assertions; - -public final class PauseReplicationInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PauseReplicationInput model = BinaryData.fromString("{\"properties\":{\"instanceType\":\"waboe\"}}") - .toObject(PauseReplicationInput.class); - Assertions.assertEquals("waboe", model.properties().instanceType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PauseReplicationInput model = new PauseReplicationInput() - .withProperties(new PauseReplicationInputProperties().withInstanceType("waboe")); - model = BinaryData.fromObject(model).toObject(PauseReplicationInput.class); - Assertions.assertEquals("waboe", model.properties().instanceType()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/PlannedFailoverInputPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/PlannedFailoverInputPropertiesTests.java deleted file mode 100644 index 11a385b20c31..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/PlannedFailoverInputPropertiesTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.PlannedFailoverInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.PlannedFailoverProviderSpecificFailoverInput; -import org.junit.jupiter.api.Assertions; - -public final class PlannedFailoverInputPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PlannedFailoverInputProperties model = BinaryData.fromString( - "{\"failoverDirection\":\"qyzhf\",\"providerSpecificDetails\":{\"instanceType\":\"PlannedFailoverProviderSpecificFailoverInput\"}}") - .toObject(PlannedFailoverInputProperties.class); - Assertions.assertEquals("qyzhf", model.failoverDirection()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PlannedFailoverInputProperties model = new PlannedFailoverInputProperties().withFailoverDirection("qyzhf") - .withProviderSpecificDetails(new PlannedFailoverProviderSpecificFailoverInput()); - model = BinaryData.fromObject(model).toObject(PlannedFailoverInputProperties.class); - Assertions.assertEquals("qyzhf", model.failoverDirection()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/PlannedFailoverInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/PlannedFailoverInputTests.java deleted file mode 100644 index 78f6deab9726..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/PlannedFailoverInputTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.PlannedFailoverInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.PlannedFailoverInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.PlannedFailoverProviderSpecificFailoverInput; -import org.junit.jupiter.api.Assertions; - -public final class PlannedFailoverInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PlannedFailoverInput model = BinaryData.fromString( - "{\"properties\":{\"failoverDirection\":\"tizzronasxif\",\"providerSpecificDetails\":{\"instanceType\":\"PlannedFailoverProviderSpecificFailoverInput\"}}}") - .toObject(PlannedFailoverInput.class); - Assertions.assertEquals("tizzronasxif", model.properties().failoverDirection()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PlannedFailoverInput model = new PlannedFailoverInput() - .withProperties(new PlannedFailoverInputProperties().withFailoverDirection("tizzronasxif") - .withProviderSpecificDetails(new PlannedFailoverProviderSpecificFailoverInput())); - model = BinaryData.fromObject(model).toObject(PlannedFailoverInput.class); - Assertions.assertEquals("tizzronasxif", model.properties().failoverDirection()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/PlannedFailoverProviderSpecificFailoverInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/PlannedFailoverProviderSpecificFailoverInputTests.java deleted file mode 100644 index ce88dc844299..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/PlannedFailoverProviderSpecificFailoverInputTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.PlannedFailoverProviderSpecificFailoverInput; - -public final class PlannedFailoverProviderSpecificFailoverInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PlannedFailoverProviderSpecificFailoverInput model - = BinaryData.fromString("{\"instanceType\":\"PlannedFailoverProviderSpecificFailoverInput\"}") - .toObject(PlannedFailoverProviderSpecificFailoverInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PlannedFailoverProviderSpecificFailoverInput model = new PlannedFailoverProviderSpecificFailoverInput(); - model = BinaryData.fromObject(model).toObject(PlannedFailoverProviderSpecificFailoverInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/PolicyCollectionTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/PolicyCollectionTests.java deleted file mode 100644 index 9085b6e3fe03..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/PolicyCollectionTests.java +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.PolicyInner; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.PolicyCollection; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.PolicyProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.PolicyProviderSpecificDetails; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class PolicyCollectionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PolicyCollection model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"friendlyName\":\"ulaiywzejywhs\",\"providerSpecificDetails\":{\"instanceType\":\"PolicyProviderSpecificDetails\"}},\"location\":\"ojpllndnpdwrpqaf\",\"id\":\"fugsnnfhyetefy\",\"name\":\"oc\",\"type\":\"ctfjgtixr\"},{\"properties\":{\"friendlyName\":\"uyturml\",\"providerSpecificDetails\":{\"instanceType\":\"PolicyProviderSpecificDetails\"}},\"location\":\"wolba\",\"id\":\"iropionszon\",\"name\":\"pngajin\",\"type\":\"ixjawrtm\"},{\"properties\":{\"friendlyName\":\"myccx\",\"providerSpecificDetails\":{\"instanceType\":\"PolicyProviderSpecificDetails\"}},\"location\":\"coxovn\",\"id\":\"khenlus\",\"name\":\"nrd\",\"type\":\"jxtxrdc\"},{\"properties\":{\"friendlyName\":\"vidttgepuslvyjt\",\"providerSpecificDetails\":{\"instanceType\":\"PolicyProviderSpecificDetails\"}},\"location\":\"wkasiziesf\",\"id\":\"ughtuqfecjxeygtu\",\"name\":\"xu\",\"type\":\"cbuewmrswnjlxuz\"}],\"nextLink\":\"wpusxjbaqehg\"}") - .toObject(PolicyCollection.class); - Assertions.assertEquals("ulaiywzejywhs", model.value().get(0).properties().friendlyName()); - Assertions.assertEquals("ojpllndnpdwrpqaf", model.value().get(0).location()); - Assertions.assertEquals("wpusxjbaqehg", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PolicyCollection model - = new PolicyCollection() - .withValue( - Arrays.asList( - new PolicyInner() - .withProperties(new PolicyProperties().withFriendlyName("ulaiywzejywhs") - .withProviderSpecificDetails(new PolicyProviderSpecificDetails())) - .withLocation("ojpllndnpdwrpqaf"), - new PolicyInner() - .withProperties(new PolicyProperties().withFriendlyName("uyturml") - .withProviderSpecificDetails(new PolicyProviderSpecificDetails())) - .withLocation("wolba"), - new PolicyInner() - .withProperties(new PolicyProperties().withFriendlyName("myccx") - .withProviderSpecificDetails(new PolicyProviderSpecificDetails())) - .withLocation("coxovn"), - new PolicyInner() - .withProperties(new PolicyProperties().withFriendlyName("vidttgepuslvyjt") - .withProviderSpecificDetails(new PolicyProviderSpecificDetails())) - .withLocation("wkasiziesf"))) - .withNextLink("wpusxjbaqehg"); - model = BinaryData.fromObject(model).toObject(PolicyCollection.class); - Assertions.assertEquals("ulaiywzejywhs", model.value().get(0).properties().friendlyName()); - Assertions.assertEquals("ojpllndnpdwrpqaf", model.value().get(0).location()); - Assertions.assertEquals("wpusxjbaqehg", model.nextLink()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/PolicyInnerTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/PolicyInnerTests.java deleted file mode 100644 index 633feac031d4..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/PolicyInnerTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.PolicyInner; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.PolicyProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.PolicyProviderSpecificDetails; -import org.junit.jupiter.api.Assertions; - -public final class PolicyInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PolicyInner model = BinaryData.fromString( - "{\"properties\":{\"friendlyName\":\"hzjqatucoige\",\"providerSpecificDetails\":{\"instanceType\":\"PolicyProviderSpecificDetails\"}},\"location\":\"cnwfepbnwgfmxjg\",\"id\":\"g\",\"name\":\"jbgdlfgtdysnaquf\",\"type\":\"qbctqha\"}") - .toObject(PolicyInner.class); - Assertions.assertEquals("hzjqatucoige", model.properties().friendlyName()); - Assertions.assertEquals("cnwfepbnwgfmxjg", model.location()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PolicyInner model = new PolicyInner().withProperties(new PolicyProperties().withFriendlyName("hzjqatucoige") - .withProviderSpecificDetails(new PolicyProviderSpecificDetails())).withLocation("cnwfepbnwgfmxjg"); - model = BinaryData.fromObject(model).toObject(PolicyInner.class); - Assertions.assertEquals("hzjqatucoige", model.properties().friendlyName()); - Assertions.assertEquals("cnwfepbnwgfmxjg", model.location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/PolicyPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/PolicyPropertiesTests.java deleted file mode 100644 index e0a11958ba67..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/PolicyPropertiesTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.PolicyProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.PolicyProviderSpecificDetails; -import org.junit.jupiter.api.Assertions; - -public final class PolicyPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PolicyProperties model = BinaryData.fromString( - "{\"friendlyName\":\"jrwdkqz\",\"providerSpecificDetails\":{\"instanceType\":\"PolicyProviderSpecificDetails\"}}") - .toObject(PolicyProperties.class); - Assertions.assertEquals("jrwdkqz", model.friendlyName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PolicyProperties model = new PolicyProperties().withFriendlyName("jrwdkqz") - .withProviderSpecificDetails(new PolicyProviderSpecificDetails()); - model = BinaryData.fromObject(model).toObject(PolicyProperties.class); - Assertions.assertEquals("jrwdkqz", model.friendlyName()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/PolicyProviderSpecificDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/PolicyProviderSpecificDetailsTests.java deleted file mode 100644 index 6bcc772021c4..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/PolicyProviderSpecificDetailsTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.PolicyProviderSpecificDetails; - -public final class PolicyProviderSpecificDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PolicyProviderSpecificDetails model - = BinaryData.fromString("{\"instanceType\":\"PolicyProviderSpecificDetails\"}") - .toObject(PolicyProviderSpecificDetails.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PolicyProviderSpecificDetails model = new PolicyProviderSpecificDetails(); - model = BinaryData.fromObject(model).toObject(PolicyProviderSpecificDetails.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/PolicyProviderSpecificInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/PolicyProviderSpecificInputTests.java deleted file mode 100644 index 051c9a19f9e8..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/PolicyProviderSpecificInputTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.PolicyProviderSpecificInput; - -public final class PolicyProviderSpecificInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PolicyProviderSpecificInput model = BinaryData.fromString("{\"instanceType\":\"PolicyProviderSpecificInput\"}") - .toObject(PolicyProviderSpecificInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PolicyProviderSpecificInput model = new PolicyProviderSpecificInput(); - model = BinaryData.fromObject(model).toObject(PolicyProviderSpecificInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ProtectableItemCollectionTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ProtectableItemCollectionTests.java deleted file mode 100644 index 40ad99aa85ce..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ProtectableItemCollectionTests.java +++ /dev/null @@ -1,89 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.ProtectableItemInner; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ConfigurationSettings; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ProtectableItemCollection; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ProtectableItemProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ProtectableItemCollectionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ProtectableItemCollection model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"friendlyName\":\"qcslyjpkiid\",\"protectionStatus\":\"exznelixhnr\",\"replicationProtectedItemId\":\"folhbnxknal\",\"recoveryServicesProviderId\":\"lp\",\"protectionReadinessErrors\":[\"dtpnapnyiropuhp\",\"gvpgy\",\"gqgitxmedjvcsl\"],\"supportedReplicationProviders\":[\"wwncwzzhxgk\",\"rmgucnap\"],\"customDetails\":{\"instanceType\":\"ConfigurationSettings\"}},\"location\":\"oellwp\",\"id\":\"fdygpfqbuaceopz\",\"name\":\"qrhhu\",\"type\":\"opppcqeq\"},{\"properties\":{\"friendlyName\":\"z\",\"protectionStatus\":\"hzxct\",\"replicationProtectedItemId\":\"gbkdmoizpos\",\"recoveryServicesProviderId\":\"grcfb\",\"protectionReadinessErrors\":[\"mfqjhhkxbp\",\"jy\",\"jhxxjyn\",\"u\"],\"supportedReplicationProviders\":[\"krtswbxqz\"],\"customDetails\":{\"instanceType\":\"ConfigurationSettings\"}},\"location\":\"jfauvjfdxxi\",\"id\":\"e\",\"name\":\"vtcqaqtdo\",\"type\":\"mcbxvwvxysl\"},{\"properties\":{\"friendlyName\":\"sfxobl\",\"protectionStatus\":\"k\",\"replicationProtectedItemId\":\"mpew\",\"recoveryServicesProviderId\":\"fbkrvrnsvs\",\"protectionReadinessErrors\":[\"ohxcrsbfova\",\"rruvwbhsq\"],\"supportedReplicationProviders\":[\"bcgjbirxbp\",\"bsrfbj\",\"dtws\"],\"customDetails\":{\"instanceType\":\"ConfigurationSettings\"}},\"location\":\"ftpvjzbexil\",\"id\":\"znfqqnvwpmqtar\",\"name\":\"oujmkcjhwqytj\",\"type\":\"ybn\"},{\"properties\":{\"friendlyName\":\"wgdrjervnaenqp\",\"protectionStatus\":\"indoygmifthnzd\",\"replicationProtectedItemId\":\"sl\",\"recoveryServicesProviderId\":\"ayqigynduhav\",\"protectionReadinessErrors\":[\"kthumaqolbgycdui\",\"r\"],\"supportedReplicationProviders\":[\"cym\",\"aolps\",\"lqlfm\",\"dnbbglzps\"],\"customDetails\":{\"instanceType\":\"ConfigurationSettings\"}},\"location\":\"d\",\"id\":\"cwyhzdxssa\",\"name\":\"bzmnvdfznud\",\"type\":\"od\"}],\"nextLink\":\"zbn\"}") - .toObject(ProtectableItemCollection.class); - Assertions.assertEquals("qcslyjpkiid", model.value().get(0).properties().friendlyName()); - Assertions.assertEquals("exznelixhnr", model.value().get(0).properties().protectionStatus()); - Assertions.assertEquals("folhbnxknal", model.value().get(0).properties().replicationProtectedItemId()); - Assertions.assertEquals("lp", model.value().get(0).properties().recoveryServicesProviderId()); - Assertions.assertEquals("dtpnapnyiropuhp", - model.value().get(0).properties().protectionReadinessErrors().get(0)); - Assertions.assertEquals("wwncwzzhxgk", - model.value().get(0).properties().supportedReplicationProviders().get(0)); - Assertions.assertEquals("oellwp", model.value().get(0).location()); - Assertions.assertEquals("zbn", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ProtectableItemCollection model - = new ProtectableItemCollection() - .withValue( - Arrays - .asList( - new ProtectableItemInner().withProperties(new ProtectableItemProperties() - .withFriendlyName("qcslyjpkiid") - .withProtectionStatus("exznelixhnr") - .withReplicationProtectedItemId("folhbnxknal") - .withRecoveryServicesProviderId("lp") - .withProtectionReadinessErrors( - Arrays.asList("dtpnapnyiropuhp", "gvpgy", "gqgitxmedjvcsl")) - .withSupportedReplicationProviders(Arrays.asList("wwncwzzhxgk", "rmgucnap")) - .withCustomDetails(new ConfigurationSettings())).withLocation("oellwp"), - new ProtectableItemInner().withProperties(new ProtectableItemProperties() - .withFriendlyName("z") - .withProtectionStatus("hzxct") - .withReplicationProtectedItemId("gbkdmoizpos") - .withRecoveryServicesProviderId("grcfb") - .withProtectionReadinessErrors(Arrays.asList("mfqjhhkxbp", "jy", "jhxxjyn", "u")) - .withSupportedReplicationProviders(Arrays.asList("krtswbxqz")) - .withCustomDetails(new ConfigurationSettings())).withLocation("jfauvjfdxxi"), - new ProtectableItemInner() - .withProperties(new ProtectableItemProperties().withFriendlyName("sfxobl") - .withProtectionStatus("k") - .withReplicationProtectedItemId("mpew") - .withRecoveryServicesProviderId("fbkrvrnsvs") - .withProtectionReadinessErrors(Arrays.asList("ohxcrsbfova", "rruvwbhsq")) - .withSupportedReplicationProviders(Arrays.asList("bcgjbirxbp", "bsrfbj", "dtws")) - .withCustomDetails(new ConfigurationSettings())) - .withLocation("ftpvjzbexil"), - new ProtectableItemInner() - .withProperties(new ProtectableItemProperties().withFriendlyName("wgdrjervnaenqp") - .withProtectionStatus("indoygmifthnzd") - .withReplicationProtectedItemId("sl") - .withRecoveryServicesProviderId("ayqigynduhav") - .withProtectionReadinessErrors(Arrays.asList("kthumaqolbgycdui", "r")) - .withSupportedReplicationProviders( - Arrays.asList("cym", "aolps", "lqlfm", "dnbbglzps")) - .withCustomDetails(new ConfigurationSettings())) - .withLocation("d"))) - .withNextLink("zbn"); - model = BinaryData.fromObject(model).toObject(ProtectableItemCollection.class); - Assertions.assertEquals("qcslyjpkiid", model.value().get(0).properties().friendlyName()); - Assertions.assertEquals("exznelixhnr", model.value().get(0).properties().protectionStatus()); - Assertions.assertEquals("folhbnxknal", model.value().get(0).properties().replicationProtectedItemId()); - Assertions.assertEquals("lp", model.value().get(0).properties().recoveryServicesProviderId()); - Assertions.assertEquals("dtpnapnyiropuhp", - model.value().get(0).properties().protectionReadinessErrors().get(0)); - Assertions.assertEquals("wwncwzzhxgk", - model.value().get(0).properties().supportedReplicationProviders().get(0)); - Assertions.assertEquals("oellwp", model.value().get(0).location()); - Assertions.assertEquals("zbn", model.nextLink()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ProtectableItemInnerTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ProtectableItemInnerTests.java deleted file mode 100644 index 91c26660a7e1..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ProtectableItemInnerTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.ProtectableItemInner; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ConfigurationSettings; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ProtectableItemProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ProtectableItemInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ProtectableItemInner model = BinaryData.fromString( - "{\"properties\":{\"friendlyName\":\"ylpstdbhhxsrzdz\",\"protectionStatus\":\"erscdntne\",\"replicationProtectedItemId\":\"iwjmygtdssls\",\"recoveryServicesProviderId\":\"mweriofzpy\",\"protectionReadinessErrors\":[\"mwabnetshhszhedp\",\"vwiwubmwmbesld\"],\"supportedReplicationProviders\":[\"wtppjflcxogaoko\",\"z\"],\"customDetails\":{\"instanceType\":\"ConfigurationSettings\"}},\"location\":\"ikvmkqzeqqk\",\"id\":\"l\",\"name\":\"fzxmhhvhgureodkw\",\"type\":\"bdagxt\"}") - .toObject(ProtectableItemInner.class); - Assertions.assertEquals("ylpstdbhhxsrzdz", model.properties().friendlyName()); - Assertions.assertEquals("erscdntne", model.properties().protectionStatus()); - Assertions.assertEquals("iwjmygtdssls", model.properties().replicationProtectedItemId()); - Assertions.assertEquals("mweriofzpy", model.properties().recoveryServicesProviderId()); - Assertions.assertEquals("mwabnetshhszhedp", model.properties().protectionReadinessErrors().get(0)); - Assertions.assertEquals("wtppjflcxogaoko", model.properties().supportedReplicationProviders().get(0)); - Assertions.assertEquals("ikvmkqzeqqk", model.location()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ProtectableItemInner model = new ProtectableItemInner() - .withProperties(new ProtectableItemProperties().withFriendlyName("ylpstdbhhxsrzdz") - .withProtectionStatus("erscdntne") - .withReplicationProtectedItemId("iwjmygtdssls") - .withRecoveryServicesProviderId("mweriofzpy") - .withProtectionReadinessErrors(Arrays.asList("mwabnetshhszhedp", "vwiwubmwmbesld")) - .withSupportedReplicationProviders(Arrays.asList("wtppjflcxogaoko", "z")) - .withCustomDetails(new ConfigurationSettings())) - .withLocation("ikvmkqzeqqk"); - model = BinaryData.fromObject(model).toObject(ProtectableItemInner.class); - Assertions.assertEquals("ylpstdbhhxsrzdz", model.properties().friendlyName()); - Assertions.assertEquals("erscdntne", model.properties().protectionStatus()); - Assertions.assertEquals("iwjmygtdssls", model.properties().replicationProtectedItemId()); - Assertions.assertEquals("mweriofzpy", model.properties().recoveryServicesProviderId()); - Assertions.assertEquals("mwabnetshhszhedp", model.properties().protectionReadinessErrors().get(0)); - Assertions.assertEquals("wtppjflcxogaoko", model.properties().supportedReplicationProviders().get(0)); - Assertions.assertEquals("ikvmkqzeqqk", model.location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ProtectableItemPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ProtectableItemPropertiesTests.java deleted file mode 100644 index 9e2187409ee3..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ProtectableItemPropertiesTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ConfigurationSettings; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ProtectableItemProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ProtectableItemPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ProtectableItemProperties model = BinaryData.fromString( - "{\"friendlyName\":\"qdxbxwa\",\"protectionStatus\":\"ogqxndlkzgxhuri\",\"replicationProtectedItemId\":\"bpodxunkbebxm\",\"recoveryServicesProviderId\":\"yyntwl\",\"protectionReadinessErrors\":[\"tkoievseotgq\",\"l\"],\"supportedReplicationProviders\":[\"u\",\"lauwzizxbmpgcjef\",\"zmuvpbttdumorppx\",\"bmnzbtbhjpgl\"],\"customDetails\":{\"instanceType\":\"ConfigurationSettings\"}}") - .toObject(ProtectableItemProperties.class); - Assertions.assertEquals("qdxbxwa", model.friendlyName()); - Assertions.assertEquals("ogqxndlkzgxhuri", model.protectionStatus()); - Assertions.assertEquals("bpodxunkbebxm", model.replicationProtectedItemId()); - Assertions.assertEquals("yyntwl", model.recoveryServicesProviderId()); - Assertions.assertEquals("tkoievseotgq", model.protectionReadinessErrors().get(0)); - Assertions.assertEquals("u", model.supportedReplicationProviders().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ProtectableItemProperties model = new ProtectableItemProperties().withFriendlyName("qdxbxwa") - .withProtectionStatus("ogqxndlkzgxhuri") - .withReplicationProtectedItemId("bpodxunkbebxm") - .withRecoveryServicesProviderId("yyntwl") - .withProtectionReadinessErrors(Arrays.asList("tkoievseotgq", "l")) - .withSupportedReplicationProviders( - Arrays.asList("u", "lauwzizxbmpgcjef", "zmuvpbttdumorppx", "bmnzbtbhjpgl")) - .withCustomDetails(new ConfigurationSettings()); - model = BinaryData.fromObject(model).toObject(ProtectableItemProperties.class); - Assertions.assertEquals("qdxbxwa", model.friendlyName()); - Assertions.assertEquals("ogqxndlkzgxhuri", model.protectionStatus()); - Assertions.assertEquals("bpodxunkbebxm", model.replicationProtectedItemId()); - Assertions.assertEquals("yyntwl", model.recoveryServicesProviderId()); - Assertions.assertEquals("tkoievseotgq", model.protectionReadinessErrors().get(0)); - Assertions.assertEquals("u", model.supportedReplicationProviders().get(0)); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ProtectionContainerCollectionTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ProtectionContainerCollectionTests.java deleted file mode 100644 index 730739fa521e..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ProtectionContainerCollectionTests.java +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.ProtectionContainerInner; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ProtectionContainerCollection; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ProtectionContainerFabricSpecificDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ProtectionContainerProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ProtectionContainerCollectionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ProtectionContainerCollection model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"fabricFriendlyName\":\"lpbuxwgipwhonowk\",\"friendlyName\":\"hwankixzbinjepu\",\"fabricType\":\"mryw\",\"protectedItemCount\":2134987728,\"pairingStatus\":\"qftiy\",\"role\":\"rnkcqvyxlw\",\"fabricSpecificDetails\":{\"instanceType\":\"sicohoqqnwvlry\"}},\"location\":\"w\",\"id\":\"heun\",\"name\":\"mqhgyxzkonocuk\",\"type\":\"klyaxuconu\"},{\"properties\":{\"fabricFriendlyName\":\"fkbey\",\"friendlyName\":\"wrmjmwvvjektc\",\"fabricType\":\"enhwlrs\",\"protectedItemCount\":1160903159,\"pairingStatus\":\"pwvlqdq\",\"role\":\"iqylihkaetck\",\"fabricSpecificDetails\":{\"instanceType\":\"civfsnkymuctq\"}},\"location\":\"fbebrjcxer\",\"id\":\"uwutttxfvjrbi\",\"name\":\"phxepcyvahf\",\"type\":\"ljkyqxjvuuj\"},{\"properties\":{\"fabricFriendlyName\":\"dokgjl\",\"friendlyName\":\"oxgvclt\",\"fabricType\":\"sncghkjeszz\",\"protectedItemCount\":1537141479,\"pairingStatus\":\"htxfvgxbfsmxnehm\",\"role\":\"ec\",\"fabricSpecificDetails\":{\"instanceType\":\"debfqkkrbmpukgri\"}},\"location\":\"lzlfbxzpuz\",\"id\":\"cispnqzahmgkbr\",\"name\":\"yydhibnuqqk\",\"type\":\"ik\"},{\"properties\":{\"fabricFriendlyName\":\"gvtqagnbuynh\",\"friendlyName\":\"gg\",\"fabricType\":\"bfs\",\"protectedItemCount\":600405260,\"pairingStatus\":\"utrc\",\"role\":\"na\",\"fabricSpecificDetails\":{\"instanceType\":\"hj\"}},\"location\":\"nmpxttdb\",\"id\":\"rbnlankxmyskp\",\"name\":\"henbtkcxywnytn\",\"type\":\"synlqidybyxczfc\"}],\"nextLink\":\"aaxdbabphlwrq\"}") - .toObject(ProtectionContainerCollection.class); - Assertions.assertEquals("lpbuxwgipwhonowk", model.value().get(0).properties().fabricFriendlyName()); - Assertions.assertEquals("hwankixzbinjepu", model.value().get(0).properties().friendlyName()); - Assertions.assertEquals("mryw", model.value().get(0).properties().fabricType()); - Assertions.assertEquals(2134987728, model.value().get(0).properties().protectedItemCount()); - Assertions.assertEquals("qftiy", model.value().get(0).properties().pairingStatus()); - Assertions.assertEquals("rnkcqvyxlw", model.value().get(0).properties().role()); - Assertions.assertEquals("w", model.value().get(0).location()); - Assertions.assertEquals("aaxdbabphlwrq", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ProtectionContainerCollection model - = new ProtectionContainerCollection() - .withValue(Arrays.asList( - new ProtectionContainerInner() - .withProperties(new ProtectionContainerProperties().withFabricFriendlyName("lpbuxwgipwhonowk") - .withFriendlyName("hwankixzbinjepu") - .withFabricType("mryw") - .withProtectedItemCount(2134987728) - .withPairingStatus("qftiy") - .withRole("rnkcqvyxlw") - .withFabricSpecificDetails(new ProtectionContainerFabricSpecificDetails())) - .withLocation("w"), - new ProtectionContainerInner() - .withProperties(new ProtectionContainerProperties().withFabricFriendlyName("fkbey") - .withFriendlyName("wrmjmwvvjektc") - .withFabricType("enhwlrs") - .withProtectedItemCount(1160903159) - .withPairingStatus("pwvlqdq") - .withRole("iqylihkaetck") - .withFabricSpecificDetails(new ProtectionContainerFabricSpecificDetails())) - .withLocation("fbebrjcxer"), - new ProtectionContainerInner() - .withProperties(new ProtectionContainerProperties().withFabricFriendlyName("dokgjl") - .withFriendlyName("oxgvclt") - .withFabricType("sncghkjeszz") - .withProtectedItemCount(1537141479) - .withPairingStatus("htxfvgxbfsmxnehm") - .withRole("ec") - .withFabricSpecificDetails(new ProtectionContainerFabricSpecificDetails())) - .withLocation("lzlfbxzpuz"), - new ProtectionContainerInner() - .withProperties(new ProtectionContainerProperties().withFabricFriendlyName("gvtqagnbuynh") - .withFriendlyName("gg") - .withFabricType("bfs") - .withProtectedItemCount(600405260) - .withPairingStatus("utrc") - .withRole("na") - .withFabricSpecificDetails(new ProtectionContainerFabricSpecificDetails())) - .withLocation("nmpxttdb"))) - .withNextLink("aaxdbabphlwrq"); - model = BinaryData.fromObject(model).toObject(ProtectionContainerCollection.class); - Assertions.assertEquals("lpbuxwgipwhonowk", model.value().get(0).properties().fabricFriendlyName()); - Assertions.assertEquals("hwankixzbinjepu", model.value().get(0).properties().friendlyName()); - Assertions.assertEquals("mryw", model.value().get(0).properties().fabricType()); - Assertions.assertEquals(2134987728, model.value().get(0).properties().protectedItemCount()); - Assertions.assertEquals("qftiy", model.value().get(0).properties().pairingStatus()); - Assertions.assertEquals("rnkcqvyxlw", model.value().get(0).properties().role()); - Assertions.assertEquals("w", model.value().get(0).location()); - Assertions.assertEquals("aaxdbabphlwrq", model.nextLink()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ProtectionContainerFabricSpecificDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ProtectionContainerFabricSpecificDetailsTests.java deleted file mode 100644 index 02b47b6de145..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ProtectionContainerFabricSpecificDetailsTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ProtectionContainerFabricSpecificDetails; - -public final class ProtectionContainerFabricSpecificDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ProtectionContainerFabricSpecificDetails model = BinaryData.fromString("{\"instanceType\":\"vmkfssxqu\"}") - .toObject(ProtectionContainerFabricSpecificDetails.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ProtectionContainerFabricSpecificDetails model = new ProtectionContainerFabricSpecificDetails(); - model = BinaryData.fromObject(model).toObject(ProtectionContainerFabricSpecificDetails.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ProtectionContainerInnerTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ProtectionContainerInnerTests.java deleted file mode 100644 index 39b6c850e24e..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ProtectionContainerInnerTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.ProtectionContainerInner; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ProtectionContainerFabricSpecificDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ProtectionContainerProperties; -import org.junit.jupiter.api.Assertions; - -public final class ProtectionContainerInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ProtectionContainerInner model = BinaryData.fromString( - "{\"properties\":{\"fabricFriendlyName\":\"tsthsucocm\",\"friendlyName\":\"yazttbtwwrqpue\",\"fabricType\":\"kzywbiex\",\"protectedItemCount\":1206070255,\"pairingStatus\":\"ue\",\"role\":\"ibx\",\"fabricSpecificDetails\":{\"instanceType\":\"bhqwalmuzyoxa\"}},\"location\":\"dkzjancuxrh\",\"id\":\"wbavxbniwdj\",\"name\":\"wz\",\"type\":\"s\"}") - .toObject(ProtectionContainerInner.class); - Assertions.assertEquals("tsthsucocm", model.properties().fabricFriendlyName()); - Assertions.assertEquals("yazttbtwwrqpue", model.properties().friendlyName()); - Assertions.assertEquals("kzywbiex", model.properties().fabricType()); - Assertions.assertEquals(1206070255, model.properties().protectedItemCount()); - Assertions.assertEquals("ue", model.properties().pairingStatus()); - Assertions.assertEquals("ibx", model.properties().role()); - Assertions.assertEquals("dkzjancuxrh", model.location()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ProtectionContainerInner model - = new ProtectionContainerInner() - .withProperties(new ProtectionContainerProperties().withFabricFriendlyName("tsthsucocm") - .withFriendlyName("yazttbtwwrqpue") - .withFabricType("kzywbiex") - .withProtectedItemCount(1206070255) - .withPairingStatus("ue") - .withRole("ibx") - .withFabricSpecificDetails(new ProtectionContainerFabricSpecificDetails())) - .withLocation("dkzjancuxrh"); - model = BinaryData.fromObject(model).toObject(ProtectionContainerInner.class); - Assertions.assertEquals("tsthsucocm", model.properties().fabricFriendlyName()); - Assertions.assertEquals("yazttbtwwrqpue", model.properties().friendlyName()); - Assertions.assertEquals("kzywbiex", model.properties().fabricType()); - Assertions.assertEquals(1206070255, model.properties().protectedItemCount()); - Assertions.assertEquals("ue", model.properties().pairingStatus()); - Assertions.assertEquals("ibx", model.properties().role()); - Assertions.assertEquals("dkzjancuxrh", model.location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ProtectionContainerMappingProviderSpecificDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ProtectionContainerMappingProviderSpecificDetailsTests.java deleted file mode 100644 index 182e475e00df..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ProtectionContainerMappingProviderSpecificDetailsTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ProtectionContainerMappingProviderSpecificDetails; - -public final class ProtectionContainerMappingProviderSpecificDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ProtectionContainerMappingProviderSpecificDetails model - = BinaryData.fromString("{\"instanceType\":\"ProtectionContainerMappingProviderSpecificDetails\"}") - .toObject(ProtectionContainerMappingProviderSpecificDetails.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ProtectionContainerMappingProviderSpecificDetails model - = new ProtectionContainerMappingProviderSpecificDetails(); - model = BinaryData.fromObject(model).toObject(ProtectionContainerMappingProviderSpecificDetails.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ProtectionContainerPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ProtectionContainerPropertiesTests.java deleted file mode 100644 index e169c59690c4..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ProtectionContainerPropertiesTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ProtectionContainerFabricSpecificDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ProtectionContainerProperties; -import org.junit.jupiter.api.Assertions; - -public final class ProtectionContainerPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ProtectionContainerProperties model = BinaryData.fromString( - "{\"fabricFriendlyName\":\"pgn\",\"friendlyName\":\"txhp\",\"fabricType\":\"bzpfzab\",\"protectedItemCount\":687811406,\"pairingStatus\":\"hxw\",\"role\":\"tyq\",\"fabricSpecificDetails\":{\"instanceType\":\"bbovplwzbhvgyugu\"}}") - .toObject(ProtectionContainerProperties.class); - Assertions.assertEquals("pgn", model.fabricFriendlyName()); - Assertions.assertEquals("txhp", model.friendlyName()); - Assertions.assertEquals("bzpfzab", model.fabricType()); - Assertions.assertEquals(687811406, model.protectedItemCount()); - Assertions.assertEquals("hxw", model.pairingStatus()); - Assertions.assertEquals("tyq", model.role()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ProtectionContainerProperties model = new ProtectionContainerProperties().withFabricFriendlyName("pgn") - .withFriendlyName("txhp") - .withFabricType("bzpfzab") - .withProtectedItemCount(687811406) - .withPairingStatus("hxw") - .withRole("tyq") - .withFabricSpecificDetails(new ProtectionContainerFabricSpecificDetails()); - model = BinaryData.fromObject(model).toObject(ProtectionContainerProperties.class); - Assertions.assertEquals("pgn", model.fabricFriendlyName()); - Assertions.assertEquals("txhp", model.friendlyName()); - Assertions.assertEquals("bzpfzab", model.fabricType()); - Assertions.assertEquals(687811406, model.protectedItemCount()); - Assertions.assertEquals("hxw", model.pairingStatus()); - Assertions.assertEquals("tyq", model.role()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ProtectionProfileCustomDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ProtectionProfileCustomDetailsTests.java deleted file mode 100644 index 5ad224bc70db..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ProtectionProfileCustomDetailsTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ProtectionProfileCustomDetails; - -public final class ProtectionProfileCustomDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ProtectionProfileCustomDetails model - = BinaryData.fromString("{\"resourceType\":\"ProtectionProfileCustomDetails\"}") - .toObject(ProtectionProfileCustomDetails.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ProtectionProfileCustomDetails model = new ProtectionProfileCustomDetails(); - model = BinaryData.fromObject(model).toObject(ProtectionProfileCustomDetails.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ProviderSpecificRecoveryPointDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ProviderSpecificRecoveryPointDetailsTests.java deleted file mode 100644 index d135e8ac335a..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ProviderSpecificRecoveryPointDetailsTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ProviderSpecificRecoveryPointDetails; - -public final class ProviderSpecificRecoveryPointDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ProviderSpecificRecoveryPointDetails model - = BinaryData.fromString("{\"instanceType\":\"ProviderSpecificRecoveryPointDetails\"}") - .toObject(ProviderSpecificRecoveryPointDetails.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ProviderSpecificRecoveryPointDetails model = new ProviderSpecificRecoveryPointDetails(); - model = BinaryData.fromObject(model).toObject(ProviderSpecificRecoveryPointDetails.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryAvailabilitySetCustomDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryAvailabilitySetCustomDetailsTests.java deleted file mode 100644 index 8e2ef44dbe4f..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryAvailabilitySetCustomDetailsTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryAvailabilitySetCustomDetails; - -public final class RecoveryAvailabilitySetCustomDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecoveryAvailabilitySetCustomDetails model - = BinaryData.fromString("{\"resourceType\":\"RecoveryAvailabilitySetCustomDetails\"}") - .toObject(RecoveryAvailabilitySetCustomDetails.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecoveryAvailabilitySetCustomDetails model = new RecoveryAvailabilitySetCustomDetails(); - model = BinaryData.fromObject(model).toObject(RecoveryAvailabilitySetCustomDetails.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanA2ADetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanA2ADetailsTests.java deleted file mode 100644 index aac3f86be508..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanA2ADetailsTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ExtendedLocation; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ExtendedLocationType; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanA2ADetails; -import org.junit.jupiter.api.Assertions; - -public final class RecoveryPlanA2ADetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecoveryPlanA2ADetails model = BinaryData.fromString( - "{\"instanceType\":\"A2A\",\"primaryZone\":\"tnsugisno\",\"recoveryZone\":\"nwnghojov\",\"primaryExtendedLocation\":{\"name\":\"y\",\"type\":\"EdgeZone\"},\"recoveryExtendedLocation\":{\"name\":\"cjixxf\",\"type\":\"EdgeZone\"}}") - .toObject(RecoveryPlanA2ADetails.class); - Assertions.assertEquals("tnsugisno", model.primaryZone()); - Assertions.assertEquals("nwnghojov", model.recoveryZone()); - Assertions.assertEquals("y", model.primaryExtendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, model.primaryExtendedLocation().type()); - Assertions.assertEquals("cjixxf", model.recoveryExtendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, model.recoveryExtendedLocation().type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecoveryPlanA2ADetails model = new RecoveryPlanA2ADetails().withPrimaryZone("tnsugisno") - .withRecoveryZone("nwnghojov") - .withPrimaryExtendedLocation(new ExtendedLocation().withName("y").withType(ExtendedLocationType.EDGE_ZONE)) - .withRecoveryExtendedLocation( - new ExtendedLocation().withName("cjixxf").withType(ExtendedLocationType.EDGE_ZONE)); - model = BinaryData.fromObject(model).toObject(RecoveryPlanA2ADetails.class); - Assertions.assertEquals("tnsugisno", model.primaryZone()); - Assertions.assertEquals("nwnghojov", model.recoveryZone()); - Assertions.assertEquals("y", model.primaryExtendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, model.primaryExtendedLocation().type()); - Assertions.assertEquals("cjixxf", model.recoveryExtendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, model.recoveryExtendedLocation().type()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanA2AFailoverInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanA2AFailoverInputTests.java deleted file mode 100644 index 2b4902b3fb4a..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanA2AFailoverInputTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.A2ARpRecoveryPointType; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.MultiVmSyncPointOption; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanA2AFailoverInput; -import org.junit.jupiter.api.Assertions; - -public final class RecoveryPlanA2AFailoverInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecoveryPlanA2AFailoverInput model = BinaryData.fromString( - "{\"instanceType\":\"A2A\",\"recoveryPointType\":\"LatestApplicationConsistent\",\"cloudServiceCreationOption\":\"rtnuguefxxijteb\",\"multiVmSyncPointOption\":\"UsePerVmRecoveryPoint\"}") - .toObject(RecoveryPlanA2AFailoverInput.class); - Assertions.assertEquals(A2ARpRecoveryPointType.LATEST_APPLICATION_CONSISTENT, model.recoveryPointType()); - Assertions.assertEquals("rtnuguefxxijteb", model.cloudServiceCreationOption()); - Assertions.assertEquals(MultiVmSyncPointOption.USE_PER_VM_RECOVERY_POINT, model.multiVmSyncPointOption()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecoveryPlanA2AFailoverInput model = new RecoveryPlanA2AFailoverInput() - .withRecoveryPointType(A2ARpRecoveryPointType.LATEST_APPLICATION_CONSISTENT) - .withCloudServiceCreationOption("rtnuguefxxijteb") - .withMultiVmSyncPointOption(MultiVmSyncPointOption.USE_PER_VM_RECOVERY_POINT); - model = BinaryData.fromObject(model).toObject(RecoveryPlanA2AFailoverInput.class); - Assertions.assertEquals(A2ARpRecoveryPointType.LATEST_APPLICATION_CONSISTENT, model.recoveryPointType()); - Assertions.assertEquals("rtnuguefxxijteb", model.cloudServiceCreationOption()); - Assertions.assertEquals(MultiVmSyncPointOption.USE_PER_VM_RECOVERY_POINT, model.multiVmSyncPointOption()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanA2AInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanA2AInputTests.java deleted file mode 100644 index 9fe4566d3243..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanA2AInputTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ExtendedLocation; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ExtendedLocationType; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanA2AInput; -import org.junit.jupiter.api.Assertions; - -public final class RecoveryPlanA2AInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecoveryPlanA2AInput model = BinaryData.fromString( - "{\"instanceType\":\"A2A\",\"primaryZone\":\"wetkrhlolmc\",\"recoveryZone\":\"epfgsvbbvaqdl\",\"primaryExtendedLocation\":{\"name\":\"petlrn\",\"type\":\"EdgeZone\"},\"recoveryExtendedLocation\":{\"name\":\"tawevxehu\",\"type\":\"EdgeZone\"}}") - .toObject(RecoveryPlanA2AInput.class); - Assertions.assertEquals("wetkrhlolmc", model.primaryZone()); - Assertions.assertEquals("epfgsvbbvaqdl", model.recoveryZone()); - Assertions.assertEquals("petlrn", model.primaryExtendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, model.primaryExtendedLocation().type()); - Assertions.assertEquals("tawevxehu", model.recoveryExtendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, model.recoveryExtendedLocation().type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecoveryPlanA2AInput model = new RecoveryPlanA2AInput().withPrimaryZone("wetkrhlolmc") - .withRecoveryZone("epfgsvbbvaqdl") - .withPrimaryExtendedLocation( - new ExtendedLocation().withName("petlrn").withType(ExtendedLocationType.EDGE_ZONE)) - .withRecoveryExtendedLocation( - new ExtendedLocation().withName("tawevxehu").withType(ExtendedLocationType.EDGE_ZONE)); - model = BinaryData.fromObject(model).toObject(RecoveryPlanA2AInput.class); - Assertions.assertEquals("wetkrhlolmc", model.primaryZone()); - Assertions.assertEquals("epfgsvbbvaqdl", model.recoveryZone()); - Assertions.assertEquals("petlrn", model.primaryExtendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, model.primaryExtendedLocation().type()); - Assertions.assertEquals("tawevxehu", model.recoveryExtendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, model.recoveryExtendedLocation().type()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanActionDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanActionDetailsTests.java deleted file mode 100644 index d9d8b038eee1..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanActionDetailsTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanActionDetails; - -public final class RecoveryPlanActionDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecoveryPlanActionDetails model = BinaryData.fromString("{\"instanceType\":\"RecoveryPlanActionDetails\"}") - .toObject(RecoveryPlanActionDetails.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecoveryPlanActionDetails model = new RecoveryPlanActionDetails(); - model = BinaryData.fromObject(model).toObject(RecoveryPlanActionDetails.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanActionTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanActionTests.java deleted file mode 100644 index b24c53c0f475..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanActionTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.PossibleOperationsDirections; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanAction; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanActionDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationProtectedItemOperation; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class RecoveryPlanActionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecoveryPlanAction model = BinaryData.fromString( - "{\"actionName\":\"tod\",\"failoverTypes\":[\"RepairReplication\",\"UnplannedFailover\",\"TestFailoverCleanup\",\"PlannedFailover\"],\"failoverDirections\":[\"RecoveryToPrimary\",\"RecoveryToPrimary\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}") - .toObject(RecoveryPlanAction.class); - Assertions.assertEquals("tod", model.actionName()); - Assertions.assertEquals(ReplicationProtectedItemOperation.REPAIR_REPLICATION, model.failoverTypes().get(0)); - Assertions.assertEquals(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, model.failoverDirections().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecoveryPlanAction model = new RecoveryPlanAction().withActionName("tod") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.REPAIR_REPLICATION, - ReplicationProtectedItemOperation.UNPLANNED_FAILOVER, - ReplicationProtectedItemOperation.TEST_FAILOVER_CLEANUP, - ReplicationProtectedItemOperation.PLANNED_FAILOVER)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY)) - .withCustomDetails(new RecoveryPlanActionDetails()); - model = BinaryData.fromObject(model).toObject(RecoveryPlanAction.class); - Assertions.assertEquals("tod", model.actionName()); - Assertions.assertEquals(ReplicationProtectedItemOperation.REPAIR_REPLICATION, model.failoverTypes().get(0)); - Assertions.assertEquals(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, model.failoverDirections().get(0)); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanAutomationRunbookActionDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanAutomationRunbookActionDetailsTests.java deleted file mode 100644 index bc7c06b23dad..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanAutomationRunbookActionDetailsTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanActionLocation; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanAutomationRunbookActionDetails; -import org.junit.jupiter.api.Assertions; - -public final class RecoveryPlanAutomationRunbookActionDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecoveryPlanAutomationRunbookActionDetails model = BinaryData.fromString( - "{\"instanceType\":\"AutomationRunbookActionDetails\",\"runbookId\":\"xljzvdovbrbl\",\"timeout\":\"lprdaqccddcbnygd\",\"fabricLocation\":\"Primary\"}") - .toObject(RecoveryPlanAutomationRunbookActionDetails.class); - Assertions.assertEquals("xljzvdovbrbl", model.runbookId()); - Assertions.assertEquals("lprdaqccddcbnygd", model.timeout()); - Assertions.assertEquals(RecoveryPlanActionLocation.PRIMARY, model.fabricLocation()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecoveryPlanAutomationRunbookActionDetails model - = new RecoveryPlanAutomationRunbookActionDetails().withRunbookId("xljzvdovbrbl") - .withTimeout("lprdaqccddcbnygd") - .withFabricLocation(RecoveryPlanActionLocation.PRIMARY); - model = BinaryData.fromObject(model).toObject(RecoveryPlanAutomationRunbookActionDetails.class); - Assertions.assertEquals("xljzvdovbrbl", model.runbookId()); - Assertions.assertEquals("lprdaqccddcbnygd", model.timeout()); - Assertions.assertEquals(RecoveryPlanActionLocation.PRIMARY, model.fabricLocation()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanCollectionTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanCollectionTests.java deleted file mode 100644 index 433aec21d3c9..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanCollectionTests.java +++ /dev/null @@ -1,529 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.RecoveryPlanInner; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.CurrentScenarioDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanAction; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanActionDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanCollection; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanGroup; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanGroupType; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanProtectedItem; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanProviderSpecificDetails; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class RecoveryPlanCollectionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecoveryPlanCollection model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"friendlyName\":\"khgb\",\"primaryFabricId\":\"ta\",\"primaryFabricFriendlyName\":\"rfdl\",\"recoveryFabricId\":\"kh\",\"recoveryFabricFriendlyName\":\"rne\",\"failoverDeploymentModel\":\"jcpeogkhnmg\",\"replicationProviders\":[\"uxddbhfh\",\"fpazjzoywjxhpd\",\"lontacnpq\",\"tehtuevrhrljyoog\"],\"allowedOperations\":[\"nsduugwbsre\",\"rfqkfuar\",\"nlvhhtklnvnafvv\",\"yfedevjbo\"],\"lastPlannedFailoverTime\":\"2021-06-07T05:21:39Z\",\"lastUnplannedFailoverTime\":\"2021-09-09T03:44:16Z\",\"lastTestFailoverTime\":\"2021-02-13T17:58:26Z\",\"currentScenario\":{\"scenarioName\":\"khminqcymc\",\"jobId\":\"gn\",\"startTime\":\"2021-04-29T07:37:31Z\"},\"currentScenarioStatus\":\"ewuninvud\",\"currentScenarioStatusDescription\":\"h\",\"groups\":[{\"groupType\":\"Failover\",\"replicationProtectedItems\":[{},{},{}],\"startGroupActions\":[{\"actionName\":\"rqctmxxdtdd\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"flhuytxzv\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"zna\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"xbannovvoxc\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"prwnwvroevytlyo\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"rrrouuxvnsa\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]},{\"groupType\":\"Shutdown\",\"replicationProtectedItems\":[{}],\"startGroupActions\":[{\"actionName\":\"o\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"izrxklob\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"xnazpmkml\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"vevfxz\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"hbzxli\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"hrdd\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"tfgxqbawpcb\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"nzqcy\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]}],\"providerSpecificDetails\":[{\"instanceType\":\"RecoveryPlanProviderSpecificDetails\"},{\"instanceType\":\"RecoveryPlanProviderSpecificDetails\"},{\"instanceType\":\"RecoveryPlanProviderSpecificDetails\"}]},\"location\":\"qofyuicdhzbdy\",\"id\":\"wwgbdv\",\"name\":\"bid\",\"type\":\"hmwffplfmuv\"},{\"properties\":{\"friendlyName\":\"kccrrvwey\",\"primaryFabricId\":\"oy\",\"primaryFabricFriendlyName\":\"k\",\"recoveryFabricId\":\"aimmoiroqb\",\"recoveryFabricFriendlyName\":\"hbragapyyr\",\"failoverDeploymentModel\":\"svbpavbopfppdbwn\",\"replicationProviders\":[\"ahxku\",\"asjcaacfdmmcpu\",\"mehqepvufh\",\"zeh\"],\"allowedOperations\":[\"oqhnlb\",\"nbldxeaclgschori\"],\"lastPlannedFailoverTime\":\"2021-03-13T23:48:24Z\",\"lastUnplannedFailoverTime\":\"2021-07-09T02:56:18Z\",\"lastTestFailoverTime\":\"2021-11-28T04:18:19Z\",\"currentScenario\":{\"scenarioName\":\"cso\",\"jobId\":\"dpuviyf\",\"startTime\":\"2021-07-10T14:09:36Z\"},\"currentScenarioStatus\":\"eolhbhlvbmx\",\"currentScenarioStatusDescription\":\"ibsxtkcud\",\"groups\":[{\"groupType\":\"Failover\",\"replicationProtectedItems\":[{},{},{}],\"startGroupActions\":[{\"actionName\":\"iowl\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"jxnqp\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"wgfstmhqykizm\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"aoaf\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"luqvoxmycjimryv\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"gc\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]}],\"providerSpecificDetails\":[{\"instanceType\":\"RecoveryPlanProviderSpecificDetails\"}]},\"location\":\"mzgwe\",\"id\":\"ydsx\",\"name\":\"efoh\",\"type\":\"cbvopwndyqleallk\"},{\"properties\":{\"friendlyName\":\"khlowkxxpv\",\"primaryFabricId\":\"dfjmzsyzfhotlh\",\"primaryFabricFriendlyName\":\"cyychunsjlp\",\"recoveryFabricId\":\"twszhvvuic\",\"recoveryFabricFriendlyName\":\"vtrrmhwrbfdpyflu\",\"failoverDeploymentModel\":\"vjglrocuyzlwhhme\",\"replicationProviders\":[\"oclu\",\"n\"],\"allowedOperations\":[\"emc\",\"jk\",\"mykyujxsglhs\"],\"lastPlannedFailoverTime\":\"2021-06-30T11:59:37Z\",\"lastUnplannedFailoverTime\":\"2021-09-26T10:44:20Z\",\"lastTestFailoverTime\":\"2021-04-08T08:51:31Z\",\"currentScenario\":{\"scenarioName\":\"bkzudnigrfihot\",\"jobId\":\"wlpxuzzjg\",\"startTime\":\"2021-05-28T23:16:03Z\"},\"currentScenarioStatus\":\"qyhqo\",\"currentScenarioStatusDescription\":\"ihiqakydiw\",\"groups\":[{\"groupType\":\"Boot\",\"replicationProtectedItems\":[{},{},{}],\"startGroupActions\":[{\"actionName\":\"qtvhcspodaqax\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"ipietgbe\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"ulbmoichdlp\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"fpubntnbatz\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"iqsowsaaelc\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]},{\"groupType\":\"Failover\",\"replicationProtectedItems\":[{},{},{}],\"startGroupActions\":[{\"actionName\":\"hplrvkmjcwmjvlg\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"ggcvk\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"y\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"izrzb\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"fxsfuztlvtmv\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"gbwidqlvh\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]},{\"groupType\":\"Boot\",\"replicationProtectedItems\":[{}],\"startGroupActions\":[{\"actionName\":\"fizr\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"jfnmjmvlwyz\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"iblkujr\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"lfojuidjp\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"jucejikzoeovvtz\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"je\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"jklntikyj\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]},{\"groupType\":\"Failover\",\"replicationProtectedItems\":[{},{},{},{}],\"startGroupActions\":[{\"actionName\":\"zolxrzvhqjwtr\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"tgvgzp\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"rrkolawjmjs\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"okcdxfzzzwyjaf\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"tlhguynuchl\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"mltx\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"whmozusgzvlnsnnj\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]}],\"providerSpecificDetails\":[{\"instanceType\":\"RecoveryPlanProviderSpecificDetails\"},{\"instanceType\":\"RecoveryPlanProviderSpecificDetails\"}]},\"location\":\"folpymwamxqzra\",\"id\":\"p\",\"name\":\"dphtv\",\"type\":\"ulajvlejchc\"},{\"properties\":{\"friendlyName\":\"zknmzlanrupd\",\"primaryFabricId\":\"nphcnzqtpjhmqrh\",\"primaryFabricFriendlyName\":\"hlaiwd\",\"recoveryFabricId\":\"smlzzhzdtxetlgy\",\"recoveryFabricFriendlyName\":\"hqvlnnpxybafiqg\",\"failoverDeploymentModel\":\"arbgjekgl\",\"replicationProviders\":[\"yulidwcwvm\"],\"allowedOperations\":[\"jonfhjirwgdnqzbr\"],\"lastPlannedFailoverTime\":\"2021-08-15T23:23:18Z\",\"lastUnplannedFailoverTime\":\"2021-02-01T12:15:25Z\",\"lastTestFailoverTime\":\"2021-01-01T19:33:39Z\",\"currentScenario\":{\"scenarioName\":\"ksjcitdigs\",\"jobId\":\"dglj\",\"startTime\":\"2021-04-10T15:56:09Z\"},\"currentScenarioStatus\":\"ua\",\"currentScenarioStatusDescription\":\"tomflrytswfpf\",\"groups\":[{\"groupType\":\"Failover\",\"replicationProtectedItems\":[{}],\"startGroupActions\":[{\"actionName\":\"skw\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"qjjyslurl\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"shhkvpedw\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"srhmpqvww\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"kondcb\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"wimuvqej\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"so\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]},{\"groupType\":\"Failover\",\"replicationProtectedItems\":[{},{}],\"startGroupActions\":[{\"actionName\":\"a\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"sinuqtljqobbpih\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"ecybmrqbrj\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"bmpxdlvykfrexc\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"s\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"qwjksghudgz\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]},{\"groupType\":\"Shutdown\",\"replicationProtectedItems\":[{},{}],\"startGroupActions\":[{\"actionName\":\"gsv\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"u\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"kxibdafh\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"kmdyomkxfbvfbh\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"rhpw\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]},{\"groupType\":\"Boot\",\"replicationProtectedItems\":[{},{},{}],\"startGroupActions\":[{\"actionName\":\"mawzovgk\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"ui\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"jcjcazt\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"wsnsqowx\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"comlikytwvczc\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]}],\"providerSpecificDetails\":[{\"instanceType\":\"RecoveryPlanProviderSpecificDetails\"}]},\"location\":\"cvejyfdvlvhbwrn\",\"id\":\"xt\",\"name\":\"ddpqt\",\"type\":\"ehnmnaoyankco\"}],\"nextLink\":\"swankltytmh\"}") - .toObject(RecoveryPlanCollection.class); - Assertions.assertEquals("khgb", model.value().get(0).properties().friendlyName()); - Assertions.assertEquals("ta", model.value().get(0).properties().primaryFabricId()); - Assertions.assertEquals("rfdl", model.value().get(0).properties().primaryFabricFriendlyName()); - Assertions.assertEquals("kh", model.value().get(0).properties().recoveryFabricId()); - Assertions.assertEquals("rne", model.value().get(0).properties().recoveryFabricFriendlyName()); - Assertions.assertEquals("jcpeogkhnmg", model.value().get(0).properties().failoverDeploymentModel()); - Assertions.assertEquals("uxddbhfh", model.value().get(0).properties().replicationProviders().get(0)); - Assertions.assertEquals("nsduugwbsre", model.value().get(0).properties().allowedOperations().get(0)); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-07T05:21:39Z"), - model.value().get(0).properties().lastPlannedFailoverTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-09T03:44:16Z"), - model.value().get(0).properties().lastUnplannedFailoverTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-13T17:58:26Z"), - model.value().get(0).properties().lastTestFailoverTime()); - Assertions.assertEquals("khminqcymc", model.value().get(0).properties().currentScenario().scenarioName()); - Assertions.assertEquals("gn", model.value().get(0).properties().currentScenario().jobId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-29T07:37:31Z"), - model.value().get(0).properties().currentScenario().startTime()); - Assertions.assertEquals("ewuninvud", model.value().get(0).properties().currentScenarioStatus()); - Assertions.assertEquals("h", model.value().get(0).properties().currentScenarioStatusDescription()); - Assertions.assertEquals(RecoveryPlanGroupType.FAILOVER, - model.value().get(0).properties().groups().get(0).groupType()); - Assertions.assertEquals("rqctmxxdtdd", - model.value().get(0).properties().groups().get(0).startGroupActions().get(0).actionName()); - Assertions.assertEquals("prwnwvroevytlyo", - model.value().get(0).properties().groups().get(0).endGroupActions().get(0).actionName()); - Assertions.assertEquals("qofyuicdhzbdy", model.value().get(0).location()); - Assertions.assertEquals("swankltytmh", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecoveryPlanCollection model - = new RecoveryPlanCollection() - .withValue( - Arrays - .asList( - new RecoveryPlanInner() - .withProperties( - new RecoveryPlanProperties().withFriendlyName("khgb") - .withPrimaryFabricId("ta") - .withPrimaryFabricFriendlyName("rfdl") - .withRecoveryFabricId("kh") - .withRecoveryFabricFriendlyName("rne") - .withFailoverDeploymentModel("jcpeogkhnmg") - .withReplicationProviders(Arrays.asList("uxddbhfh", "fpazjzoywjxhpd", - "lontacnpq", "tehtuevrhrljyoog")) - .withAllowedOperations( - Arrays.asList("nsduugwbsre", "rfqkfuar", "nlvhhtklnvnafvv", "yfedevjbo")) - .withLastPlannedFailoverTime(OffsetDateTime.parse("2021-06-07T05:21:39Z")) - .withLastUnplannedFailoverTime(OffsetDateTime.parse("2021-09-09T03:44:16Z")) - .withLastTestFailoverTime(OffsetDateTime.parse("2021-02-13T17:58:26Z")) - .withCurrentScenario(new CurrentScenarioDetails().withScenarioName("khminqcymc") - .withJobId("gn") - .withStartTime(OffsetDateTime.parse("2021-04-29T07:37:31Z"))) - .withCurrentScenarioStatus("ewuninvud") - .withCurrentScenarioStatusDescription("h") - .withGroups(Arrays.asList( - new RecoveryPlanGroup().withGroupType(RecoveryPlanGroupType.FAILOVER) - .withReplicationProtectedItems(Arrays.asList( - new RecoveryPlanProtectedItem(), new RecoveryPlanProtectedItem(), - new RecoveryPlanProtectedItem())) - .withStartGroupActions(Arrays.asList( - new RecoveryPlanAction().withActionName("rqctmxxdtdd") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("flhuytxzv") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("zna") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("xbannovvoxc") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()))) - .withEndGroupActions(Arrays.asList( - new RecoveryPlanAction().withActionName("prwnwvroevytlyo") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("rrrouuxvnsa") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()))), - new RecoveryPlanGroup().withGroupType(RecoveryPlanGroupType.SHUTDOWN) - .withReplicationProtectedItems(Arrays.asList( - new RecoveryPlanProtectedItem())) - .withStartGroupActions(Arrays.asList( - new RecoveryPlanAction().withActionName("o") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("izrxklob") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("xnazpmkml") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("vevfxz") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()))) - .withEndGroupActions(Arrays.asList( - new RecoveryPlanAction().withActionName("hbzxli") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("hrdd") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("tfgxqbawpcb") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("nzqcy") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()))))) - .withProviderSpecificDetails( - Arrays.asList(new RecoveryPlanProviderSpecificDetails(), - new RecoveryPlanProviderSpecificDetails(), - new RecoveryPlanProviderSpecificDetails()))) - .withLocation("qofyuicdhzbdy"), - new RecoveryPlanInner() - .withProperties(new RecoveryPlanProperties().withFriendlyName("kccrrvwey") - .withPrimaryFabricId("oy") - .withPrimaryFabricFriendlyName("k") - .withRecoveryFabricId("aimmoiroqb") - .withRecoveryFabricFriendlyName("hbragapyyr") - .withFailoverDeploymentModel("svbpavbopfppdbwn") - .withReplicationProviders( - Arrays.asList("ahxku", "asjcaacfdmmcpu", "mehqepvufh", "zeh")) - .withAllowedOperations(Arrays.asList("oqhnlb", "nbldxeaclgschori")) - .withLastPlannedFailoverTime(OffsetDateTime.parse("2021-03-13T23:48:24Z")) - .withLastUnplannedFailoverTime(OffsetDateTime.parse("2021-07-09T02:56:18Z")) - .withLastTestFailoverTime(OffsetDateTime.parse("2021-11-28T04:18:19Z")) - .withCurrentScenario(new CurrentScenarioDetails() - .withScenarioName("cso") - .withJobId("dpuviyf") - .withStartTime(OffsetDateTime.parse("2021-07-10T14:09:36Z"))) - .withCurrentScenarioStatus("eolhbhlvbmx") - .withCurrentScenarioStatusDescription("ibsxtkcud") - .withGroups(Arrays.asList(new RecoveryPlanGroup() - .withGroupType(RecoveryPlanGroupType.FAILOVER) - .withReplicationProtectedItems(Arrays.asList(new RecoveryPlanProtectedItem(), - new RecoveryPlanProtectedItem(), new RecoveryPlanProtectedItem())) - .withStartGroupActions(Arrays.asList( - new RecoveryPlanAction().withActionName("iowl") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("jxnqp") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("wgfstmhqykizm") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()))) - .withEndGroupActions(Arrays.asList( - new RecoveryPlanAction().withActionName("aoaf") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("luqvoxmycjimryv") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("gc") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()))))) - .withProviderSpecificDetails( - Arrays.asList(new RecoveryPlanProviderSpecificDetails()))) - .withLocation("mzgwe"), - new RecoveryPlanInner() - .withProperties(new RecoveryPlanProperties().withFriendlyName("khlowkxxpv") - .withPrimaryFabricId("dfjmzsyzfhotlh") - .withPrimaryFabricFriendlyName("cyychunsjlp") - .withRecoveryFabricId("twszhvvuic") - .withRecoveryFabricFriendlyName("vtrrmhwrbfdpyflu") - .withFailoverDeploymentModel("vjglrocuyzlwhhme") - .withReplicationProviders(Arrays.asList("oclu", "n")) - .withAllowedOperations(Arrays.asList("emc", "jk", "mykyujxsglhs")) - .withLastPlannedFailoverTime(OffsetDateTime.parse("2021-06-30T11:59:37Z")) - .withLastUnplannedFailoverTime(OffsetDateTime.parse("2021-09-26T10:44:20Z")) - .withLastTestFailoverTime(OffsetDateTime.parse("2021-04-08T08:51:31Z")) - .withCurrentScenario(new CurrentScenarioDetails() - .withScenarioName("bkzudnigrfihot") - .withJobId("wlpxuzzjg") - .withStartTime(OffsetDateTime.parse("2021-05-28T23:16:03Z"))) - .withCurrentScenarioStatus("qyhqo") - .withCurrentScenarioStatusDescription("ihiqakydiw") - .withGroups(Arrays.asList(new RecoveryPlanGroup() - .withGroupType(RecoveryPlanGroupType.BOOT) - .withReplicationProtectedItems(Arrays.asList(new RecoveryPlanProtectedItem(), - new RecoveryPlanProtectedItem(), new RecoveryPlanProtectedItem())) - .withStartGroupActions(Arrays.asList( - new RecoveryPlanAction().withActionName("qtvhcspodaqax") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("ipietgbe") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()))) - .withEndGroupActions( - Arrays.asList( - new RecoveryPlanAction().withActionName("ulbmoichdlp") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("fpubntnbatz") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction() - .withActionName("iqsowsaaelc") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()))), - new RecoveryPlanGroup().withGroupType(RecoveryPlanGroupType.FAILOVER) - .withReplicationProtectedItems( - Arrays.asList(new RecoveryPlanProtectedItem(), - new RecoveryPlanProtectedItem(), new RecoveryPlanProtectedItem())) - .withStartGroupActions(Arrays.asList( - new RecoveryPlanAction().withActionName("hplrvkmjcwmjvlg") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("ggcvk") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("y") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("izrzb") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()))) - .withEndGroupActions( - Arrays.asList( - new RecoveryPlanAction().withActionName("fxsfuztlvtmv") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction() - .withActionName("gbwidqlvh") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()))), - new RecoveryPlanGroup().withGroupType(RecoveryPlanGroupType.BOOT) - .withReplicationProtectedItems( - Arrays.asList(new RecoveryPlanProtectedItem())) - .withStartGroupActions(Arrays.asList( - new RecoveryPlanAction().withActionName("fizr") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("jfnmjmvlwyz") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("iblkujr") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("lfojuidjp") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()))) - .withEndGroupActions(Arrays.asList( - new RecoveryPlanAction().withActionName("jucejikzoeovvtz") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("je") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("jklntikyj") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()))), - new RecoveryPlanGroup() - .withGroupType(RecoveryPlanGroupType.FAILOVER) - .withReplicationProtectedItems(Arrays.asList( - new RecoveryPlanProtectedItem(), new RecoveryPlanProtectedItem(), - new RecoveryPlanProtectedItem(), new RecoveryPlanProtectedItem())) - .withStartGroupActions(Arrays.asList( - new RecoveryPlanAction().withActionName("zolxrzvhqjwtr") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("tgvgzp") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("rrkolawjmjs") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()))) - .withEndGroupActions( - Arrays.asList( - new RecoveryPlanAction().withActionName("okcdxfzzzwyjaf") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("tlhguynuchl") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("mltx") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("whmozusgzvlnsnnj") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()))))) - .withProviderSpecificDetails( - Arrays.asList( - new RecoveryPlanProviderSpecificDetails(), - new RecoveryPlanProviderSpecificDetails()))) - .withLocation("folpymwamxqzra"), - new RecoveryPlanInner() - .withProperties(new RecoveryPlanProperties().withFriendlyName("zknmzlanrupd") - .withPrimaryFabricId("nphcnzqtpjhmqrh") - .withPrimaryFabricFriendlyName("hlaiwd") - .withRecoveryFabricId("smlzzhzdtxetlgy") - .withRecoveryFabricFriendlyName("hqvlnnpxybafiqg") - .withFailoverDeploymentModel("arbgjekgl") - .withReplicationProviders(Arrays.asList("yulidwcwvm")) - .withAllowedOperations(Arrays.asList("jonfhjirwgdnqzbr")) - .withLastPlannedFailoverTime(OffsetDateTime.parse("2021-08-15T23:23:18Z")) - .withLastUnplannedFailoverTime(OffsetDateTime.parse("2021-02-01T12:15:25Z")) - .withLastTestFailoverTime(OffsetDateTime.parse("2021-01-01T19:33:39Z")) - .withCurrentScenario(new CurrentScenarioDetails() - .withScenarioName("ksjcitdigs") - .withJobId("dglj") - .withStartTime(OffsetDateTime.parse("2021-04-10T15:56:09Z"))) - .withCurrentScenarioStatus("ua") - .withCurrentScenarioStatusDescription("tomflrytswfpf") - .withGroups(Arrays.asList( - new RecoveryPlanGroup().withGroupType(RecoveryPlanGroupType.FAILOVER) - .withReplicationProtectedItems( - Arrays.asList(new RecoveryPlanProtectedItem())) - .withStartGroupActions(Arrays.asList( - new RecoveryPlanAction().withActionName("skw") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("qjjyslurl") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("shhkvpedw") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()))) - .withEndGroupActions(Arrays.asList( - new RecoveryPlanAction().withActionName("srhmpqvww") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("kondcb") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("wimuvqej") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("so") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()))), - new RecoveryPlanGroup().withGroupType(RecoveryPlanGroupType.FAILOVER) - .withReplicationProtectedItems(Arrays.asList( - new RecoveryPlanProtectedItem(), new RecoveryPlanProtectedItem())) - .withStartGroupActions(Arrays.asList( - new RecoveryPlanAction().withActionName("a") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("sinuqtljqobbpih") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()))) - .withEndGroupActions( - Arrays.asList(new RecoveryPlanAction().withActionName("ecybmrqbrj") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("bmpxdlvykfrexc") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("s") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("qwjksghudgz") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()))), - new RecoveryPlanGroup() - .withGroupType(RecoveryPlanGroupType.SHUTDOWN) - .withReplicationProtectedItems(Arrays.asList( - new RecoveryPlanProtectedItem(), new RecoveryPlanProtectedItem())) - .withStartGroupActions(Arrays.asList( - new RecoveryPlanAction().withActionName("gsv") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("u") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("kxibdafh") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("kmdyomkxfbvfbh") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()))) - .withEndGroupActions(Arrays - .asList(new RecoveryPlanAction().withActionName("rhpw") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()))), - new RecoveryPlanGroup().withGroupType(RecoveryPlanGroupType.BOOT) - .withReplicationProtectedItems( - Arrays.asList(new RecoveryPlanProtectedItem(), - new RecoveryPlanProtectedItem(), new RecoveryPlanProtectedItem())) - .withStartGroupActions( - Arrays.asList(new RecoveryPlanAction().withActionName("mawzovgk") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()))) - .withEndGroupActions(Arrays.asList( - new RecoveryPlanAction().withActionName("ui") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("jcjcazt") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("wsnsqowx") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("comlikytwvczc") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()))))) - .withProviderSpecificDetails( - Arrays.asList(new RecoveryPlanProviderSpecificDetails()))) - .withLocation("cvejyfdvlvhbwrn"))) - .withNextLink("swankltytmh"); - model = BinaryData.fromObject(model).toObject(RecoveryPlanCollection.class); - Assertions.assertEquals("khgb", model.value().get(0).properties().friendlyName()); - Assertions.assertEquals("ta", model.value().get(0).properties().primaryFabricId()); - Assertions.assertEquals("rfdl", model.value().get(0).properties().primaryFabricFriendlyName()); - Assertions.assertEquals("kh", model.value().get(0).properties().recoveryFabricId()); - Assertions.assertEquals("rne", model.value().get(0).properties().recoveryFabricFriendlyName()); - Assertions.assertEquals("jcpeogkhnmg", model.value().get(0).properties().failoverDeploymentModel()); - Assertions.assertEquals("uxddbhfh", model.value().get(0).properties().replicationProviders().get(0)); - Assertions.assertEquals("nsduugwbsre", model.value().get(0).properties().allowedOperations().get(0)); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-07T05:21:39Z"), - model.value().get(0).properties().lastPlannedFailoverTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-09T03:44:16Z"), - model.value().get(0).properties().lastUnplannedFailoverTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-13T17:58:26Z"), - model.value().get(0).properties().lastTestFailoverTime()); - Assertions.assertEquals("khminqcymc", model.value().get(0).properties().currentScenario().scenarioName()); - Assertions.assertEquals("gn", model.value().get(0).properties().currentScenario().jobId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-29T07:37:31Z"), - model.value().get(0).properties().currentScenario().startTime()); - Assertions.assertEquals("ewuninvud", model.value().get(0).properties().currentScenarioStatus()); - Assertions.assertEquals("h", model.value().get(0).properties().currentScenarioStatusDescription()); - Assertions.assertEquals(RecoveryPlanGroupType.FAILOVER, - model.value().get(0).properties().groups().get(0).groupType()); - Assertions.assertEquals("rqctmxxdtdd", - model.value().get(0).properties().groups().get(0).startGroupActions().get(0).actionName()); - Assertions.assertEquals("prwnwvroevytlyo", - model.value().get(0).properties().groups().get(0).endGroupActions().get(0).actionName()); - Assertions.assertEquals("qofyuicdhzbdy", model.value().get(0).location()); - Assertions.assertEquals("swankltytmh", model.nextLink()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanGroupTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanGroupTests.java deleted file mode 100644 index 9305b869dee9..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanGroupTests.java +++ /dev/null @@ -1,93 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.PossibleOperationsDirections; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanAction; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanActionDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanGroup; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanGroupType; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanProtectedItem; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationProtectedItemOperation; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class RecoveryPlanGroupTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecoveryPlanGroup model = BinaryData.fromString( - "{\"groupType\":\"Boot\",\"replicationProtectedItems\":[{\"id\":\"zdcgdzbenr\",\"virtualMachineId\":\"cawetzqddt\"},{\"id\":\"fljhznamtua\",\"virtualMachineId\":\"zwcjjncqtj\"}],\"startGroupActions\":[{\"actionName\":\"zvgbgat\",\"failoverTypes\":[\"ChangePit\",\"ChangePit\"],\"failoverDirections\":[\"PrimaryToRecovery\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"rebwggahtt\",\"failoverTypes\":[\"TestFailover\",\"ChangePit\"],\"failoverDirections\":[\"PrimaryToRecovery\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"jqfutlxj\",\"failoverTypes\":[\"SwitchProtection\",\"CancelFailover\",\"TestFailoverCleanup\",\"ReverseReplicate\"],\"failoverDirections\":[\"PrimaryToRecovery\",\"RecoveryToPrimary\",\"RecoveryToPrimary\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"j\",\"failoverTypes\":[\"RepairReplication\",\"CompleteMigration\",\"TestFailoverCleanup\"],\"failoverDirections\":[\"RecoveryToPrimary\",\"PrimaryToRecovery\",\"RecoveryToPrimary\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"cmbuocnjrohmbpy\",\"failoverTypes\":[\"SwitchProtection\"],\"failoverDirections\":[\"PrimaryToRecovery\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]}") - .toObject(RecoveryPlanGroup.class); - Assertions.assertEquals(RecoveryPlanGroupType.BOOT, model.groupType()); - Assertions.assertEquals("zdcgdzbenr", model.replicationProtectedItems().get(0).id()); - Assertions.assertEquals("cawetzqddt", model.replicationProtectedItems().get(0).virtualMachineId()); - Assertions.assertEquals("zvgbgat", model.startGroupActions().get(0).actionName()); - Assertions.assertEquals(ReplicationProtectedItemOperation.CHANGE_PIT, - model.startGroupActions().get(0).failoverTypes().get(0)); - Assertions.assertEquals(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - model.startGroupActions().get(0).failoverDirections().get(0)); - Assertions.assertEquals("rebwggahtt", model.endGroupActions().get(0).actionName()); - Assertions.assertEquals(ReplicationProtectedItemOperation.TEST_FAILOVER, - model.endGroupActions().get(0).failoverTypes().get(0)); - Assertions.assertEquals(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - model.endGroupActions().get(0).failoverDirections().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecoveryPlanGroup model - = new RecoveryPlanGroup().withGroupType(RecoveryPlanGroupType.BOOT) - .withReplicationProtectedItems(Arrays.asList( - new RecoveryPlanProtectedItem().withId("zdcgdzbenr").withVirtualMachineId("cawetzqddt"), - new RecoveryPlanProtectedItem().withId("fljhznamtua").withVirtualMachineId("zwcjjncqtj"))) - .withStartGroupActions(Arrays.asList(new RecoveryPlanAction().withActionName("zvgbgat") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.CHANGE_PIT, - ReplicationProtectedItemOperation.CHANGE_PIT)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.PRIMARY_TO_RECOVERY)) - .withCustomDetails(new RecoveryPlanActionDetails()))) - .withEndGroupActions(Arrays.asList( - new RecoveryPlanAction().withActionName("rebwggahtt") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.TEST_FAILOVER, - ReplicationProtectedItemOperation.CHANGE_PIT)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.PRIMARY_TO_RECOVERY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("jqfutlxj") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.SWITCH_PROTECTION, - ReplicationProtectedItemOperation.CANCEL_FAILOVER, - ReplicationProtectedItemOperation.TEST_FAILOVER_CLEANUP, - ReplicationProtectedItemOperation.REVERSE_REPLICATE)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("j") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.REPAIR_REPLICATION, - ReplicationProtectedItemOperation.COMPLETE_MIGRATION, - ReplicationProtectedItemOperation.TEST_FAILOVER_CLEANUP)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("cmbuocnjrohmbpy") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.SWITCH_PROTECTION)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.PRIMARY_TO_RECOVERY)) - .withCustomDetails(new RecoveryPlanActionDetails()))); - model = BinaryData.fromObject(model).toObject(RecoveryPlanGroup.class); - Assertions.assertEquals(RecoveryPlanGroupType.BOOT, model.groupType()); - Assertions.assertEquals("zdcgdzbenr", model.replicationProtectedItems().get(0).id()); - Assertions.assertEquals("cawetzqddt", model.replicationProtectedItems().get(0).virtualMachineId()); - Assertions.assertEquals("zvgbgat", model.startGroupActions().get(0).actionName()); - Assertions.assertEquals(ReplicationProtectedItemOperation.CHANGE_PIT, - model.startGroupActions().get(0).failoverTypes().get(0)); - Assertions.assertEquals(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - model.startGroupActions().get(0).failoverDirections().get(0)); - Assertions.assertEquals("rebwggahtt", model.endGroupActions().get(0).actionName()); - Assertions.assertEquals(ReplicationProtectedItemOperation.TEST_FAILOVER, - model.endGroupActions().get(0).failoverTypes().get(0)); - Assertions.assertEquals(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - model.endGroupActions().get(0).failoverDirections().get(0)); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanHyperVReplicaAzureFailbackInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanHyperVReplicaAzureFailbackInputTests.java deleted file mode 100644 index 16373d7e2c0f..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanHyperVReplicaAzureFailbackInputTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.AlternateLocationRecoveryOption; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.DataSyncStatus; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanHyperVReplicaAzureFailbackInput; -import org.junit.jupiter.api.Assertions; - -public final class RecoveryPlanHyperVReplicaAzureFailbackInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecoveryPlanHyperVReplicaAzureFailbackInput model = BinaryData.fromString( - "{\"instanceType\":\"HyperVReplicaAzureFailback\",\"dataSyncOption\":\"ForSynchronization\",\"recoveryVmCreationOption\":\"CreateVmIfNotFound\"}") - .toObject(RecoveryPlanHyperVReplicaAzureFailbackInput.class); - Assertions.assertEquals(DataSyncStatus.FOR_SYNCHRONIZATION, model.dataSyncOption()); - Assertions.assertEquals(AlternateLocationRecoveryOption.CREATE_VM_IF_NOT_FOUND, - model.recoveryVmCreationOption()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecoveryPlanHyperVReplicaAzureFailbackInput model - = new RecoveryPlanHyperVReplicaAzureFailbackInput().withDataSyncOption(DataSyncStatus.FOR_SYNCHRONIZATION) - .withRecoveryVmCreationOption(AlternateLocationRecoveryOption.CREATE_VM_IF_NOT_FOUND); - model = BinaryData.fromObject(model).toObject(RecoveryPlanHyperVReplicaAzureFailbackInput.class); - Assertions.assertEquals(DataSyncStatus.FOR_SYNCHRONIZATION, model.dataSyncOption()); - Assertions.assertEquals(AlternateLocationRecoveryOption.CREATE_VM_IF_NOT_FOUND, - model.recoveryVmCreationOption()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanHyperVReplicaAzureFailoverInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanHyperVReplicaAzureFailoverInputTests.java deleted file mode 100644 index 801ecdcac107..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanHyperVReplicaAzureFailoverInputTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.HyperVReplicaAzureRpRecoveryPointType; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanHyperVReplicaAzureFailoverInput; -import org.junit.jupiter.api.Assertions; - -public final class RecoveryPlanHyperVReplicaAzureFailoverInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecoveryPlanHyperVReplicaAzureFailoverInput model = BinaryData.fromString( - "{\"instanceType\":\"HyperVReplicaAzure\",\"primaryKekCertificatePfx\":\"vtzldzchubagwn\",\"secondaryKekCertificatePfx\":\"uvigv\",\"recoveryPointType\":\"Latest\"}") - .toObject(RecoveryPlanHyperVReplicaAzureFailoverInput.class); - Assertions.assertEquals("vtzldzchubagwn", model.primaryKekCertificatePfx()); - Assertions.assertEquals("uvigv", model.secondaryKekCertificatePfx()); - Assertions.assertEquals(HyperVReplicaAzureRpRecoveryPointType.LATEST, model.recoveryPointType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecoveryPlanHyperVReplicaAzureFailoverInput model - = new RecoveryPlanHyperVReplicaAzureFailoverInput().withPrimaryKekCertificatePfx("vtzldzchubagwn") - .withSecondaryKekCertificatePfx("uvigv") - .withRecoveryPointType(HyperVReplicaAzureRpRecoveryPointType.LATEST); - model = BinaryData.fromObject(model).toObject(RecoveryPlanHyperVReplicaAzureFailoverInput.class); - Assertions.assertEquals("vtzldzchubagwn", model.primaryKekCertificatePfx()); - Assertions.assertEquals("uvigv", model.secondaryKekCertificatePfx()); - Assertions.assertEquals(HyperVReplicaAzureRpRecoveryPointType.LATEST, model.recoveryPointType()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanInMageAzureV2FailoverInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanInMageAzureV2FailoverInputTests.java deleted file mode 100644 index cf385aa84ccc..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanInMageAzureV2FailoverInputTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageV2RpRecoveryPointType; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanInMageAzureV2FailoverInput; -import org.junit.jupiter.api.Assertions; - -public final class RecoveryPlanInMageAzureV2FailoverInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecoveryPlanInMageAzureV2FailoverInput model = BinaryData.fromString( - "{\"instanceType\":\"InMageAzureV2\",\"recoveryPointType\":\"LatestApplicationConsistent\",\"useMultiVmSyncPoint\":\"bzakp\"}") - .toObject(RecoveryPlanInMageAzureV2FailoverInput.class); - Assertions.assertEquals(InMageV2RpRecoveryPointType.LATEST_APPLICATION_CONSISTENT, model.recoveryPointType()); - Assertions.assertEquals("bzakp", model.useMultiVmSyncPoint()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecoveryPlanInMageAzureV2FailoverInput model = new RecoveryPlanInMageAzureV2FailoverInput() - .withRecoveryPointType(InMageV2RpRecoveryPointType.LATEST_APPLICATION_CONSISTENT) - .withUseMultiVmSyncPoint("bzakp"); - model = BinaryData.fromObject(model).toObject(RecoveryPlanInMageAzureV2FailoverInput.class); - Assertions.assertEquals(InMageV2RpRecoveryPointType.LATEST_APPLICATION_CONSISTENT, model.recoveryPointType()); - Assertions.assertEquals("bzakp", model.useMultiVmSyncPoint()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanInMageFailoverInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanInMageFailoverInputTests.java deleted file mode 100644 index b052aafe83de..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanInMageFailoverInputTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanInMageFailoverInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RpInMageRecoveryPointType; -import org.junit.jupiter.api.Assertions; - -public final class RecoveryPlanInMageFailoverInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecoveryPlanInMageFailoverInput model - = BinaryData.fromString("{\"instanceType\":\"InMage\",\"recoveryPointType\":\"LatestTag\"}") - .toObject(RecoveryPlanInMageFailoverInput.class); - Assertions.assertEquals(RpInMageRecoveryPointType.LATEST_TAG, model.recoveryPointType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecoveryPlanInMageFailoverInput model - = new RecoveryPlanInMageFailoverInput().withRecoveryPointType(RpInMageRecoveryPointType.LATEST_TAG); - model = BinaryData.fromObject(model).toObject(RecoveryPlanInMageFailoverInput.class); - Assertions.assertEquals(RpInMageRecoveryPointType.LATEST_TAG, model.recoveryPointType()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanInMageRcmFailbackFailoverInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanInMageRcmFailbackFailoverInputTests.java deleted file mode 100644 index e044ab1d2f3e..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanInMageRcmFailbackFailoverInputTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.InMageRcmFailbackRecoveryPointType; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanInMageRcmFailbackFailoverInput; -import org.junit.jupiter.api.Assertions; - -public final class RecoveryPlanInMageRcmFailbackFailoverInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecoveryPlanInMageRcmFailbackFailoverInput model = BinaryData.fromString( - "{\"instanceType\":\"InMageRcmFailback\",\"recoveryPointType\":\"ApplicationConsistent\",\"useMultiVmSyncPoint\":\"raqp\"}") - .toObject(RecoveryPlanInMageRcmFailbackFailoverInput.class); - Assertions.assertEquals(InMageRcmFailbackRecoveryPointType.APPLICATION_CONSISTENT, model.recoveryPointType()); - Assertions.assertEquals("raqp", model.useMultiVmSyncPoint()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecoveryPlanInMageRcmFailbackFailoverInput model = new RecoveryPlanInMageRcmFailbackFailoverInput() - .withRecoveryPointType(InMageRcmFailbackRecoveryPointType.APPLICATION_CONSISTENT) - .withUseMultiVmSyncPoint("raqp"); - model = BinaryData.fromObject(model).toObject(RecoveryPlanInMageRcmFailbackFailoverInput.class); - Assertions.assertEquals(InMageRcmFailbackRecoveryPointType.APPLICATION_CONSISTENT, model.recoveryPointType()); - Assertions.assertEquals("raqp", model.useMultiVmSyncPoint()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanInMageRcmFailoverInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanInMageRcmFailoverInputTests.java deleted file mode 100644 index 4a3b0c030144..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanInMageRcmFailoverInputTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanInMageRcmFailoverInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanPointType; -import org.junit.jupiter.api.Assertions; - -public final class RecoveryPlanInMageRcmFailoverInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecoveryPlanInMageRcmFailoverInput model = BinaryData.fromString( - "{\"instanceType\":\"InMageRcm\",\"recoveryPointType\":\"LatestApplicationConsistent\",\"useMultiVmSyncPoint\":\"suc\"}") - .toObject(RecoveryPlanInMageRcmFailoverInput.class); - Assertions.assertEquals(RecoveryPlanPointType.LATEST_APPLICATION_CONSISTENT, model.recoveryPointType()); - Assertions.assertEquals("suc", model.useMultiVmSyncPoint()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecoveryPlanInMageRcmFailoverInput model = new RecoveryPlanInMageRcmFailoverInput() - .withRecoveryPointType(RecoveryPlanPointType.LATEST_APPLICATION_CONSISTENT) - .withUseMultiVmSyncPoint("suc"); - model = BinaryData.fromObject(model).toObject(RecoveryPlanInMageRcmFailoverInput.class); - Assertions.assertEquals(RecoveryPlanPointType.LATEST_APPLICATION_CONSISTENT, model.recoveryPointType()); - Assertions.assertEquals("suc", model.useMultiVmSyncPoint()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanInnerTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanInnerTests.java deleted file mode 100644 index c1179d103385..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanInnerTests.java +++ /dev/null @@ -1,257 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.RecoveryPlanInner; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.CurrentScenarioDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.PossibleOperationsDirections; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanAction; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanActionDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanGroup; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanGroupType; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanProtectedItem; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanProviderSpecificDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationProtectedItemOperation; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class RecoveryPlanInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecoveryPlanInner model = BinaryData.fromString( - "{\"properties\":{\"friendlyName\":\"znnhd\",\"primaryFabricId\":\"ktgj\",\"primaryFabricFriendlyName\":\"gguxhemlwyw\",\"recoveryFabricId\":\"eczgfb\",\"recoveryFabricFriendlyName\":\"klelssxb\",\"failoverDeploymentModel\":\"c\",\"replicationProviders\":[\"ujksrlsmdesqplpv\",\"jcdoewb\",\"dyvt\"],\"allowedOperations\":[\"xvgpiude\",\"gfsxzec\",\"axwk\",\"fykhvuhxepmru\"],\"lastPlannedFailoverTime\":\"2021-01-01T13:09:47Z\",\"lastUnplannedFailoverTime\":\"2021-01-21T20:15:20Z\",\"lastTestFailoverTime\":\"2021-07-09T17:03:36Z\",\"currentScenario\":{\"scenarioName\":\"slujdjltym\",\"jobId\":\"vguihywar\",\"startTime\":\"2021-09-29T23:23Z\"},\"currentScenarioStatus\":\"hkixkykxdssj\",\"currentScenarioStatusDescription\":\"mmuc\",\"groups\":[{\"groupType\":\"Failover\",\"replicationProtectedItems\":[{\"id\":\"lrmymyincqlhri\",\"virtualMachineId\":\"sl\"},{\"id\":\"iiovgqcgxu\",\"virtualMachineId\":\"qkctotiowlxte\"}],\"startGroupActions\":[{\"actionName\":\"tjgwdtguk\",\"failoverTypes\":[\"DisableProtection\",\"Commit\",\"CancelFailover\",\"Commit\"],\"failoverDirections\":[\"RecoveryToPrimary\",\"RecoveryToPrimary\",\"RecoveryToPrimary\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"kccuzgy\",\"failoverTypes\":[\"PlannedFailover\",\"SwitchProtection\"],\"failoverDirections\":[\"RecoveryToPrimary\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"lwgniiprglvawu\",\"failoverTypes\":[\"CancelFailover\"],\"failoverDirections\":[\"PrimaryToRecovery\",\"PrimaryToRecovery\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"pivlsbbjpm\",\"failoverTypes\":[\"TestFailoverCleanup\",\"CancelFailover\"],\"failoverDirections\":[\"RecoveryToPrimary\",\"PrimaryToRecovery\",\"PrimaryToRecovery\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"xxkubvphavp\",\"failoverTypes\":[\"RepairReplication\"],\"failoverDirections\":[\"RecoveryToPrimary\",\"RecoveryToPrimary\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"gvgovpbbttefjo\",\"failoverTypes\":[\"Commit\",\"DisableProtection\",\"FinalizeFailback\"],\"failoverDirections\":[\"RecoveryToPrimary\",\"RecoveryToPrimary\",\"RecoveryToPrimary\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]},{\"groupType\":\"Boot\",\"replicationProtectedItems\":[{\"id\":\"frdbiqmrjgeihf\",\"virtualMachineId\":\"ggwfiwz\"},{\"id\":\"mjpb\",\"virtualMachineId\":\"phmgtvljvrcmyfq\"},{\"id\":\"gxhnpomyqwcabv\",\"virtualMachineId\":\"ilee\"},{\"id\":\"swlpaugmrmfj\",\"virtualMachineId\":\"xwtoaukhfkvc\"}],\"startGroupActions\":[{\"actionName\":\"zmoaeds\",\"failoverTypes\":[\"Commit\",\"ChangePit\"],\"failoverDirections\":[\"RecoveryToPrimary\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"edwcgyee\",\"failoverTypes\":[\"Commit\",\"FinalizeFailback\",\"ChangePit\"],\"failoverDirections\":[\"PrimaryToRecovery\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"g\",\"failoverTypes\":[\"PlannedFailover\",\"SwitchProtection\"],\"failoverDirections\":[\"RecoveryToPrimary\",\"RecoveryToPrimary\",\"RecoveryToPrimary\",\"PrimaryToRecovery\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"l\",\"failoverTypes\":[\"DisableProtection\",\"TestFailoverCleanup\",\"DisableProtection\",\"RepairReplication\"],\"failoverDirections\":[\"PrimaryToRecovery\",\"PrimaryToRecovery\",\"RecoveryToPrimary\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]},{\"groupType\":\"Failover\",\"replicationProtectedItems\":[{\"id\":\"hvn\",\"virtualMachineId\":\"gnxkympqan\"},{\"id\":\"jk\",\"virtualMachineId\":\"tw\"},{\"id\":\"aoypny\",\"virtualMachineId\":\"shxcylhkg\"}],\"startGroupActions\":[{\"actionName\":\"ghpxycphdr\",\"failoverTypes\":[\"CompleteMigration\",\"RepairReplication\",\"ChangePit\"],\"failoverDirections\":[\"RecoveryToPrimary\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"omacluzvxnqmhr\",\"failoverTypes\":[\"FinalizeFailback\"],\"failoverDirections\":[\"RecoveryToPrimary\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"kois\",\"failoverTypes\":[\"DisableProtection\"],\"failoverDirections\":[\"PrimaryToRecovery\",\"RecoveryToPrimary\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"xuifmcsypobkdqz\",\"failoverTypes\":[\"CompleteMigration\",\"Commit\",\"ChangePit\",\"TestFailoverCleanup\"],\"failoverDirections\":[\"PrimaryToRecovery\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"lgtrczzy\",\"failoverTypes\":[\"DisableProtection\",\"UnplannedFailover\",\"TestFailover\"],\"failoverDirections\":[\"RecoveryToPrimary\",\"PrimaryToRecovery\",\"PrimaryToRecovery\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]}],\"providerSpecificDetails\":[{\"instanceType\":\"RecoveryPlanProviderSpecificDetails\"},{\"instanceType\":\"RecoveryPlanProviderSpecificDetails\"},{\"instanceType\":\"RecoveryPlanProviderSpecificDetails\"}]},\"location\":\"rkihcirld\",\"id\":\"fx\",\"name\":\"dcoxnbk\",\"type\":\"ja\"}") - .toObject(RecoveryPlanInner.class); - Assertions.assertEquals("znnhd", model.properties().friendlyName()); - Assertions.assertEquals("ktgj", model.properties().primaryFabricId()); - Assertions.assertEquals("gguxhemlwyw", model.properties().primaryFabricFriendlyName()); - Assertions.assertEquals("eczgfb", model.properties().recoveryFabricId()); - Assertions.assertEquals("klelssxb", model.properties().recoveryFabricFriendlyName()); - Assertions.assertEquals("c", model.properties().failoverDeploymentModel()); - Assertions.assertEquals("ujksrlsmdesqplpv", model.properties().replicationProviders().get(0)); - Assertions.assertEquals("xvgpiude", model.properties().allowedOperations().get(0)); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-01T13:09:47Z"), - model.properties().lastPlannedFailoverTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-21T20:15:20Z"), - model.properties().lastUnplannedFailoverTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-09T17:03:36Z"), - model.properties().lastTestFailoverTime()); - Assertions.assertEquals("slujdjltym", model.properties().currentScenario().scenarioName()); - Assertions.assertEquals("vguihywar", model.properties().currentScenario().jobId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-29T23:23Z"), - model.properties().currentScenario().startTime()); - Assertions.assertEquals("hkixkykxdssj", model.properties().currentScenarioStatus()); - Assertions.assertEquals("mmuc", model.properties().currentScenarioStatusDescription()); - Assertions.assertEquals(RecoveryPlanGroupType.FAILOVER, model.properties().groups().get(0).groupType()); - Assertions.assertEquals("lrmymyincqlhri", - model.properties().groups().get(0).replicationProtectedItems().get(0).id()); - Assertions.assertEquals("sl", - model.properties().groups().get(0).replicationProtectedItems().get(0).virtualMachineId()); - Assertions.assertEquals("tjgwdtguk", - model.properties().groups().get(0).startGroupActions().get(0).actionName()); - Assertions.assertEquals(ReplicationProtectedItemOperation.DISABLE_PROTECTION, - model.properties().groups().get(0).startGroupActions().get(0).failoverTypes().get(0)); - Assertions.assertEquals(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - model.properties().groups().get(0).startGroupActions().get(0).failoverDirections().get(0)); - Assertions.assertEquals("lwgniiprglvawu", - model.properties().groups().get(0).endGroupActions().get(0).actionName()); - Assertions.assertEquals(ReplicationProtectedItemOperation.CANCEL_FAILOVER, - model.properties().groups().get(0).endGroupActions().get(0).failoverTypes().get(0)); - Assertions.assertEquals(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - model.properties().groups().get(0).endGroupActions().get(0).failoverDirections().get(0)); - Assertions.assertEquals("rkihcirld", model.location()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecoveryPlanInner model = new RecoveryPlanInner() - .withProperties(new RecoveryPlanProperties().withFriendlyName("znnhd") - .withPrimaryFabricId("ktgj") - .withPrimaryFabricFriendlyName("gguxhemlwyw") - .withRecoveryFabricId("eczgfb") - .withRecoveryFabricFriendlyName("klelssxb") - .withFailoverDeploymentModel("c") - .withReplicationProviders(Arrays.asList("ujksrlsmdesqplpv", "jcdoewb", "dyvt")) - .withAllowedOperations(Arrays.asList("xvgpiude", "gfsxzec", "axwk", "fykhvuhxepmru")) - .withLastPlannedFailoverTime(OffsetDateTime.parse("2021-01-01T13:09:47Z")) - .withLastUnplannedFailoverTime(OffsetDateTime.parse("2021-01-21T20:15:20Z")) - .withLastTestFailoverTime(OffsetDateTime.parse("2021-07-09T17:03:36Z")) - .withCurrentScenario(new CurrentScenarioDetails().withScenarioName("slujdjltym") - .withJobId("vguihywar") - .withStartTime(OffsetDateTime.parse("2021-09-29T23:23Z"))) - .withCurrentScenarioStatus("hkixkykxdssj") - .withCurrentScenarioStatusDescription("mmuc") - .withGroups(Arrays.asList( - new RecoveryPlanGroup().withGroupType(RecoveryPlanGroupType.FAILOVER) - .withReplicationProtectedItems(Arrays.asList( - new RecoveryPlanProtectedItem().withId("lrmymyincqlhri").withVirtualMachineId("sl"), - new RecoveryPlanProtectedItem().withId("iiovgqcgxu").withVirtualMachineId("qkctotiowlxte"))) - .withStartGroupActions(Arrays.asList( - new RecoveryPlanAction().withActionName("tjgwdtguk") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.DISABLE_PROTECTION, - ReplicationProtectedItemOperation.COMMIT, - ReplicationProtectedItemOperation.CANCEL_FAILOVER, - ReplicationProtectedItemOperation.COMMIT)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction() - .withActionName("kccuzgy") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.PLANNED_FAILOVER, - ReplicationProtectedItemOperation.SWITCH_PROTECTION)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.RECOVERY_TO_PRIMARY)) - .withCustomDetails(new RecoveryPlanActionDetails()))) - .withEndGroupActions(Arrays.asList( - new RecoveryPlanAction().withActionName("lwgniiprglvawu") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.CANCEL_FAILOVER)) - .withFailoverDirections(Arrays.asList( - PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("pivlsbbjpm") - .withFailoverTypes( - Arrays.asList(ReplicationProtectedItemOperation.TEST_FAILOVER_CLEANUP, - ReplicationProtectedItemOperation.CANCEL_FAILOVER)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("xxkubvphavp") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.REPAIR_REPLICATION)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction() - .withActionName("gvgovpbbttefjo") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.COMMIT, - ReplicationProtectedItemOperation.DISABLE_PROTECTION, - ReplicationProtectedItemOperation.FINALIZE_FAILBACK)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY)) - .withCustomDetails(new RecoveryPlanActionDetails()))), - new RecoveryPlanGroup().withGroupType(RecoveryPlanGroupType.BOOT) - .withReplicationProtectedItems(Arrays.asList( - new RecoveryPlanProtectedItem().withId("frdbiqmrjgeihf").withVirtualMachineId("ggwfiwz"), - new RecoveryPlanProtectedItem().withId("mjpb").withVirtualMachineId("phmgtvljvrcmyfq"), - new RecoveryPlanProtectedItem().withId("gxhnpomyqwcabv").withVirtualMachineId("ilee"), - new RecoveryPlanProtectedItem().withId("swlpaugmrmfj") - .withVirtualMachineId("xwtoaukhfkvc"))) - .withStartGroupActions(Arrays.asList( - new RecoveryPlanAction().withActionName("zmoaeds") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.COMMIT, - ReplicationProtectedItemOperation.CHANGE_PIT)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.RECOVERY_TO_PRIMARY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("edwcgyee") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.COMMIT, - ReplicationProtectedItemOperation.FINALIZE_FAILBACK, - ReplicationProtectedItemOperation.CHANGE_PIT)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.PRIMARY_TO_RECOVERY)) - .withCustomDetails(new RecoveryPlanActionDetails()))) - .withEndGroupActions(Arrays.asList( - new RecoveryPlanAction().withActionName("g") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.PLANNED_FAILOVER, - ReplicationProtectedItemOperation.SWITCH_PROTECTION)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("l") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.DISABLE_PROTECTION, - ReplicationProtectedItemOperation.TEST_FAILOVER_CLEANUP, - ReplicationProtectedItemOperation.DISABLE_PROTECTION, - ReplicationProtectedItemOperation.REPAIR_REPLICATION)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY)) - .withCustomDetails(new RecoveryPlanActionDetails()))), - new RecoveryPlanGroup().withGroupType(RecoveryPlanGroupType.FAILOVER) - .withReplicationProtectedItems(Arrays.asList( - new RecoveryPlanProtectedItem().withId("hvn").withVirtualMachineId("gnxkympqan"), - new RecoveryPlanProtectedItem().withId("jk").withVirtualMachineId("tw"), - new RecoveryPlanProtectedItem().withId("aoypny").withVirtualMachineId("shxcylhkg"))) - .withStartGroupActions(Arrays.asList( - new RecoveryPlanAction().withActionName("ghpxycphdr") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.COMPLETE_MIGRATION, - ReplicationProtectedItemOperation.REPAIR_REPLICATION, - ReplicationProtectedItemOperation.CHANGE_PIT)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.RECOVERY_TO_PRIMARY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction() - .withActionName("omacluzvxnqmhr") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.FINALIZE_FAILBACK)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.RECOVERY_TO_PRIMARY)) - .withCustomDetails(new RecoveryPlanActionDetails()))) - .withEndGroupActions(Arrays.asList( - new RecoveryPlanAction().withActionName("kois") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.DISABLE_PROTECTION)) - .withFailoverDirections(Arrays.asList( - PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("xuifmcsypobkdqz") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.COMPLETE_MIGRATION, - ReplicationProtectedItemOperation.COMMIT, - ReplicationProtectedItemOperation.CHANGE_PIT, - ReplicationProtectedItemOperation.TEST_FAILOVER_CLEANUP)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.PRIMARY_TO_RECOVERY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("lgtrczzy") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.DISABLE_PROTECTION, - ReplicationProtectedItemOperation.UNPLANNED_FAILOVER, - ReplicationProtectedItemOperation.TEST_FAILOVER)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY)) - .withCustomDetails(new RecoveryPlanActionDetails()))))) - .withProviderSpecificDetails(Arrays.asList(new RecoveryPlanProviderSpecificDetails(), - new RecoveryPlanProviderSpecificDetails(), new RecoveryPlanProviderSpecificDetails()))) - .withLocation("rkihcirld"); - model = BinaryData.fromObject(model).toObject(RecoveryPlanInner.class); - Assertions.assertEquals("znnhd", model.properties().friendlyName()); - Assertions.assertEquals("ktgj", model.properties().primaryFabricId()); - Assertions.assertEquals("gguxhemlwyw", model.properties().primaryFabricFriendlyName()); - Assertions.assertEquals("eczgfb", model.properties().recoveryFabricId()); - Assertions.assertEquals("klelssxb", model.properties().recoveryFabricFriendlyName()); - Assertions.assertEquals("c", model.properties().failoverDeploymentModel()); - Assertions.assertEquals("ujksrlsmdesqplpv", model.properties().replicationProviders().get(0)); - Assertions.assertEquals("xvgpiude", model.properties().allowedOperations().get(0)); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-01T13:09:47Z"), - model.properties().lastPlannedFailoverTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-21T20:15:20Z"), - model.properties().lastUnplannedFailoverTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-09T17:03:36Z"), - model.properties().lastTestFailoverTime()); - Assertions.assertEquals("slujdjltym", model.properties().currentScenario().scenarioName()); - Assertions.assertEquals("vguihywar", model.properties().currentScenario().jobId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-29T23:23Z"), - model.properties().currentScenario().startTime()); - Assertions.assertEquals("hkixkykxdssj", model.properties().currentScenarioStatus()); - Assertions.assertEquals("mmuc", model.properties().currentScenarioStatusDescription()); - Assertions.assertEquals(RecoveryPlanGroupType.FAILOVER, model.properties().groups().get(0).groupType()); - Assertions.assertEquals("lrmymyincqlhri", - model.properties().groups().get(0).replicationProtectedItems().get(0).id()); - Assertions.assertEquals("sl", - model.properties().groups().get(0).replicationProtectedItems().get(0).virtualMachineId()); - Assertions.assertEquals("tjgwdtguk", - model.properties().groups().get(0).startGroupActions().get(0).actionName()); - Assertions.assertEquals(ReplicationProtectedItemOperation.DISABLE_PROTECTION, - model.properties().groups().get(0).startGroupActions().get(0).failoverTypes().get(0)); - Assertions.assertEquals(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - model.properties().groups().get(0).startGroupActions().get(0).failoverDirections().get(0)); - Assertions.assertEquals("lwgniiprglvawu", - model.properties().groups().get(0).endGroupActions().get(0).actionName()); - Assertions.assertEquals(ReplicationProtectedItemOperation.CANCEL_FAILOVER, - model.properties().groups().get(0).endGroupActions().get(0).failoverTypes().get(0)); - Assertions.assertEquals(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - model.properties().groups().get(0).endGroupActions().get(0).failoverDirections().get(0)); - Assertions.assertEquals("rkihcirld", model.location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanManualActionDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanManualActionDetailsTests.java deleted file mode 100644 index 6d685f5db114..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanManualActionDetailsTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanManualActionDetails; -import org.junit.jupiter.api.Assertions; - -public final class RecoveryPlanManualActionDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecoveryPlanManualActionDetails model - = BinaryData.fromString("{\"instanceType\":\"ManualActionDetails\",\"description\":\"imcwqxynqjgsa\"}") - .toObject(RecoveryPlanManualActionDetails.class); - Assertions.assertEquals("imcwqxynqjgsa", model.description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecoveryPlanManualActionDetails model = new RecoveryPlanManualActionDetails().withDescription("imcwqxynqjgsa"); - model = BinaryData.fromObject(model).toObject(RecoveryPlanManualActionDetails.class); - Assertions.assertEquals("imcwqxynqjgsa", model.description()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanPlannedFailoverInputPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanPlannedFailoverInputPropertiesTests.java deleted file mode 100644 index 0a53f91190c5..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanPlannedFailoverInputPropertiesTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.PossibleOperationsDirections; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanPlannedFailoverInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanProviderSpecificFailoverInput; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class RecoveryPlanPlannedFailoverInputPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecoveryPlanPlannedFailoverInputProperties model = BinaryData.fromString( - "{\"failoverDirection\":\"PrimaryToRecovery\",\"providerSpecificDetails\":[{\"instanceType\":\"RecoveryPlanProviderSpecificFailoverInput\"},{\"instanceType\":\"RecoveryPlanProviderSpecificFailoverInput\"},{\"instanceType\":\"RecoveryPlanProviderSpecificFailoverInput\"}]}") - .toObject(RecoveryPlanPlannedFailoverInputProperties.class); - Assertions.assertEquals(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, model.failoverDirection()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecoveryPlanPlannedFailoverInputProperties model = new RecoveryPlanPlannedFailoverInputProperties() - .withFailoverDirection(PossibleOperationsDirections.PRIMARY_TO_RECOVERY) - .withProviderSpecificDetails(Arrays.asList(new RecoveryPlanProviderSpecificFailoverInput(), - new RecoveryPlanProviderSpecificFailoverInput(), new RecoveryPlanProviderSpecificFailoverInput())); - model = BinaryData.fromObject(model).toObject(RecoveryPlanPlannedFailoverInputProperties.class); - Assertions.assertEquals(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, model.failoverDirection()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanPlannedFailoverInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanPlannedFailoverInputTests.java deleted file mode 100644 index c9e82e8061f3..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanPlannedFailoverInputTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.PossibleOperationsDirections; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanPlannedFailoverInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanPlannedFailoverInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanProviderSpecificFailoverInput; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class RecoveryPlanPlannedFailoverInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecoveryPlanPlannedFailoverInput model = BinaryData.fromString( - "{\"properties\":{\"failoverDirection\":\"PrimaryToRecovery\",\"providerSpecificDetails\":[{\"instanceType\":\"RecoveryPlanProviderSpecificFailoverInput\"}]}}") - .toObject(RecoveryPlanPlannedFailoverInput.class); - Assertions.assertEquals(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - model.properties().failoverDirection()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecoveryPlanPlannedFailoverInput model - = new RecoveryPlanPlannedFailoverInput().withProperties(new RecoveryPlanPlannedFailoverInputProperties() - .withFailoverDirection(PossibleOperationsDirections.PRIMARY_TO_RECOVERY) - .withProviderSpecificDetails(Arrays.asList(new RecoveryPlanProviderSpecificFailoverInput()))); - model = BinaryData.fromObject(model).toObject(RecoveryPlanPlannedFailoverInput.class); - Assertions.assertEquals(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - model.properties().failoverDirection()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanPropertiesTests.java deleted file mode 100644 index cda18b3d6a82..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanPropertiesTests.java +++ /dev/null @@ -1,162 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.CurrentScenarioDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.PossibleOperationsDirections; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanAction; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanActionDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanGroup; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanGroupType; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanProtectedItem; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanProviderSpecificDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationProtectedItemOperation; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class RecoveryPlanPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecoveryPlanProperties model = BinaryData.fromString( - "{\"friendlyName\":\"rnnqb\",\"primaryFabricId\":\"bpizxqltgr\",\"primaryFabricFriendlyName\":\"gypxrxvbfihwuhvc\",\"recoveryFabricId\":\"fsrb\",\"recoveryFabricFriendlyName\":\"blml\",\"failoverDeploymentModel\":\"wxihs\",\"replicationProviders\":[\"wqagnepzwa\",\"lsbs\",\"qqqagwwrxaomzi\"],\"allowedOperations\":[\"rrczezkhhltnj\",\"dhqoawj\"],\"lastPlannedFailoverTime\":\"2021-05-12T17:36:56Z\",\"lastUnplannedFailoverTime\":\"2021-09-19T04:55:50Z\",\"lastTestFailoverTime\":\"2021-07-31T20:48:08Z\",\"currentScenario\":{\"scenarioName\":\"pcmsplbyrrueqth\",\"jobId\":\"gnmbscbbxigdhx\",\"startTime\":\"2021-10-27T05:31:04Z\"},\"currentScenarioStatus\":\"opedbwdpyqyybxub\",\"currentScenarioStatusDescription\":\"nafcbq\",\"groups\":[{\"groupType\":\"Shutdown\",\"replicationProtectedItems\":[{\"id\":\"aqacigeleohd\",\"virtualMachineId\":\"qvwzkjopwbeonrl\"}],\"startGroupActions\":[{\"actionName\":\"dqybx\",\"failoverTypes\":[\"TestFailoverCleanup\",\"PlannedFailover\",\"PlannedFailover\",\"RepairReplication\"],\"failoverDirections\":[\"RecoveryToPrimary\",\"RecoveryToPrimary\",\"RecoveryToPrimary\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"qfyiaseqchkr\",\"failoverTypes\":[\"CompleteMigration\",\"UnplannedFailover\",\"UnplannedFailover\"],\"failoverDirections\":[\"RecoveryToPrimary\",\"PrimaryToRecovery\",\"PrimaryToRecovery\",\"PrimaryToRecovery\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"uem\",\"failoverTypes\":[\"FinalizeFailback\",\"CancelFailover\",\"Commit\",\"TestFailoverCleanup\"],\"failoverDirections\":[\"PrimaryToRecovery\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"mnrxxbsojkl\",\"failoverTypes\":[\"CompleteMigration\",\"Failback\",\"TestFailoverCleanup\"],\"failoverDirections\":[\"RecoveryToPrimary\",\"PrimaryToRecovery\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"sprqsgnzxojpslsv\",\"failoverTypes\":[\"ReverseReplicate\"],\"failoverDirections\":[\"PrimaryToRecovery\",\"RecoveryToPrimary\",\"PrimaryToRecovery\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"iqwoyxqvapcoh\",\"failoverTypes\":[\"TestFailoverCleanup\",\"FinalizeFailback\",\"ReverseReplicate\"],\"failoverDirections\":[\"PrimaryToRecovery\",\"PrimaryToRecovery\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]}],\"providerSpecificDetails\":[{\"instanceType\":\"RecoveryPlanProviderSpecificDetails\"},{\"instanceType\":\"RecoveryPlanProviderSpecificDetails\"},{\"instanceType\":\"RecoveryPlanProviderSpecificDetails\"},{\"instanceType\":\"RecoveryPlanProviderSpecificDetails\"}]}") - .toObject(RecoveryPlanProperties.class); - Assertions.assertEquals("rnnqb", model.friendlyName()); - Assertions.assertEquals("bpizxqltgr", model.primaryFabricId()); - Assertions.assertEquals("gypxrxvbfihwuhvc", model.primaryFabricFriendlyName()); - Assertions.assertEquals("fsrb", model.recoveryFabricId()); - Assertions.assertEquals("blml", model.recoveryFabricFriendlyName()); - Assertions.assertEquals("wxihs", model.failoverDeploymentModel()); - Assertions.assertEquals("wqagnepzwa", model.replicationProviders().get(0)); - Assertions.assertEquals("rrczezkhhltnj", model.allowedOperations().get(0)); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-12T17:36:56Z"), model.lastPlannedFailoverTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-19T04:55:50Z"), model.lastUnplannedFailoverTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-31T20:48:08Z"), model.lastTestFailoverTime()); - Assertions.assertEquals("pcmsplbyrrueqth", model.currentScenario().scenarioName()); - Assertions.assertEquals("gnmbscbbxigdhx", model.currentScenario().jobId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-27T05:31:04Z"), model.currentScenario().startTime()); - Assertions.assertEquals("opedbwdpyqyybxub", model.currentScenarioStatus()); - Assertions.assertEquals("nafcbq", model.currentScenarioStatusDescription()); - Assertions.assertEquals(RecoveryPlanGroupType.SHUTDOWN, model.groups().get(0).groupType()); - Assertions.assertEquals("aqacigeleohd", model.groups().get(0).replicationProtectedItems().get(0).id()); - Assertions.assertEquals("qvwzkjopwbeonrl", - model.groups().get(0).replicationProtectedItems().get(0).virtualMachineId()); - Assertions.assertEquals("dqybx", model.groups().get(0).startGroupActions().get(0).actionName()); - Assertions.assertEquals(ReplicationProtectedItemOperation.TEST_FAILOVER_CLEANUP, - model.groups().get(0).startGroupActions().get(0).failoverTypes().get(0)); - Assertions.assertEquals(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - model.groups().get(0).startGroupActions().get(0).failoverDirections().get(0)); - Assertions.assertEquals("uem", model.groups().get(0).endGroupActions().get(0).actionName()); - Assertions.assertEquals(ReplicationProtectedItemOperation.FINALIZE_FAILBACK, - model.groups().get(0).endGroupActions().get(0).failoverTypes().get(0)); - Assertions.assertEquals(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - model.groups().get(0).endGroupActions().get(0).failoverDirections().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecoveryPlanProperties model = new RecoveryPlanProperties().withFriendlyName("rnnqb") - .withPrimaryFabricId("bpizxqltgr") - .withPrimaryFabricFriendlyName("gypxrxvbfihwuhvc") - .withRecoveryFabricId("fsrb") - .withRecoveryFabricFriendlyName("blml") - .withFailoverDeploymentModel("wxihs") - .withReplicationProviders(Arrays.asList("wqagnepzwa", "lsbs", "qqqagwwrxaomzi")) - .withAllowedOperations(Arrays.asList("rrczezkhhltnj", "dhqoawj")) - .withLastPlannedFailoverTime(OffsetDateTime.parse("2021-05-12T17:36:56Z")) - .withLastUnplannedFailoverTime(OffsetDateTime.parse("2021-09-19T04:55:50Z")) - .withLastTestFailoverTime(OffsetDateTime.parse("2021-07-31T20:48:08Z")) - .withCurrentScenario(new CurrentScenarioDetails().withScenarioName("pcmsplbyrrueqth") - .withJobId("gnmbscbbxigdhx") - .withStartTime(OffsetDateTime.parse("2021-10-27T05:31:04Z"))) - .withCurrentScenarioStatus("opedbwdpyqyybxub") - .withCurrentScenarioStatusDescription("nafcbq") - .withGroups(Arrays.asList(new RecoveryPlanGroup().withGroupType(RecoveryPlanGroupType.SHUTDOWN) - .withReplicationProtectedItems(Arrays.asList( - new RecoveryPlanProtectedItem().withId("aqacigeleohd").withVirtualMachineId("qvwzkjopwbeonrl"))) - .withStartGroupActions(Arrays.asList( - new RecoveryPlanAction().withActionName("dqybx") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.TEST_FAILOVER_CLEANUP, - ReplicationProtectedItemOperation.PLANNED_FAILOVER, - ReplicationProtectedItemOperation.PLANNED_FAILOVER, - ReplicationProtectedItemOperation.REPAIR_REPLICATION)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("qfyiaseqchkr") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.COMPLETE_MIGRATION, - ReplicationProtectedItemOperation.UNPLANNED_FAILOVER, - ReplicationProtectedItemOperation.UNPLANNED_FAILOVER)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY)) - .withCustomDetails(new RecoveryPlanActionDetails()))) - .withEndGroupActions(Arrays.asList( - new RecoveryPlanAction().withActionName("uem") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.FINALIZE_FAILBACK, - ReplicationProtectedItemOperation.CANCEL_FAILOVER, ReplicationProtectedItemOperation.COMMIT, - ReplicationProtectedItemOperation.TEST_FAILOVER_CLEANUP)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.PRIMARY_TO_RECOVERY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("mnrxxbsojkl") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.COMPLETE_MIGRATION, - ReplicationProtectedItemOperation.FAILBACK, - ReplicationProtectedItemOperation.TEST_FAILOVER_CLEANUP)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("sprqsgnzxojpslsv") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.REVERSE_REPLICATE)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("iqwoyxqvapcoh") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.TEST_FAILOVER_CLEANUP, - ReplicationProtectedItemOperation.FINALIZE_FAILBACK, - ReplicationProtectedItemOperation.REVERSE_REPLICATE)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY)) - .withCustomDetails(new RecoveryPlanActionDetails()))))) - .withProviderSpecificDetails( - Arrays.asList(new RecoveryPlanProviderSpecificDetails(), new RecoveryPlanProviderSpecificDetails(), - new RecoveryPlanProviderSpecificDetails(), new RecoveryPlanProviderSpecificDetails())); - model = BinaryData.fromObject(model).toObject(RecoveryPlanProperties.class); - Assertions.assertEquals("rnnqb", model.friendlyName()); - Assertions.assertEquals("bpizxqltgr", model.primaryFabricId()); - Assertions.assertEquals("gypxrxvbfihwuhvc", model.primaryFabricFriendlyName()); - Assertions.assertEquals("fsrb", model.recoveryFabricId()); - Assertions.assertEquals("blml", model.recoveryFabricFriendlyName()); - Assertions.assertEquals("wxihs", model.failoverDeploymentModel()); - Assertions.assertEquals("wqagnepzwa", model.replicationProviders().get(0)); - Assertions.assertEquals("rrczezkhhltnj", model.allowedOperations().get(0)); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-12T17:36:56Z"), model.lastPlannedFailoverTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-19T04:55:50Z"), model.lastUnplannedFailoverTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-31T20:48:08Z"), model.lastTestFailoverTime()); - Assertions.assertEquals("pcmsplbyrrueqth", model.currentScenario().scenarioName()); - Assertions.assertEquals("gnmbscbbxigdhx", model.currentScenario().jobId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-27T05:31:04Z"), model.currentScenario().startTime()); - Assertions.assertEquals("opedbwdpyqyybxub", model.currentScenarioStatus()); - Assertions.assertEquals("nafcbq", model.currentScenarioStatusDescription()); - Assertions.assertEquals(RecoveryPlanGroupType.SHUTDOWN, model.groups().get(0).groupType()); - Assertions.assertEquals("aqacigeleohd", model.groups().get(0).replicationProtectedItems().get(0).id()); - Assertions.assertEquals("qvwzkjopwbeonrl", - model.groups().get(0).replicationProtectedItems().get(0).virtualMachineId()); - Assertions.assertEquals("dqybx", model.groups().get(0).startGroupActions().get(0).actionName()); - Assertions.assertEquals(ReplicationProtectedItemOperation.TEST_FAILOVER_CLEANUP, - model.groups().get(0).startGroupActions().get(0).failoverTypes().get(0)); - Assertions.assertEquals(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - model.groups().get(0).startGroupActions().get(0).failoverDirections().get(0)); - Assertions.assertEquals("uem", model.groups().get(0).endGroupActions().get(0).actionName()); - Assertions.assertEquals(ReplicationProtectedItemOperation.FINALIZE_FAILBACK, - model.groups().get(0).endGroupActions().get(0).failoverTypes().get(0)); - Assertions.assertEquals(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - model.groups().get(0).endGroupActions().get(0).failoverDirections().get(0)); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanProtectedItemTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanProtectedItemTests.java deleted file mode 100644 index 91923e7f7a94..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanProtectedItemTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanProtectedItem; -import org.junit.jupiter.api.Assertions; - -public final class RecoveryPlanProtectedItemTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecoveryPlanProtectedItem model - = BinaryData.fromString("{\"id\":\"blydyvkf\",\"virtualMachineId\":\"rocxnehvs\"}") - .toObject(RecoveryPlanProtectedItem.class); - Assertions.assertEquals("blydyvkf", model.id()); - Assertions.assertEquals("rocxnehvs", model.virtualMachineId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecoveryPlanProtectedItem model - = new RecoveryPlanProtectedItem().withId("blydyvkf").withVirtualMachineId("rocxnehvs"); - model = BinaryData.fromObject(model).toObject(RecoveryPlanProtectedItem.class); - Assertions.assertEquals("blydyvkf", model.id()); - Assertions.assertEquals("rocxnehvs", model.virtualMachineId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanProviderSpecificDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanProviderSpecificDetailsTests.java deleted file mode 100644 index 95dfae67d5c2..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanProviderSpecificDetailsTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanProviderSpecificDetails; - -public final class RecoveryPlanProviderSpecificDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecoveryPlanProviderSpecificDetails model - = BinaryData.fromString("{\"instanceType\":\"RecoveryPlanProviderSpecificDetails\"}") - .toObject(RecoveryPlanProviderSpecificDetails.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecoveryPlanProviderSpecificDetails model = new RecoveryPlanProviderSpecificDetails(); - model = BinaryData.fromObject(model).toObject(RecoveryPlanProviderSpecificDetails.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanProviderSpecificFailoverInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanProviderSpecificFailoverInputTests.java deleted file mode 100644 index 8e6dab3003f6..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanProviderSpecificFailoverInputTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanProviderSpecificFailoverInput; - -public final class RecoveryPlanProviderSpecificFailoverInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecoveryPlanProviderSpecificFailoverInput model - = BinaryData.fromString("{\"instanceType\":\"RecoveryPlanProviderSpecificFailoverInput\"}") - .toObject(RecoveryPlanProviderSpecificFailoverInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecoveryPlanProviderSpecificFailoverInput model = new RecoveryPlanProviderSpecificFailoverInput(); - model = BinaryData.fromObject(model).toObject(RecoveryPlanProviderSpecificFailoverInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanProviderSpecificInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanProviderSpecificInputTests.java deleted file mode 100644 index e875ecb9c4d1..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanProviderSpecificInputTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanProviderSpecificInput; - -public final class RecoveryPlanProviderSpecificInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecoveryPlanProviderSpecificInput model - = BinaryData.fromString("{\"instanceType\":\"RecoveryPlanProviderSpecificInput\"}") - .toObject(RecoveryPlanProviderSpecificInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecoveryPlanProviderSpecificInput model = new RecoveryPlanProviderSpecificInput(); - model = BinaryData.fromObject(model).toObject(RecoveryPlanProviderSpecificInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanScriptActionDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanScriptActionDetailsTests.java deleted file mode 100644 index ebf71184c0c1..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanScriptActionDetailsTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanActionLocation; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanScriptActionDetails; -import org.junit.jupiter.api.Assertions; - -public final class RecoveryPlanScriptActionDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecoveryPlanScriptActionDetails model = BinaryData.fromString( - "{\"instanceType\":\"ScriptActionDetails\",\"path\":\"kyvscbgngcrus\",\"timeout\":\"ircpgcvsvkk\",\"fabricLocation\":\"Recovery\"}") - .toObject(RecoveryPlanScriptActionDetails.class); - Assertions.assertEquals("kyvscbgngcrus", model.path()); - Assertions.assertEquals("ircpgcvsvkk", model.timeout()); - Assertions.assertEquals(RecoveryPlanActionLocation.RECOVERY, model.fabricLocation()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecoveryPlanScriptActionDetails model = new RecoveryPlanScriptActionDetails().withPath("kyvscbgngcrus") - .withTimeout("ircpgcvsvkk") - .withFabricLocation(RecoveryPlanActionLocation.RECOVERY); - model = BinaryData.fromObject(model).toObject(RecoveryPlanScriptActionDetails.class); - Assertions.assertEquals("kyvscbgngcrus", model.path()); - Assertions.assertEquals("ircpgcvsvkk", model.timeout()); - Assertions.assertEquals(RecoveryPlanActionLocation.RECOVERY, model.fabricLocation()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanTestFailoverCleanupInputPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanTestFailoverCleanupInputPropertiesTests.java deleted file mode 100644 index 3efd91189356..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanTestFailoverCleanupInputPropertiesTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanTestFailoverCleanupInputProperties; -import org.junit.jupiter.api.Assertions; - -public final class RecoveryPlanTestFailoverCleanupInputPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecoveryPlanTestFailoverCleanupInputProperties model = BinaryData.fromString("{\"comments\":\"d\"}") - .toObject(RecoveryPlanTestFailoverCleanupInputProperties.class); - Assertions.assertEquals("d", model.comments()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecoveryPlanTestFailoverCleanupInputProperties model - = new RecoveryPlanTestFailoverCleanupInputProperties().withComments("d"); - model = BinaryData.fromObject(model).toObject(RecoveryPlanTestFailoverCleanupInputProperties.class); - Assertions.assertEquals("d", model.comments()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanTestFailoverCleanupInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanTestFailoverCleanupInputTests.java deleted file mode 100644 index 41c24a1f0557..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanTestFailoverCleanupInputTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanTestFailoverCleanupInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanTestFailoverCleanupInputProperties; -import org.junit.jupiter.api.Assertions; - -public final class RecoveryPlanTestFailoverCleanupInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecoveryPlanTestFailoverCleanupInput model - = BinaryData.fromString("{\"properties\":{\"comments\":\"ysfaqegplwrysh\"}}") - .toObject(RecoveryPlanTestFailoverCleanupInput.class); - Assertions.assertEquals("ysfaqegplwrysh", model.properties().comments()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecoveryPlanTestFailoverCleanupInput model = new RecoveryPlanTestFailoverCleanupInput() - .withProperties(new RecoveryPlanTestFailoverCleanupInputProperties().withComments("ysfaqegplwrysh")); - model = BinaryData.fromObject(model).toObject(RecoveryPlanTestFailoverCleanupInput.class); - Assertions.assertEquals("ysfaqegplwrysh", model.properties().comments()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanTestFailoverInputPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanTestFailoverInputPropertiesTests.java deleted file mode 100644 index 0e71d800fc08..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanTestFailoverInputPropertiesTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.PossibleOperationsDirections; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanProviderSpecificFailoverInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanTestFailoverInputProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class RecoveryPlanTestFailoverInputPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecoveryPlanTestFailoverInputProperties model = BinaryData.fromString( - "{\"failoverDirection\":\"RecoveryToPrimary\",\"networkType\":\"vqmtdwckygroejn\",\"networkId\":\"ljdjuskbrreqy\",\"providerSpecificDetails\":[{\"instanceType\":\"RecoveryPlanProviderSpecificFailoverInput\"},{\"instanceType\":\"RecoveryPlanProviderSpecificFailoverInput\"},{\"instanceType\":\"RecoveryPlanProviderSpecificFailoverInput\"}]}") - .toObject(RecoveryPlanTestFailoverInputProperties.class); - Assertions.assertEquals(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, model.failoverDirection()); - Assertions.assertEquals("vqmtdwckygroejn", model.networkType()); - Assertions.assertEquals("ljdjuskbrreqy", model.networkId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecoveryPlanTestFailoverInputProperties model = new RecoveryPlanTestFailoverInputProperties() - .withFailoverDirection(PossibleOperationsDirections.RECOVERY_TO_PRIMARY) - .withNetworkType("vqmtdwckygroejn") - .withNetworkId("ljdjuskbrreqy") - .withProviderSpecificDetails(Arrays.asList(new RecoveryPlanProviderSpecificFailoverInput(), - new RecoveryPlanProviderSpecificFailoverInput(), new RecoveryPlanProviderSpecificFailoverInput())); - model = BinaryData.fromObject(model).toObject(RecoveryPlanTestFailoverInputProperties.class); - Assertions.assertEquals(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, model.failoverDirection()); - Assertions.assertEquals("vqmtdwckygroejn", model.networkType()); - Assertions.assertEquals("ljdjuskbrreqy", model.networkId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanTestFailoverInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanTestFailoverInputTests.java deleted file mode 100644 index 2a5fcb3a5249..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanTestFailoverInputTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.PossibleOperationsDirections; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanProviderSpecificFailoverInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanTestFailoverInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanTestFailoverInputProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class RecoveryPlanTestFailoverInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecoveryPlanTestFailoverInput model = BinaryData.fromString( - "{\"properties\":{\"failoverDirection\":\"RecoveryToPrimary\",\"networkType\":\"eshoygzcb\",\"networkId\":\"qxkfaoytehqp\",\"providerSpecificDetails\":[{\"instanceType\":\"RecoveryPlanProviderSpecificFailoverInput\"},{\"instanceType\":\"RecoveryPlanProviderSpecificFailoverInput\"}]}}") - .toObject(RecoveryPlanTestFailoverInput.class); - Assertions.assertEquals(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - model.properties().failoverDirection()); - Assertions.assertEquals("eshoygzcb", model.properties().networkType()); - Assertions.assertEquals("qxkfaoytehqp", model.properties().networkId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecoveryPlanTestFailoverInput model - = new RecoveryPlanTestFailoverInput().withProperties(new RecoveryPlanTestFailoverInputProperties() - .withFailoverDirection(PossibleOperationsDirections.RECOVERY_TO_PRIMARY) - .withNetworkType("eshoygzcb") - .withNetworkId("qxkfaoytehqp") - .withProviderSpecificDetails(Arrays.asList(new RecoveryPlanProviderSpecificFailoverInput(), - new RecoveryPlanProviderSpecificFailoverInput()))); - model = BinaryData.fromObject(model).toObject(RecoveryPlanTestFailoverInput.class); - Assertions.assertEquals(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - model.properties().failoverDirection()); - Assertions.assertEquals("eshoygzcb", model.properties().networkType()); - Assertions.assertEquals("qxkfaoytehqp", model.properties().networkId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanUnplannedFailoverInputPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanUnplannedFailoverInputPropertiesTests.java deleted file mode 100644 index 33cd2774a55c..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanUnplannedFailoverInputPropertiesTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.PossibleOperationsDirections; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanProviderSpecificFailoverInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanUnplannedFailoverInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.SourceSiteOperations; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class RecoveryPlanUnplannedFailoverInputPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecoveryPlanUnplannedFailoverInputProperties model = BinaryData.fromString( - "{\"failoverDirection\":\"RecoveryToPrimary\",\"sourceSiteOperations\":\"NotRequired\",\"providerSpecificDetails\":[{\"instanceType\":\"RecoveryPlanProviderSpecificFailoverInput\"},{\"instanceType\":\"RecoveryPlanProviderSpecificFailoverInput\"},{\"instanceType\":\"RecoveryPlanProviderSpecificFailoverInput\"}]}") - .toObject(RecoveryPlanUnplannedFailoverInputProperties.class); - Assertions.assertEquals(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, model.failoverDirection()); - Assertions.assertEquals(SourceSiteOperations.NOT_REQUIRED, model.sourceSiteOperations()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecoveryPlanUnplannedFailoverInputProperties model = new RecoveryPlanUnplannedFailoverInputProperties() - .withFailoverDirection(PossibleOperationsDirections.RECOVERY_TO_PRIMARY) - .withSourceSiteOperations(SourceSiteOperations.NOT_REQUIRED) - .withProviderSpecificDetails(Arrays.asList(new RecoveryPlanProviderSpecificFailoverInput(), - new RecoveryPlanProviderSpecificFailoverInput(), new RecoveryPlanProviderSpecificFailoverInput())); - model = BinaryData.fromObject(model).toObject(RecoveryPlanUnplannedFailoverInputProperties.class); - Assertions.assertEquals(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, model.failoverDirection()); - Assertions.assertEquals(SourceSiteOperations.NOT_REQUIRED, model.sourceSiteOperations()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanUnplannedFailoverInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanUnplannedFailoverInputTests.java deleted file mode 100644 index 3ac8b6f1ee94..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPlanUnplannedFailoverInputTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.PossibleOperationsDirections; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanProviderSpecificFailoverInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanUnplannedFailoverInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanUnplannedFailoverInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.SourceSiteOperations; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class RecoveryPlanUnplannedFailoverInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecoveryPlanUnplannedFailoverInput model = BinaryData.fromString( - "{\"properties\":{\"failoverDirection\":\"RecoveryToPrimary\",\"sourceSiteOperations\":\"Required\",\"providerSpecificDetails\":[{\"instanceType\":\"RecoveryPlanProviderSpecificFailoverInput\"}]}}") - .toObject(RecoveryPlanUnplannedFailoverInput.class); - Assertions.assertEquals(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - model.properties().failoverDirection()); - Assertions.assertEquals(SourceSiteOperations.REQUIRED, model.properties().sourceSiteOperations()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecoveryPlanUnplannedFailoverInput model - = new RecoveryPlanUnplannedFailoverInput().withProperties(new RecoveryPlanUnplannedFailoverInputProperties() - .withFailoverDirection(PossibleOperationsDirections.RECOVERY_TO_PRIMARY) - .withSourceSiteOperations(SourceSiteOperations.REQUIRED) - .withProviderSpecificDetails(Arrays.asList(new RecoveryPlanProviderSpecificFailoverInput()))); - model = BinaryData.fromObject(model).toObject(RecoveryPlanUnplannedFailoverInput.class); - Assertions.assertEquals(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - model.properties().failoverDirection()); - Assertions.assertEquals(SourceSiteOperations.REQUIRED, model.properties().sourceSiteOperations()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPointCollectionTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPointCollectionTests.java deleted file mode 100644 index 7a1a2f914afb..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPointCollectionTests.java +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.RecoveryPointInner; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ProviderSpecificRecoveryPointDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPointCollection; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPointProperties; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class RecoveryPointCollectionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecoveryPointCollection model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"recoveryPointTime\":\"2021-08-08T17:45:14Z\",\"recoveryPointType\":\"zhonnxkrlgnyhmo\",\"providerSpecificDetails\":{\"instanceType\":\"ProviderSpecificRecoveryPointDetails\"}},\"location\":\"kkgthr\",\"id\":\"gh\",\"name\":\"jbdhqxvc\",\"type\":\"gf\"},{\"properties\":{\"recoveryPointTime\":\"2021-05-21T09:29:43Z\",\"recoveryPointType\":\"fbshrnsvbuswd\",\"providerSpecificDetails\":{\"instanceType\":\"ProviderSpecificRecoveryPointDetails\"}},\"location\":\"ybycnunvj\",\"id\":\"rtkfawnopq\",\"name\":\"ikyzirtxdy\",\"type\":\"x\"},{\"properties\":{\"recoveryPointTime\":\"2021-06-25T00:23:13Z\",\"recoveryPointType\":\"psew\",\"providerSpecificDetails\":{\"instanceType\":\"ProviderSpecificRecoveryPointDetails\"}},\"location\":\"ilqu\",\"id\":\"rydxtqm\",\"name\":\"eoxorggufhyao\",\"type\":\"tbghhavgrvkf\"}],\"nextLink\":\"vjzhpjbib\"}") - .toObject(RecoveryPointCollection.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-08T17:45:14Z"), - model.value().get(0).properties().recoveryPointTime()); - Assertions.assertEquals("zhonnxkrlgnyhmo", model.value().get(0).properties().recoveryPointType()); - Assertions.assertEquals("kkgthr", model.value().get(0).location()); - Assertions.assertEquals("vjzhpjbib", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecoveryPointCollection model - = new RecoveryPointCollection() - .withValue(Arrays.asList( - new RecoveryPointInner() - .withProperties(new RecoveryPointProperties() - .withRecoveryPointTime(OffsetDateTime.parse("2021-08-08T17:45:14Z")) - .withRecoveryPointType("zhonnxkrlgnyhmo") - .withProviderSpecificDetails(new ProviderSpecificRecoveryPointDetails())) - .withLocation("kkgthr"), - new RecoveryPointInner() - .withProperties(new RecoveryPointProperties() - .withRecoveryPointTime(OffsetDateTime.parse("2021-05-21T09:29:43Z")) - .withRecoveryPointType("fbshrnsvbuswd") - .withProviderSpecificDetails(new ProviderSpecificRecoveryPointDetails())) - .withLocation("ybycnunvj"), - new RecoveryPointInner() - .withProperties(new RecoveryPointProperties() - .withRecoveryPointTime(OffsetDateTime.parse("2021-06-25T00:23:13Z")) - .withRecoveryPointType("psew") - .withProviderSpecificDetails(new ProviderSpecificRecoveryPointDetails())) - .withLocation("ilqu"))) - .withNextLink("vjzhpjbib"); - model = BinaryData.fromObject(model).toObject(RecoveryPointCollection.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-08T17:45:14Z"), - model.value().get(0).properties().recoveryPointTime()); - Assertions.assertEquals("zhonnxkrlgnyhmo", model.value().get(0).properties().recoveryPointType()); - Assertions.assertEquals("kkgthr", model.value().get(0).location()); - Assertions.assertEquals("vjzhpjbib", model.nextLink()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPointInnerTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPointInnerTests.java deleted file mode 100644 index df943e6bd5f5..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPointInnerTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.RecoveryPointInner; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ProviderSpecificRecoveryPointDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPointProperties; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; - -public final class RecoveryPointInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecoveryPointInner model = BinaryData.fromString( - "{\"properties\":{\"recoveryPointTime\":\"2021-05-29T05:16:16Z\",\"recoveryPointType\":\"umvfclu\",\"providerSpecificDetails\":{\"instanceType\":\"ProviderSpecificRecoveryPointDetails\"}},\"location\":\"wxnb\",\"id\":\"fezzxscyhwzdg\",\"name\":\"rujbzbomvzzbtdc\",\"type\":\"vp\"}") - .toObject(RecoveryPointInner.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-29T05:16:16Z"), model.properties().recoveryPointTime()); - Assertions.assertEquals("umvfclu", model.properties().recoveryPointType()); - Assertions.assertEquals("wxnb", model.location()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecoveryPointInner model - = new RecoveryPointInner() - .withProperties( - new RecoveryPointProperties().withRecoveryPointTime(OffsetDateTime.parse("2021-05-29T05:16:16Z")) - .withRecoveryPointType("umvfclu") - .withProviderSpecificDetails(new ProviderSpecificRecoveryPointDetails())) - .withLocation("wxnb"); - model = BinaryData.fromObject(model).toObject(RecoveryPointInner.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-29T05:16:16Z"), model.properties().recoveryPointTime()); - Assertions.assertEquals("umvfclu", model.properties().recoveryPointType()); - Assertions.assertEquals("wxnb", model.location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPointPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPointPropertiesTests.java deleted file mode 100644 index 7e2d093fff8d..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPointPropertiesTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ProviderSpecificRecoveryPointDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPointProperties; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; - -public final class RecoveryPointPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecoveryPointProperties model = BinaryData.fromString( - "{\"recoveryPointTime\":\"2021-04-01T22:39:22Z\",\"recoveryPointType\":\"jviylwdshfs\",\"providerSpecificDetails\":{\"instanceType\":\"ProviderSpecificRecoveryPointDetails\"}}") - .toObject(RecoveryPointProperties.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-01T22:39:22Z"), model.recoveryPointTime()); - Assertions.assertEquals("jviylwdshfs", model.recoveryPointType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecoveryPointProperties model - = new RecoveryPointProperties().withRecoveryPointTime(OffsetDateTime.parse("2021-04-01T22:39:22Z")) - .withRecoveryPointType("jviylwdshfs") - .withProviderSpecificDetails(new ProviderSpecificRecoveryPointDetails()); - model = BinaryData.fromObject(model).toObject(RecoveryPointProperties.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-01T22:39:22Z"), model.recoveryPointTime()); - Assertions.assertEquals("jviylwdshfs", model.recoveryPointType()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPointsGetWithResponseMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPointsGetWithResponseMockTests.java deleted file mode 100644 index 16676a50ec82..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPointsGetWithResponseMockTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPoint; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class RecoveryPointsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"recoveryPointTime\":\"2021-04-11T08:38:28Z\",\"recoveryPointType\":\"hadxjvvl\",\"providerSpecificDetails\":{\"instanceType\":\"ProviderSpecificRecoveryPointDetails\"}},\"location\":\"weuaugtxlzncoqxt\",\"id\":\"ytz\",\"name\":\"lyldjv\",\"type\":\"mxyrazzstjvcszbd\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - RecoveryPoint response = manager.recoveryPoints() - .getWithResponse("szopeuku", "dswbsskgq", "emosq", "fsjbpwjwz", "gipdzym", "khxfpz", - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(OffsetDateTime.parse("2021-04-11T08:38:28Z"), - response.properties().recoveryPointTime()); - Assertions.assertEquals("hadxjvvl", response.properties().recoveryPointType()); - Assertions.assertEquals("weuaugtxlzncoqxt", response.location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPointsListByReplicationProtectedMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPointsListByReplicationProtectedMockTests.java deleted file mode 100644 index a553ba67b6ca..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryPointsListByReplicationProtectedMockTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPoint; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class RecoveryPointsListByReplicationProtectedMockTests { - @Test - public void testListByReplicationProtectedItems() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"recoveryPointTime\":\"2021-08-10T18:08:27Z\",\"recoveryPointType\":\"utyjukkedputocr\",\"providerSpecificDetails\":{\"instanceType\":\"ProviderSpecificRecoveryPointDetails\"}},\"location\":\"qicmdrgcuzjmvk\",\"id\":\"wrjcqhgcmljzk\",\"name\":\"qimybqjvfio\",\"type\":\"hcaqpv\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.recoveryPoints() - .listByReplicationProtectedItems("ehdhjofywwna", "oxlorxgsl", "c", "u", "hvpaglyyhrgma", - com.azure.core.util.Context.NONE); - - Assertions.assertEquals(OffsetDateTime.parse("2021-08-10T18:08:27Z"), - response.iterator().next().properties().recoveryPointTime()); - Assertions.assertEquals("utyjukkedputocr", response.iterator().next().properties().recoveryPointType()); - Assertions.assertEquals("qicmdrgcuzjmvk", response.iterator().next().location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryProximityPlacementGroupCustomDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryProximityPlacementGroupCustomDetailsTests.java deleted file mode 100644 index 4dcc3d7ca9be..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryProximityPlacementGroupCustomDetailsTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryProximityPlacementGroupCustomDetails; - -public final class RecoveryProximityPlacementGroupCustomDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecoveryProximityPlacementGroupCustomDetails model - = BinaryData.fromString("{\"resourceType\":\"RecoveryProximityPlacementGroupCustomDetails\"}") - .toObject(RecoveryProximityPlacementGroupCustomDetails.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecoveryProximityPlacementGroupCustomDetails model = new RecoveryProximityPlacementGroupCustomDetails(); - model = BinaryData.fromObject(model).toObject(RecoveryProximityPlacementGroupCustomDetails.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryResourceGroupCustomDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryResourceGroupCustomDetailsTests.java deleted file mode 100644 index 379d3d21dcaa..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryResourceGroupCustomDetailsTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryResourceGroupCustomDetails; - -public final class RecoveryResourceGroupCustomDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecoveryResourceGroupCustomDetails model - = BinaryData.fromString("{\"resourceType\":\"RecoveryResourceGroupCustomDetails\"}") - .toObject(RecoveryResourceGroupCustomDetails.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecoveryResourceGroupCustomDetails model = new RecoveryResourceGroupCustomDetails(); - model = BinaryData.fromObject(model).toObject(RecoveryResourceGroupCustomDetails.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryVirtualNetworkCustomDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryVirtualNetworkCustomDetailsTests.java deleted file mode 100644 index 1dd2376918a3..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RecoveryVirtualNetworkCustomDetailsTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryVirtualNetworkCustomDetails; - -public final class RecoveryVirtualNetworkCustomDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecoveryVirtualNetworkCustomDetails model - = BinaryData.fromString("{\"resourceType\":\"RecoveryVirtualNetworkCustomDetails\"}") - .toObject(RecoveryVirtualNetworkCustomDetails.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecoveryVirtualNetworkCustomDetails model = new RecoveryVirtualNetworkCustomDetails(); - model = BinaryData.fromObject(model).toObject(RecoveryVirtualNetworkCustomDetails.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RemoveDisksInputPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RemoveDisksInputPropertiesTests.java deleted file mode 100644 index 390999519481..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RemoveDisksInputPropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RemoveDisksInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RemoveDisksProviderSpecificInput; - -public final class RemoveDisksInputPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RemoveDisksInputProperties model = BinaryData - .fromString("{\"providerSpecificDetails\":{\"instanceType\":\"RemoveDisksProviderSpecificInput\"}}") - .toObject(RemoveDisksInputProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RemoveDisksInputProperties model - = new RemoveDisksInputProperties().withProviderSpecificDetails(new RemoveDisksProviderSpecificInput()); - model = BinaryData.fromObject(model).toObject(RemoveDisksInputProperties.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RemoveDisksInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RemoveDisksInputTests.java deleted file mode 100644 index 3ca601b7359f..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RemoveDisksInputTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RemoveDisksInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RemoveDisksInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RemoveDisksProviderSpecificInput; - -public final class RemoveDisksInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RemoveDisksInput model = BinaryData.fromString( - "{\"properties\":{\"providerSpecificDetails\":{\"instanceType\":\"RemoveDisksProviderSpecificInput\"}}}") - .toObject(RemoveDisksInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RemoveDisksInput model = new RemoveDisksInput().withProperties( - new RemoveDisksInputProperties().withProviderSpecificDetails(new RemoveDisksProviderSpecificInput())); - model = BinaryData.fromObject(model).toObject(RemoveDisksInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RemoveDisksProviderSpecificInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RemoveDisksProviderSpecificInputTests.java deleted file mode 100644 index 96f7283cee79..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RemoveDisksProviderSpecificInputTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RemoveDisksProviderSpecificInput; - -public final class RemoveDisksProviderSpecificInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RemoveDisksProviderSpecificInput model - = BinaryData.fromString("{\"instanceType\":\"RemoveDisksProviderSpecificInput\"}") - .toObject(RemoveDisksProviderSpecificInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RemoveDisksProviderSpecificInput model = new RemoveDisksProviderSpecificInput(); - model = BinaryData.fromObject(model).toObject(RemoveDisksProviderSpecificInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RemoveProtectionContainerMappingInputPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RemoveProtectionContainerMappingInputPropertiesTests.java deleted file mode 100644 index fd032ad6019e..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RemoveProtectionContainerMappingInputPropertiesTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RemoveProtectionContainerMappingInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationProviderContainerUnmappingInput; -import org.junit.jupiter.api.Assertions; - -public final class RemoveProtectionContainerMappingInputPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RemoveProtectionContainerMappingInputProperties model - = BinaryData.fromString("{\"providerSpecificInput\":{\"instanceType\":\"dao\"}}") - .toObject(RemoveProtectionContainerMappingInputProperties.class); - Assertions.assertEquals("dao", model.providerSpecificInput().instanceType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RemoveProtectionContainerMappingInputProperties model = new RemoveProtectionContainerMappingInputProperties() - .withProviderSpecificInput(new ReplicationProviderContainerUnmappingInput().withInstanceType("dao")); - model = BinaryData.fromObject(model).toObject(RemoveProtectionContainerMappingInputProperties.class); - Assertions.assertEquals("dao", model.providerSpecificInput().instanceType()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RemoveProtectionContainerMappingInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RemoveProtectionContainerMappingInputTests.java deleted file mode 100644 index c513b9acf0ed..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RemoveProtectionContainerMappingInputTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RemoveProtectionContainerMappingInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RemoveProtectionContainerMappingInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationProviderContainerUnmappingInput; -import org.junit.jupiter.api.Assertions; - -public final class RemoveProtectionContainerMappingInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RemoveProtectionContainerMappingInput model - = BinaryData.fromString("{\"properties\":{\"providerSpecificInput\":{\"instanceType\":\"fhoqca\"}}}") - .toObject(RemoveProtectionContainerMappingInput.class); - Assertions.assertEquals("fhoqca", model.properties().providerSpecificInput().instanceType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RemoveProtectionContainerMappingInput model = new RemoveProtectionContainerMappingInput() - .withProperties(new RemoveProtectionContainerMappingInputProperties().withProviderSpecificInput( - new ReplicationProviderContainerUnmappingInput().withInstanceType("fhoqca"))); - model = BinaryData.fromObject(model).toObject(RemoveProtectionContainerMappingInput.class); - Assertions.assertEquals("fhoqca", model.properties().providerSpecificInput().instanceType()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RenewCertificateInputPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RenewCertificateInputPropertiesTests.java deleted file mode 100644 index 23f601cfd4e9..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RenewCertificateInputPropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RenewCertificateInputProperties; -import org.junit.jupiter.api.Assertions; - -public final class RenewCertificateInputPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RenewCertificateInputProperties model = BinaryData.fromString("{\"renewCertificateType\":\"glu\"}") - .toObject(RenewCertificateInputProperties.class); - Assertions.assertEquals("glu", model.renewCertificateType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RenewCertificateInputProperties model = new RenewCertificateInputProperties().withRenewCertificateType("glu"); - model = BinaryData.fromObject(model).toObject(RenewCertificateInputProperties.class); - Assertions.assertEquals("glu", model.renewCertificateType()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RenewCertificateInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RenewCertificateInputTests.java deleted file mode 100644 index 39da51b88369..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RenewCertificateInputTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RenewCertificateInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RenewCertificateInputProperties; -import org.junit.jupiter.api.Assertions; - -public final class RenewCertificateInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RenewCertificateInput model = BinaryData.fromString("{\"properties\":{\"renewCertificateType\":\"aierhhb\"}}") - .toObject(RenewCertificateInput.class); - Assertions.assertEquals("aierhhb", model.properties().renewCertificateType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RenewCertificateInput model = new RenewCertificateInput() - .withProperties(new RenewCertificateInputProperties().withRenewCertificateType("aierhhb")); - model = BinaryData.fromObject(model).toObject(RenewCertificateInput.class); - Assertions.assertEquals("aierhhb", model.properties().renewCertificateType()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationAlertSettingsCreateWithResponMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationAlertSettingsCreateWithResponMockTests.java deleted file mode 100644 index 4cca7f6e501c..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationAlertSettingsCreateWithResponMockTests.java +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.Alert; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ConfigureAlertRequestProperties; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReplicationAlertSettingsCreateWithResponMockTests { - @Test - public void testCreateWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"sendToOwners\":\"xbvkvwzdmvdd\",\"customEmailAddresses\":[\"rugyozzzawnjdv\"],\"locale\":\"rho\"},\"location\":\"kkvxu\",\"id\":\"dqzbvbpsuvqhx\",\"name\":\"ozf\",\"type\":\"dkwbkurklpiig\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - Alert response = manager.replicationAlertSettings() - .define("derjennmk") - .withExistingVault("ustihtgrafjajvky", "mmjczvog") - .withProperties(new ConfigureAlertRequestProperties().withSendToOwners("uwqdwxhhlbmyphf") - .withCustomEmailAddresses(Arrays.asList("pdhewokyqs", "kx", "sy")) - .withLocale("ihqbtod")) - .create(); - - Assertions.assertEquals("xbvkvwzdmvdd", response.properties().sendToOwners()); - Assertions.assertEquals("rugyozzzawnjdv", response.properties().customEmailAddresses().get(0)); - Assertions.assertEquals("rho", response.properties().locale()); - Assertions.assertEquals("kkvxu", response.location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationAlertSettingsGetWithResponseMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationAlertSettingsGetWithResponseMockTests.java deleted file mode 100644 index 5dbb0fc947be..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationAlertSettingsGetWithResponseMockTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.Alert; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReplicationAlertSettingsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"sendToOwners\":\"xsgcemegd\",\"customEmailAddresses\":[\"y\",\"jubvfjyzuf\",\"difnivlutgg\",\"aacxauhvc\"],\"locale\":\"xhklsqxt\"},\"location\":\"yygktsrjyxxoxwf\",\"id\":\"bkvecnxfxphsowbe\",\"name\":\"snbwutlvuwm\",\"type\":\"u\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - Alert response = manager.replicationAlertSettings() - .getWithResponse("mqmbwpp", "irxbkitzmnhit", "xjucl", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("xsgcemegd", response.properties().sendToOwners()); - Assertions.assertEquals("y", response.properties().customEmailAddresses().get(0)); - Assertions.assertEquals("xhklsqxt", response.properties().locale()); - Assertions.assertEquals("yygktsrjyxxoxwf", response.location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationAlertSettingsListMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationAlertSettingsListMockTests.java deleted file mode 100644 index 013ba29462e4..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationAlertSettingsListMockTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.Alert; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReplicationAlertSettingsListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"sendToOwners\":\"tgp\",\"customEmailAddresses\":[\"wgfqvj\"],\"locale\":\"hpak\"},\"location\":\"yhls\",\"id\":\"rnfbmeqagkn\",\"name\":\"jm\",\"type\":\"bnyevztnjawrhule\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.replicationAlertSettings() - .list("tzuaedrlhxgcq", "yrhkvxzzmiem", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("tgp", response.iterator().next().properties().sendToOwners()); - Assertions.assertEquals("wgfqvj", response.iterator().next().properties().customEmailAddresses().get(0)); - Assertions.assertEquals("hpak", response.iterator().next().properties().locale()); - Assertions.assertEquals("yhls", response.iterator().next().location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationApplianceInnerTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationApplianceInnerTests.java deleted file mode 100644 index e26d58a233ed..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationApplianceInnerTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.ReplicationApplianceInner; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ApplianceSpecificDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationApplianceProperties; - -public final class ReplicationApplianceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReplicationApplianceInner model = BinaryData - .fromString( - "{\"properties\":{\"providerSpecificDetails\":{\"instanceType\":\"ApplianceSpecificDetails\"}}}") - .toObject(ReplicationApplianceInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReplicationApplianceInner model = new ReplicationApplianceInner().withProperties( - new ReplicationApplianceProperties().withProviderSpecificDetails(new ApplianceSpecificDetails())); - model = BinaryData.fromObject(model).toObject(ReplicationApplianceInner.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationAppliancePropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationAppliancePropertiesTests.java deleted file mode 100644 index 4113e0f56d7a..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationAppliancePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ApplianceSpecificDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationApplianceProperties; - -public final class ReplicationAppliancePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReplicationApplianceProperties model - = BinaryData.fromString("{\"providerSpecificDetails\":{\"instanceType\":\"ApplianceSpecificDetails\"}}") - .toObject(ReplicationApplianceProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReplicationApplianceProperties model - = new ReplicationApplianceProperties().withProviderSpecificDetails(new ApplianceSpecificDetails()); - model = BinaryData.fromObject(model).toObject(ReplicationApplianceProperties.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationAppliancesListMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationAppliancesListMockTests.java deleted file mode 100644 index 20d4adb59027..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationAppliancesListMockTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationAppliance; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReplicationAppliancesListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"providerSpecificDetails\":{\"instanceType\":\"ApplianceSpecificDetails\"}}}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.replicationAppliances() - .list("uzkeutuip", "clzjwaqdz", "ydewuwxyll", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationEligibilityResultsOperationsLMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationEligibilityResultsOperationsLMockTests.java deleted file mode 100644 index 2350dbfbe47c..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationEligibilityResultsOperationsLMockTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationEligibilityResultsCollection; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReplicationEligibilityResultsOperationsLMockTests { - @Test - public void testListWithResponse() throws Exception { - String responseStr - = "{\"value\":[{\"name\":\"bek\",\"type\":\"ynfpkyvnhiysdho\",\"id\":\"slhraqkiwlwkff\",\"properties\":{\"clientRequestId\":\"wmwqoguflte\",\"errors\":[{},{}]}},{\"name\":\"gefzj\",\"type\":\"jtqbgysi\",\"id\":\"hnvxwtd\",\"properties\":{\"clientRequestId\":\"bjdbtqyhkxu\",\"errors\":[{},{},{}]}},{\"name\":\"jqgbbjvov\",\"type\":\"whgjsmbcsl\",\"id\":\"gsabdgdheronsdu\",\"properties\":{\"clientRequestId\":\"zvzuat\",\"errors\":[{},{}]}}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ReplicationEligibilityResultsCollection response = manager.replicationEligibilityResultsOperations() - .listWithResponse("evt", "qwcz", com.azure.core.util.Context.NONE) - .getValue(); - - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationGroupDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationGroupDetailsTests.java deleted file mode 100644 index 63abd5feb585..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationGroupDetailsTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationGroupDetails; - -public final class ReplicationGroupDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReplicationGroupDetails model = BinaryData.fromString("{\"instanceType\":\"ReplicationGroupDetails\"}") - .toObject(ReplicationGroupDetails.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReplicationGroupDetails model = new ReplicationGroupDetails(); - model = BinaryData.fromObject(model).toObject(ReplicationGroupDetails.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationLogicalNetworksGetWithResponseMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationLogicalNetworksGetWithResponseMockTests.java deleted file mode 100644 index d135233bde98..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationLogicalNetworksGetWithResponseMockTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.LogicalNetwork; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReplicationLogicalNetworksGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"friendlyName\":\"xwvegenlrj\",\"networkVirtualizationStatus\":\"mwevguyflnxel\",\"logicalNetworkUsage\":\"kfzcdetowwezhy\",\"logicalNetworkDefinitionsStatus\":\"di\"},\"location\":\"wqlqacs\",\"id\":\"qb\",\"name\":\"rtybcel\",\"type\":\"jnxodnjyhzfax\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - LogicalNetwork response = manager.replicationLogicalNetworks() - .getWithResponse("kwwnq", "qlq", "pwxtvc", "bav", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("xwvegenlrj", response.properties().friendlyName()); - Assertions.assertEquals("mwevguyflnxel", response.properties().networkVirtualizationStatus()); - Assertions.assertEquals("kfzcdetowwezhy", response.properties().logicalNetworkUsage()); - Assertions.assertEquals("di", response.properties().logicalNetworkDefinitionsStatus()); - Assertions.assertEquals("wqlqacs", response.location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationLogicalNetworksListByReplicatMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationLogicalNetworksListByReplicatMockTests.java deleted file mode 100644 index 9325c278c80a..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationLogicalNetworksListByReplicatMockTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.LogicalNetwork; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReplicationLogicalNetworksListByReplicatMockTests { - @Test - public void testListByReplicationFabrics() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"friendlyName\":\"whcamwuynfxkc\",\"networkVirtualizationStatus\":\"fcmvhadrpb\",\"logicalNetworkUsage\":\"vyrkljqkq\",\"logicalNetworkDefinitionsStatus\":\"yjtvjkowggxaw\"},\"location\":\"mbypnkteiidl\",\"id\":\"ov\",\"name\":\"bclprgeganihk\",\"type\":\"cnerekyjul\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.replicationLogicalNetworks() - .listByReplicationFabrics("qd", "a", "iunyevdyzdsytc", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("whcamwuynfxkc", response.iterator().next().properties().friendlyName()); - Assertions.assertEquals("fcmvhadrpb", response.iterator().next().properties().networkVirtualizationStatus()); - Assertions.assertEquals("vyrkljqkq", response.iterator().next().properties().logicalNetworkUsage()); - Assertions.assertEquals("yjtvjkowggxaw", - response.iterator().next().properties().logicalNetworkDefinitionsStatus()); - Assertions.assertEquals("mbypnkteiidl", response.iterator().next().location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworkMappingsCreateMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworkMappingsCreateMockTests.java deleted file mode 100644 index e7f6d09173ad..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworkMappingsCreateMockTests.java +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.CreateNetworkMappingInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.FabricSpecificCreateNetworkMappingInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.NetworkMapping; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReplicationNetworkMappingsCreateMockTests { - @Test - public void testCreate() throws Exception { - String responseStr - = "{\"properties\":{\"state\":\"k\",\"primaryNetworkFriendlyName\":\"iksy\",\"primaryNetworkId\":\"rrbnhylsbhujcydy\",\"primaryFabricFriendlyName\":\"mxvps\",\"recoveryNetworkFriendlyName\":\"zsyqagqllcbrvaid\",\"recoveryNetworkId\":\"kyhtrrqwfyyb\",\"recoveryFabricArmId\":\"mjjrnogyk\",\"recoveryFabricFriendlyName\":\"dlavsavgthk\",\"fabricSpecificSettings\":{\"instanceType\":\"NetworkMappingFabricSpecificSettings\"}},\"location\":\"euufk\",\"id\":\"zb\",\"name\":\"bxjblajybdnb\",\"type\":\"csbto\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - NetworkMapping response = manager.replicationNetworkMappings() - .define("xyxxhwr") - .withExistingReplicationNetwork("brhfiwltkfysunte", "hkl", "whcv", "syyhgqokjbmsrk") - .withProperties(new CreateNetworkMappingInputProperties().withRecoveryFabricName("omaqsyilpzzb") - .withRecoveryNetworkId("wnrzozsxa") - .withFabricSpecificDetails(new FabricSpecificCreateNetworkMappingInput())) - .create(); - - Assertions.assertEquals("k", response.properties().state()); - Assertions.assertEquals("iksy", response.properties().primaryNetworkFriendlyName()); - Assertions.assertEquals("rrbnhylsbhujcydy", response.properties().primaryNetworkId()); - Assertions.assertEquals("mxvps", response.properties().primaryFabricFriendlyName()); - Assertions.assertEquals("zsyqagqllcbrvaid", response.properties().recoveryNetworkFriendlyName()); - Assertions.assertEquals("kyhtrrqwfyyb", response.properties().recoveryNetworkId()); - Assertions.assertEquals("mjjrnogyk", response.properties().recoveryFabricArmId()); - Assertions.assertEquals("dlavsavgthk", response.properties().recoveryFabricFriendlyName()); - Assertions.assertEquals("euufk", response.location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworkMappingsGetWithResponseMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworkMappingsGetWithResponseMockTests.java deleted file mode 100644 index 43e0d796fb1d..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworkMappingsGetWithResponseMockTests.java +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.NetworkMapping; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReplicationNetworkMappingsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"state\":\"ciagvkdlhu\",\"primaryNetworkFriendlyName\":\"klbjoafmjfe\",\"primaryNetworkId\":\"lvoepknarse\",\"primaryFabricFriendlyName\":\"ncsqoacbuqd\",\"recoveryNetworkFriendlyName\":\"apleq\",\"recoveryNetworkId\":\"kxen\",\"recoveryFabricArmId\":\"z\",\"recoveryFabricFriendlyName\":\"vya\",\"fabricSpecificSettings\":{\"instanceType\":\"NetworkMappingFabricSpecificSettings\"}},\"location\":\"z\",\"id\":\"uuvu\",\"name\":\"aqcwggchxvlqgf\",\"type\":\"rvecica\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - NetworkMapping response = manager.replicationNetworkMappings() - .getWithResponse("jbvyezjwjkqo", "bwh", "ieyozvrcwfpucwnb", "gqefgzjvbxqcb", "oarx", - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("ciagvkdlhu", response.properties().state()); - Assertions.assertEquals("klbjoafmjfe", response.properties().primaryNetworkFriendlyName()); - Assertions.assertEquals("lvoepknarse", response.properties().primaryNetworkId()); - Assertions.assertEquals("ncsqoacbuqd", response.properties().primaryFabricFriendlyName()); - Assertions.assertEquals("apleq", response.properties().recoveryNetworkFriendlyName()); - Assertions.assertEquals("kxen", response.properties().recoveryNetworkId()); - Assertions.assertEquals("z", response.properties().recoveryFabricArmId()); - Assertions.assertEquals("vya", response.properties().recoveryFabricFriendlyName()); - Assertions.assertEquals("z", response.location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworkMappingsListByReplicatMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworkMappingsListByReplicatMockTests.java deleted file mode 100644 index 60987bad4896..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworkMappingsListByReplicatMockTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.NetworkMapping; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReplicationNetworkMappingsListByReplicatMockTests { - @Test - public void testListByReplicationNetworks() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"state\":\"phifkfrp\",\"primaryNetworkFriendlyName\":\"lubpebrmjjnfpght\",\"primaryNetworkId\":\"tpkimskhnkkhbykr\",\"primaryFabricFriendlyName\":\"hrcmelycpgokuth\",\"recoveryNetworkFriendlyName\":\"ybnzbnvmsh\",\"recoveryNetworkId\":\"zzlapyixlvzc\",\"recoveryFabricArmId\":\"laebxiau\",\"recoveryFabricFriendlyName\":\"uptessjlwjta\",\"fabricSpecificSettings\":{\"instanceType\":\"NetworkMappingFabricSpecificSettings\"}},\"location\":\"blskxgxqa\",\"id\":\"g\",\"name\":\"slkvcvwp\",\"type\":\"l\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.replicationNetworkMappings() - .listByReplicationNetworks("vqbugihcdvfoizo", "bloejzsaxzgkq", "vde", "p", - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("phifkfrp", response.iterator().next().properties().state()); - Assertions.assertEquals("lubpebrmjjnfpght", - response.iterator().next().properties().primaryNetworkFriendlyName()); - Assertions.assertEquals("tpkimskhnkkhbykr", response.iterator().next().properties().primaryNetworkId()); - Assertions.assertEquals("hrcmelycpgokuth", response.iterator().next().properties().primaryFabricFriendlyName()); - Assertions.assertEquals("ybnzbnvmsh", response.iterator().next().properties().recoveryNetworkFriendlyName()); - Assertions.assertEquals("zzlapyixlvzc", response.iterator().next().properties().recoveryNetworkId()); - Assertions.assertEquals("laebxiau", response.iterator().next().properties().recoveryFabricArmId()); - Assertions.assertEquals("uptessjlwjta", response.iterator().next().properties().recoveryFabricFriendlyName()); - Assertions.assertEquals("blskxgxqa", response.iterator().next().location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworkMappingsListMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworkMappingsListMockTests.java deleted file mode 100644 index 50b3de89023b..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworkMappingsListMockTests.java +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.NetworkMapping; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReplicationNetworkMappingsListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"state\":\"zzkueruwcjomi\",\"primaryNetworkFriendlyName\":\"wkau\",\"primaryNetworkId\":\"twykoxvbw\",\"primaryFabricFriendlyName\":\"xxdplrelfkvga\",\"recoveryNetworkFriendlyName\":\"btuxlbpxrhrfje\",\"recoveryNetworkId\":\"azwef\",\"recoveryFabricArmId\":\"tlhqas\",\"recoveryFabricFriendlyName\":\"ostjixyz\",\"fabricSpecificSettings\":{\"instanceType\":\"NetworkMappingFabricSpecificSettings\"}},\"location\":\"i\",\"id\":\"zzdw\",\"name\":\"tacfvvtdpcbp\",\"type\":\"fomcsau\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.replicationNetworkMappings().list("vphirlzbip", "unnep", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("zzkueruwcjomi", response.iterator().next().properties().state()); - Assertions.assertEquals("wkau", response.iterator().next().properties().primaryNetworkFriendlyName()); - Assertions.assertEquals("twykoxvbw", response.iterator().next().properties().primaryNetworkId()); - Assertions.assertEquals("xxdplrelfkvga", response.iterator().next().properties().primaryFabricFriendlyName()); - Assertions.assertEquals("btuxlbpxrhrfje", - response.iterator().next().properties().recoveryNetworkFriendlyName()); - Assertions.assertEquals("azwef", response.iterator().next().properties().recoveryNetworkId()); - Assertions.assertEquals("tlhqas", response.iterator().next().properties().recoveryFabricArmId()); - Assertions.assertEquals("ostjixyz", response.iterator().next().properties().recoveryFabricFriendlyName()); - Assertions.assertEquals("i", response.iterator().next().location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworksGetWithResponseMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworksGetWithResponseMockTests.java deleted file mode 100644 index 5dd21c44eace..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworksGetWithResponseMockTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.Network; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReplicationNetworksGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"fabricType\":\"pgve\",\"subnets\":[{\"name\":\"ujnjgybuxmq\",\"friendlyName\":\"gid\",\"addressList\":[\"njgcp\"]},{\"name\":\"grh\",\"friendlyName\":\"tslgsazuqznghx\",\"addressList\":[\"qzjsdkpvnr\"]},{\"name\":\"wpffxsfybn\",\"friendlyName\":\"vehoh\",\"addressList\":[\"uvbgtzqzqweuy\",\"ybnai\",\"vhpqsvbzeogeatrc\",\"qnvncprfcsjvjn\"]}],\"friendlyName\":\"iznzs\",\"networkType\":\"ibaaugicovjtm\"},\"location\":\"rmjxyvuodnxc\",\"id\":\"bassqfyylwpp\",\"name\":\"ygkbzb\",\"type\":\"o\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - Network response = manager.replicationNetworks() - .getWithResponse("lhihqkn", "vkmnbzkopaiil", "cpu", "khquxsy", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("pgve", response.properties().fabricType()); - Assertions.assertEquals("ujnjgybuxmq", response.properties().subnets().get(0).name()); - Assertions.assertEquals("gid", response.properties().subnets().get(0).friendlyName()); - Assertions.assertEquals("njgcp", response.properties().subnets().get(0).addressList().get(0)); - Assertions.assertEquals("iznzs", response.properties().friendlyName()); - Assertions.assertEquals("ibaaugicovjtm", response.properties().networkType()); - Assertions.assertEquals("rmjxyvuodnxc", response.location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworksListByReplicationFabrMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworksListByReplicationFabrMockTests.java deleted file mode 100644 index 34fe77c3a5c4..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworksListByReplicationFabrMockTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.Network; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReplicationNetworksListByReplicationFabrMockTests { - @Test - public void testListByReplicationFabrics() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"fabricType\":\"sorch\",\"subnets\":[{\"name\":\"o\",\"friendlyName\":\"yhl\",\"addressList\":[\"vhs\",\"b\",\"pwxslaj\"]},{\"name\":\"fzga\",\"friendlyName\":\"hawkmibuydwi\",\"addressList\":[\"icupdyt\",\"qmiuvjpl\"]},{\"name\":\"ebmhhtuq\",\"friendlyName\":\"xynof\",\"addressList\":[\"bfix\",\"gxebihexhnk\",\"ng\"]},{\"name\":\"cdolrpgupsjlbsmn\",\"friendlyName\":\"fbncuyje\",\"addressList\":[\"nhpplzhcfzxjzi\",\"ucrln\",\"wnuwkkfzzetl\",\"hdyxz\"]}],\"friendlyName\":\"wywjvrlgqpwwlzp\",\"networkType\":\"arcbcdwhslxebaja\"},\"location\":\"n\",\"id\":\"stbdoprwkampyh\",\"name\":\"pbldz\",\"type\":\"iudrcycmwhuzym\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.replicationNetworks() - .listByReplicationFabrics("kdv", "el", "modpe", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("sorch", response.iterator().next().properties().fabricType()); - Assertions.assertEquals("o", response.iterator().next().properties().subnets().get(0).name()); - Assertions.assertEquals("yhl", response.iterator().next().properties().subnets().get(0).friendlyName()); - Assertions.assertEquals("vhs", response.iterator().next().properties().subnets().get(0).addressList().get(0)); - Assertions.assertEquals("wywjvrlgqpwwlzp", response.iterator().next().properties().friendlyName()); - Assertions.assertEquals("arcbcdwhslxebaja", response.iterator().next().properties().networkType()); - Assertions.assertEquals("n", response.iterator().next().location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworksListMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworksListMockTests.java deleted file mode 100644 index 9721955c3373..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationNetworksListMockTests.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.Network; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReplicationNetworksListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"fabricType\":\"gxqbfkce\",\"subnets\":[{\"name\":\"recjb\",\"friendlyName\":\"wevsfgdrmnszdosm\",\"addressList\":[\"svz\",\"mxtc\",\"ghndae\"]},{\"name\":\"gsulwvgseufigvfj\",\"friendlyName\":\"zkilmciwuh\",\"addressList\":[\"kypy\",\"vljlbzdlby\",\"paxhpz\"]}],\"friendlyName\":\"ov\",\"networkType\":\"wbh\"},\"location\":\"zges\",\"id\":\"hshagpa\",\"name\":\"nezpby\",\"type\":\"yvynpmggqgage\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.replicationNetworks().list("sybxhqvov", "pmhttuvsqjsrvjnq", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("gxqbfkce", response.iterator().next().properties().fabricType()); - Assertions.assertEquals("recjb", response.iterator().next().properties().subnets().get(0).name()); - Assertions.assertEquals("wevsfgdrmnszdosm", - response.iterator().next().properties().subnets().get(0).friendlyName()); - Assertions.assertEquals("svz", response.iterator().next().properties().subnets().get(0).addressList().get(0)); - Assertions.assertEquals("ov", response.iterator().next().properties().friendlyName()); - Assertions.assertEquals("wbh", response.iterator().next().properties().networkType()); - Assertions.assertEquals("zges", response.iterator().next().location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationPoliciesCreateMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationPoliciesCreateMockTests.java deleted file mode 100644 index 83c0df3a081c..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationPoliciesCreateMockTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.CreatePolicyInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.Policy; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.PolicyProviderSpecificInput; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReplicationPoliciesCreateMockTests { - @Test - public void testCreate() throws Exception { - String responseStr - = "{\"properties\":{\"friendlyName\":\"gouxnro\",\"providerSpecificDetails\":{\"instanceType\":\"PolicyProviderSpecificDetails\"}},\"location\":\"hesywyw\",\"id\":\"vg\",\"name\":\"o\",\"type\":\"c\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - Policy response = manager.replicationPolicies() - .define("pxwwblscrmzqu") - .withExistingVault("vgppp", "ilbdvxlfhlzzgap") - .withProperties( - new CreatePolicyInputProperties().withProviderSpecificInput(new PolicyProviderSpecificInput())) - .create(); - - Assertions.assertEquals("gouxnro", response.properties().friendlyName()); - Assertions.assertEquals("hesywyw", response.location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationPoliciesGetWithResponseMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationPoliciesGetWithResponseMockTests.java deleted file mode 100644 index 5623a660d41f..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationPoliciesGetWithResponseMockTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.Policy; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReplicationPoliciesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"friendlyName\":\"sychdcjggcmpncj\",\"providerSpecificDetails\":{\"instanceType\":\"PolicyProviderSpecificDetails\"}},\"location\":\"bnoq\",\"id\":\"owvfxe\",\"name\":\"tzgwjeky\",\"type\":\"irvcpol\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - Policy response = manager.replicationPolicies() - .getWithResponse("rs", "vvmrn", "rdijox", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("sychdcjggcmpncj", response.properties().friendlyName()); - Assertions.assertEquals("bnoq", response.location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationPoliciesListMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationPoliciesListMockTests.java deleted file mode 100644 index 97c59acd33e3..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationPoliciesListMockTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.Policy; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReplicationPoliciesListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"friendlyName\":\"trvgioguox\",\"providerSpecificDetails\":{\"instanceType\":\"PolicyProviderSpecificDetails\"}},\"location\":\"qo\",\"id\":\"hde\",\"name\":\"mjogxgr\",\"type\":\"gyciwbnqi\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.replicationPolicies().list("u", "riemorszffi", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("trvgioguox", response.iterator().next().properties().friendlyName()); - Assertions.assertEquals("qo", response.iterator().next().location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectableItemsGetWithResponMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectableItemsGetWithResponMockTests.java deleted file mode 100644 index e7ce83e9d51f..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectableItemsGetWithResponMockTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ProtectableItem; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReplicationProtectableItemsGetWithResponMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"friendlyName\":\"dahyclxrsidoeb\",\"protectionStatus\":\"poiaffjkrtn\",\"replicationProtectedItemId\":\"evimxmaxcj\",\"recoveryServicesProviderId\":\"itygvdwds\",\"protectionReadinessErrors\":[\"bf\"],\"supportedReplicationProviders\":[\"ozbzchnqekwan\"],\"customDetails\":{\"instanceType\":\"ConfigurationSettings\"}},\"location\":\"urlcydjhtkjs\",\"id\":\"rwiyndurdonkgobx\",\"name\":\"lr\",\"type\":\"olenrswknpdr\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ProtectableItem response = manager.replicationProtectableItems() - .getWithResponse("wdalisd", "qngca", "dz", "nloou", "p", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("dahyclxrsidoeb", response.properties().friendlyName()); - Assertions.assertEquals("poiaffjkrtn", response.properties().protectionStatus()); - Assertions.assertEquals("evimxmaxcj", response.properties().replicationProtectedItemId()); - Assertions.assertEquals("itygvdwds", response.properties().recoveryServicesProviderId()); - Assertions.assertEquals("bf", response.properties().protectionReadinessErrors().get(0)); - Assertions.assertEquals("ozbzchnqekwan", response.properties().supportedReplicationProviders().get(0)); - Assertions.assertEquals("urlcydjhtkjs", response.location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectableItemsListByReplicaMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectableItemsListByReplicaMockTests.java deleted file mode 100644 index 34cc7a9edfab..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectableItemsListByReplicaMockTests.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ProtectableItem; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReplicationProtectableItemsListByReplicaMockTests { - @Test - public void testListByReplicationProtectionContainers() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"friendlyName\":\"mmij\",\"protectionStatus\":\"qfkwnaeikczscymq\",\"replicationProtectedItemId\":\"xgwpq\",\"recoveryServicesProviderId\":\"umz\",\"protectionReadinessErrors\":[\"okez\",\"pe\"],\"supportedReplicationProviders\":[\"fzqnzbflbqmhbiyx\",\"vwe\",\"hag\",\"bbsesea\"],\"customDetails\":{\"instanceType\":\"ConfigurationSettings\"}},\"location\":\"lmsy\",\"id\":\"zdcrolrzesbomphz\",\"name\":\"ymunwjivt\",\"type\":\"uszbdjrdfeuj\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.replicationProtectableItems() - .listByReplicationProtectionContainers("qwwuhyqkaaptbs", "vkbcbptwyb", "oc", "u", "plxzbnsshvqnpszb", - "uybutcdzjfjt", "peyxdyuxurxr", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("mmij", response.iterator().next().properties().friendlyName()); - Assertions.assertEquals("qfkwnaeikczscymq", response.iterator().next().properties().protectionStatus()); - Assertions.assertEquals("xgwpq", response.iterator().next().properties().replicationProtectedItemId()); - Assertions.assertEquals("umz", response.iterator().next().properties().recoveryServicesProviderId()); - Assertions.assertEquals("okez", response.iterator().next().properties().protectionReadinessErrors().get(0)); - Assertions.assertEquals("fzqnzbflbqmhbiyx", - response.iterator().next().properties().supportedReplicationProviders().get(0)); - Assertions.assertEquals("lmsy", response.iterator().next().location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersCreateMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersCreateMockTests.java deleted file mode 100644 index 9c80ef49d7e3..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersCreateMockTests.java +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.CreateProtectionContainerInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ProtectionContainer; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationProviderSpecificContainerCreationInput; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReplicationProtectionContainersCreateMockTests { - @Test - public void testCreate() throws Exception { - String responseStr - = "{\"properties\":{\"fabricFriendlyName\":\"ia\",\"friendlyName\":\"twskkfkuyikmxhh\",\"fabricType\":\"xjbjkewriglbqt\",\"protectedItemCount\":1590059701,\"pairingStatus\":\"clflxcjffzw\",\"role\":\"vdef\",\"fabricSpecificDetails\":{\"instanceType\":\"ztpcjptnntqrcjq\"}},\"location\":\"jvnpjrrh\",\"id\":\"gsjbi\",\"name\":\"agwviqehmdqvaoli\",\"type\":\"xdfsfvkjc\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ProtectionContainer response = manager.replicationProtectionContainers() - .define("ntjna") - .withExistingReplicationFabric("dvt", "urmd", "a") - .withProperties(new CreateProtectionContainerInputProperties() - .withProviderSpecificInput(Arrays.asList(new ReplicationProviderSpecificContainerCreationInput(), - new ReplicationProviderSpecificContainerCreationInput()))) - .create(); - - Assertions.assertEquals("ia", response.properties().fabricFriendlyName()); - Assertions.assertEquals("twskkfkuyikmxhh", response.properties().friendlyName()); - Assertions.assertEquals("xjbjkewriglbqt", response.properties().fabricType()); - Assertions.assertEquals(1590059701, response.properties().protectedItemCount()); - Assertions.assertEquals("clflxcjffzw", response.properties().pairingStatus()); - Assertions.assertEquals("vdef", response.properties().role()); - Assertions.assertEquals("jvnpjrrh", response.location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersDiscoverPMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersDiscoverPMockTests.java deleted file mode 100644 index 92d660c5b0c9..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersDiscoverPMockTests.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.DiscoverProtectableItemRequest; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.DiscoverProtectableItemRequestProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ProtectionContainer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReplicationProtectionContainersDiscoverPMockTests { - @Test - public void testDiscoverProtectableItem() throws Exception { - String responseStr - = "{\"properties\":{\"fabricFriendlyName\":\"knfmkc\",\"friendlyName\":\"thdgwuzronodvhzf\",\"fabricType\":\"nwysodcikgxkkzzf\",\"protectedItemCount\":1184745103,\"pairingStatus\":\"kebawnxzsjw\",\"role\":\"ixirgcjfaiw\",\"fabricSpecificDetails\":{\"instanceType\":\"jkakrxifqnffo\"}},\"location\":\"sqtzng\",\"id\":\"bsalewg\",\"name\":\"xcmmhipbvskcitly\",\"type\":\"kwfsaangfgbm\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ProtectionContainer response = manager.replicationProtectionContainers() - .discoverProtectableItem("yjjyutomzqlna", "gwiij", "fqiywhxpsb", "pialezay", - new DiscoverProtectableItemRequest() - .withProperties(new DiscoverProtectableItemRequestProperties().withFriendlyName("zudegefxlieg") - .withIpAddress("tosmhssfnwh") - .withOsType("ah")), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("knfmkc", response.properties().fabricFriendlyName()); - Assertions.assertEquals("thdgwuzronodvhzf", response.properties().friendlyName()); - Assertions.assertEquals("nwysodcikgxkkzzf", response.properties().fabricType()); - Assertions.assertEquals(1184745103, response.properties().protectedItemCount()); - Assertions.assertEquals("kebawnxzsjw", response.properties().pairingStatus()); - Assertions.assertEquals("ixirgcjfaiw", response.properties().role()); - Assertions.assertEquals("sqtzng", response.location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersGetWithReMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersGetWithReMockTests.java deleted file mode 100644 index 37a3e94f000d..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersGetWithReMockTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ProtectionContainer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReplicationProtectionContainersGetWithReMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"fabricFriendlyName\":\"rwxohl\",\"friendlyName\":\"snj\",\"fabricType\":\"chiypbfhm\",\"protectedItemCount\":1155099338,\"pairingStatus\":\"tqozewbrsrjzgkbr\",\"role\":\"xboufqnnqbjx\",\"fabricSpecificDetails\":{\"instanceType\":\"srerukbuudriz\"}},\"location\":\"wkjxlaaced\",\"id\":\"kq\",\"name\":\"lssybzbev\",\"type\":\"bnrommkiqhypwtm\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ProtectionContainer response = manager.replicationProtectionContainers() - .getWithResponse("mwdz", "zlhcu", "x", "qpwwvmbjecfwlbgh", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("rwxohl", response.properties().fabricFriendlyName()); - Assertions.assertEquals("snj", response.properties().friendlyName()); - Assertions.assertEquals("chiypbfhm", response.properties().fabricType()); - Assertions.assertEquals(1155099338, response.properties().protectedItemCount()); - Assertions.assertEquals("tqozewbrsrjzgkbr", response.properties().pairingStatus()); - Assertions.assertEquals("xboufqnnqbjx", response.properties().role()); - Assertions.assertEquals("wkjxlaaced", response.location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersListByRepMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersListByRepMockTests.java deleted file mode 100644 index b7dec6daa7ad..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersListByRepMockTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ProtectionContainer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReplicationProtectionContainersListByRepMockTests { - @Test - public void testListByReplicationFabrics() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"fabricFriendlyName\":\"zcfyzq\",\"friendlyName\":\"qregfurdpagknx\",\"fabricType\":\"ovrgih\",\"protectedItemCount\":474739358,\"pairingStatus\":\"fewvqk\",\"role\":\"jcgeipqxxsdyaf\",\"fabricSpecificDetails\":{\"instanceType\":\"dsmmabh\"}},\"location\":\"lejqzhpvhxp\",\"id\":\"adj\",\"name\":\"eullgfyog\",\"type\":\"qscjpvqerqxk\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.replicationProtectionContainers() - .listByReplicationFabrics("sazdjmofsvpz", "gnywxu", "mlfjymgw", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("zcfyzq", response.iterator().next().properties().fabricFriendlyName()); - Assertions.assertEquals("qregfurdpagknx", response.iterator().next().properties().friendlyName()); - Assertions.assertEquals("ovrgih", response.iterator().next().properties().fabricType()); - Assertions.assertEquals(474739358, response.iterator().next().properties().protectedItemCount()); - Assertions.assertEquals("fewvqk", response.iterator().next().properties().pairingStatus()); - Assertions.assertEquals("jcgeipqxxsdyaf", response.iterator().next().properties().role()); - Assertions.assertEquals("lejqzhpvhxp", response.iterator().next().location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersListMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersListMockTests.java deleted file mode 100644 index 6e5b9dfef931..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersListMockTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ProtectionContainer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReplicationProtectionContainersListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"fabricFriendlyName\":\"w\",\"friendlyName\":\"nbmajvvyxtvvx\",\"fabricType\":\"kzixbk\",\"protectedItemCount\":2007505628,\"pairingStatus\":\"mlngfwhrm\",\"role\":\"a\",\"fabricSpecificDetails\":{\"instanceType\":\"jmwxn\"}},\"location\":\"bl\",\"id\":\"nahhs\",\"name\":\"fndcbsyhlud\",\"type\":\"jkkovohwvprj\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.replicationProtectionContainers().list("dexquaw", "xizbfzet", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("w", response.iterator().next().properties().fabricFriendlyName()); - Assertions.assertEquals("nbmajvvyxtvvx", response.iterator().next().properties().friendlyName()); - Assertions.assertEquals("kzixbk", response.iterator().next().properties().fabricType()); - Assertions.assertEquals(2007505628, response.iterator().next().properties().protectedItemCount()); - Assertions.assertEquals("mlngfwhrm", response.iterator().next().properties().pairingStatus()); - Assertions.assertEquals("a", response.iterator().next().properties().role()); - Assertions.assertEquals("bl", response.iterator().next().location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersSwitchProMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersSwitchProMockTests.java deleted file mode 100644 index 5dd672e8e175..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionContainersSwitchProMockTests.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ProtectionContainer; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.SwitchProtectionInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.SwitchProtectionInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.SwitchProtectionProviderSpecificInput; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReplicationProtectionContainersSwitchProMockTests { - @Test - public void testSwitchProtection() throws Exception { - String responseStr - = "{\"properties\":{\"fabricFriendlyName\":\"dsqyuddkhwqdm\",\"friendlyName\":\"heuyuunxmyevyi\",\"fabricType\":\"eip\",\"protectedItemCount\":967066475,\"pairingStatus\":\"ejwli\",\"role\":\"cndjzwhajo\",\"fabricSpecificDetails\":{\"instanceType\":\"qokhdyncradxs\"}},\"location\":\"bempf\",\"id\":\"pmqnmelyksygih\",\"name\":\"clmslnunkqvz\",\"type\":\"bbba\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ProtectionContainer response = manager.replicationProtectionContainers() - .switchProtection("vm", "idyli", "ajklnac", "dnxqeonm", - new SwitchProtectionInput().withProperties( - new SwitchProtectionInputProperties().withReplicationProtectedItemName("jaojpzngdrzige") - .withProviderSpecificDetails(new SwitchProtectionProviderSpecificInput())), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("dsqyuddkhwqdm", response.properties().fabricFriendlyName()); - Assertions.assertEquals("heuyuunxmyevyi", response.properties().friendlyName()); - Assertions.assertEquals("eip", response.properties().fabricType()); - Assertions.assertEquals(967066475, response.properties().protectedItemCount()); - Assertions.assertEquals("ejwli", response.properties().pairingStatus()); - Assertions.assertEquals("cndjzwhajo", response.properties().role()); - Assertions.assertEquals("bempf", response.location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionIntentCollectionTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionIntentCollectionTests.java deleted file mode 100644 index cf6478f5bf25..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionIntentCollectionTests.java +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.ReplicationProtectionIntentInner; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationProtectionIntentCollection; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationProtectionIntentProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationProtectionIntentProviderSpecificSettings; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ReplicationProtectionIntentCollectionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReplicationProtectionIntentCollection model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"friendlyName\":\"dfzantkwcegy\",\"jobId\":\"lbnseqac\",\"jobState\":\"vpilg\",\"isActive\":false,\"creationTimeUTC\":\"jagmdi\",\"providerSpecificDetails\":{\"instanceType\":\"ReplicationProtectionIntentProviderSpecificSettings\"}},\"location\":\"eiookjbsah\",\"id\":\"tdtpdelqacslmo\",\"name\":\"oebn\",\"type\":\"xofvcjk\"},{\"properties\":{\"friendlyName\":\"razftxejwabmdujt\",\"jobId\":\"cope\",\"jobState\":\"m\",\"isActive\":false,\"creationTimeUTC\":\"u\",\"providerSpecificDetails\":{\"instanceType\":\"ReplicationProtectionIntentProviderSpecificSettings\"}},\"location\":\"kyqltqsrogt\",\"id\":\"wkffdjkt\",\"name\":\"ysidfvclgl\",\"type\":\"n\"},{\"properties\":{\"friendlyName\":\"jtkbusqogsfika\",\"jobId\":\"ansharujtjiqxfz\",\"jobState\":\"qttv\",\"isActive\":true,\"creationTimeUTC\":\"hjpenuygbq\",\"providerSpecificDetails\":{\"instanceType\":\"ReplicationProtectionIntentProviderSpecificSettings\"}},\"location\":\"ekewvnqvcdlguauc\",\"id\":\"f\",\"name\":\"jwnlax\",\"type\":\"un\"}],\"nextLink\":\"ikczvvitacgxmf\"}") - .toObject(ReplicationProtectionIntentCollection.class); - Assertions.assertEquals("dfzantkwcegy", model.value().get(0).properties().friendlyName()); - Assertions.assertEquals("eiookjbsah", model.value().get(0).location()); - Assertions.assertEquals("ikczvvitacgxmf", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReplicationProtectionIntentCollection model - = new ReplicationProtectionIntentCollection().withValue(Arrays.asList( - new ReplicationProtectionIntentInner() - .withProperties(new ReplicationProtectionIntentProperties().withFriendlyName("dfzantkwcegy") - .withProviderSpecificDetails(new ReplicationProtectionIntentProviderSpecificSettings())) - .withLocation("eiookjbsah"), - new ReplicationProtectionIntentInner() - .withProperties(new ReplicationProtectionIntentProperties().withFriendlyName("razftxejwabmdujt") - .withProviderSpecificDetails(new ReplicationProtectionIntentProviderSpecificSettings())) - .withLocation("kyqltqsrogt"), - new ReplicationProtectionIntentInner() - .withProperties(new ReplicationProtectionIntentProperties().withFriendlyName("jtkbusqogsfika") - .withProviderSpecificDetails(new ReplicationProtectionIntentProviderSpecificSettings())) - .withLocation("ekewvnqvcdlguauc"))) - .withNextLink("ikczvvitacgxmf"); - model = BinaryData.fromObject(model).toObject(ReplicationProtectionIntentCollection.class); - Assertions.assertEquals("dfzantkwcegy", model.value().get(0).properties().friendlyName()); - Assertions.assertEquals("eiookjbsah", model.value().get(0).location()); - Assertions.assertEquals("ikczvvitacgxmf", model.nextLink()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionIntentInnerTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionIntentInnerTests.java deleted file mode 100644 index 3fa9f6a01cd1..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionIntentInnerTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.ReplicationProtectionIntentInner; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationProtectionIntentProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationProtectionIntentProviderSpecificSettings; -import org.junit.jupiter.api.Assertions; - -public final class ReplicationProtectionIntentInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReplicationProtectionIntentInner model = BinaryData.fromString( - "{\"properties\":{\"friendlyName\":\"er\",\"jobId\":\"tvsoxhlwntsj\",\"jobState\":\"rsxypruuu\",\"isActive\":true,\"creationTimeUTC\":\"hrszi\",\"providerSpecificDetails\":{\"instanceType\":\"ReplicationProtectionIntentProviderSpecificSettings\"}},\"location\":\"uelyetndn\",\"id\":\"fqyggagflnlgmtr\",\"name\":\"ahzjmucftb\",\"type\":\"r\"}") - .toObject(ReplicationProtectionIntentInner.class); - Assertions.assertEquals("er", model.properties().friendlyName()); - Assertions.assertEquals("uelyetndn", model.location()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReplicationProtectionIntentInner model = new ReplicationProtectionIntentInner() - .withProperties(new ReplicationProtectionIntentProperties().withFriendlyName("er") - .withProviderSpecificDetails(new ReplicationProtectionIntentProviderSpecificSettings())) - .withLocation("uelyetndn"); - model = BinaryData.fromObject(model).toObject(ReplicationProtectionIntentInner.class); - Assertions.assertEquals("er", model.properties().friendlyName()); - Assertions.assertEquals("uelyetndn", model.location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionIntentPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionIntentPropertiesTests.java deleted file mode 100644 index f6d8533c5867..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionIntentPropertiesTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationProtectionIntentProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationProtectionIntentProviderSpecificSettings; -import org.junit.jupiter.api.Assertions; - -public final class ReplicationProtectionIntentPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReplicationProtectionIntentProperties model = BinaryData.fromString( - "{\"friendlyName\":\"rohkpigqfusu\",\"jobId\":\"zmkw\",\"jobState\":\"snoxaxmqeqa\",\"isActive\":true,\"creationTimeUTC\":\"nhg\",\"providerSpecificDetails\":{\"instanceType\":\"ReplicationProtectionIntentProviderSpecificSettings\"}}") - .toObject(ReplicationProtectionIntentProperties.class); - Assertions.assertEquals("rohkpigqfusu", model.friendlyName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReplicationProtectionIntentProperties model - = new ReplicationProtectionIntentProperties().withFriendlyName("rohkpigqfusu") - .withProviderSpecificDetails(new ReplicationProtectionIntentProviderSpecificSettings()); - model = BinaryData.fromObject(model).toObject(ReplicationProtectionIntentProperties.class); - Assertions.assertEquals("rohkpigqfusu", model.friendlyName()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionIntentsCreateWithReMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionIntentsCreateWithReMockTests.java deleted file mode 100644 index 5e7b11c5628c..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionIntentsCreateWithReMockTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.CreateProtectionIntentProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.CreateProtectionIntentProviderSpecificDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationProtectionIntent; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReplicationProtectionIntentsCreateWithReMockTests { - @Test - public void testCreateWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"friendlyName\":\"txytja\",\"jobId\":\"j\",\"jobState\":\"jlijkk\",\"isActive\":true,\"creationTimeUTC\":\"ehjjirvjqxavqm\",\"providerSpecificDetails\":{\"instanceType\":\"ReplicationProtectionIntentProviderSpecificSettings\"}},\"location\":\"ac\",\"id\":\"sffdralihhssc\",\"name\":\"gyzhcv\",\"type\":\"avyrjlnd\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ReplicationProtectionIntent response = manager.replicationProtectionIntents() - .define("amzmzfnt") - .withExistingVault("gvejhmnaph", "skmpeajzzypa") - .withProperties(new CreateProtectionIntentProperties() - .withProviderSpecificDetails(new CreateProtectionIntentProviderSpecificDetails())) - .create(); - - Assertions.assertEquals("txytja", response.properties().friendlyName()); - Assertions.assertEquals("ac", response.location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionIntentsGetWithRespoMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionIntentsGetWithRespoMockTests.java deleted file mode 100644 index ee455f8191c2..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionIntentsGetWithRespoMockTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationProtectionIntent; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReplicationProtectionIntentsGetWithRespoMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"friendlyName\":\"cacwaaqakv\",\"jobId\":\"y\",\"jobState\":\"xra\",\"isActive\":false,\"creationTimeUTC\":\"eqbrcmmdtsh\",\"providerSpecificDetails\":{\"instanceType\":\"ReplicationProtectionIntentProviderSpecificSettings\"}},\"location\":\"xucznb\",\"id\":\"bowr\",\"name\":\"yrnmjw\",\"type\":\"owxqzkk\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ReplicationProtectionIntent response = manager.replicationProtectionIntents() - .getWithResponse("ilzvxotno", "lqcdvhye", "qhxytsq", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("cacwaaqakv", response.properties().friendlyName()); - Assertions.assertEquals("xucznb", response.location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionIntentsListMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionIntentsListMockTests.java deleted file mode 100644 index 5c9d9b883915..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProtectionIntentsListMockTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationProtectionIntent; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReplicationProtectionIntentsListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"friendlyName\":\"mrgm\",\"jobId\":\"gtlhz\",\"jobState\":\"a\",\"isActive\":false,\"creationTimeUTC\":\"iy\",\"providerSpecificDetails\":{\"instanceType\":\"ReplicationProtectionIntentProviderSpecificSettings\"}},\"location\":\"nvzmsvzng\",\"id\":\"eqzhehgvmm\",\"name\":\"oyzgnbnypluz\",\"type\":\"pkfcdfu\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.replicationProtectionIntents() - .list("frzcwuejmxl", "zlnzyrgr", "hchraunjovlx", "tvmvzpni", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("mrgm", response.iterator().next().properties().friendlyName()); - Assertions.assertEquals("nvzmsvzng", response.iterator().next().location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProviderContainerUnmappingInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProviderContainerUnmappingInputTests.java deleted file mode 100644 index 055166a49ada..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProviderContainerUnmappingInputTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationProviderContainerUnmappingInput; -import org.junit.jupiter.api.Assertions; - -public final class ReplicationProviderContainerUnmappingInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReplicationProviderContainerUnmappingInput model = BinaryData.fromString("{\"instanceType\":\"jvlpjxxkzbr\"}") - .toObject(ReplicationProviderContainerUnmappingInput.class); - Assertions.assertEquals("jvlpjxxkzbr", model.instanceType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReplicationProviderContainerUnmappingInput model - = new ReplicationProviderContainerUnmappingInput().withInstanceType("jvlpjxxkzbr"); - model = BinaryData.fromObject(model).toObject(ReplicationProviderContainerUnmappingInput.class); - Assertions.assertEquals("jvlpjxxkzbr", model.instanceType()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProviderSpecificContainerCreationInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProviderSpecificContainerCreationInputTests.java deleted file mode 100644 index 0818dcc1aa4a..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProviderSpecificContainerCreationInputTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationProviderSpecificContainerCreationInput; - -public final class ReplicationProviderSpecificContainerCreationInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReplicationProviderSpecificContainerCreationInput model - = BinaryData.fromString("{\"instanceType\":\"ReplicationProviderSpecificContainerCreationInput\"}") - .toObject(ReplicationProviderSpecificContainerCreationInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReplicationProviderSpecificContainerCreationInput model - = new ReplicationProviderSpecificContainerCreationInput(); - model = BinaryData.fromObject(model).toObject(ReplicationProviderSpecificContainerCreationInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProviderSpecificContainerMappingInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProviderSpecificContainerMappingInputTests.java deleted file mode 100644 index 5b5f27aae03f..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProviderSpecificContainerMappingInputTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationProviderSpecificContainerMappingInput; - -public final class ReplicationProviderSpecificContainerMappingInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReplicationProviderSpecificContainerMappingInput model - = BinaryData.fromString("{\"instanceType\":\"ReplicationProviderSpecificContainerMappingInput\"}") - .toObject(ReplicationProviderSpecificContainerMappingInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReplicationProviderSpecificContainerMappingInput model = new ReplicationProviderSpecificContainerMappingInput(); - model = BinaryData.fromObject(model).toObject(ReplicationProviderSpecificContainerMappingInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProviderSpecificSettingsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProviderSpecificSettingsTests.java deleted file mode 100644 index dccdfcc9a764..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationProviderSpecificSettingsTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationProviderSpecificSettings; - -public final class ReplicationProviderSpecificSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReplicationProviderSpecificSettings model - = BinaryData.fromString("{\"instanceType\":\"ReplicationProviderSpecificSettings\"}") - .toObject(ReplicationProviderSpecificSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReplicationProviderSpecificSettings model = new ReplicationProviderSpecificSettings(); - model = BinaryData.fromObject(model).toObject(ReplicationProviderSpecificSettings.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansCreateMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansCreateMockTests.java deleted file mode 100644 index a90134631d4d..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansCreateMockTests.java +++ /dev/null @@ -1,98 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.CreateRecoveryPlanInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.FailoverDeploymentModel; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlan; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanAction; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanActionDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanGroup; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanGroupType; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanProtectedItem; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanProviderSpecificInput; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReplicationRecoveryPlansCreateMockTests { - @Test - public void testCreate() throws Exception { - String responseStr - = "{\"properties\":{\"friendlyName\":\"sfgb\",\"primaryFabricId\":\"tsaz\",\"primaryFabricFriendlyName\":\"cxlubrukhq\",\"recoveryFabricId\":\"oyrbdkgqd\",\"recoveryFabricFriendlyName\":\"vvj\",\"failoverDeploymentModel\":\"jjfexuvsveams\",\"replicationProviders\":[\"uuvhxiohg\",\"mufzuuyszhae\",\"mtyosdpxtsdy\",\"fgefvwgwp\"],\"allowedOperations\":[\"iavwmixaqg\"],\"lastPlannedFailoverTime\":\"2021-09-07T11:23:33Z\",\"lastUnplannedFailoverTime\":\"2021-08-07T10:56:29Z\",\"lastTestFailoverTime\":\"2021-04-15T08:30:28Z\",\"currentScenario\":{\"scenarioName\":\"umlkjsv\",\"jobId\":\"tmlixalphkg\",\"startTime\":\"2021-09-24T23:02:48Z\"},\"currentScenarioStatus\":\"e\",\"currentScenarioStatusDescription\":\"gdj\",\"groups\":[{\"groupType\":\"Shutdown\",\"replicationProtectedItems\":[{},{}],\"startGroupActions\":[{\"actionName\":\"uyrlk\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"i\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"rmrjpjthi\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"sabcylzz\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"etumzenkrd\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"ues\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]},{\"groupType\":\"Boot\",\"replicationProtectedItems\":[{}],\"startGroupActions\":[{\"actionName\":\"oibdctjwfeb\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"qqeetsqac\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"czfro\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"raiai\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]},{\"groupType\":\"Boot\",\"replicationProtectedItems\":[{}],\"startGroupActions\":[{\"actionName\":\"wamptldddorz\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"jhnxfkffngfpi\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"loi\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"xdbktuqnbcjknrq\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]},{\"groupType\":\"Boot\",\"replicationProtectedItems\":[{}],\"startGroupActions\":[{\"actionName\":\"ku\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"ii\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"inlic\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"moyoioxdwff\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]}],\"providerSpecificDetails\":[{\"instanceType\":\"RecoveryPlanProviderSpecificDetails\"},{\"instanceType\":\"RecoveryPlanProviderSpecificDetails\"}]},\"location\":\"ke\",\"id\":\"curr\",\"name\":\"uecokyduqzusc\",\"type\":\"lbqv\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - RecoveryPlan response = manager.replicationRecoveryPlans() - .define("uvqbeyxwrmupzpe") - .withExistingVault("gynsixgzbbnug", "quarb") - .withProperties(new CreateRecoveryPlanInputProperties().withPrimaryFabricId("zbhg") - .withRecoveryFabricId("ajkvwkoc") - .withFailoverDeploymentModel(FailoverDeploymentModel.RESOURCE_MANAGER) - .withGroups(Arrays.asList(new RecoveryPlanGroup().withGroupType(RecoveryPlanGroupType.BOOT) - .withReplicationProtectedItems( - Arrays.asList(new RecoveryPlanProtectedItem(), new RecoveryPlanProtectedItem(), - new RecoveryPlanProtectedItem(), new RecoveryPlanProtectedItem())) - .withStartGroupActions(Arrays.asList(new RecoveryPlanAction().withActionName("atbgvlp") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()))) - .withEndGroupActions(Arrays.asList( - new RecoveryPlanAction().withActionName("gen") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("akybepsihz") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("ieoymp") - .withFailoverTypes(Arrays.asList()) - .withFailoverDirections(Arrays.asList()) - .withCustomDetails(new RecoveryPlanActionDetails()))))) - .withProviderSpecificInput(Arrays.asList(new RecoveryPlanProviderSpecificInput()))) - .create(); - - Assertions.assertEquals("sfgb", response.properties().friendlyName()); - Assertions.assertEquals("tsaz", response.properties().primaryFabricId()); - Assertions.assertEquals("cxlubrukhq", response.properties().primaryFabricFriendlyName()); - Assertions.assertEquals("oyrbdkgqd", response.properties().recoveryFabricId()); - Assertions.assertEquals("vvj", response.properties().recoveryFabricFriendlyName()); - Assertions.assertEquals("jjfexuvsveams", response.properties().failoverDeploymentModel()); - Assertions.assertEquals("uuvhxiohg", response.properties().replicationProviders().get(0)); - Assertions.assertEquals("iavwmixaqg", response.properties().allowedOperations().get(0)); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-07T11:23:33Z"), - response.properties().lastPlannedFailoverTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-07T10:56:29Z"), - response.properties().lastUnplannedFailoverTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-15T08:30:28Z"), - response.properties().lastTestFailoverTime()); - Assertions.assertEquals("umlkjsv", response.properties().currentScenario().scenarioName()); - Assertions.assertEquals("tmlixalphkg", response.properties().currentScenario().jobId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-24T23:02:48Z"), - response.properties().currentScenario().startTime()); - Assertions.assertEquals("e", response.properties().currentScenarioStatus()); - Assertions.assertEquals("gdj", response.properties().currentScenarioStatusDescription()); - Assertions.assertEquals(RecoveryPlanGroupType.SHUTDOWN, response.properties().groups().get(0).groupType()); - Assertions.assertEquals("uyrlk", response.properties().groups().get(0).startGroupActions().get(0).actionName()); - Assertions.assertEquals("rmrjpjthi", - response.properties().groups().get(0).endGroupActions().get(0).actionName()); - Assertions.assertEquals("ke", response.location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansFailoverCancelMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansFailoverCancelMockTests.java deleted file mode 100644 index df99d2e0424c..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansFailoverCancelMockTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlan; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanGroupType; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReplicationRecoveryPlansFailoverCancelMockTests { - @Test - public void testFailoverCancel() throws Exception { - String responseStr - = "{\"properties\":{\"friendlyName\":\"qnugtcuyuwgnyjdi\",\"primaryFabricId\":\"ticwmlf\",\"primaryFabricFriendlyName\":\"hibfmco\",\"recoveryFabricId\":\"ktuajkufp\",\"recoveryFabricFriendlyName\":\"dgnmei\",\"failoverDeploymentModel\":\"nobbai\",\"replicationProviders\":[\"bfyqz\"],\"allowedOperations\":[\"fo\",\"gvmrkmgifmyzbu\",\"dnhhc\"],\"lastPlannedFailoverTime\":\"2021-02-14T12:12:53Z\",\"lastUnplannedFailoverTime\":\"2021-07-06T10:13:19Z\",\"lastTestFailoverTime\":\"2021-11-17T02:54:07Z\",\"currentScenario\":{\"scenarioName\":\"onhbl\",\"jobId\":\"vcnuqfpz\",\"startTime\":\"2021-03-08T11:13:57Z\"},\"currentScenarioStatus\":\"pcwtwtrchk\",\"currentScenarioStatusDescription\":\"ruawqe\",\"groups\":[{\"groupType\":\"Shutdown\",\"replicationProtectedItems\":[{}],\"startGroupActions\":[{\"actionName\":\"xipwqchfpt\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"kkvjjl\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"cu\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]},{\"groupType\":\"Failover\",\"replicationProtectedItems\":[{},{},{}],\"startGroupActions\":[{\"actionName\":\"bgumu\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"jxxpxxizchmb\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"zgi\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"jkngzfs\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"laybhozlsb\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"fnhbvcntpoe\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"ytrsljzmzui\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]},{\"groupType\":\"Boot\",\"replicationProtectedItems\":[{},{}],\"startGroupActions\":[{\"actionName\":\"znbppmk\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"lbbnjld\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]},{\"groupType\":\"Shutdown\",\"replicationProtectedItems\":[{},{},{}],\"startGroupActions\":[{\"actionName\":\"nefwle\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"vkya\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"foy\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"zo\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"dyaepre\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]}],\"providerSpecificDetails\":[{\"instanceType\":\"RecoveryPlanProviderSpecificDetails\"},{\"instanceType\":\"RecoveryPlanProviderSpecificDetails\"},{\"instanceType\":\"RecoveryPlanProviderSpecificDetails\"},{\"instanceType\":\"RecoveryPlanProviderSpecificDetails\"}]},\"location\":\"kfalw\",\"id\":\"eechcayvqbeqp\",\"name\":\"cnusnylfhi\",\"type\":\"rjriybfbydrlqllb\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - RecoveryPlan response = manager.replicationRecoveryPlans() - .failoverCancel("wq", "qcowkendgrc", "ff", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("qnugtcuyuwgnyjdi", response.properties().friendlyName()); - Assertions.assertEquals("ticwmlf", response.properties().primaryFabricId()); - Assertions.assertEquals("hibfmco", response.properties().primaryFabricFriendlyName()); - Assertions.assertEquals("ktuajkufp", response.properties().recoveryFabricId()); - Assertions.assertEquals("dgnmei", response.properties().recoveryFabricFriendlyName()); - Assertions.assertEquals("nobbai", response.properties().failoverDeploymentModel()); - Assertions.assertEquals("bfyqz", response.properties().replicationProviders().get(0)); - Assertions.assertEquals("fo", response.properties().allowedOperations().get(0)); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-14T12:12:53Z"), - response.properties().lastPlannedFailoverTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-06T10:13:19Z"), - response.properties().lastUnplannedFailoverTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-17T02:54:07Z"), - response.properties().lastTestFailoverTime()); - Assertions.assertEquals("onhbl", response.properties().currentScenario().scenarioName()); - Assertions.assertEquals("vcnuqfpz", response.properties().currentScenario().jobId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-08T11:13:57Z"), - response.properties().currentScenario().startTime()); - Assertions.assertEquals("pcwtwtrchk", response.properties().currentScenarioStatus()); - Assertions.assertEquals("ruawqe", response.properties().currentScenarioStatusDescription()); - Assertions.assertEquals(RecoveryPlanGroupType.SHUTDOWN, response.properties().groups().get(0).groupType()); - Assertions.assertEquals("xipwqchfpt", - response.properties().groups().get(0).startGroupActions().get(0).actionName()); - Assertions.assertEquals("cu", response.properties().groups().get(0).endGroupActions().get(0).actionName()); - Assertions.assertEquals("kfalw", response.location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansFailoverCommitMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansFailoverCommitMockTests.java deleted file mode 100644 index af7fb718c998..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansFailoverCommitMockTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlan; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanGroupType; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReplicationRecoveryPlansFailoverCommitMockTests { - @Test - public void testFailoverCommit() throws Exception { - String responseStr - = "{\"properties\":{\"friendlyName\":\"bunvnjql\",\"primaryFabricId\":\"qqvcugusqlxlxedt\",\"primaryFabricFriendlyName\":\"wlnvqacbyfisbl\",\"recoveryFabricId\":\"mpuyypaggp\",\"recoveryFabricFriendlyName\":\"hea\",\"failoverDeploymentModel\":\"zwloqrmgdhy\",\"replicationProviders\":[\"vlxtywukhjdspl\",\"itxrrgkwiyoyh\"],\"allowedOperations\":[\"vxcodwkwoytcac\",\"hsizfuewlf\",\"fiikqcdnzsfiu\",\"gne\"],\"lastPlannedFailoverTime\":\"2021-11-17T13:52:52Z\",\"lastUnplannedFailoverTime\":\"2021-06-15T11:57:20Z\",\"lastTestFailoverTime\":\"2021-02-12T22:51:57Z\",\"currentScenario\":{\"scenarioName\":\"zoahovuf\",\"jobId\":\"rxj\",\"startTime\":\"2021-04-08T07:37:54Z\"},\"currentScenarioStatus\":\"rmdwtbrnlsy\",\"currentScenarioStatusDescription\":\"a\",\"groups\":[{\"groupType\":\"Boot\",\"replicationProtectedItems\":[{},{}],\"startGroupActions\":[{\"actionName\":\"tclpphcs\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"mry\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"pan\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"aoiz\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]},{\"groupType\":\"Boot\",\"replicationProtectedItems\":[{}],\"startGroupActions\":[{\"actionName\":\"ngzzxqbgqnzm\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"ctbxzj\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"pifpucvb\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"ozwbs\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"afzsq\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]}],\"providerSpecificDetails\":[{\"instanceType\":\"RecoveryPlanProviderSpecificDetails\"}]},\"location\":\"pxmiwtkqif\",\"id\":\"vrdukcd\",\"name\":\"zoxlabuxtwgbaws\",\"type\":\"ram\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - RecoveryPlan response = manager.replicationRecoveryPlans() - .failoverCommit("fsnqocybrh", "giknrlugseiqb", "oqjfeamzkuxdgpks", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("bunvnjql", response.properties().friendlyName()); - Assertions.assertEquals("qqvcugusqlxlxedt", response.properties().primaryFabricId()); - Assertions.assertEquals("wlnvqacbyfisbl", response.properties().primaryFabricFriendlyName()); - Assertions.assertEquals("mpuyypaggp", response.properties().recoveryFabricId()); - Assertions.assertEquals("hea", response.properties().recoveryFabricFriendlyName()); - Assertions.assertEquals("zwloqrmgdhy", response.properties().failoverDeploymentModel()); - Assertions.assertEquals("vlxtywukhjdspl", response.properties().replicationProviders().get(0)); - Assertions.assertEquals("vxcodwkwoytcac", response.properties().allowedOperations().get(0)); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-17T13:52:52Z"), - response.properties().lastPlannedFailoverTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-15T11:57:20Z"), - response.properties().lastUnplannedFailoverTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-12T22:51:57Z"), - response.properties().lastTestFailoverTime()); - Assertions.assertEquals("zoahovuf", response.properties().currentScenario().scenarioName()); - Assertions.assertEquals("rxj", response.properties().currentScenario().jobId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-08T07:37:54Z"), - response.properties().currentScenario().startTime()); - Assertions.assertEquals("rmdwtbrnlsy", response.properties().currentScenarioStatus()); - Assertions.assertEquals("a", response.properties().currentScenarioStatusDescription()); - Assertions.assertEquals(RecoveryPlanGroupType.BOOT, response.properties().groups().get(0).groupType()); - Assertions.assertEquals("tclpphcs", - response.properties().groups().get(0).startGroupActions().get(0).actionName()); - Assertions.assertEquals("aoiz", response.properties().groups().get(0).endGroupActions().get(0).actionName()); - Assertions.assertEquals("pxmiwtkqif", response.location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansGetWithResponseMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansGetWithResponseMockTests.java deleted file mode 100644 index 351013f1e883..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansGetWithResponseMockTests.java +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlan; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanGroupType; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReplicationRecoveryPlansGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"friendlyName\":\"urnzoytkbe\",\"primaryFabricId\":\"yfenrozoijoxcbpk\",\"primaryFabricFriendlyName\":\"seacbt\",\"recoveryFabricId\":\"dr\",\"recoveryFabricFriendlyName\":\"nhsxwhxrztd\",\"failoverDeploymentModel\":\"r\",\"replicationProviders\":[\"k\"],\"allowedOperations\":[\"ysyajmm\"],\"lastPlannedFailoverTime\":\"2021-05-25T05:51:57Z\",\"lastUnplannedFailoverTime\":\"2021-05-15T00:16:15Z\",\"lastTestFailoverTime\":\"2021-03-10T10:19:04Z\",\"currentScenario\":{\"scenarioName\":\"ufsdbkuxkdiu\",\"jobId\":\"s\",\"startTime\":\"2020-12-22T21:14:43Z\"},\"currentScenarioStatus\":\"kscwbshfihvl\",\"currentScenarioStatusDescription\":\"ceylaulpuexyigxz\",\"groups\":[{\"groupType\":\"Boot\",\"replicationProtectedItems\":[{}],\"startGroupActions\":[{\"actionName\":\"spgnnd\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"fyhsb\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"hwlvsvs\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"ltaprq\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"mvzrkpmonx\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"wfcuhbgftfvqukkm\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"zene\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"pdq\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]},{\"groupType\":\"Failover\",\"replicationProtectedItems\":[{},{},{}],\"startGroupActions\":[{\"actionName\":\"qsem\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"hhxlsube\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"ztbejrdzwyktd\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"fzwufifnjwjhmj\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"qflk\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"cyk\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]},{\"groupType\":\"Boot\",\"replicationProtectedItems\":[{}],\"startGroupActions\":[{\"actionName\":\"bndnrihpjaxh\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"ejnoignyd\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]},{\"groupType\":\"Shutdown\",\"replicationProtectedItems\":[{},{},{},{}],\"startGroupActions\":[{\"actionName\":\"bnmrmhkipjardvdp\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"gwdxmiael\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"pbie\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"l\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"dvjlpbjszqjfs\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"jvaycxrwknsb\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]}],\"providerSpecificDetails\":[{\"instanceType\":\"RecoveryPlanProviderSpecificDetails\"},{\"instanceType\":\"RecoveryPlanProviderSpecificDetails\"}]},\"location\":\"brzwiypz\",\"id\":\"yhkecebt\",\"name\":\"gv\",\"type\":\"tbsusfd\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - RecoveryPlan response = manager.replicationRecoveryPlans() - .getWithResponse("voyjdgfkrq", "jrvpakxrdeexw", "juguvnxbo", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("urnzoytkbe", response.properties().friendlyName()); - Assertions.assertEquals("yfenrozoijoxcbpk", response.properties().primaryFabricId()); - Assertions.assertEquals("seacbt", response.properties().primaryFabricFriendlyName()); - Assertions.assertEquals("dr", response.properties().recoveryFabricId()); - Assertions.assertEquals("nhsxwhxrztd", response.properties().recoveryFabricFriendlyName()); - Assertions.assertEquals("r", response.properties().failoverDeploymentModel()); - Assertions.assertEquals("k", response.properties().replicationProviders().get(0)); - Assertions.assertEquals("ysyajmm", response.properties().allowedOperations().get(0)); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-25T05:51:57Z"), - response.properties().lastPlannedFailoverTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-15T00:16:15Z"), - response.properties().lastUnplannedFailoverTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-10T10:19:04Z"), - response.properties().lastTestFailoverTime()); - Assertions.assertEquals("ufsdbkuxkdiu", response.properties().currentScenario().scenarioName()); - Assertions.assertEquals("s", response.properties().currentScenario().jobId()); - Assertions.assertEquals(OffsetDateTime.parse("2020-12-22T21:14:43Z"), - response.properties().currentScenario().startTime()); - Assertions.assertEquals("kscwbshfihvl", response.properties().currentScenarioStatus()); - Assertions.assertEquals("ceylaulpuexyigxz", response.properties().currentScenarioStatusDescription()); - Assertions.assertEquals(RecoveryPlanGroupType.BOOT, response.properties().groups().get(0).groupType()); - Assertions.assertEquals("spgnnd", - response.properties().groups().get(0).startGroupActions().get(0).actionName()); - Assertions.assertEquals("mvzrkpmonx", - response.properties().groups().get(0).endGroupActions().get(0).actionName()); - Assertions.assertEquals("brzwiypz", response.location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansListMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansListMockTests.java deleted file mode 100644 index c935fc2483cb..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansListMockTests.java +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlan; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanGroupType; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReplicationRecoveryPlansListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"friendlyName\":\"p\",\"primaryFabricId\":\"u\",\"primaryFabricFriendlyName\":\"ax\",\"recoveryFabricId\":\"j\",\"recoveryFabricFriendlyName\":\"utwe\",\"failoverDeploymentModel\":\"givkteccxfnatntm\",\"replicationProviders\":[\"bqpmfhjik\",\"cnbdq\",\"tghnmelzvrchm\",\"ucgrmwyv\"],\"allowedOperations\":[\"yplgq\",\"qgrbrhhv\",\"pgtipaaoylwh\",\"mkbweasgyp\"],\"lastPlannedFailoverTime\":\"2021-09-01T04:35:06Z\",\"lastUnplannedFailoverTime\":\"2021-07-31T10:34:51Z\",\"lastTestFailoverTime\":\"2021-10-24T03:31:42Z\",\"currentScenario\":{\"scenarioName\":\"ydwqeuwdvcls\",\"jobId\":\"qdchnzib\",\"startTime\":\"2021-03-05T02:41:17Z\"},\"currentScenarioStatus\":\"srwx\",\"currentScenarioStatusDescription\":\"kwargcbgdg\",\"groups\":[{\"groupType\":\"Failover\",\"replicationProtectedItems\":[{},{},{},{}],\"startGroupActions\":[{\"actionName\":\"qwq\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"kmvugflhd\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"oxu\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"nnkvthwtamvmbgy\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"xh\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"muhkezuucqicocd\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]},{\"groupType\":\"Boot\",\"replicationProtectedItems\":[{}],\"startGroupActions\":[{\"actionName\":\"j\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"tutpdwnee\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"my\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"lxug\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]}],\"providerSpecificDetails\":[{\"instanceType\":\"RecoveryPlanProviderSpecificDetails\"}]},\"location\":\"nffaofkvfruxzkfb\",\"id\":\"hgykzovstvymdqa\",\"name\":\"mqm\",\"type\":\"rnzgubqkfnox\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.replicationRecoveryPlans().list("rm", "zvti", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("p", response.iterator().next().properties().friendlyName()); - Assertions.assertEquals("u", response.iterator().next().properties().primaryFabricId()); - Assertions.assertEquals("ax", response.iterator().next().properties().primaryFabricFriendlyName()); - Assertions.assertEquals("j", response.iterator().next().properties().recoveryFabricId()); - Assertions.assertEquals("utwe", response.iterator().next().properties().recoveryFabricFriendlyName()); - Assertions.assertEquals("givkteccxfnatntm", response.iterator().next().properties().failoverDeploymentModel()); - Assertions.assertEquals("bqpmfhjik", response.iterator().next().properties().replicationProviders().get(0)); - Assertions.assertEquals("yplgq", response.iterator().next().properties().allowedOperations().get(0)); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-01T04:35:06Z"), - response.iterator().next().properties().lastPlannedFailoverTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-31T10:34:51Z"), - response.iterator().next().properties().lastUnplannedFailoverTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-24T03:31:42Z"), - response.iterator().next().properties().lastTestFailoverTime()); - Assertions.assertEquals("ydwqeuwdvcls", - response.iterator().next().properties().currentScenario().scenarioName()); - Assertions.assertEquals("qdchnzib", response.iterator().next().properties().currentScenario().jobId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-05T02:41:17Z"), - response.iterator().next().properties().currentScenario().startTime()); - Assertions.assertEquals("srwx", response.iterator().next().properties().currentScenarioStatus()); - Assertions.assertEquals("kwargcbgdg", - response.iterator().next().properties().currentScenarioStatusDescription()); - Assertions.assertEquals(RecoveryPlanGroupType.FAILOVER, - response.iterator().next().properties().groups().get(0).groupType()); - Assertions.assertEquals("qwq", - response.iterator().next().properties().groups().get(0).startGroupActions().get(0).actionName()); - Assertions.assertEquals("nnkvthwtamvmbgy", - response.iterator().next().properties().groups().get(0).endGroupActions().get(0).actionName()); - Assertions.assertEquals("nffaofkvfruxzkfb", response.iterator().next().location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansPlannedFailoverMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansPlannedFailoverMockTests.java deleted file mode 100644 index f5993fc96711..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansPlannedFailoverMockTests.java +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.PossibleOperationsDirections; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlan; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanGroupType; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanPlannedFailoverInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanPlannedFailoverInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanProviderSpecificFailoverInput; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReplicationRecoveryPlansPlannedFailoverMockTests { - @Test - public void testPlannedFailover() throws Exception { - String responseStr - = "{\"properties\":{\"friendlyName\":\"mcer\",\"primaryFabricId\":\"feiqb\",\"primaryFabricFriendlyName\":\"thzw\",\"recoveryFabricId\":\"pssvnonij\",\"recoveryFabricFriendlyName\":\"cj\",\"failoverDeploymentModel\":\"zjku\",\"replicationProviders\":[\"qqbt\",\"kvocu\"],\"allowedOperations\":[\"lbpwarhwettohg\",\"z\",\"xyvtkzbhizxp\",\"sddmwnfhmju\"],\"lastPlannedFailoverTime\":\"2021-03-26T04:51:04Z\",\"lastUnplannedFailoverTime\":\"2021-01-08T10:12:47Z\",\"lastTestFailoverTime\":\"2021-08-31T12:11:02Z\",\"currentScenario\":{\"scenarioName\":\"lxudhek\",\"jobId\":\"nirmidtvhjc\",\"startTime\":\"2021-06-10T15:34:30Z\"},\"currentScenarioStatus\":\"bqygkxr\",\"currentScenarioStatusDescription\":\"ojlclpumveybodhr\",\"groups\":[{\"groupType\":\"Boot\",\"replicationProtectedItems\":[{},{}],\"startGroupActions\":[{\"actionName\":\"bcumjv\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"gpdxtsaujtco\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"jybolqoxupt\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"l\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"mlkwk\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"linvamtykxsz\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"ekfxcs\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]}],\"providerSpecificDetails\":[{\"instanceType\":\"RecoveryPlanProviderSpecificDetails\"},{\"instanceType\":\"RecoveryPlanProviderSpecificDetails\"},{\"instanceType\":\"RecoveryPlanProviderSpecificDetails\"},{\"instanceType\":\"RecoveryPlanProviderSpecificDetails\"}]},\"location\":\"ozkt\",\"id\":\"dpcz\",\"name\":\"ohplrgcnbvmhvq\",\"type\":\"kedaxkuyorfj\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - RecoveryPlan response = manager.replicationRecoveryPlans() - .plannedFailover("sugqcglma", "fzto", "xvqlauu", - new RecoveryPlanPlannedFailoverInput().withProperties(new RecoveryPlanPlannedFailoverInputProperties() - .withFailoverDirection(PossibleOperationsDirections.PRIMARY_TO_RECOVERY) - .withProviderSpecificDetails(Arrays.asList(new RecoveryPlanProviderSpecificFailoverInput(), - new RecoveryPlanProviderSpecificFailoverInput(), - new RecoveryPlanProviderSpecificFailoverInput(), - new RecoveryPlanProviderSpecificFailoverInput()))), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("mcer", response.properties().friendlyName()); - Assertions.assertEquals("feiqb", response.properties().primaryFabricId()); - Assertions.assertEquals("thzw", response.properties().primaryFabricFriendlyName()); - Assertions.assertEquals("pssvnonij", response.properties().recoveryFabricId()); - Assertions.assertEquals("cj", response.properties().recoveryFabricFriendlyName()); - Assertions.assertEquals("zjku", response.properties().failoverDeploymentModel()); - Assertions.assertEquals("qqbt", response.properties().replicationProviders().get(0)); - Assertions.assertEquals("lbpwarhwettohg", response.properties().allowedOperations().get(0)); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-26T04:51:04Z"), - response.properties().lastPlannedFailoverTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-08T10:12:47Z"), - response.properties().lastUnplannedFailoverTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-31T12:11:02Z"), - response.properties().lastTestFailoverTime()); - Assertions.assertEquals("lxudhek", response.properties().currentScenario().scenarioName()); - Assertions.assertEquals("nirmidtvhjc", response.properties().currentScenario().jobId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-10T15:34:30Z"), - response.properties().currentScenario().startTime()); - Assertions.assertEquals("bqygkxr", response.properties().currentScenarioStatus()); - Assertions.assertEquals("ojlclpumveybodhr", response.properties().currentScenarioStatusDescription()); - Assertions.assertEquals(RecoveryPlanGroupType.BOOT, response.properties().groups().get(0).groupType()); - Assertions.assertEquals("bcumjv", - response.properties().groups().get(0).startGroupActions().get(0).actionName()); - Assertions.assertEquals("mlkwk", response.properties().groups().get(0).endGroupActions().get(0).actionName()); - Assertions.assertEquals("ozkt", response.location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansReprotectMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansReprotectMockTests.java deleted file mode 100644 index a480eb90c422..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansReprotectMockTests.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlan; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanGroupType; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReplicationRecoveryPlansReprotectMockTests { - @Test - public void testReprotect() throws Exception { - String responseStr - = "{\"properties\":{\"friendlyName\":\"pwnyfjcypazwiimd\",\"primaryFabricId\":\"gkooagr\",\"primaryFabricFriendlyName\":\"pamesi\",\"recoveryFabricId\":\"qadewhuwxk\",\"recoveryFabricFriendlyName\":\"iatfamrnaifllxcc\",\"failoverDeploymentModel\":\"kiyfo\",\"replicationProviders\":[\"omy\",\"xgtu\"],\"allowedOperations\":[\"fquzihirqvv\",\"e\"],\"lastPlannedFailoverTime\":\"2021-08-16T07:33:38Z\",\"lastUnplannedFailoverTime\":\"2021-05-16T08:15:32Z\",\"lastTestFailoverTime\":\"2020-12-21T05:22:34Z\",\"currentScenario\":{\"scenarioName\":\"ssgvq\",\"jobId\":\"rxrmhrraqgbbjlv\",\"startTime\":\"2021-10-25T17:42:29Z\"},\"currentScenarioStatus\":\"rxsiyzsyiumtit\",\"currentScenarioStatusDescription\":\"ycfvernnkq\",\"groups\":[{\"groupType\":\"Boot\",\"replicationProtectedItems\":[{},{},{}],\"startGroupActions\":[{\"actionName\":\"igdrqgzetboyz\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"gnmuxp\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"wpcfmgr\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"whzbbdwrjencof\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"ii\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"wibdtpljo\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]},{\"groupType\":\"Shutdown\",\"replicationProtectedItems\":[{}],\"startGroupActions\":[{\"actionName\":\"bxxcdkhxjwtkftg\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"ljuepme\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"pgbmlbxjhgvtepvr\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"nudmakkshrna\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]}],\"providerSpecificDetails\":[{\"instanceType\":\"RecoveryPlanProviderSpecificDetails\"},{\"instanceType\":\"RecoveryPlanProviderSpecificDetails\"},{\"instanceType\":\"RecoveryPlanProviderSpecificDetails\"},{\"instanceType\":\"RecoveryPlanProviderSpecificDetails\"}]},\"location\":\"kwohdig\",\"id\":\"yuo\",\"name\":\"ftsamo\",\"type\":\"wqbak\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - RecoveryPlan response - = manager.replicationRecoveryPlans().reprotect("dq", "dawe", "gavfyihu", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("pwnyfjcypazwiimd", response.properties().friendlyName()); - Assertions.assertEquals("gkooagr", response.properties().primaryFabricId()); - Assertions.assertEquals("pamesi", response.properties().primaryFabricFriendlyName()); - Assertions.assertEquals("qadewhuwxk", response.properties().recoveryFabricId()); - Assertions.assertEquals("iatfamrnaifllxcc", response.properties().recoveryFabricFriendlyName()); - Assertions.assertEquals("kiyfo", response.properties().failoverDeploymentModel()); - Assertions.assertEquals("omy", response.properties().replicationProviders().get(0)); - Assertions.assertEquals("fquzihirqvv", response.properties().allowedOperations().get(0)); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-16T07:33:38Z"), - response.properties().lastPlannedFailoverTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-16T08:15:32Z"), - response.properties().lastUnplannedFailoverTime()); - Assertions.assertEquals(OffsetDateTime.parse("2020-12-21T05:22:34Z"), - response.properties().lastTestFailoverTime()); - Assertions.assertEquals("ssgvq", response.properties().currentScenario().scenarioName()); - Assertions.assertEquals("rxrmhrraqgbbjlv", response.properties().currentScenario().jobId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-25T17:42:29Z"), - response.properties().currentScenario().startTime()); - Assertions.assertEquals("rxsiyzsyiumtit", response.properties().currentScenarioStatus()); - Assertions.assertEquals("ycfvernnkq", response.properties().currentScenarioStatusDescription()); - Assertions.assertEquals(RecoveryPlanGroupType.BOOT, response.properties().groups().get(0).groupType()); - Assertions.assertEquals("igdrqgzetboyz", - response.properties().groups().get(0).startGroupActions().get(0).actionName()); - Assertions.assertEquals("whzbbdwrjencof", - response.properties().groups().get(0).endGroupActions().get(0).actionName()); - Assertions.assertEquals("kwohdig", response.location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansTestFailoverCleaMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansTestFailoverCleaMockTests.java deleted file mode 100644 index 2c8c6665fe27..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansTestFailoverCleaMockTests.java +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlan; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanGroupType; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanTestFailoverCleanupInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanTestFailoverCleanupInputProperties; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReplicationRecoveryPlansTestFailoverCleaMockTests { - @Test - public void testTestFailoverCleanup() throws Exception { - String responseStr - = "{\"properties\":{\"friendlyName\":\"lbiqq\",\"primaryFabricId\":\"arxknfvbsym\",\"primaryFabricFriendlyName\":\"bahdbtjm\",\"recoveryFabricId\":\"zonrklbizrxh\",\"recoveryFabricFriendlyName\":\"fvpanloqovvcxgq\",\"failoverDeploymentModel\":\"uirgopgzatucu\",\"replicationProviders\":[\"uzvyjxuxchquoqhq\",\"csksxqf\",\"lrvuvdagv\"],\"allowedOperations\":[\"d\"],\"lastPlannedFailoverTime\":\"2021-04-28T08:18:31Z\",\"lastUnplannedFailoverTime\":\"2021-02-19T21:32:29Z\",\"lastTestFailoverTime\":\"2020-12-25T04:39:30Z\",\"currentScenario\":{\"scenarioName\":\"odiijcsapqhip\",\"jobId\":\"snivnmevljbcu\",\"startTime\":\"2021-08-10T00:42:25Z\"},\"currentScenarioStatus\":\"pjf\",\"currentScenarioStatusDescription\":\"wkseodvlmd\",\"groups\":[{\"groupType\":\"Failover\",\"replicationProtectedItems\":[{},{},{}],\"startGroupActions\":[{\"actionName\":\"u\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"yg\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"bmum\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"jvvcrsmwojm\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"wcvumnrut\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]},{\"groupType\":\"Boot\",\"replicationProtectedItems\":[{}],\"startGroupActions\":[{\"actionName\":\"f\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"vltjo\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"vpkbz\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"tnowpajfhxsmu\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]}],\"providerSpecificDetails\":[{\"instanceType\":\"RecoveryPlanProviderSpecificDetails\"},{\"instanceType\":\"RecoveryPlanProviderSpecificDetails\"},{\"instanceType\":\"RecoveryPlanProviderSpecificDetails\"}]},\"location\":\"dzglmuuzpsuhsyp\",\"id\":\"muldhfr\",\"name\":\"rkqpyfjxkby\",\"type\":\"sbuqfm\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - RecoveryPlan response = manager.replicationRecoveryPlans() - .testFailoverCleanup("p", "addpxqrxipe", "rplf", - new RecoveryPlanTestFailoverCleanupInput() - .withProperties(new RecoveryPlanTestFailoverCleanupInputProperties().withComments("vmjjfz")), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("lbiqq", response.properties().friendlyName()); - Assertions.assertEquals("arxknfvbsym", response.properties().primaryFabricId()); - Assertions.assertEquals("bahdbtjm", response.properties().primaryFabricFriendlyName()); - Assertions.assertEquals("zonrklbizrxh", response.properties().recoveryFabricId()); - Assertions.assertEquals("fvpanloqovvcxgq", response.properties().recoveryFabricFriendlyName()); - Assertions.assertEquals("uirgopgzatucu", response.properties().failoverDeploymentModel()); - Assertions.assertEquals("uzvyjxuxchquoqhq", response.properties().replicationProviders().get(0)); - Assertions.assertEquals("d", response.properties().allowedOperations().get(0)); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-28T08:18:31Z"), - response.properties().lastPlannedFailoverTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-19T21:32:29Z"), - response.properties().lastUnplannedFailoverTime()); - Assertions.assertEquals(OffsetDateTime.parse("2020-12-25T04:39:30Z"), - response.properties().lastTestFailoverTime()); - Assertions.assertEquals("odiijcsapqhip", response.properties().currentScenario().scenarioName()); - Assertions.assertEquals("snivnmevljbcu", response.properties().currentScenario().jobId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-10T00:42:25Z"), - response.properties().currentScenario().startTime()); - Assertions.assertEquals("pjf", response.properties().currentScenarioStatus()); - Assertions.assertEquals("wkseodvlmd", response.properties().currentScenarioStatusDescription()); - Assertions.assertEquals(RecoveryPlanGroupType.FAILOVER, response.properties().groups().get(0).groupType()); - Assertions.assertEquals("u", response.properties().groups().get(0).startGroupActions().get(0).actionName()); - Assertions.assertEquals("yg", response.properties().groups().get(0).endGroupActions().get(0).actionName()); - Assertions.assertEquals("dzglmuuzpsuhsyp", response.location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansTestFailoverMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansTestFailoverMockTests.java deleted file mode 100644 index 3f2a80c28631..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansTestFailoverMockTests.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.PossibleOperationsDirections; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlan; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanGroupType; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanProviderSpecificFailoverInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanTestFailoverInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanTestFailoverInputProperties; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReplicationRecoveryPlansTestFailoverMockTests { - @Test - public void testTestFailover() throws Exception { - String responseStr - = "{\"properties\":{\"friendlyName\":\"pmdmwiwevves\",\"primaryFabricId\":\"hh\",\"primaryFabricFriendlyName\":\"qhdldargkwimtcce\",\"recoveryFabricId\":\"uqu\",\"recoveryFabricFriendlyName\":\"czzc\",\"failoverDeploymentModel\":\"wxvbkirgknhfw\",\"replicationProviders\":[\"wdajyd\",\"bjgipvspe\"],\"allowedOperations\":[\"hydtkbmt\",\"sd\"],\"lastPlannedFailoverTime\":\"2021-02-01T04:36:15Z\",\"lastUnplannedFailoverTime\":\"2021-10-07T22:01:48Z\",\"lastTestFailoverTime\":\"2021-11-11T09:35:50Z\",\"currentScenario\":{\"scenarioName\":\"mawo\",\"jobId\":\"cnev\",\"startTime\":\"2021-09-22T15:27:40Z\"},\"currentScenarioStatus\":\"b\",\"currentScenarioStatusDescription\":\"sclwbjgi\",\"groups\":[{\"groupType\":\"Boot\",\"replicationProtectedItems\":[{}],\"startGroupActions\":[{\"actionName\":\"weofvsxauphzefi\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"eyydx\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"gtiivzkd\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"exccwldgfq\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"mwtacrscfcn\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]},{\"groupType\":\"Failover\",\"replicationProtectedItems\":[{},{}],\"startGroupActions\":[{\"actionName\":\"llmfwfpo\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"oszzw\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]},{\"groupType\":\"Boot\",\"replicationProtectedItems\":[{}],\"startGroupActions\":[{\"actionName\":\"xvchmubyguqh\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"nmsvj\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"grpry\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"ircbajxjrbvyr\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"atxkznlwlmbx\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"gkev\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"ay\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"x\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]},{\"groupType\":\"Failover\",\"replicationProtectedItems\":[{}],\"startGroupActions\":[{\"actionName\":\"zgrgkja\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"waezplybspsbomt\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"epzimfc\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"suiwexpasckpg\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"mlyxbwslx\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]}],\"providerSpecificDetails\":[{\"instanceType\":\"RecoveryPlanProviderSpecificDetails\"},{\"instanceType\":\"RecoveryPlanProviderSpecificDetails\"},{\"instanceType\":\"RecoveryPlanProviderSpecificDetails\"}]},\"location\":\"toejtqv\",\"id\":\"ctm\",\"name\":\"idkxz\",\"type\":\"oluznt\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - RecoveryPlan response = manager.replicationRecoveryPlans() - .testFailover("vxerowuzvrnnbeg", "af", "onmtoj", - new RecoveryPlanTestFailoverInput().withProperties(new RecoveryPlanTestFailoverInputProperties() - .withFailoverDirection(PossibleOperationsDirections.PRIMARY_TO_RECOVERY) - .withNetworkType("dofmazhk") - .withNetworkId("sjknaq") - .withProviderSpecificDetails(Arrays.asList(new RecoveryPlanProviderSpecificFailoverInput(), - new RecoveryPlanProviderSpecificFailoverInput()))), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("pmdmwiwevves", response.properties().friendlyName()); - Assertions.assertEquals("hh", response.properties().primaryFabricId()); - Assertions.assertEquals("qhdldargkwimtcce", response.properties().primaryFabricFriendlyName()); - Assertions.assertEquals("uqu", response.properties().recoveryFabricId()); - Assertions.assertEquals("czzc", response.properties().recoveryFabricFriendlyName()); - Assertions.assertEquals("wxvbkirgknhfw", response.properties().failoverDeploymentModel()); - Assertions.assertEquals("wdajyd", response.properties().replicationProviders().get(0)); - Assertions.assertEquals("hydtkbmt", response.properties().allowedOperations().get(0)); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-01T04:36:15Z"), - response.properties().lastPlannedFailoverTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-07T22:01:48Z"), - response.properties().lastUnplannedFailoverTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-11T09:35:50Z"), - response.properties().lastTestFailoverTime()); - Assertions.assertEquals("mawo", response.properties().currentScenario().scenarioName()); - Assertions.assertEquals("cnev", response.properties().currentScenario().jobId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-22T15:27:40Z"), - response.properties().currentScenario().startTime()); - Assertions.assertEquals("b", response.properties().currentScenarioStatus()); - Assertions.assertEquals("sclwbjgi", response.properties().currentScenarioStatusDescription()); - Assertions.assertEquals(RecoveryPlanGroupType.BOOT, response.properties().groups().get(0).groupType()); - Assertions.assertEquals("weofvsxauphzefi", - response.properties().groups().get(0).startGroupActions().get(0).actionName()); - Assertions.assertEquals("mwtacrscfcn", - response.properties().groups().get(0).endGroupActions().get(0).actionName()); - Assertions.assertEquals("toejtqv", response.location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansUnplannedFailoverMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansUnplannedFailoverMockTests.java deleted file mode 100644 index 6bef33311493..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationRecoveryPlansUnplannedFailoverMockTests.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.PossibleOperationsDirections; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlan; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanGroupType; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanProviderSpecificFailoverInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanUnplannedFailoverInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanUnplannedFailoverInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.SourceSiteOperations; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReplicationRecoveryPlansUnplannedFailoverMockTests { - @Test - public void testUnplannedFailover() throws Exception { - String responseStr - = "{\"properties\":{\"friendlyName\":\"ikh\",\"primaryFabricId\":\"thypepxshmrd\",\"primaryFabricFriendlyName\":\"csdvkymktc\",\"recoveryFabricId\":\"ivoxgzegnglafnf\",\"recoveryFabricFriendlyName\":\"zaghddc\",\"failoverDeploymentModel\":\"wxuxor\",\"replicationProviders\":[\"uhvemgxlss\",\"lqypvwxl\"],\"allowedOperations\":[\"vrkqv\",\"vgdojcvzfcmxmjp\"],\"lastPlannedFailoverTime\":\"2021-11-18T03:57:06Z\",\"lastUnplannedFailoverTime\":\"2021-01-12T06:14:49Z\",\"lastTestFailoverTime\":\"2021-06-13T19:20:39Z\",\"currentScenario\":{\"scenarioName\":\"ocgquqx\",\"jobId\":\"xp\",\"startTime\":\"2021-08-14T00:33Z\"},\"currentScenarioStatus\":\"qniiontqikdipk\",\"currentScenarioStatusDescription\":\"qkuzabrsoihataj\",\"groups\":[{\"groupType\":\"Shutdown\",\"replicationProtectedItems\":[{},{}],\"startGroupActions\":[{\"actionName\":\"ssxylsu\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"oadoh\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"jyiehkxgfuzqqnz\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"xqds\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"ipdnl\",\"failoverTypes\":[],\"failoverDirections\":[],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]}],\"providerSpecificDetails\":[{\"instanceType\":\"RecoveryPlanProviderSpecificDetails\"},{\"instanceType\":\"RecoveryPlanProviderSpecificDetails\"},{\"instanceType\":\"RecoveryPlanProviderSpecificDetails\"},{\"instanceType\":\"RecoveryPlanProviderSpecificDetails\"}]},\"location\":\"f\",\"id\":\"pwwgzeylzp\",\"name\":\"imxacrkt\",\"type\":\"o\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - RecoveryPlan response = manager.replicationRecoveryPlans() - .unplannedFailover("bdjkmnxsggnow", "hyvdbrdvsv", "hbtyc", - new RecoveryPlanUnplannedFailoverInput() - .withProperties(new RecoveryPlanUnplannedFailoverInputProperties() - .withFailoverDirection(PossibleOperationsDirections.PRIMARY_TO_RECOVERY) - .withSourceSiteOperations(SourceSiteOperations.REQUIRED) - .withProviderSpecificDetails(Arrays.asList(new RecoveryPlanProviderSpecificFailoverInput(), - new RecoveryPlanProviderSpecificFailoverInput()))), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("ikh", response.properties().friendlyName()); - Assertions.assertEquals("thypepxshmrd", response.properties().primaryFabricId()); - Assertions.assertEquals("csdvkymktc", response.properties().primaryFabricFriendlyName()); - Assertions.assertEquals("ivoxgzegnglafnf", response.properties().recoveryFabricId()); - Assertions.assertEquals("zaghddc", response.properties().recoveryFabricFriendlyName()); - Assertions.assertEquals("wxuxor", response.properties().failoverDeploymentModel()); - Assertions.assertEquals("uhvemgxlss", response.properties().replicationProviders().get(0)); - Assertions.assertEquals("vrkqv", response.properties().allowedOperations().get(0)); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-18T03:57:06Z"), - response.properties().lastPlannedFailoverTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-12T06:14:49Z"), - response.properties().lastUnplannedFailoverTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-13T19:20:39Z"), - response.properties().lastTestFailoverTime()); - Assertions.assertEquals("ocgquqx", response.properties().currentScenario().scenarioName()); - Assertions.assertEquals("xp", response.properties().currentScenario().jobId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-14T00:33Z"), - response.properties().currentScenario().startTime()); - Assertions.assertEquals("qniiontqikdipk", response.properties().currentScenarioStatus()); - Assertions.assertEquals("qkuzabrsoihataj", response.properties().currentScenarioStatusDescription()); - Assertions.assertEquals(RecoveryPlanGroupType.SHUTDOWN, response.properties().groups().get(0).groupType()); - Assertions.assertEquals("ssxylsu", - response.properties().groups().get(0).startGroupActions().get(0).actionName()); - Assertions.assertEquals("xqds", response.properties().groups().get(0).endGroupActions().get(0).actionName()); - Assertions.assertEquals("f", response.location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationVaultSettingsCreateMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationVaultSettingsCreateMockTests.java deleted file mode 100644 index 7b25273a7720..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationVaultSettingsCreateMockTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VaultSetting; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VaultSettingCreationInputProperties; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReplicationVaultSettingsCreateMockTests { - @Test - public void testCreate() throws Exception { - String responseStr - = "{\"properties\":{\"migrationSolutionId\":\"inrufq\",\"vmwareToAzureProviderType\":\"uygasfmhb\"},\"location\":\"ewk\",\"id\":\"natxvuzccaliry\",\"name\":\"ytc\",\"type\":\"qpjohlcbn\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - VaultSetting response = manager.replicationVaultSettings() - .define("mwaxsymnrtv") - .withExistingVault("zrkrztpyay", "hxl") - .withProperties(new VaultSettingCreationInputProperties().withMigrationSolutionId("imavyotpcvpahh") - .withVmwareToAzureProviderType("vyqpvzxxzndw")) - .create(); - - Assertions.assertEquals("inrufq", response.properties().migrationSolutionId()); - Assertions.assertEquals("uygasfmhb", response.properties().vmwareToAzureProviderType()); - Assertions.assertEquals("ewk", response.location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationVaultSettingsGetWithResponseMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationVaultSettingsGetWithResponseMockTests.java deleted file mode 100644 index cfdc38fd4286..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationVaultSettingsGetWithResponseMockTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VaultSetting; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReplicationVaultSettingsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"migrationSolutionId\":\"z\",\"vmwareToAzureProviderType\":\"jebmuiong\"},\"location\":\"dwohoeashuxf\",\"id\":\"bjimzwynsmmp\",\"name\":\"vkyezwsey\",\"type\":\"oyjmjwqdslqreo\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - VaultSetting response = manager.replicationVaultSettings() - .getWithResponse("cidcfwoolkugzow", "mmixfzaupgblna", "jnpahzhpqscuyil", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("z", response.properties().migrationSolutionId()); - Assertions.assertEquals("jebmuiong", response.properties().vmwareToAzureProviderType()); - Assertions.assertEquals("dwohoeashuxf", response.location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationVaultSettingsListMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationVaultSettingsListMockTests.java deleted file mode 100644 index a9dc67f9111d..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationVaultSettingsListMockTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VaultSetting; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReplicationVaultSettingsListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"migrationSolutionId\":\"dvwojvx\",\"vmwareToAzureProviderType\":\"vhrqxrqghot\"},\"location\":\"gzickgygaw\",\"id\":\"hpwmdkyfgye\",\"name\":\"vyhvv\",\"type\":\"uqyrpubbk\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.replicationVaultSettings() - .list("jkhcoscoljjhcs", "zooefzsdttbq", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("dvwojvx", response.iterator().next().properties().migrationSolutionId()); - Assertions.assertEquals("vhrqxrqghot", response.iterator().next().properties().vmwareToAzureProviderType()); - Assertions.assertEquals("gzickgygaw", response.iterator().next().location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ResolveHealthErrorTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ResolveHealthErrorTests.java deleted file mode 100644 index 247585cc3647..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ResolveHealthErrorTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ResolveHealthError; -import org.junit.jupiter.api.Assertions; - -public final class ResolveHealthErrorTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ResolveHealthError model - = BinaryData.fromString("{\"healthErrorId\":\"txifqj\"}").toObject(ResolveHealthError.class); - Assertions.assertEquals("txifqj", model.healthErrorId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ResolveHealthError model = new ResolveHealthError().withHealthErrorId("txifqj"); - model = BinaryData.fromObject(model).toObject(ResolveHealthError.class); - Assertions.assertEquals("txifqj", model.healthErrorId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ResolveHealthInputPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ResolveHealthInputPropertiesTests.java deleted file mode 100644 index c99a24e8fb01..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ResolveHealthInputPropertiesTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ResolveHealthError; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ResolveHealthInputProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ResolveHealthInputPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ResolveHealthInputProperties model = BinaryData - .fromString("{\"healthErrors\":[{\"healthErrorId\":\"vpa\"},{\"healthErrorId\":\"sreuzvxurisjnh\"}]}") - .toObject(ResolveHealthInputProperties.class); - Assertions.assertEquals("vpa", model.healthErrors().get(0).healthErrorId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ResolveHealthInputProperties model = new ResolveHealthInputProperties() - .withHealthErrors(Arrays.asList(new ResolveHealthError().withHealthErrorId("vpa"), - new ResolveHealthError().withHealthErrorId("sreuzvxurisjnh"))); - model = BinaryData.fromObject(model).toObject(ResolveHealthInputProperties.class); - Assertions.assertEquals("vpa", model.healthErrors().get(0).healthErrorId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ResolveHealthInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ResolveHealthInputTests.java deleted file mode 100644 index 3191711f612c..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ResolveHealthInputTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ResolveHealthError; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ResolveHealthInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ResolveHealthInputProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ResolveHealthInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ResolveHealthInput model = BinaryData.fromString( - "{\"properties\":{\"healthErrors\":[{\"healthErrorId\":\"oftpipiwycz\"},{\"healthErrorId\":\"xacpqjli\"},{\"healthErrorId\":\"yuspskas\"},{\"healthErrorId\":\"lmfwdgzx\"}]}}") - .toObject(ResolveHealthInput.class); - Assertions.assertEquals("oftpipiwycz", model.properties().healthErrors().get(0).healthErrorId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ResolveHealthInput model = new ResolveHealthInput().withProperties(new ResolveHealthInputProperties() - .withHealthErrors(Arrays.asList(new ResolveHealthError().withHealthErrorId("oftpipiwycz"), - new ResolveHealthError().withHealthErrorId("xacpqjli"), - new ResolveHealthError().withHealthErrorId("yuspskas"), - new ResolveHealthError().withHealthErrorId("lmfwdgzx")))); - model = BinaryData.fromObject(model).toObject(ResolveHealthInput.class); - Assertions.assertEquals("oftpipiwycz", model.properties().healthErrors().get(0).healthErrorId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ResumeJobParamsPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ResumeJobParamsPropertiesTests.java deleted file mode 100644 index 96842d5571dd..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ResumeJobParamsPropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ResumeJobParamsProperties; -import org.junit.jupiter.api.Assertions; - -public final class ResumeJobParamsPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ResumeJobParamsProperties model - = BinaryData.fromString("{\"comments\":\"snewmozqvbub\"}").toObject(ResumeJobParamsProperties.class); - Assertions.assertEquals("snewmozqvbub", model.comments()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ResumeJobParamsProperties model = new ResumeJobParamsProperties().withComments("snewmozqvbub"); - model = BinaryData.fromObject(model).toObject(ResumeJobParamsProperties.class); - Assertions.assertEquals("snewmozqvbub", model.comments()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ResumeJobParamsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ResumeJobParamsTests.java deleted file mode 100644 index 29b0381d536b..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ResumeJobParamsTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ResumeJobParams; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ResumeJobParamsProperties; -import org.junit.jupiter.api.Assertions; - -public final class ResumeJobParamsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ResumeJobParams model - = BinaryData.fromString("{\"properties\":{\"comments\":\"hx\"}}").toObject(ResumeJobParams.class); - Assertions.assertEquals("hx", model.properties().comments()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ResumeJobParams model - = new ResumeJobParams().withProperties(new ResumeJobParamsProperties().withComments("hx")); - model = BinaryData.fromObject(model).toObject(ResumeJobParams.class); - Assertions.assertEquals("hx", model.properties().comments()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ResumeReplicationInputPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ResumeReplicationInputPropertiesTests.java deleted file mode 100644 index cf1a05995018..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ResumeReplicationInputPropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ResumeReplicationInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ResumeReplicationProviderSpecificInput; - -public final class ResumeReplicationInputPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ResumeReplicationInputProperties model = BinaryData - .fromString("{\"providerSpecificDetails\":{\"instanceType\":\"ResumeReplicationProviderSpecificInput\"}}") - .toObject(ResumeReplicationInputProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ResumeReplicationInputProperties model = new ResumeReplicationInputProperties() - .withProviderSpecificDetails(new ResumeReplicationProviderSpecificInput()); - model = BinaryData.fromObject(model).toObject(ResumeReplicationInputProperties.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ResumeReplicationInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ResumeReplicationInputTests.java deleted file mode 100644 index 41b1e07449fc..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ResumeReplicationInputTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ResumeReplicationInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ResumeReplicationInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ResumeReplicationProviderSpecificInput; - -public final class ResumeReplicationInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ResumeReplicationInput model = BinaryData.fromString( - "{\"properties\":{\"providerSpecificDetails\":{\"instanceType\":\"ResumeReplicationProviderSpecificInput\"}}}") - .toObject(ResumeReplicationInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ResumeReplicationInput model - = new ResumeReplicationInput().withProperties(new ResumeReplicationInputProperties() - .withProviderSpecificDetails(new ResumeReplicationProviderSpecificInput())); - model = BinaryData.fromObject(model).toObject(ResumeReplicationInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ResumeReplicationProviderSpecificInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ResumeReplicationProviderSpecificInputTests.java deleted file mode 100644 index d650e136aa2e..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ResumeReplicationProviderSpecificInputTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ResumeReplicationProviderSpecificInput; - -public final class ResumeReplicationProviderSpecificInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ResumeReplicationProviderSpecificInput model - = BinaryData.fromString("{\"instanceType\":\"ResumeReplicationProviderSpecificInput\"}") - .toObject(ResumeReplicationProviderSpecificInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ResumeReplicationProviderSpecificInput model = new ResumeReplicationProviderSpecificInput(); - model = BinaryData.fromObject(model).toObject(ResumeReplicationProviderSpecificInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ResyncInputPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ResyncInputPropertiesTests.java deleted file mode 100644 index fa405b2436a3..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ResyncInputPropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ResyncInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ResyncProviderSpecificInput; - -public final class ResyncInputPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ResyncInputProperties model - = BinaryData.fromString("{\"providerSpecificDetails\":{\"instanceType\":\"ResyncProviderSpecificInput\"}}") - .toObject(ResyncInputProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ResyncInputProperties model - = new ResyncInputProperties().withProviderSpecificDetails(new ResyncProviderSpecificInput()); - model = BinaryData.fromObject(model).toObject(ResyncInputProperties.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ResyncInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ResyncInputTests.java deleted file mode 100644 index aa4a59f6597b..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ResyncInputTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ResyncInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ResyncInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ResyncProviderSpecificInput; - -public final class ResyncInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ResyncInput model = BinaryData - .fromString( - "{\"properties\":{\"providerSpecificDetails\":{\"instanceType\":\"ResyncProviderSpecificInput\"}}}") - .toObject(ResyncInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ResyncInput model = new ResyncInput() - .withProperties(new ResyncInputProperties().withProviderSpecificDetails(new ResyncProviderSpecificInput())); - model = BinaryData.fromObject(model).toObject(ResyncInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ResyncProviderSpecificInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ResyncProviderSpecificInputTests.java deleted file mode 100644 index 37b0bfde6af7..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ResyncProviderSpecificInputTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ResyncProviderSpecificInput; - -public final class ResyncProviderSpecificInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ResyncProviderSpecificInput model = BinaryData.fromString("{\"instanceType\":\"ResyncProviderSpecificInput\"}") - .toObject(ResyncProviderSpecificInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ResyncProviderSpecificInput model = new ResyncProviderSpecificInput(); - model = BinaryData.fromObject(model).toObject(ResyncProviderSpecificInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RetentionVolumeTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RetentionVolumeTests.java deleted file mode 100644 index 19a1a2d04ecb..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RetentionVolumeTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RetentionVolume; -import org.junit.jupiter.api.Assertions; - -public final class RetentionVolumeTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RetentionVolume model = BinaryData.fromString( - "{\"volumeName\":\"pqsdoc\",\"capacityInBytes\":3488715345246036434,\"freeSpaceInBytes\":3180098480061688390,\"thresholdPercentage\":1205622455}") - .toObject(RetentionVolume.class); - Assertions.assertEquals("pqsdoc", model.volumeName()); - Assertions.assertEquals(3488715345246036434L, model.capacityInBytes()); - Assertions.assertEquals(3180098480061688390L, model.freeSpaceInBytes()); - Assertions.assertEquals(1205622455, model.thresholdPercentage()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RetentionVolume model = new RetentionVolume().withVolumeName("pqsdoc") - .withCapacityInBytes(3488715345246036434L) - .withFreeSpaceInBytes(3180098480061688390L) - .withThresholdPercentage(1205622455); - model = BinaryData.fromObject(model).toObject(RetentionVolume.class); - Assertions.assertEquals("pqsdoc", model.volumeName()); - Assertions.assertEquals(3488715345246036434L, model.capacityInBytes()); - Assertions.assertEquals(3180098480061688390L, model.freeSpaceInBytes()); - Assertions.assertEquals(1205622455, model.thresholdPercentage()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReverseReplicationInputPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReverseReplicationInputPropertiesTests.java deleted file mode 100644 index ed547af810d9..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReverseReplicationInputPropertiesTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReverseReplicationInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReverseReplicationProviderSpecificInput; -import org.junit.jupiter.api.Assertions; - -public final class ReverseReplicationInputPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReverseReplicationInputProperties model = BinaryData.fromString( - "{\"failoverDirection\":\"otmrfhir\",\"providerSpecificDetails\":{\"instanceType\":\"ReverseReplicationProviderSpecificInput\"}}") - .toObject(ReverseReplicationInputProperties.class); - Assertions.assertEquals("otmrfhir", model.failoverDirection()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReverseReplicationInputProperties model - = new ReverseReplicationInputProperties().withFailoverDirection("otmrfhir") - .withProviderSpecificDetails(new ReverseReplicationProviderSpecificInput()); - model = BinaryData.fromObject(model).toObject(ReverseReplicationInputProperties.class); - Assertions.assertEquals("otmrfhir", model.failoverDirection()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReverseReplicationInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReverseReplicationInputTests.java deleted file mode 100644 index 256806c9ea9b..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReverseReplicationInputTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReverseReplicationInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReverseReplicationInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReverseReplicationProviderSpecificInput; -import org.junit.jupiter.api.Assertions; - -public final class ReverseReplicationInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReverseReplicationInput model = BinaryData.fromString( - "{\"properties\":{\"failoverDirection\":\"aojfm\",\"providerSpecificDetails\":{\"instanceType\":\"ReverseReplicationProviderSpecificInput\"}}}") - .toObject(ReverseReplicationInput.class); - Assertions.assertEquals("aojfm", model.properties().failoverDirection()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReverseReplicationInput model = new ReverseReplicationInput() - .withProperties(new ReverseReplicationInputProperties().withFailoverDirection("aojfm") - .withProviderSpecificDetails(new ReverseReplicationProviderSpecificInput())); - model = BinaryData.fromObject(model).toObject(ReverseReplicationInput.class); - Assertions.assertEquals("aojfm", model.properties().failoverDirection()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReverseReplicationProviderSpecificInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReverseReplicationProviderSpecificInputTests.java deleted file mode 100644 index ae899aff3d8f..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReverseReplicationProviderSpecificInputTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReverseReplicationProviderSpecificInput; - -public final class ReverseReplicationProviderSpecificInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReverseReplicationProviderSpecificInput model - = BinaryData.fromString("{\"instanceType\":\"ReverseReplicationProviderSpecificInput\"}") - .toObject(ReverseReplicationProviderSpecificInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReverseReplicationProviderSpecificInput model = new ReverseReplicationProviderSpecificInput(); - model = BinaryData.fromObject(model).toObject(ReverseReplicationProviderSpecificInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RunAsAccountTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RunAsAccountTests.java deleted file mode 100644 index ca08eb2dcc02..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/RunAsAccountTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RunAsAccount; -import org.junit.jupiter.api.Assertions; - -public final class RunAsAccountTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RunAsAccount model = BinaryData.fromString("{\"accountId\":\"iploisjkzsoxznnt\",\"accountName\":\"kvyohpsap\"}") - .toObject(RunAsAccount.class); - Assertions.assertEquals("iploisjkzsoxznnt", model.accountId()); - Assertions.assertEquals("kvyohpsap", model.accountName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RunAsAccount model = new RunAsAccount().withAccountId("iploisjkzsoxznnt").withAccountName("kvyohpsap"); - model = BinaryData.fromObject(model).toObject(RunAsAccount.class); - Assertions.assertEquals("iploisjkzsoxznnt", model.accountId()); - Assertions.assertEquals("kvyohpsap", model.accountName()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ScriptActionTaskDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ScriptActionTaskDetailsTests.java deleted file mode 100644 index 649192d74ba6..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ScriptActionTaskDetailsTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ScriptActionTaskDetails; -import org.junit.jupiter.api.Assertions; - -public final class ScriptActionTaskDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ScriptActionTaskDetails model = BinaryData.fromString( - "{\"instanceType\":\"ScriptActionTaskDetails\",\"name\":\"pzwwytbdjzgh\",\"path\":\"mkgfmxpqkjnp\",\"output\":\"iwntotcxmmqmts\",\"isPrimarySideScript\":true}") - .toObject(ScriptActionTaskDetails.class); - Assertions.assertEquals("pzwwytbdjzgh", model.name()); - Assertions.assertEquals("mkgfmxpqkjnp", model.path()); - Assertions.assertEquals("iwntotcxmmqmts", model.output()); - Assertions.assertEquals(true, model.isPrimarySideScript()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScriptActionTaskDetails model = new ScriptActionTaskDetails().withName("pzwwytbdjzgh") - .withPath("mkgfmxpqkjnp") - .withOutput("iwntotcxmmqmts") - .withIsPrimarySideScript(true); - model = BinaryData.fromObject(model).toObject(ScriptActionTaskDetails.class); - Assertions.assertEquals("pzwwytbdjzgh", model.name()); - Assertions.assertEquals("mkgfmxpqkjnp", model.path()); - Assertions.assertEquals("iwntotcxmmqmts", model.output()); - Assertions.assertEquals(true, model.isPrimarySideScript()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageAccountCustomDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageAccountCustomDetailsTests.java deleted file mode 100644 index c33ef504b09a..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageAccountCustomDetailsTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.StorageAccountCustomDetails; - -public final class StorageAccountCustomDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - StorageAccountCustomDetails model = BinaryData.fromString("{\"resourceType\":\"StorageAccountCustomDetails\"}") - .toObject(StorageAccountCustomDetails.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - StorageAccountCustomDetails model = new StorageAccountCustomDetails(); - model = BinaryData.fromObject(model).toObject(StorageAccountCustomDetails.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationCollectionTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationCollectionTests.java deleted file mode 100644 index 2f8a4950330d..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationCollectionTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.StorageClassificationInner; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.StorageClassificationCollection; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.StorageClassificationProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class StorageClassificationCollectionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - StorageClassificationCollection model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"friendlyName\":\"zjcjbtr\"},\"location\":\"ehvvib\",\"id\":\"xjjs\",\"name\":\"oqbeitpkxzt\",\"type\":\"oobklftidgfcwq\"}],\"nextLink\":\"imaq\"}") - .toObject(StorageClassificationCollection.class); - Assertions.assertEquals("zjcjbtr", model.value().get(0).properties().friendlyName()); - Assertions.assertEquals("ehvvib", model.value().get(0).location()); - Assertions.assertEquals("imaq", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - StorageClassificationCollection model - = new StorageClassificationCollection().withValue(Arrays.asList(new StorageClassificationInner() - .withProperties(new StorageClassificationProperties().withFriendlyName("zjcjbtr")) - .withLocation("ehvvib"))).withNextLink("imaq"); - model = BinaryData.fromObject(model).toObject(StorageClassificationCollection.class); - Assertions.assertEquals("zjcjbtr", model.value().get(0).properties().friendlyName()); - Assertions.assertEquals("ehvvib", model.value().get(0).location()); - Assertions.assertEquals("imaq", model.nextLink()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationInnerTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationInnerTests.java deleted file mode 100644 index a5c670689474..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationInnerTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.StorageClassificationInner; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.StorageClassificationProperties; -import org.junit.jupiter.api.Assertions; - -public final class StorageClassificationInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - StorageClassificationInner model = BinaryData.fromString( - "{\"properties\":{\"friendlyName\":\"em\"},\"location\":\"h\",\"id\":\"hujswtwkozzwcul\",\"name\":\"bawpfajnjwltlwt\",\"type\":\"j\"}") - .toObject(StorageClassificationInner.class); - Assertions.assertEquals("em", model.properties().friendlyName()); - Assertions.assertEquals("h", model.location()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - StorageClassificationInner model = new StorageClassificationInner() - .withProperties(new StorageClassificationProperties().withFriendlyName("em")) - .withLocation("h"); - model = BinaryData.fromObject(model).toObject(StorageClassificationInner.class); - Assertions.assertEquals("em", model.properties().friendlyName()); - Assertions.assertEquals("h", model.location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingCollectionTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingCollectionTests.java deleted file mode 100644 index 81b5db0d4094..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingCollectionTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.StorageClassificationMappingInner; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.StorageClassificationMappingCollection; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.StorageClassificationMappingProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class StorageClassificationMappingCollectionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - StorageClassificationMappingCollection model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"targetStorageClassificationId\":\"mlnwiaaomylweazu\"},\"location\":\"sethwwn\",\"id\":\"jhlfzswpchwahf\",\"name\":\"ousnfepgfewe\",\"type\":\"wlyxgncxyk\"},{\"properties\":{\"targetStorageClassificationId\":\"jhlimmbcxfhbcpo\"},\"location\":\"vxcjzhqizxfpxtgq\",\"id\":\"cja\",\"name\":\"ftjuh\",\"type\":\"qaz\"}],\"nextLink\":\"tgguwpijrajcivmm\"}") - .toObject(StorageClassificationMappingCollection.class); - Assertions.assertEquals("mlnwiaaomylweazu", model.value().get(0).properties().targetStorageClassificationId()); - Assertions.assertEquals("sethwwn", model.value().get(0).location()); - Assertions.assertEquals("tgguwpijrajcivmm", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - StorageClassificationMappingCollection model - = new StorageClassificationMappingCollection().withValue(Arrays.asList( - new StorageClassificationMappingInner() - .withProperties(new StorageClassificationMappingProperties() - .withTargetStorageClassificationId("mlnwiaaomylweazu")) - .withLocation("sethwwn"), - new StorageClassificationMappingInner() - .withProperties(new StorageClassificationMappingProperties() - .withTargetStorageClassificationId("jhlimmbcxfhbcpo")) - .withLocation("vxcjzhqizxfpxtgq"))) - .withNextLink("tgguwpijrajcivmm"); - model = BinaryData.fromObject(model).toObject(StorageClassificationMappingCollection.class); - Assertions.assertEquals("mlnwiaaomylweazu", model.value().get(0).properties().targetStorageClassificationId()); - Assertions.assertEquals("sethwwn", model.value().get(0).location()); - Assertions.assertEquals("tgguwpijrajcivmm", model.nextLink()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingInnerTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingInnerTests.java deleted file mode 100644 index 3e7845a9f549..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingInnerTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.StorageClassificationMappingInner; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.StorageClassificationMappingProperties; -import org.junit.jupiter.api.Assertions; - -public final class StorageClassificationMappingInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - StorageClassificationMappingInner model = BinaryData.fromString( - "{\"properties\":{\"targetStorageClassificationId\":\"cf\"},\"location\":\"rxgkne\",\"id\":\"vyi\",\"name\":\"zqodfvpgshox\",\"type\":\"sgbpfgzdjtx\"}") - .toObject(StorageClassificationMappingInner.class); - Assertions.assertEquals("cf", model.properties().targetStorageClassificationId()); - Assertions.assertEquals("rxgkne", model.location()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - StorageClassificationMappingInner model = new StorageClassificationMappingInner() - .withProperties(new StorageClassificationMappingProperties().withTargetStorageClassificationId("cf")) - .withLocation("rxgkne"); - model = BinaryData.fromObject(model).toObject(StorageClassificationMappingInner.class); - Assertions.assertEquals("cf", model.properties().targetStorageClassificationId()); - Assertions.assertEquals("rxgkne", model.location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingInputTests.java deleted file mode 100644 index d3d19ccbf024..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingInputTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.StorageClassificationMappingInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.StorageMappingInputProperties; -import org.junit.jupiter.api.Assertions; - -public final class StorageClassificationMappingInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - StorageClassificationMappingInput model - = BinaryData.fromString("{\"properties\":{\"targetStorageClassificationId\":\"a\"}}") - .toObject(StorageClassificationMappingInput.class); - Assertions.assertEquals("a", model.properties().targetStorageClassificationId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - StorageClassificationMappingInput model = new StorageClassificationMappingInput() - .withProperties(new StorageMappingInputProperties().withTargetStorageClassificationId("a")); - model = BinaryData.fromObject(model).toObject(StorageClassificationMappingInput.class); - Assertions.assertEquals("a", model.properties().targetStorageClassificationId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingPropertiesTests.java deleted file mode 100644 index 07d2847db521..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingPropertiesTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.StorageClassificationMappingProperties; -import org.junit.jupiter.api.Assertions; - -public final class StorageClassificationMappingPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - StorageClassificationMappingProperties model - = BinaryData.fromString("{\"targetStorageClassificationId\":\"flbqvgaq\"}") - .toObject(StorageClassificationMappingProperties.class); - Assertions.assertEquals("flbqvgaq", model.targetStorageClassificationId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - StorageClassificationMappingProperties model - = new StorageClassificationMappingProperties().withTargetStorageClassificationId("flbqvgaq"); - model = BinaryData.fromObject(model).toObject(StorageClassificationMappingProperties.class); - Assertions.assertEquals("flbqvgaq", model.targetStorageClassificationId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingsCreateMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingsCreateMockTests.java deleted file mode 100644 index 57ca6b9ce0ac..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingsCreateMockTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.StorageClassificationMapping; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.StorageMappingInputProperties; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class StorageClassificationMappingsCreateMockTests { - @Test - public void testCreate() throws Exception { - String responseStr - = "{\"properties\":{\"targetStorageClassificationId\":\"shoxfzzjd\"},\"location\":\"pbusxy\",\"id\":\"gozwplxzgzumno\",\"name\":\"iixkkbygbgiqkw\",\"type\":\"shy\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - StorageClassificationMapping response = manager.storageClassificationMappings() - .define("k") - .withExistingReplicationStorageClassification("wn", "wckzeb", "bvwdxgyypmxq", "lmlnxrcatkuh") - .withProperties(new StorageMappingInputProperties().withTargetStorageClassificationId("kvvii")) - .create(); - - Assertions.assertEquals("shoxfzzjd", response.properties().targetStorageClassificationId()); - Assertions.assertEquals("pbusxy", response.location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingsGetWithRespMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingsGetWithRespMockTests.java deleted file mode 100644 index 984bd000fdc2..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingsGetWithRespMockTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.StorageClassificationMapping; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class StorageClassificationMappingsGetWithRespMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"targetStorageClassificationId\":\"sxaqqjhdfhfa\"},\"location\":\"qnjcsbozvcdqwssy\",\"id\":\"vwr\",\"name\":\"bivyw\",\"type\":\"tjnjuvtz\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - StorageClassificationMapping response = manager.storageClassificationMappings() - .getWithResponse("sobggva", "crqaxlmbrtvtgolm", "p", "gtla", "yxhxj", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("sxaqqjhdfhfa", response.properties().targetStorageClassificationId()); - Assertions.assertEquals("qnjcsbozvcdqwssy", response.location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingsListByRepliMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingsListByRepliMockTests.java deleted file mode 100644 index c6e3d5047840..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingsListByRepliMockTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.StorageClassificationMapping; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class StorageClassificationMappingsListByRepliMockTests { - @Test - public void testListByReplicationStorageClassifications() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"targetStorageClassificationId\":\"wgiitvjcmimbms\"},\"location\":\"kbbbjoypplod\",\"id\":\"qr\",\"name\":\"kp\",\"type\":\"zf\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.storageClassificationMappings() - .listByReplicationStorageClassifications("ijtickzovguzp", "pxhhboigzxkop", "lrzhtocjzfppexu", "atzw", - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("wgiitvjcmimbms", - response.iterator().next().properties().targetStorageClassificationId()); - Assertions.assertEquals("kbbbjoypplod", response.iterator().next().location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingsListMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingsListMockTests.java deleted file mode 100644 index 465caef2b99a..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingsListMockTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.StorageClassificationMapping; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class StorageClassificationMappingsListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"targetStorageClassificationId\":\"fdz\"},\"location\":\"npbdrcibjxnnnoz\",\"id\":\"nhvdtuoam\",\"name\":\"obqehspshti\",\"type\":\"yzfeoctrz\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.storageClassificationMappings().list("j", "dlxbaeyocpkv", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("fdz", response.iterator().next().properties().targetStorageClassificationId()); - Assertions.assertEquals("npbdrcibjxnnnoz", response.iterator().next().location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationPropertiesTests.java deleted file mode 100644 index 124da9f2c6b0..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationPropertiesTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.StorageClassificationProperties; -import org.junit.jupiter.api.Assertions; - -public final class StorageClassificationPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - StorageClassificationProperties model = BinaryData.fromString("{\"friendlyName\":\"ktalhsnvkcdmxz\"}") - .toObject(StorageClassificationProperties.class); - Assertions.assertEquals("ktalhsnvkcdmxz", model.friendlyName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - StorageClassificationProperties model - = new StorageClassificationProperties().withFriendlyName("ktalhsnvkcdmxz"); - model = BinaryData.fromObject(model).toObject(StorageClassificationProperties.class); - Assertions.assertEquals("ktalhsnvkcdmxz", model.friendlyName()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationsGetWithResponseMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationsGetWithResponseMockTests.java deleted file mode 100644 index 188d3acee177..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationsGetWithResponseMockTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.StorageClassification; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class StorageClassificationsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"friendlyName\":\"ewltono\"},\"location\":\"femiwfhhawbabhz\",\"id\":\"fcdi\",\"name\":\"qnxyd\",\"type\":\"zfoi\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - StorageClassification response = manager.storageClassifications() - .getWithResponse("i", "wonkrnizdxywabki", "ni", "aptgvnaqyjukka", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("ewltono", response.properties().friendlyName()); - Assertions.assertEquals("femiwfhhawbabhz", response.location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationsListByReplicationFMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationsListByReplicationFMockTests.java deleted file mode 100644 index 0de587bc6cc8..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationsListByReplicationFMockTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.StorageClassification; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class StorageClassificationsListByReplicationFMockTests { - @Test - public void testListByReplicationFabrics() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"friendlyName\":\"wh\"},\"location\":\"vidsssfzsgzgu\",\"id\":\"pejomeqgxhwisp\",\"name\":\"ogdblwjsbaqxaxt\",\"type\":\"xirppbiichlygkv\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.storageClassifications() - .listByReplicationFabrics("bngzldvvd", "optythctoxo", "pmq", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("wh", response.iterator().next().properties().friendlyName()); - Assertions.assertEquals("vidsssfzsgzgu", response.iterator().next().location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationsListMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationsListMockTests.java deleted file mode 100644 index 4a54684e60df..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationsListMockTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.StorageClassification; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class StorageClassificationsListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"friendlyName\":\"qavouymkde\"},\"location\":\"xlvzpfdka\",\"id\":\"gbiwpgopqlktthb\",\"name\":\"rrmtrxgjmpdvrjz\",\"type\":\"awpewajccsdjuzm\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.storageClassifications() - .list("zsuspaywvslq", "ronzeafkxfmuwdb", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("qavouymkde", response.iterator().next().properties().friendlyName()); - Assertions.assertEquals("xlvzpfdka", response.iterator().next().location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageMappingInputPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageMappingInputPropertiesTests.java deleted file mode 100644 index 1fa329c72b0f..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageMappingInputPropertiesTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.StorageMappingInputProperties; -import org.junit.jupiter.api.Assertions; - -public final class StorageMappingInputPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - StorageMappingInputProperties model - = BinaryData.fromString("{\"targetStorageClassificationId\":\"qusrdvetnws\"}") - .toObject(StorageMappingInputProperties.class); - Assertions.assertEquals("qusrdvetnws", model.targetStorageClassificationId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - StorageMappingInputProperties model - = new StorageMappingInputProperties().withTargetStorageClassificationId("qusrdvetnws"); - model = BinaryData.fromObject(model).toObject(StorageMappingInputProperties.class); - Assertions.assertEquals("qusrdvetnws", model.targetStorageClassificationId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/SubnetTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/SubnetTests.java deleted file mode 100644 index 029ac64094a2..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/SubnetTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.Subnet; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class SubnetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Subnet model = BinaryData.fromString( - "{\"name\":\"fhyhltrpmopjmcma\",\"friendlyName\":\"okth\",\"addressList\":[\"uaodsfcpk\",\"xodpuozmyzydagfu\"]}") - .toObject(Subnet.class); - Assertions.assertEquals("fhyhltrpmopjmcma", model.name()); - Assertions.assertEquals("okth", model.friendlyName()); - Assertions.assertEquals("uaodsfcpk", model.addressList().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Subnet model = new Subnet().withName("fhyhltrpmopjmcma") - .withFriendlyName("okth") - .withAddressList(Arrays.asList("uaodsfcpk", "xodpuozmyzydagfu")); - model = BinaryData.fromObject(model).toObject(Subnet.class); - Assertions.assertEquals("fhyhltrpmopjmcma", model.name()); - Assertions.assertEquals("okth", model.friendlyName()); - Assertions.assertEquals("uaodsfcpk", model.addressList().get(0)); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/SupportedOSDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/SupportedOSDetailsTests.java deleted file mode 100644 index a3f338238a61..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/SupportedOSDetailsTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.OSVersionWrapper; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.SupportedOSDetails; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class SupportedOSDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SupportedOSDetails model = BinaryData.fromString( - "{\"osName\":\"izfavkjzwf\",\"osType\":\"yay\",\"osVersions\":[{\"version\":\"zs\",\"servicePack\":\"wxrzxmdewsrsxkrp\"},{\"version\":\"jazejwwviyoyp\",\"servicePack\":\"hbrnnhjx\"}]}") - .toObject(SupportedOSDetails.class); - Assertions.assertEquals("izfavkjzwf", model.osName()); - Assertions.assertEquals("yay", model.osType()); - Assertions.assertEquals("zs", model.osVersions().get(0).version()); - Assertions.assertEquals("wxrzxmdewsrsxkrp", model.osVersions().get(0).servicePack()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SupportedOSDetails model = new SupportedOSDetails().withOsName("izfavkjzwf") - .withOsType("yay") - .withOsVersions(Arrays.asList(new OSVersionWrapper().withVersion("zs").withServicePack("wxrzxmdewsrsxkrp"), - new OSVersionWrapper().withVersion("jazejwwviyoyp").withServicePack("hbrnnhjx"))); - model = BinaryData.fromObject(model).toObject(SupportedOSDetails.class); - Assertions.assertEquals("izfavkjzwf", model.osName()); - Assertions.assertEquals("yay", model.osType()); - Assertions.assertEquals("zs", model.osVersions().get(0).version()); - Assertions.assertEquals("wxrzxmdewsrsxkrp", model.osVersions().get(0).servicePack()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/SupportedOSPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/SupportedOSPropertiesTests.java deleted file mode 100644 index 9f5359791b6e..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/SupportedOSPropertiesTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.OSVersionWrapper; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.SupportedOSDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.SupportedOSProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.SupportedOSProperty; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class SupportedOSPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SupportedOSProperties model = BinaryData.fromString( - "{\"supportedOsList\":[{\"instanceType\":\"uuipldq\",\"supportedOs\":[{\"osName\":\"kva\",\"osType\":\"l\",\"osVersions\":[{}]},{\"osName\":\"vqyvwehtaemxhzz\",\"osType\":\"ev\",\"osVersions\":[{},{}]}]}]}") - .toObject(SupportedOSProperties.class); - Assertions.assertEquals("uuipldq", model.supportedOsList().get(0).instanceType()); - Assertions.assertEquals("kva", model.supportedOsList().get(0).supportedOs().get(0).osName()); - Assertions.assertEquals("l", model.supportedOsList().get(0).supportedOs().get(0).osType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SupportedOSProperties model = new SupportedOSProperties() - .withSupportedOsList(Arrays.asList(new SupportedOSProperty().withInstanceType("uuipldq") - .withSupportedOs(Arrays.asList( - new SupportedOSDetails().withOsName("kva") - .withOsType("l") - .withOsVersions(Arrays.asList(new OSVersionWrapper())), - new SupportedOSDetails().withOsName("vqyvwehtaemxhzz") - .withOsType("ev") - .withOsVersions(Arrays.asList(new OSVersionWrapper(), new OSVersionWrapper())))))); - model = BinaryData.fromObject(model).toObject(SupportedOSProperties.class); - Assertions.assertEquals("uuipldq", model.supportedOsList().get(0).instanceType()); - Assertions.assertEquals("kva", model.supportedOsList().get(0).supportedOs().get(0).osName()); - Assertions.assertEquals("l", model.supportedOsList().get(0).supportedOs().get(0).osType()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/SupportedOSPropertyTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/SupportedOSPropertyTests.java deleted file mode 100644 index c6050a24735d..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/SupportedOSPropertyTests.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.OSVersionWrapper; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.SupportedOSDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.SupportedOSProperty; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class SupportedOSPropertyTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SupportedOSProperty model = BinaryData.fromString( - "{\"instanceType\":\"vzrrryveimi\",\"supportedOs\":[{\"osName\":\"yzatvfuzkaft\",\"osType\":\"vru\",\"osVersions\":[{\"version\":\"syeipqd\",\"servicePack\":\"jtgrqgdgkkileplk\"},{\"version\":\"mknhwtbbaedor\",\"servicePack\":\"mqfl\"},{\"version\":\"gbdg\",\"servicePack\":\"mgxdgdhpabgd\"},{\"version\":\"jddvjsaqw\",\"servicePack\":\"mmwllc\"}]},{\"osName\":\"srsxaptefh\",\"osType\":\"cgjokjljnhvlq\",\"osVersions\":[{\"version\":\"peeksnbksdqhjv\",\"servicePack\":\"lxeslkhh\"}]},{\"osName\":\"tcpoqma\",\"osType\":\"wqjwgok\",\"osVersions\":[{\"version\":\"jj\",\"servicePack\":\"ybwfdbkjb\"},{\"version\":\"ensvkzykjtj\",\"servicePack\":\"sxfwushcdp\"},{\"version\":\"pn\",\"servicePack\":\"mgjfbpkuwxeoio\"}]}]}") - .toObject(SupportedOSProperty.class); - Assertions.assertEquals("vzrrryveimi", model.instanceType()); - Assertions.assertEquals("yzatvfuzkaft", model.supportedOs().get(0).osName()); - Assertions.assertEquals("vru", model.supportedOs().get(0).osType()); - Assertions.assertEquals("syeipqd", model.supportedOs().get(0).osVersions().get(0).version()); - Assertions.assertEquals("jtgrqgdgkkileplk", model.supportedOs().get(0).osVersions().get(0).servicePack()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SupportedOSProperty model - = new SupportedOSProperty().withInstanceType("vzrrryveimi") - .withSupportedOs(Arrays.asList( - new SupportedOSDetails().withOsName("yzatvfuzkaft") - .withOsType("vru") - .withOsVersions(Arrays.asList( - new OSVersionWrapper().withVersion("syeipqd").withServicePack("jtgrqgdgkkileplk"), - new OSVersionWrapper().withVersion("mknhwtbbaedor").withServicePack("mqfl"), - new OSVersionWrapper().withVersion("gbdg").withServicePack("mgxdgdhpabgd"), - new OSVersionWrapper().withVersion("jddvjsaqw").withServicePack("mmwllc"))), - new SupportedOSDetails().withOsName("srsxaptefh") - .withOsType("cgjokjljnhvlq") - .withOsVersions(Arrays - .asList(new OSVersionWrapper().withVersion("peeksnbksdqhjv").withServicePack("lxeslkhh"))), - new SupportedOSDetails().withOsName("tcpoqma") - .withOsType("wqjwgok") - .withOsVersions( - Arrays.asList(new OSVersionWrapper().withVersion("jj").withServicePack("ybwfdbkjb"), - new OSVersionWrapper().withVersion("ensvkzykjtj").withServicePack("sxfwushcdp"), - new OSVersionWrapper().withVersion("pn").withServicePack("mgjfbpkuwxeoio"))))); - model = BinaryData.fromObject(model).toObject(SupportedOSProperty.class); - Assertions.assertEquals("vzrrryveimi", model.instanceType()); - Assertions.assertEquals("yzatvfuzkaft", model.supportedOs().get(0).osName()); - Assertions.assertEquals("vru", model.supportedOs().get(0).osType()); - Assertions.assertEquals("syeipqd", model.supportedOs().get(0).osVersions().get(0).version()); - Assertions.assertEquals("jtgrqgdgkkileplk", model.supportedOs().get(0).osVersions().get(0).servicePack()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/SupportedOperatingSystemsInnerTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/SupportedOperatingSystemsInnerTests.java deleted file mode 100644 index c8376a34c04a..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/SupportedOperatingSystemsInnerTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.SupportedOperatingSystemsInner; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.OSVersionWrapper; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.SupportedOSDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.SupportedOSProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.SupportedOSProperty; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class SupportedOperatingSystemsInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SupportedOperatingSystemsInner model = BinaryData.fromString( - "{\"properties\":{\"supportedOsList\":[{\"instanceType\":\"tdacarvvlfn\",\"supportedOs\":[{\"osName\":\"poi\",\"osType\":\"naz\",\"osVersions\":[{},{},{}]}]}]},\"location\":\"zrsq\",\"id\":\"lsxkd\",\"name\":\"wqapfgsdp\",\"type\":\"vessm\"}") - .toObject(SupportedOperatingSystemsInner.class); - Assertions.assertEquals("tdacarvvlfn", model.properties().supportedOsList().get(0).instanceType()); - Assertions.assertEquals("poi", model.properties().supportedOsList().get(0).supportedOs().get(0).osName()); - Assertions.assertEquals("naz", model.properties().supportedOsList().get(0).supportedOs().get(0).osType()); - Assertions.assertEquals("zrsq", model.location()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SupportedOperatingSystemsInner model - = new SupportedOperatingSystemsInner() - .withProperties( - new SupportedOSProperties() - .withSupportedOsList( - Arrays - .asList( - new SupportedOSProperty().withInstanceType("tdacarvvlfn") - .withSupportedOs(Arrays.asList(new SupportedOSDetails().withOsName("poi") - .withOsType("naz") - .withOsVersions(Arrays.asList(new OSVersionWrapper(), - new OSVersionWrapper(), new OSVersionWrapper()))))))) - .withLocation("zrsq"); - model = BinaryData.fromObject(model).toObject(SupportedOperatingSystemsInner.class); - Assertions.assertEquals("tdacarvvlfn", model.properties().supportedOsList().get(0).instanceType()); - Assertions.assertEquals("poi", model.properties().supportedOsList().get(0).supportedOs().get(0).osName()); - Assertions.assertEquals("naz", model.properties().supportedOsList().get(0).supportedOs().get(0).osType()); - Assertions.assertEquals("zrsq", model.location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/SupportedOperatingSystemsOperationsGetWiMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/SupportedOperatingSystemsOperationsGetWiMockTests.java deleted file mode 100644 index 8adc36e0e0f2..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/SupportedOperatingSystemsOperationsGetWiMockTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.SupportedOperatingSystems; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class SupportedOperatingSystemsOperationsGetWiMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"supportedOsList\":[{\"instanceType\":\"hpi\",\"supportedOs\":[{},{},{},{}]},{\"instanceType\":\"fxhvnodqqz\",\"supportedOs\":[{}]},{\"instanceType\":\"roswnfq\",\"supportedOs\":[{},{},{},{}]}]},\"location\":\"sxfrwvlyp\",\"id\":\"tusk\",\"name\":\"nc\",\"type\":\"ocl\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - SupportedOperatingSystems response = manager.supportedOperatingSystemsOperations() - .getWithResponse("htekxnvkdvc", "owrdtd", "ddwzdlbbcztamky", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("hpi", response.properties().supportedOsList().get(0).instanceType()); - Assertions.assertEquals("sxfrwvlyp", response.location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/SwitchProtectionInputPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/SwitchProtectionInputPropertiesTests.java deleted file mode 100644 index 380be053ae1c..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/SwitchProtectionInputPropertiesTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.SwitchProtectionInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.SwitchProtectionProviderSpecificInput; -import org.junit.jupiter.api.Assertions; - -public final class SwitchProtectionInputPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SwitchProtectionInputProperties model = BinaryData.fromString( - "{\"replicationProtectedItemName\":\"onbzoggculapzwy\",\"providerSpecificDetails\":{\"instanceType\":\"SwitchProtectionProviderSpecificInput\"}}") - .toObject(SwitchProtectionInputProperties.class); - Assertions.assertEquals("onbzoggculapzwy", model.replicationProtectedItemName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SwitchProtectionInputProperties model - = new SwitchProtectionInputProperties().withReplicationProtectedItemName("onbzoggculapzwy") - .withProviderSpecificDetails(new SwitchProtectionProviderSpecificInput()); - model = BinaryData.fromObject(model).toObject(SwitchProtectionInputProperties.class); - Assertions.assertEquals("onbzoggculapzwy", model.replicationProtectedItemName()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/SwitchProtectionInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/SwitchProtectionInputTests.java deleted file mode 100644 index 13523ef32904..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/SwitchProtectionInputTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.SwitchProtectionInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.SwitchProtectionInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.SwitchProtectionProviderSpecificInput; -import org.junit.jupiter.api.Assertions; - -public final class SwitchProtectionInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SwitchProtectionInput model = BinaryData.fromString( - "{\"properties\":{\"replicationProtectedItemName\":\"eivsiykzkdnc\",\"providerSpecificDetails\":{\"instanceType\":\"SwitchProtectionProviderSpecificInput\"}}}") - .toObject(SwitchProtectionInput.class); - Assertions.assertEquals("eivsiykzkdnc", model.properties().replicationProtectedItemName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SwitchProtectionInput model = new SwitchProtectionInput() - .withProperties(new SwitchProtectionInputProperties().withReplicationProtectedItemName("eivsiykzkdnc") - .withProviderSpecificDetails(new SwitchProtectionProviderSpecificInput())); - model = BinaryData.fromObject(model).toObject(SwitchProtectionInput.class); - Assertions.assertEquals("eivsiykzkdnc", model.properties().replicationProtectedItemName()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/SwitchProtectionJobDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/SwitchProtectionJobDetailsTests.java deleted file mode 100644 index 92a93410ad9b..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/SwitchProtectionJobDetailsTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.SwitchProtectionJobDetails; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SwitchProtectionJobDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SwitchProtectionJobDetails model = BinaryData.fromString( - "{\"instanceType\":\"SwitchProtectionJobDetails\",\"newReplicationProtectedItemId\":\"rexw\",\"affectedObjectDetails\":{\"ubheeggzgrnqtl\":\"bexfted\",\"gjq\":\"ozuumr\"}}") - .toObject(SwitchProtectionJobDetails.class); - Assertions.assertEquals("bexfted", model.affectedObjectDetails().get("ubheeggzgrnqtl")); - Assertions.assertEquals("rexw", model.newReplicationProtectedItemId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SwitchProtectionJobDetails model = new SwitchProtectionJobDetails() - .withAffectedObjectDetails(mapOf("ubheeggzgrnqtl", "bexfted", "gjq", "ozuumr")) - .withNewReplicationProtectedItemId("rexw"); - model = BinaryData.fromObject(model).toObject(SwitchProtectionJobDetails.class); - Assertions.assertEquals("bexfted", model.affectedObjectDetails().get("ubheeggzgrnqtl")); - Assertions.assertEquals("rexw", model.newReplicationProtectedItemId()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/SwitchProtectionProviderSpecificInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/SwitchProtectionProviderSpecificInputTests.java deleted file mode 100644 index 40b1d1ed74a8..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/SwitchProtectionProviderSpecificInputTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.SwitchProtectionProviderSpecificInput; - -public final class SwitchProtectionProviderSpecificInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SwitchProtectionProviderSpecificInput model - = BinaryData.fromString("{\"instanceType\":\"SwitchProtectionProviderSpecificInput\"}") - .toObject(SwitchProtectionProviderSpecificInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SwitchProtectionProviderSpecificInput model = new SwitchProtectionProviderSpecificInput(); - model = BinaryData.fromObject(model).toObject(SwitchProtectionProviderSpecificInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/SwitchProviderInputPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/SwitchProviderInputPropertiesTests.java deleted file mode 100644 index 8a87c8e289c1..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/SwitchProviderInputPropertiesTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.SwitchProviderInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.SwitchProviderSpecificInput; -import org.junit.jupiter.api.Assertions; - -public final class SwitchProviderInputPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SwitchProviderInputProperties model = BinaryData.fromString( - "{\"targetInstanceType\":\"trgjupauutpwoqh\",\"providerSpecificDetails\":{\"instanceType\":\"SwitchProviderSpecificInput\"}}") - .toObject(SwitchProviderInputProperties.class); - Assertions.assertEquals("trgjupauutpwoqh", model.targetInstanceType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SwitchProviderInputProperties model - = new SwitchProviderInputProperties().withTargetInstanceType("trgjupauutpwoqh") - .withProviderSpecificDetails(new SwitchProviderSpecificInput()); - model = BinaryData.fromObject(model).toObject(SwitchProviderInputProperties.class); - Assertions.assertEquals("trgjupauutpwoqh", model.targetInstanceType()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/SwitchProviderInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/SwitchProviderInputTests.java deleted file mode 100644 index 98bf5fe51618..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/SwitchProviderInputTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.SwitchProviderInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.SwitchProviderInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.SwitchProviderSpecificInput; -import org.junit.jupiter.api.Assertions; - -public final class SwitchProviderInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SwitchProviderInput model = BinaryData.fromString( - "{\"properties\":{\"targetInstanceType\":\"mrhublwpc\",\"providerSpecificDetails\":{\"instanceType\":\"SwitchProviderSpecificInput\"}}}") - .toObject(SwitchProviderInput.class); - Assertions.assertEquals("mrhublwpc", model.properties().targetInstanceType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SwitchProviderInput model = new SwitchProviderInput() - .withProperties(new SwitchProviderInputProperties().withTargetInstanceType("mrhublwpc") - .withProviderSpecificDetails(new SwitchProviderSpecificInput())); - model = BinaryData.fromObject(model).toObject(SwitchProviderInput.class); - Assertions.assertEquals("mrhublwpc", model.properties().targetInstanceType()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/SwitchProviderSpecificInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/SwitchProviderSpecificInputTests.java deleted file mode 100644 index 21db15d8642b..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/SwitchProviderSpecificInputTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.SwitchProviderSpecificInput; - -public final class SwitchProviderSpecificInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SwitchProviderSpecificInput model = BinaryData.fromString("{\"instanceType\":\"SwitchProviderSpecificInput\"}") - .toObject(SwitchProviderSpecificInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SwitchProviderSpecificInput model = new SwitchProviderSpecificInput(); - model = BinaryData.fromObject(model).toObject(SwitchProviderSpecificInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TargetComputeSizeCollectionTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TargetComputeSizeCollectionTests.java deleted file mode 100644 index 5fb94f7d7e7a..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TargetComputeSizeCollectionTests.java +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.TargetComputeSizeInner; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ComputeSizeErrorDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.TargetComputeSizeCollection; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.TargetComputeSizeProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class TargetComputeSizeCollectionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TargetComputeSizeCollection model = BinaryData.fromString( - "{\"value\":[{\"id\":\"g\",\"name\":\"pnfqntcyp\",\"type\":\"jv\",\"properties\":{\"name\":\"mwks\",\"friendlyName\":\"rcizjxvyd\",\"cpuCoresCount\":1161175344,\"vCPUsAvailable\":1238865212,\"memoryInGB\":62.392147891228966,\"maxDataDiskCount\":733359450,\"maxNicsCount\":788840144,\"errors\":[{\"message\":\"umrtwnawjsl\",\"severity\":\"wkojgcyztsfmzn\"},{\"message\":\"eqphchqnrnr\",\"severity\":\"ehuwrykqgaifmvik\"},{\"message\":\"ydv\",\"severity\":\"bejdznxcv\"},{\"message\":\"rhnj\",\"severity\":\"olvtnovqfzge\"}],\"highIopsSupported\":\"dftuljltduce\",\"hyperVGenerations\":[\"mczuo\",\"ejwcwwqiok\",\"ssxmojms\",\"p\"]}},{\"id\":\"prvkwcfzqljyxgtc\",\"name\":\"eydbsd\",\"type\":\"m\",\"properties\":{\"name\":\"aehvbbxuri\",\"friendlyName\":\"tfnhtbaxkgxywr\",\"cpuCoresCount\":1619197472,\"vCPUsAvailable\":479149992,\"memoryInGB\":98.67117973109978,\"maxDataDiskCount\":309006078,\"maxNicsCount\":1167250360,\"errors\":[{\"message\":\"ruud\",\"severity\":\"zibt\"},{\"message\":\"stgktst\",\"severity\":\"xeclzedqbcvhzlhp\"}],\"highIopsSupported\":\"dqkdlwwqfbu\",\"hyperVGenerations\":[\"xtrqjfs\",\"lmbtxhwgfwsrt\"]}}],\"nextLink\":\"coezbrhubskh\"}") - .toObject(TargetComputeSizeCollection.class); - Assertions.assertEquals("g", model.value().get(0).id()); - Assertions.assertEquals("pnfqntcyp", model.value().get(0).name()); - Assertions.assertEquals("jv", model.value().get(0).type()); - Assertions.assertEquals("mwks", model.value().get(0).properties().name()); - Assertions.assertEquals("rcizjxvyd", model.value().get(0).properties().friendlyName()); - Assertions.assertEquals(1161175344, model.value().get(0).properties().cpuCoresCount()); - Assertions.assertEquals(62.392147891228966D, model.value().get(0).properties().memoryInGB()); - Assertions.assertEquals(733359450, model.value().get(0).properties().maxDataDiskCount()); - Assertions.assertEquals(788840144, model.value().get(0).properties().maxNicsCount()); - Assertions.assertEquals("umrtwnawjsl", model.value().get(0).properties().errors().get(0).message()); - Assertions.assertEquals("wkojgcyztsfmzn", model.value().get(0).properties().errors().get(0).severity()); - Assertions.assertEquals("dftuljltduce", model.value().get(0).properties().highIopsSupported()); - Assertions.assertEquals("mczuo", model.value().get(0).properties().hyperVGenerations().get(0)); - Assertions.assertEquals("coezbrhubskh", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TargetComputeSizeCollection model - = new TargetComputeSizeCollection() - .withValue(Arrays.asList( - new TargetComputeSizeInner().withId("g") - .withName("pnfqntcyp") - .withType("jv") - .withProperties(new TargetComputeSizeProperties().withName("mwks") - .withFriendlyName("rcizjxvyd") - .withCpuCoresCount(1161175344) - .withMemoryInGB(62.392147891228966D) - .withMaxDataDiskCount(733359450) - .withMaxNicsCount(788840144) - .withErrors(Arrays.asList( - new ComputeSizeErrorDetails().withMessage("umrtwnawjsl").withSeverity("wkojgcyztsfmzn"), - new ComputeSizeErrorDetails().withMessage("eqphchqnrnr") - .withSeverity("ehuwrykqgaifmvik"), - new ComputeSizeErrorDetails().withMessage("ydv").withSeverity("bejdznxcv"), - new ComputeSizeErrorDetails().withMessage("rhnj").withSeverity("olvtnovqfzge"))) - .withHighIopsSupported("dftuljltduce") - .withHyperVGenerations(Arrays.asList("mczuo", "ejwcwwqiok", "ssxmojms", "p"))), - new TargetComputeSizeInner().withId("prvkwcfzqljyxgtc") - .withName("eydbsd") - .withType("m") - .withProperties( - new TargetComputeSizeProperties().withName("aehvbbxuri") - .withFriendlyName("tfnhtbaxkgxywr") - .withCpuCoresCount(1619197472) - .withMemoryInGB(98.67117973109978D) - .withMaxDataDiskCount(309006078) - .withMaxNicsCount(1167250360) - .withErrors(Arrays.asList( - new ComputeSizeErrorDetails().withMessage("ruud").withSeverity("zibt"), - new ComputeSizeErrorDetails().withMessage("stgktst") - .withSeverity("xeclzedqbcvhzlhp"))) - .withHighIopsSupported("dqkdlwwqfbu") - .withHyperVGenerations(Arrays.asList("xtrqjfs", "lmbtxhwgfwsrt"))))) - .withNextLink("coezbrhubskh"); - model = BinaryData.fromObject(model).toObject(TargetComputeSizeCollection.class); - Assertions.assertEquals("g", model.value().get(0).id()); - Assertions.assertEquals("pnfqntcyp", model.value().get(0).name()); - Assertions.assertEquals("jv", model.value().get(0).type()); - Assertions.assertEquals("mwks", model.value().get(0).properties().name()); - Assertions.assertEquals("rcizjxvyd", model.value().get(0).properties().friendlyName()); - Assertions.assertEquals(1161175344, model.value().get(0).properties().cpuCoresCount()); - Assertions.assertEquals(62.392147891228966D, model.value().get(0).properties().memoryInGB()); - Assertions.assertEquals(733359450, model.value().get(0).properties().maxDataDiskCount()); - Assertions.assertEquals(788840144, model.value().get(0).properties().maxNicsCount()); - Assertions.assertEquals("umrtwnawjsl", model.value().get(0).properties().errors().get(0).message()); - Assertions.assertEquals("wkojgcyztsfmzn", model.value().get(0).properties().errors().get(0).severity()); - Assertions.assertEquals("dftuljltduce", model.value().get(0).properties().highIopsSupported()); - Assertions.assertEquals("mczuo", model.value().get(0).properties().hyperVGenerations().get(0)); - Assertions.assertEquals("coezbrhubskh", model.nextLink()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TargetComputeSizeInnerTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TargetComputeSizeInnerTests.java deleted file mode 100644 index d40d3d2d7993..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TargetComputeSizeInnerTests.java +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.TargetComputeSizeInner; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ComputeSizeErrorDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.TargetComputeSizeProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class TargetComputeSizeInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TargetComputeSizeInner model = BinaryData.fromString( - "{\"id\":\"ygo\",\"name\":\"kkqfqjbvle\",\"type\":\"fmluiqtqzfavyvn\",\"properties\":{\"name\":\"bar\",\"friendlyName\":\"uayjkqa\",\"cpuCoresCount\":2002865497,\"vCPUsAvailable\":1085196762,\"memoryInGB\":51.89952430089579,\"maxDataDiskCount\":1318524891,\"maxNicsCount\":813046030,\"errors\":[{\"message\":\"ntiew\",\"severity\":\"cv\"},{\"message\":\"uwrbehwagoh\",\"severity\":\"f\"},{\"message\":\"mrqemvvhmx\",\"severity\":\"rjfut\"}],\"highIopsSupported\":\"oe\",\"hyperVGenerations\":[\"ewzcjznmwcp\",\"guaadraufactkahz\"]}}") - .toObject(TargetComputeSizeInner.class); - Assertions.assertEquals("ygo", model.id()); - Assertions.assertEquals("kkqfqjbvle", model.name()); - Assertions.assertEquals("fmluiqtqzfavyvn", model.type()); - Assertions.assertEquals("bar", model.properties().name()); - Assertions.assertEquals("uayjkqa", model.properties().friendlyName()); - Assertions.assertEquals(2002865497, model.properties().cpuCoresCount()); - Assertions.assertEquals(51.89952430089579D, model.properties().memoryInGB()); - Assertions.assertEquals(1318524891, model.properties().maxDataDiskCount()); - Assertions.assertEquals(813046030, model.properties().maxNicsCount()); - Assertions.assertEquals("ntiew", model.properties().errors().get(0).message()); - Assertions.assertEquals("cv", model.properties().errors().get(0).severity()); - Assertions.assertEquals("oe", model.properties().highIopsSupported()); - Assertions.assertEquals("ewzcjznmwcp", model.properties().hyperVGenerations().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TargetComputeSizeInner model = new TargetComputeSizeInner().withId("ygo") - .withName("kkqfqjbvle") - .withType("fmluiqtqzfavyvn") - .withProperties(new TargetComputeSizeProperties().withName("bar") - .withFriendlyName("uayjkqa") - .withCpuCoresCount(2002865497) - .withMemoryInGB(51.89952430089579D) - .withMaxDataDiskCount(1318524891) - .withMaxNicsCount(813046030) - .withErrors(Arrays.asList(new ComputeSizeErrorDetails().withMessage("ntiew").withSeverity("cv"), - new ComputeSizeErrorDetails().withMessage("uwrbehwagoh").withSeverity("f"), - new ComputeSizeErrorDetails().withMessage("mrqemvvhmx").withSeverity("rjfut"))) - .withHighIopsSupported("oe") - .withHyperVGenerations(Arrays.asList("ewzcjznmwcp", "guaadraufactkahz"))); - model = BinaryData.fromObject(model).toObject(TargetComputeSizeInner.class); - Assertions.assertEquals("ygo", model.id()); - Assertions.assertEquals("kkqfqjbvle", model.name()); - Assertions.assertEquals("fmluiqtqzfavyvn", model.type()); - Assertions.assertEquals("bar", model.properties().name()); - Assertions.assertEquals("uayjkqa", model.properties().friendlyName()); - Assertions.assertEquals(2002865497, model.properties().cpuCoresCount()); - Assertions.assertEquals(51.89952430089579D, model.properties().memoryInGB()); - Assertions.assertEquals(1318524891, model.properties().maxDataDiskCount()); - Assertions.assertEquals(813046030, model.properties().maxNicsCount()); - Assertions.assertEquals("ntiew", model.properties().errors().get(0).message()); - Assertions.assertEquals("cv", model.properties().errors().get(0).severity()); - Assertions.assertEquals("oe", model.properties().highIopsSupported()); - Assertions.assertEquals("ewzcjznmwcp", model.properties().hyperVGenerations().get(0)); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TargetComputeSizePropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TargetComputeSizePropertiesTests.java deleted file mode 100644 index f9216b403876..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TargetComputeSizePropertiesTests.java +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ComputeSizeErrorDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.TargetComputeSizeProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class TargetComputeSizePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TargetComputeSizeProperties model = BinaryData.fromString( - "{\"name\":\"ajjziuxxpshne\",\"friendlyName\":\"ulfgslqu\",\"cpuCoresCount\":471639164,\"vCPUsAvailable\":1232938726,\"memoryInGB\":97.2663718138851,\"maxDataDiskCount\":1732882534,\"maxNicsCount\":203229589,\"errors\":[{\"message\":\"a\",\"severity\":\"juohminyflnorw\"},{\"message\":\"uvwpklvxwmyg\",\"severity\":\"pgpqchiszepnnb\"},{\"message\":\"rxgibbd\",\"severity\":\"confozauors\"},{\"message\":\"okwbqplh\",\"severity\":\"nuuepzlrp\"}],\"highIopsSupported\":\"zsoldwey\",\"hyperVGenerations\":[\"unvmnnr\",\"rbior\",\"talywjhhgdnhxms\",\"v\"]}") - .toObject(TargetComputeSizeProperties.class); - Assertions.assertEquals("ajjziuxxpshne", model.name()); - Assertions.assertEquals("ulfgslqu", model.friendlyName()); - Assertions.assertEquals(471639164, model.cpuCoresCount()); - Assertions.assertEquals(97.2663718138851D, model.memoryInGB()); - Assertions.assertEquals(1732882534, model.maxDataDiskCount()); - Assertions.assertEquals(203229589, model.maxNicsCount()); - Assertions.assertEquals("a", model.errors().get(0).message()); - Assertions.assertEquals("juohminyflnorw", model.errors().get(0).severity()); - Assertions.assertEquals("zsoldwey", model.highIopsSupported()); - Assertions.assertEquals("unvmnnr", model.hyperVGenerations().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TargetComputeSizeProperties model = new TargetComputeSizeProperties().withName("ajjziuxxpshne") - .withFriendlyName("ulfgslqu") - .withCpuCoresCount(471639164) - .withMemoryInGB(97.2663718138851D) - .withMaxDataDiskCount(1732882534) - .withMaxNicsCount(203229589) - .withErrors(Arrays.asList(new ComputeSizeErrorDetails().withMessage("a").withSeverity("juohminyflnorw"), - new ComputeSizeErrorDetails().withMessage("uvwpklvxwmyg").withSeverity("pgpqchiszepnnb"), - new ComputeSizeErrorDetails().withMessage("rxgibbd").withSeverity("confozauors"), - new ComputeSizeErrorDetails().withMessage("okwbqplh").withSeverity("nuuepzlrp"))) - .withHighIopsSupported("zsoldwey") - .withHyperVGenerations(Arrays.asList("unvmnnr", "rbior", "talywjhhgdnhxms", "v")); - model = BinaryData.fromObject(model).toObject(TargetComputeSizeProperties.class); - Assertions.assertEquals("ajjziuxxpshne", model.name()); - Assertions.assertEquals("ulfgslqu", model.friendlyName()); - Assertions.assertEquals(471639164, model.cpuCoresCount()); - Assertions.assertEquals(97.2663718138851D, model.memoryInGB()); - Assertions.assertEquals(1732882534, model.maxDataDiskCount()); - Assertions.assertEquals(203229589, model.maxNicsCount()); - Assertions.assertEquals("a", model.errors().get(0).message()); - Assertions.assertEquals("juohminyflnorw", model.errors().get(0).severity()); - Assertions.assertEquals("zsoldwey", model.highIopsSupported()); - Assertions.assertEquals("unvmnnr", model.hyperVGenerations().get(0)); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TargetComputeSizesListByReplicationProteMockTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TargetComputeSizesListByReplicationProteMockTests.java deleted file mode 100644 index 232e1ea06562..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TargetComputeSizesListByReplicationProteMockTests.java +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.TargetComputeSize; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class TargetComputeSizesListByReplicationProteMockTests { - @Test - public void testListByReplicationProtectedItems() throws Exception { - String responseStr - = "{\"value\":[{\"id\":\"iulddgiqlnhcxw\",\"name\":\"vunknsgvxhxr\",\"type\":\"atrtcqyfjvifbmo\",\"properties\":{\"name\":\"hqyoyt\",\"friendlyName\":\"oufkqmbhukdfp\",\"cpuCoresCount\":944352295,\"vCPUsAvailable\":389781361,\"memoryInGB\":1.1306229007980284,\"maxDataDiskCount\":2003653023,\"maxNicsCount\":1903175,\"errors\":[{\"message\":\"odhzjlr\",\"severity\":\"ckkfxmuqe\"}],\"highIopsSupported\":\"wqphfvsftsst\",\"hyperVGenerations\":[\"xcachdtezgf\"]}}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SiteRecoveryManager manager = SiteRecoveryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.targetComputeSizes() - .listByReplicationProtectedItems("rlb", "zlty", "lacbib", "keiec", "pmwxdsokrlnrpeyl", - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("iulddgiqlnhcxw", response.iterator().next().id()); - Assertions.assertEquals("vunknsgvxhxr", response.iterator().next().name()); - Assertions.assertEquals("atrtcqyfjvifbmo", response.iterator().next().type()); - Assertions.assertEquals("hqyoyt", response.iterator().next().properties().name()); - Assertions.assertEquals("oufkqmbhukdfp", response.iterator().next().properties().friendlyName()); - Assertions.assertEquals(944352295, response.iterator().next().properties().cpuCoresCount()); - Assertions.assertEquals(1.1306229007980284D, response.iterator().next().properties().memoryInGB()); - Assertions.assertEquals(2003653023, response.iterator().next().properties().maxDataDiskCount()); - Assertions.assertEquals(1903175, response.iterator().next().properties().maxNicsCount()); - Assertions.assertEquals("odhzjlr", response.iterator().next().properties().errors().get(0).message()); - Assertions.assertEquals("ckkfxmuqe", response.iterator().next().properties().errors().get(0).severity()); - Assertions.assertEquals("wqphfvsftsst", response.iterator().next().properties().highIopsSupported()); - Assertions.assertEquals("xcachdtezgf", response.iterator().next().properties().hyperVGenerations().get(0)); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TaskTypeDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TaskTypeDetailsTests.java deleted file mode 100644 index 599e2706017d..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TaskTypeDetailsTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.TaskTypeDetails; - -public final class TaskTypeDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TaskTypeDetails model - = BinaryData.fromString("{\"instanceType\":\"TaskTypeDetails\"}").toObject(TaskTypeDetails.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TaskTypeDetails model = new TaskTypeDetails(); - model = BinaryData.fromObject(model).toObject(TaskTypeDetails.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TestFailoverCleanupInputPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TestFailoverCleanupInputPropertiesTests.java deleted file mode 100644 index 7fe67bbad970..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TestFailoverCleanupInputPropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.TestFailoverCleanupInputProperties; -import org.junit.jupiter.api.Assertions; - -public final class TestFailoverCleanupInputPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TestFailoverCleanupInputProperties model - = BinaryData.fromString("{\"comments\":\"wfscjfn\"}").toObject(TestFailoverCleanupInputProperties.class); - Assertions.assertEquals("wfscjfn", model.comments()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TestFailoverCleanupInputProperties model = new TestFailoverCleanupInputProperties().withComments("wfscjfn"); - model = BinaryData.fromObject(model).toObject(TestFailoverCleanupInputProperties.class); - Assertions.assertEquals("wfscjfn", model.comments()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TestFailoverCleanupInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TestFailoverCleanupInputTests.java deleted file mode 100644 index 4ecda1e1452e..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TestFailoverCleanupInputTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.TestFailoverCleanupInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.TestFailoverCleanupInputProperties; -import org.junit.jupiter.api.Assertions; - -public final class TestFailoverCleanupInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TestFailoverCleanupInput model - = BinaryData.fromString("{\"properties\":{\"comments\":\"icc\"}}").toObject(TestFailoverCleanupInput.class); - Assertions.assertEquals("icc", model.properties().comments()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TestFailoverCleanupInput model = new TestFailoverCleanupInput() - .withProperties(new TestFailoverCleanupInputProperties().withComments("icc")); - model = BinaryData.fromObject(model).toObject(TestFailoverCleanupInput.class); - Assertions.assertEquals("icc", model.properties().comments()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TestFailoverInputPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TestFailoverInputPropertiesTests.java deleted file mode 100644 index dffefe1c77aa..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TestFailoverInputPropertiesTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.TestFailoverInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.TestFailoverProviderSpecificInput; -import org.junit.jupiter.api.Assertions; - -public final class TestFailoverInputPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TestFailoverInputProperties model = BinaryData.fromString( - "{\"failoverDirection\":\"qvci\",\"networkType\":\"ev\",\"networkId\":\"mblrrilbywd\",\"providerSpecificDetails\":{\"instanceType\":\"TestFailoverProviderSpecificInput\"}}") - .toObject(TestFailoverInputProperties.class); - Assertions.assertEquals("qvci", model.failoverDirection()); - Assertions.assertEquals("ev", model.networkType()); - Assertions.assertEquals("mblrrilbywd", model.networkId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TestFailoverInputProperties model = new TestFailoverInputProperties().withFailoverDirection("qvci") - .withNetworkType("ev") - .withNetworkId("mblrrilbywd") - .withProviderSpecificDetails(new TestFailoverProviderSpecificInput()); - model = BinaryData.fromObject(model).toObject(TestFailoverInputProperties.class); - Assertions.assertEquals("qvci", model.failoverDirection()); - Assertions.assertEquals("ev", model.networkType()); - Assertions.assertEquals("mblrrilbywd", model.networkId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TestFailoverInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TestFailoverInputTests.java deleted file mode 100644 index 9af38c3f6468..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TestFailoverInputTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.TestFailoverInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.TestFailoverInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.TestFailoverProviderSpecificInput; -import org.junit.jupiter.api.Assertions; - -public final class TestFailoverInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TestFailoverInput model = BinaryData.fromString( - "{\"properties\":{\"failoverDirection\":\"chvcyyysfgdo\",\"networkType\":\"ubiipuipwoqonma\",\"networkId\":\"ekni\",\"providerSpecificDetails\":{\"instanceType\":\"TestFailoverProviderSpecificInput\"}}}") - .toObject(TestFailoverInput.class); - Assertions.assertEquals("chvcyyysfgdo", model.properties().failoverDirection()); - Assertions.assertEquals("ubiipuipwoqonma", model.properties().networkType()); - Assertions.assertEquals("ekni", model.properties().networkId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TestFailoverInput model = new TestFailoverInput() - .withProperties(new TestFailoverInputProperties().withFailoverDirection("chvcyyysfgdo") - .withNetworkType("ubiipuipwoqonma") - .withNetworkId("ekni") - .withProviderSpecificDetails(new TestFailoverProviderSpecificInput())); - model = BinaryData.fromObject(model).toObject(TestFailoverInput.class); - Assertions.assertEquals("chvcyyysfgdo", model.properties().failoverDirection()); - Assertions.assertEquals("ubiipuipwoqonma", model.properties().networkType()); - Assertions.assertEquals("ekni", model.properties().networkId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TestFailoverJobDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TestFailoverJobDetailsTests.java deleted file mode 100644 index f5d9d41ba9d9..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TestFailoverJobDetailsTests.java +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.FailoverReplicationProtectedItemDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.TestFailoverJobDetails; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class TestFailoverJobDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TestFailoverJobDetails model = BinaryData.fromString( - "{\"instanceType\":\"TestFailoverJobDetails\",\"testFailoverStatus\":\"cant\",\"comments\":\"yxzxjmkanbclazof\",\"networkName\":\"xvtemaspm\",\"networkFriendlyName\":\"ydscdkxwd\",\"networkType\":\"jcbhaahnt\",\"protectedItemDetails\":[{\"name\":\"fh\",\"friendlyName\":\"ixo\",\"testVmName\":\"kzdfiv\",\"testVmFriendlyName\":\"jybsrwz\",\"networkConnectionStatus\":\"rgt\",\"networkFriendlyName\":\"hmfppinmgi\",\"subnet\":\"smkw\",\"recoveryPointId\":\"gfragjhxerxlobkd\",\"recoveryPointTime\":\"2021-10-17T16:42:23Z\"},{\"name\":\"vmmnii\",\"friendlyName\":\"ho\",\"testVmName\":\"jn\",\"testVmFriendlyName\":\"bggicnqwlctmw\",\"networkConnectionStatus\":\"lxkrk\",\"networkFriendlyName\":\"vxrktjcjigcwtsp\",\"subnet\":\"bqxasevchefpgee\",\"recoveryPointId\":\"ybruhola\",\"recoveryPointTime\":\"2021-05-29T12:11:44Z\"}],\"affectedObjectDetails\":{\"aowcahdkm\":\"immrimaabsqqlonb\",\"zglkvbgu\":\"jsmihrijezbfsjwf\",\"gnbknhj\":\"bsvbwyot\",\"ffaspsdzkucsz\":\"clxaxw\"}}") - .toObject(TestFailoverJobDetails.class); - Assertions.assertEquals("immrimaabsqqlonb", model.affectedObjectDetails().get("aowcahdkm")); - Assertions.assertEquals("cant", model.testFailoverStatus()); - Assertions.assertEquals("yxzxjmkanbclazof", model.comments()); - Assertions.assertEquals("xvtemaspm", model.networkName()); - Assertions.assertEquals("ydscdkxwd", model.networkFriendlyName()); - Assertions.assertEquals("jcbhaahnt", model.networkType()); - Assertions.assertEquals("fh", model.protectedItemDetails().get(0).name()); - Assertions.assertEquals("ixo", model.protectedItemDetails().get(0).friendlyName()); - Assertions.assertEquals("kzdfiv", model.protectedItemDetails().get(0).testVmName()); - Assertions.assertEquals("jybsrwz", model.protectedItemDetails().get(0).testVmFriendlyName()); - Assertions.assertEquals("rgt", model.protectedItemDetails().get(0).networkConnectionStatus()); - Assertions.assertEquals("hmfppinmgi", model.protectedItemDetails().get(0).networkFriendlyName()); - Assertions.assertEquals("smkw", model.protectedItemDetails().get(0).subnet()); - Assertions.assertEquals("gfragjhxerxlobkd", model.protectedItemDetails().get(0).recoveryPointId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-17T16:42:23Z"), - model.protectedItemDetails().get(0).recoveryPointTime()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TestFailoverJobDetails model = new TestFailoverJobDetails() - .withAffectedObjectDetails(mapOf("aowcahdkm", "immrimaabsqqlonb", "zglkvbgu", "jsmihrijezbfsjwf", "gnbknhj", - "bsvbwyot", "ffaspsdzkucsz", "clxaxw")) - .withTestFailoverStatus("cant") - .withComments("yxzxjmkanbclazof") - .withNetworkName("xvtemaspm") - .withNetworkFriendlyName("ydscdkxwd") - .withNetworkType("jcbhaahnt") - .withProtectedItemDetails(Arrays.asList( - new FailoverReplicationProtectedItemDetails().withName("fh") - .withFriendlyName("ixo") - .withTestVmName("kzdfiv") - .withTestVmFriendlyName("jybsrwz") - .withNetworkConnectionStatus("rgt") - .withNetworkFriendlyName("hmfppinmgi") - .withSubnet("smkw") - .withRecoveryPointId("gfragjhxerxlobkd") - .withRecoveryPointTime(OffsetDateTime.parse("2021-10-17T16:42:23Z")), - new FailoverReplicationProtectedItemDetails().withName("vmmnii") - .withFriendlyName("ho") - .withTestVmName("jn") - .withTestVmFriendlyName("bggicnqwlctmw") - .withNetworkConnectionStatus("lxkrk") - .withNetworkFriendlyName("vxrktjcjigcwtsp") - .withSubnet("bqxasevchefpgee") - .withRecoveryPointId("ybruhola") - .withRecoveryPointTime(OffsetDateTime.parse("2021-05-29T12:11:44Z")))); - model = BinaryData.fromObject(model).toObject(TestFailoverJobDetails.class); - Assertions.assertEquals("immrimaabsqqlonb", model.affectedObjectDetails().get("aowcahdkm")); - Assertions.assertEquals("cant", model.testFailoverStatus()); - Assertions.assertEquals("yxzxjmkanbclazof", model.comments()); - Assertions.assertEquals("xvtemaspm", model.networkName()); - Assertions.assertEquals("ydscdkxwd", model.networkFriendlyName()); - Assertions.assertEquals("jcbhaahnt", model.networkType()); - Assertions.assertEquals("fh", model.protectedItemDetails().get(0).name()); - Assertions.assertEquals("ixo", model.protectedItemDetails().get(0).friendlyName()); - Assertions.assertEquals("kzdfiv", model.protectedItemDetails().get(0).testVmName()); - Assertions.assertEquals("jybsrwz", model.protectedItemDetails().get(0).testVmFriendlyName()); - Assertions.assertEquals("rgt", model.protectedItemDetails().get(0).networkConnectionStatus()); - Assertions.assertEquals("hmfppinmgi", model.protectedItemDetails().get(0).networkFriendlyName()); - Assertions.assertEquals("smkw", model.protectedItemDetails().get(0).subnet()); - Assertions.assertEquals("gfragjhxerxlobkd", model.protectedItemDetails().get(0).recoveryPointId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-17T16:42:23Z"), - model.protectedItemDetails().get(0).recoveryPointTime()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TestFailoverProviderSpecificInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TestFailoverProviderSpecificInputTests.java deleted file mode 100644 index 64a755c3028f..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TestFailoverProviderSpecificInputTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.TestFailoverProviderSpecificInput; - -public final class TestFailoverProviderSpecificInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TestFailoverProviderSpecificInput model - = BinaryData.fromString("{\"instanceType\":\"TestFailoverProviderSpecificInput\"}") - .toObject(TestFailoverProviderSpecificInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TestFailoverProviderSpecificInput model = new TestFailoverProviderSpecificInput(); - model = BinaryData.fromObject(model).toObject(TestFailoverProviderSpecificInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TestMigrateCleanupInputPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TestMigrateCleanupInputPropertiesTests.java deleted file mode 100644 index 773fcbe5fcf0..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TestMigrateCleanupInputPropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.TestMigrateCleanupInputProperties; -import org.junit.jupiter.api.Assertions; - -public final class TestMigrateCleanupInputPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TestMigrateCleanupInputProperties model - = BinaryData.fromString("{\"comments\":\"lnjixisxya\"}").toObject(TestMigrateCleanupInputProperties.class); - Assertions.assertEquals("lnjixisxya", model.comments()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TestMigrateCleanupInputProperties model = new TestMigrateCleanupInputProperties().withComments("lnjixisxya"); - model = BinaryData.fromObject(model).toObject(TestMigrateCleanupInputProperties.class); - Assertions.assertEquals("lnjixisxya", model.comments()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TestMigrateCleanupInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TestMigrateCleanupInputTests.java deleted file mode 100644 index c9eb5895ffeb..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TestMigrateCleanupInputTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.TestMigrateCleanupInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.TestMigrateCleanupInputProperties; -import org.junit.jupiter.api.Assertions; - -public final class TestMigrateCleanupInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TestMigrateCleanupInput model = BinaryData.fromString("{\"properties\":{\"comments\":\"xwyjsflhhc\"}}") - .toObject(TestMigrateCleanupInput.class); - Assertions.assertEquals("xwyjsflhhc", model.properties().comments()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TestMigrateCleanupInput model = new TestMigrateCleanupInput() - .withProperties(new TestMigrateCleanupInputProperties().withComments("xwyjsflhhc")); - model = BinaryData.fromObject(model).toObject(TestMigrateCleanupInput.class); - Assertions.assertEquals("xwyjsflhhc", model.properties().comments()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TestMigrateInputPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TestMigrateInputPropertiesTests.java deleted file mode 100644 index c042a3afb58d..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TestMigrateInputPropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.TestMigrateInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.TestMigrateProviderSpecificInput; - -public final class TestMigrateInputPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TestMigrateInputProperties model = BinaryData - .fromString("{\"providerSpecificDetails\":{\"instanceType\":\"TestMigrateProviderSpecificInput\"}}") - .toObject(TestMigrateInputProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TestMigrateInputProperties model - = new TestMigrateInputProperties().withProviderSpecificDetails(new TestMigrateProviderSpecificInput()); - model = BinaryData.fromObject(model).toObject(TestMigrateInputProperties.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TestMigrateInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TestMigrateInputTests.java deleted file mode 100644 index 1f89d40042b4..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TestMigrateInputTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.TestMigrateInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.TestMigrateInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.TestMigrateProviderSpecificInput; - -public final class TestMigrateInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TestMigrateInput model = BinaryData.fromString( - "{\"properties\":{\"providerSpecificDetails\":{\"instanceType\":\"TestMigrateProviderSpecificInput\"}}}") - .toObject(TestMigrateInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TestMigrateInput model = new TestMigrateInput().withProperties( - new TestMigrateInputProperties().withProviderSpecificDetails(new TestMigrateProviderSpecificInput())); - model = BinaryData.fromObject(model).toObject(TestMigrateInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TestMigrateProviderSpecificInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TestMigrateProviderSpecificInputTests.java deleted file mode 100644 index 5cb842f14d70..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/TestMigrateProviderSpecificInputTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.TestMigrateProviderSpecificInput; - -public final class TestMigrateProviderSpecificInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TestMigrateProviderSpecificInput model - = BinaryData.fromString("{\"instanceType\":\"TestMigrateProviderSpecificInput\"}") - .toObject(TestMigrateProviderSpecificInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TestMigrateProviderSpecificInput model = new TestMigrateProviderSpecificInput(); - model = BinaryData.fromObject(model).toObject(TestMigrateProviderSpecificInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UnplannedFailoverInputPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UnplannedFailoverInputPropertiesTests.java deleted file mode 100644 index 9728bf6835d9..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UnplannedFailoverInputPropertiesTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.UnplannedFailoverInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.UnplannedFailoverProviderSpecificInput; -import org.junit.jupiter.api.Assertions; - -public final class UnplannedFailoverInputPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UnplannedFailoverInputProperties model = BinaryData.fromString( - "{\"failoverDirection\":\"oxoismsksbpim\",\"sourceSiteOperations\":\"oljxkcgx\",\"providerSpecificDetails\":{\"instanceType\":\"UnplannedFailoverProviderSpecificInput\"}}") - .toObject(UnplannedFailoverInputProperties.class); - Assertions.assertEquals("oxoismsksbpim", model.failoverDirection()); - Assertions.assertEquals("oljxkcgx", model.sourceSiteOperations()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UnplannedFailoverInputProperties model - = new UnplannedFailoverInputProperties().withFailoverDirection("oxoismsksbpim") - .withSourceSiteOperations("oljxkcgx") - .withProviderSpecificDetails(new UnplannedFailoverProviderSpecificInput()); - model = BinaryData.fromObject(model).toObject(UnplannedFailoverInputProperties.class); - Assertions.assertEquals("oxoismsksbpim", model.failoverDirection()); - Assertions.assertEquals("oljxkcgx", model.sourceSiteOperations()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UnplannedFailoverInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UnplannedFailoverInputTests.java deleted file mode 100644 index 86392ab47711..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UnplannedFailoverInputTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.UnplannedFailoverInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.UnplannedFailoverInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.UnplannedFailoverProviderSpecificInput; -import org.junit.jupiter.api.Assertions; - -public final class UnplannedFailoverInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UnplannedFailoverInput model = BinaryData.fromString( - "{\"properties\":{\"failoverDirection\":\"szqujizdvoq\",\"sourceSiteOperations\":\"ibyowbblgyavutp\",\"providerSpecificDetails\":{\"instanceType\":\"UnplannedFailoverProviderSpecificInput\"}}}") - .toObject(UnplannedFailoverInput.class); - Assertions.assertEquals("szqujizdvoq", model.properties().failoverDirection()); - Assertions.assertEquals("ibyowbblgyavutp", model.properties().sourceSiteOperations()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UnplannedFailoverInput model = new UnplannedFailoverInput() - .withProperties(new UnplannedFailoverInputProperties().withFailoverDirection("szqujizdvoq") - .withSourceSiteOperations("ibyowbblgyavutp") - .withProviderSpecificDetails(new UnplannedFailoverProviderSpecificInput())); - model = BinaryData.fromObject(model).toObject(UnplannedFailoverInput.class); - Assertions.assertEquals("szqujizdvoq", model.properties().failoverDirection()); - Assertions.assertEquals("ibyowbblgyavutp", model.properties().sourceSiteOperations()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UnplannedFailoverProviderSpecificInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UnplannedFailoverProviderSpecificInputTests.java deleted file mode 100644 index dc8210f4178e..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UnplannedFailoverProviderSpecificInputTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.UnplannedFailoverProviderSpecificInput; - -public final class UnplannedFailoverProviderSpecificInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UnplannedFailoverProviderSpecificInput model - = BinaryData.fromString("{\"instanceType\":\"UnplannedFailoverProviderSpecificInput\"}") - .toObject(UnplannedFailoverProviderSpecificInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UnplannedFailoverProviderSpecificInput model = new UnplannedFailoverProviderSpecificInput(); - model = BinaryData.fromObject(model).toObject(UnplannedFailoverProviderSpecificInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateApplianceForReplicationProtectedItemInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateApplianceForReplicationProtectedItemInputTests.java deleted file mode 100644 index 0c7c21b9d53e..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateApplianceForReplicationProtectedItemInputTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.UpdateApplianceForReplicationProtectedItemInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.UpdateApplianceForReplicationProtectedItemInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.UpdateReplicationProtectedItemProviderSpecificInput; -import org.junit.jupiter.api.Assertions; - -public final class UpdateApplianceForReplicationProtectedItemInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UpdateApplianceForReplicationProtectedItemInput model = BinaryData.fromString( - "{\"properties\":{\"targetApplianceId\":\"xsffgcviz\",\"providerSpecificDetails\":{\"instanceType\":\"UpdateApplianceForReplicationProtectedItemProviderSpecificInput\"}}}") - .toObject(UpdateApplianceForReplicationProtectedItemInput.class); - Assertions.assertEquals("xsffgcviz", model.properties().targetApplianceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UpdateApplianceForReplicationProtectedItemInput model - = new UpdateApplianceForReplicationProtectedItemInput().withProperties( - new UpdateApplianceForReplicationProtectedItemInputProperties().withTargetApplianceId("xsffgcviz") - .withProviderSpecificDetails(new UpdateReplicationProtectedItemProviderSpecificInput())); - model = BinaryData.fromObject(model).toObject(UpdateApplianceForReplicationProtectedItemInput.class); - Assertions.assertEquals("xsffgcviz", model.properties().targetApplianceId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateDiskInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateDiskInputTests.java deleted file mode 100644 index 01c03a94f8a3..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateDiskInputTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.UpdateDiskInput; -import org.junit.jupiter.api.Assertions; - -public final class UpdateDiskInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UpdateDiskInput model = BinaryData.fromString("{\"diskId\":\"zamicb\",\"targetDiskName\":\"wcdgzsez\"}") - .toObject(UpdateDiskInput.class); - Assertions.assertEquals("zamicb", model.diskId()); - Assertions.assertEquals("wcdgzsez", model.targetDiskName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UpdateDiskInput model = new UpdateDiskInput().withDiskId("zamicb").withTargetDiskName("wcdgzsez"); - model = BinaryData.fromObject(model).toObject(UpdateDiskInput.class); - Assertions.assertEquals("zamicb", model.diskId()); - Assertions.assertEquals("wcdgzsez", model.targetDiskName()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateMigrationItemInputPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateMigrationItemInputPropertiesTests.java deleted file mode 100644 index b05adea4f131..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateMigrationItemInputPropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.UpdateMigrationItemInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.UpdateMigrationItemProviderSpecificInput; - -public final class UpdateMigrationItemInputPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UpdateMigrationItemInputProperties model = BinaryData - .fromString("{\"providerSpecificDetails\":{\"instanceType\":\"UpdateMigrationItemProviderSpecificInput\"}}") - .toObject(UpdateMigrationItemInputProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UpdateMigrationItemInputProperties model = new UpdateMigrationItemInputProperties() - .withProviderSpecificDetails(new UpdateMigrationItemProviderSpecificInput()); - model = BinaryData.fromObject(model).toObject(UpdateMigrationItemInputProperties.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateMigrationItemInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateMigrationItemInputTests.java deleted file mode 100644 index 23c494a1825e..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateMigrationItemInputTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.UpdateMigrationItemInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.UpdateMigrationItemInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.UpdateMigrationItemProviderSpecificInput; - -public final class UpdateMigrationItemInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UpdateMigrationItemInput model = BinaryData.fromString( - "{\"properties\":{\"providerSpecificDetails\":{\"instanceType\":\"UpdateMigrationItemProviderSpecificInput\"}}}") - .toObject(UpdateMigrationItemInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UpdateMigrationItemInput model - = new UpdateMigrationItemInput().withProperties(new UpdateMigrationItemInputProperties() - .withProviderSpecificDetails(new UpdateMigrationItemProviderSpecificInput())); - model = BinaryData.fromObject(model).toObject(UpdateMigrationItemInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateMigrationItemProviderSpecificInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateMigrationItemProviderSpecificInputTests.java deleted file mode 100644 index eddb60463ad6..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateMigrationItemProviderSpecificInputTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.UpdateMigrationItemProviderSpecificInput; - -public final class UpdateMigrationItemProviderSpecificInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UpdateMigrationItemProviderSpecificInput model - = BinaryData.fromString("{\"instanceType\":\"UpdateMigrationItemProviderSpecificInput\"}") - .toObject(UpdateMigrationItemProviderSpecificInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UpdateMigrationItemProviderSpecificInput model = new UpdateMigrationItemProviderSpecificInput(); - model = BinaryData.fromObject(model).toObject(UpdateMigrationItemProviderSpecificInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateMobilityServiceRequestPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateMobilityServiceRequestPropertiesTests.java deleted file mode 100644 index 0b3b7f64d6aa..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateMobilityServiceRequestPropertiesTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.UpdateMobilityServiceRequestProperties; -import org.junit.jupiter.api.Assertions; - -public final class UpdateMobilityServiceRequestPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UpdateMobilityServiceRequestProperties model = BinaryData.fromString("{\"runAsAccountId\":\"tsttktlahbq\"}") - .toObject(UpdateMobilityServiceRequestProperties.class); - Assertions.assertEquals("tsttktlahbq", model.runAsAccountId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UpdateMobilityServiceRequestProperties model - = new UpdateMobilityServiceRequestProperties().withRunAsAccountId("tsttktlahbq"); - model = BinaryData.fromObject(model).toObject(UpdateMobilityServiceRequestProperties.class); - Assertions.assertEquals("tsttktlahbq", model.runAsAccountId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateMobilityServiceRequestTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateMobilityServiceRequestTests.java deleted file mode 100644 index 89d49b76e79f..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateMobilityServiceRequestTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.UpdateMobilityServiceRequest; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.UpdateMobilityServiceRequestProperties; -import org.junit.jupiter.api.Assertions; - -public final class UpdateMobilityServiceRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UpdateMobilityServiceRequest model - = BinaryData.fromString("{\"properties\":{\"runAsAccountId\":\"bdyhgkfminsgowz\"}}") - .toObject(UpdateMobilityServiceRequest.class); - Assertions.assertEquals("bdyhgkfminsgowz", model.properties().runAsAccountId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UpdateMobilityServiceRequest model = new UpdateMobilityServiceRequest() - .withProperties(new UpdateMobilityServiceRequestProperties().withRunAsAccountId("bdyhgkfminsgowz")); - model = BinaryData.fromObject(model).toObject(UpdateMobilityServiceRequest.class); - Assertions.assertEquals("bdyhgkfminsgowz", model.properties().runAsAccountId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateNetworkMappingInputPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateNetworkMappingInputPropertiesTests.java deleted file mode 100644 index 4d07d0fc4f31..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateNetworkMappingInputPropertiesTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.FabricSpecificUpdateNetworkMappingInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.UpdateNetworkMappingInputProperties; -import org.junit.jupiter.api.Assertions; - -public final class UpdateNetworkMappingInputPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UpdateNetworkMappingInputProperties model = BinaryData.fromString( - "{\"recoveryFabricName\":\"fbishcbkha\",\"recoveryNetworkId\":\"eyeam\",\"fabricSpecificDetails\":{\"instanceType\":\"FabricSpecificUpdateNetworkMappingInput\"}}") - .toObject(UpdateNetworkMappingInputProperties.class); - Assertions.assertEquals("fbishcbkha", model.recoveryFabricName()); - Assertions.assertEquals("eyeam", model.recoveryNetworkId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UpdateNetworkMappingInputProperties model - = new UpdateNetworkMappingInputProperties().withRecoveryFabricName("fbishcbkha") - .withRecoveryNetworkId("eyeam") - .withFabricSpecificDetails(new FabricSpecificUpdateNetworkMappingInput()); - model = BinaryData.fromObject(model).toObject(UpdateNetworkMappingInputProperties.class); - Assertions.assertEquals("fbishcbkha", model.recoveryFabricName()); - Assertions.assertEquals("eyeam", model.recoveryNetworkId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateNetworkMappingInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateNetworkMappingInputTests.java deleted file mode 100644 index 68894995b9cd..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateNetworkMappingInputTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.FabricSpecificUpdateNetworkMappingInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.UpdateNetworkMappingInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.UpdateNetworkMappingInputProperties; -import org.junit.jupiter.api.Assertions; - -public final class UpdateNetworkMappingInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UpdateNetworkMappingInput model = BinaryData.fromString( - "{\"properties\":{\"recoveryFabricName\":\"de\",\"recoveryNetworkId\":\"jzicwifsjt\",\"fabricSpecificDetails\":{\"instanceType\":\"FabricSpecificUpdateNetworkMappingInput\"}}}") - .toObject(UpdateNetworkMappingInput.class); - Assertions.assertEquals("de", model.properties().recoveryFabricName()); - Assertions.assertEquals("jzicwifsjt", model.properties().recoveryNetworkId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UpdateNetworkMappingInput model = new UpdateNetworkMappingInput() - .withProperties(new UpdateNetworkMappingInputProperties().withRecoveryFabricName("de") - .withRecoveryNetworkId("jzicwifsjt") - .withFabricSpecificDetails(new FabricSpecificUpdateNetworkMappingInput())); - model = BinaryData.fromObject(model).toObject(UpdateNetworkMappingInput.class); - Assertions.assertEquals("de", model.properties().recoveryFabricName()); - Assertions.assertEquals("jzicwifsjt", model.properties().recoveryNetworkId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdatePolicyInputPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdatePolicyInputPropertiesTests.java deleted file mode 100644 index 86a96dfd0b6d..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdatePolicyInputPropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.PolicyProviderSpecificInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.UpdatePolicyInputProperties; - -public final class UpdatePolicyInputPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UpdatePolicyInputProperties model = BinaryData - .fromString("{\"replicationProviderSettings\":{\"instanceType\":\"PolicyProviderSpecificInput\"}}") - .toObject(UpdatePolicyInputProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UpdatePolicyInputProperties model - = new UpdatePolicyInputProperties().withReplicationProviderSettings(new PolicyProviderSpecificInput()); - model = BinaryData.fromObject(model).toObject(UpdatePolicyInputProperties.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdatePolicyInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdatePolicyInputTests.java deleted file mode 100644 index f2e04aecb869..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdatePolicyInputTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.PolicyProviderSpecificInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.UpdatePolicyInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.UpdatePolicyInputProperties; - -public final class UpdatePolicyInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UpdatePolicyInput model = BinaryData - .fromString( - "{\"properties\":{\"replicationProviderSettings\":{\"instanceType\":\"PolicyProviderSpecificInput\"}}}") - .toObject(UpdatePolicyInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UpdatePolicyInput model = new UpdatePolicyInput().withProperties( - new UpdatePolicyInputProperties().withReplicationProviderSettings(new PolicyProviderSpecificInput())); - model = BinaryData.fromObject(model).toObject(UpdatePolicyInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateProtectionContainerMappingInputPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateProtectionContainerMappingInputPropertiesTests.java deleted file mode 100644 index b9dd6eefcbcb..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateProtectionContainerMappingInputPropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationProviderSpecificUpdateContainerMappingInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.UpdateProtectionContainerMappingInputProperties; - -public final class UpdateProtectionContainerMappingInputPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UpdateProtectionContainerMappingInputProperties model = BinaryData.fromString( - "{\"providerSpecificInput\":{\"instanceType\":\"ReplicationProviderSpecificUpdateContainerMappingInput\"}}") - .toObject(UpdateProtectionContainerMappingInputProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UpdateProtectionContainerMappingInputProperties model = new UpdateProtectionContainerMappingInputProperties() - .withProviderSpecificInput(new ReplicationProviderSpecificUpdateContainerMappingInput()); - model = BinaryData.fromObject(model).toObject(UpdateProtectionContainerMappingInputProperties.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateProtectionContainerMappingInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateProtectionContainerMappingInputTests.java deleted file mode 100644 index 34916e5635f0..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateProtectionContainerMappingInputTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationProviderSpecificUpdateContainerMappingInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.UpdateProtectionContainerMappingInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.UpdateProtectionContainerMappingInputProperties; - -public final class UpdateProtectionContainerMappingInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UpdateProtectionContainerMappingInput model = BinaryData.fromString( - "{\"properties\":{\"providerSpecificInput\":{\"instanceType\":\"ReplicationProviderSpecificUpdateContainerMappingInput\"}}}") - .toObject(UpdateProtectionContainerMappingInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UpdateProtectionContainerMappingInput model = new UpdateProtectionContainerMappingInput() - .withProperties(new UpdateProtectionContainerMappingInputProperties() - .withProviderSpecificInput(new ReplicationProviderSpecificUpdateContainerMappingInput())); - model = BinaryData.fromObject(model).toObject(UpdateProtectionContainerMappingInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateRecoveryPlanInputPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateRecoveryPlanInputPropertiesTests.java deleted file mode 100644 index c342dec4f8a2..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateRecoveryPlanInputPropertiesTests.java +++ /dev/null @@ -1,241 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.PossibleOperationsDirections; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanAction; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanActionDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanGroup; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanGroupType; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanProtectedItem; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationProtectedItemOperation; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.UpdateRecoveryPlanInputProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class UpdateRecoveryPlanInputPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UpdateRecoveryPlanInputProperties model = BinaryData.fromString( - "{\"groups\":[{\"groupType\":\"Boot\",\"replicationProtectedItems\":[{\"id\":\"arnroohguab\",\"virtualMachineId\":\"ghktdpy\"}],\"startGroupActions\":[{\"actionName\":\"coe\",\"failoverTypes\":[\"ChangePit\"],\"failoverDirections\":[\"PrimaryToRecovery\",\"PrimaryToRecovery\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"rottjzcfyjzptw\",\"failoverTypes\":[\"CompleteMigration\",\"ChangePit\"],\"failoverDirections\":[\"PrimaryToRecovery\",\"RecoveryToPrimary\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"infsz\",\"failoverTypes\":[\"DisableProtection\",\"TestFailoverCleanup\",\"UnplannedFailover\",\"SwitchProtection\"],\"failoverDirections\":[\"PrimaryToRecovery\",\"PrimaryToRecovery\",\"PrimaryToRecovery\",\"RecoveryToPrimary\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"l\",\"failoverTypes\":[\"CompleteMigration\"],\"failoverDirections\":[\"RecoveryToPrimary\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"yypsjoqc\",\"failoverTypes\":[\"ReverseReplicate\"],\"failoverDirections\":[\"RecoveryToPrimary\",\"PrimaryToRecovery\",\"PrimaryToRecovery\",\"PrimaryToRecovery\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"zv\",\"failoverTypes\":[\"ReverseReplicate\"],\"failoverDirections\":[\"PrimaryToRecovery\",\"RecoveryToPrimary\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]},{\"groupType\":\"Shutdown\",\"replicationProtectedItems\":[{\"id\":\"mpzqjhhhq\",\"virtualMachineId\":\"w\"}],\"startGroupActions\":[{\"actionName\":\"acoyvivbsizusjs\",\"failoverTypes\":[\"CancelFailover\",\"CompleteMigration\"],\"failoverDirections\":[\"RecoveryToPrimary\",\"RecoveryToPrimary\",\"RecoveryToPrimary\",\"RecoveryToPrimary\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"ijiufehgmvfln\",\"failoverTypes\":[\"ReverseReplicate\",\"Failback\"],\"failoverDirections\":[\"RecoveryToPrimary\",\"PrimaryToRecovery\",\"RecoveryToPrimary\",\"PrimaryToRecovery\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"lniylylyfwxz\",\"failoverTypes\":[\"UnplannedFailover\",\"TestFailoverCleanup\",\"SwitchProtection\"],\"failoverDirections\":[\"PrimaryToRecovery\",\"RecoveryToPrimary\",\"PrimaryToRecovery\",\"RecoveryToPrimary\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"pgxyjtcdxabbu\",\"failoverTypes\":[\"UnplannedFailover\",\"Commit\",\"SwitchProtection\"],\"failoverDirections\":[\"RecoveryToPrimary\",\"RecoveryToPrimary\",\"PrimaryToRecovery\",\"PrimaryToRecovery\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"lqpx\",\"failoverTypes\":[\"FinalizeFailback\",\"ChangePit\"],\"failoverDirections\":[\"PrimaryToRecovery\",\"RecoveryToPrimary\",\"PrimaryToRecovery\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"wwnlzafwxudgnh\",\"failoverTypes\":[\"TestFailoverCleanup\",\"FinalizeFailback\",\"ChangePit\"],\"failoverDirections\":[\"RecoveryToPrimary\",\"RecoveryToPrimary\",\"RecoveryToPrimary\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"nbwgpbemeluclv\",\"failoverTypes\":[\"UnplannedFailover\",\"UnplannedFailover\",\"DisableProtection\",\"PlannedFailover\"],\"failoverDirections\":[\"PrimaryToRecovery\",\"RecoveryToPrimary\",\"PrimaryToRecovery\",\"RecoveryToPrimary\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]},{\"groupType\":\"Failover\",\"replicationProtectedItems\":[{\"id\":\"h\",\"virtualMachineId\":\"qfaqnvzoqg\"},{\"id\":\"pem\",\"virtualMachineId\":\"gavsczuejd\"},{\"id\":\"ptlghwzhomewjjst\",\"virtualMachineId\":\"uhqawmoaianc\"},{\"id\":\"vodrrslblxydkxr\",\"virtualMachineId\":\"vbxiwkgfbqlj\"}],\"startGroupActions\":[{\"actionName\":\"hychocokuleh\",\"failoverTypes\":[\"TestFailover\",\"PlannedFailover\",\"CompleteMigration\"],\"failoverDirections\":[\"PrimaryToRecovery\",\"PrimaryToRecovery\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"aweyur\",\"failoverTypes\":[\"UnplannedFailover\",\"CancelFailover\",\"ChangePit\"],\"failoverDirections\":[\"PrimaryToRecovery\",\"PrimaryToRecovery\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"av\",\"failoverTypes\":[\"ReverseReplicate\"],\"failoverDirections\":[\"PrimaryToRecovery\",\"RecoveryToPrimary\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"xmrgchbapxkiy\",\"failoverTypes\":[\"CancelFailover\"],\"failoverDirections\":[\"RecoveryToPrimary\",\"PrimaryToRecovery\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"us\",\"failoverTypes\":[\"ReverseReplicate\"],\"failoverDirections\":[\"PrimaryToRecovery\",\"RecoveryToPrimary\",\"PrimaryToRecovery\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"oycblevpmc\",\"failoverTypes\":[\"FinalizeFailback\",\"Failback\",\"FinalizeFailback\"],\"failoverDirections\":[\"PrimaryToRecovery\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"xlzgsjgkzzl\",\"failoverTypes\":[\"PlannedFailover\",\"Failback\"],\"failoverDirections\":[\"RecoveryToPrimary\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]},{\"groupType\":\"Failover\",\"replicationProtectedItems\":[{\"id\":\"wmbjlzqsczpg\",\"virtualMachineId\":\"wnapfdq\"},{\"id\":\"wf\",\"virtualMachineId\":\"tnuwjtkschgc\"},{\"id\":\"y\",\"virtualMachineId\":\"eseyqr\"},{\"id\":\"y\",\"virtualMachineId\":\"dotjvdk\"}],\"startGroupActions\":[{\"actionName\":\"ws\",\"failoverTypes\":[\"ChangePit\",\"TestFailoverCleanup\",\"Failback\",\"UnplannedFailover\"],\"failoverDirections\":[\"PrimaryToRecovery\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"vwisp\",\"failoverTypes\":[\"Commit\",\"FinalizeFailback\",\"CancelFailover\",\"Commit\"],\"failoverDirections\":[\"RecoveryToPrimary\",\"RecoveryToPrimary\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"qvtwknvgmmbugt\",\"failoverTypes\":[\"TestFailoverCleanup\",\"TestFailoverCleanup\"],\"failoverDirections\":[\"PrimaryToRecovery\",\"PrimaryToRecovery\",\"RecoveryToPrimary\",\"RecoveryToPrimary\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]}]}") - .toObject(UpdateRecoveryPlanInputProperties.class); - Assertions.assertEquals(RecoveryPlanGroupType.BOOT, model.groups().get(0).groupType()); - Assertions.assertEquals("arnroohguab", model.groups().get(0).replicationProtectedItems().get(0).id()); - Assertions.assertEquals("ghktdpy", model.groups().get(0).replicationProtectedItems().get(0).virtualMachineId()); - Assertions.assertEquals("coe", model.groups().get(0).startGroupActions().get(0).actionName()); - Assertions.assertEquals(ReplicationProtectedItemOperation.CHANGE_PIT, - model.groups().get(0).startGroupActions().get(0).failoverTypes().get(0)); - Assertions.assertEquals(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - model.groups().get(0).startGroupActions().get(0).failoverDirections().get(0)); - Assertions.assertEquals("l", model.groups().get(0).endGroupActions().get(0).actionName()); - Assertions.assertEquals(ReplicationProtectedItemOperation.COMPLETE_MIGRATION, - model.groups().get(0).endGroupActions().get(0).failoverTypes().get(0)); - Assertions.assertEquals(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - model.groups().get(0).endGroupActions().get(0).failoverDirections().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UpdateRecoveryPlanInputProperties model = new UpdateRecoveryPlanInputProperties().withGroups(Arrays.asList( - new RecoveryPlanGroup().withGroupType(RecoveryPlanGroupType.BOOT) - .withReplicationProtectedItems(Arrays - .asList(new RecoveryPlanProtectedItem().withId("arnroohguab").withVirtualMachineId("ghktdpy"))) - .withStartGroupActions(Arrays.asList( - new RecoveryPlanAction().withActionName("coe") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.CHANGE_PIT)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("rottjzcfyjzptw") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.COMPLETE_MIGRATION, - ReplicationProtectedItemOperation.CHANGE_PIT)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("infsz") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.DISABLE_PROTECTION, - ReplicationProtectedItemOperation.TEST_FAILOVER_CLEANUP, - ReplicationProtectedItemOperation.UNPLANNED_FAILOVER, - ReplicationProtectedItemOperation.SWITCH_PROTECTION)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY)) - .withCustomDetails(new RecoveryPlanActionDetails()))) - .withEndGroupActions(Arrays.asList( - new RecoveryPlanAction().withActionName("l") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.COMPLETE_MIGRATION)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.RECOVERY_TO_PRIMARY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("yypsjoqc") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.REVERSE_REPLICATE)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("zv") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.REVERSE_REPLICATE)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY)) - .withCustomDetails(new RecoveryPlanActionDetails()))), - new RecoveryPlanGroup().withGroupType(RecoveryPlanGroupType.SHUTDOWN) - .withReplicationProtectedItems( - Arrays.asList(new RecoveryPlanProtectedItem().withId("mpzqjhhhq").withVirtualMachineId("w"))) - .withStartGroupActions(Arrays.asList( - new RecoveryPlanAction().withActionName("acoyvivbsizusjs") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.CANCEL_FAILOVER, - ReplicationProtectedItemOperation.COMPLETE_MIGRATION)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("ijiufehgmvfln") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.REVERSE_REPLICATE, - ReplicationProtectedItemOperation.FAILBACK)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("lniylylyfwxz") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.UNPLANNED_FAILOVER, - ReplicationProtectedItemOperation.TEST_FAILOVER_CLEANUP, - ReplicationProtectedItemOperation.SWITCH_PROTECTION)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY)) - .withCustomDetails(new RecoveryPlanActionDetails()))) - .withEndGroupActions(Arrays.asList(new RecoveryPlanAction().withActionName("pgxyjtcdxabbu") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.UNPLANNED_FAILOVER, - ReplicationProtectedItemOperation.COMMIT, ReplicationProtectedItemOperation.SWITCH_PROTECTION)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("lqpx") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.FINALIZE_FAILBACK, - ReplicationProtectedItemOperation.CHANGE_PIT)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("wwnlzafwxudgnh") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.TEST_FAILOVER_CLEANUP, - ReplicationProtectedItemOperation.FINALIZE_FAILBACK, - ReplicationProtectedItemOperation.CHANGE_PIT)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("nbwgpbemeluclv") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.UNPLANNED_FAILOVER, - ReplicationProtectedItemOperation.UNPLANNED_FAILOVER, - ReplicationProtectedItemOperation.DISABLE_PROTECTION, - ReplicationProtectedItemOperation.PLANNED_FAILOVER)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY)) - .withCustomDetails(new RecoveryPlanActionDetails()))), - new RecoveryPlanGroup().withGroupType(RecoveryPlanGroupType.FAILOVER) - .withReplicationProtectedItems( - Arrays.asList(new RecoveryPlanProtectedItem().withId("h").withVirtualMachineId("qfaqnvzoqg"), - new RecoveryPlanProtectedItem().withId("pem").withVirtualMachineId("gavsczuejd"), - new RecoveryPlanProtectedItem().withId("ptlghwzhomewjjst").withVirtualMachineId("uhqawmoaianc"), - new RecoveryPlanProtectedItem().withId("vodrrslblxydkxr").withVirtualMachineId("vbxiwkgfbqlj"))) - .withStartGroupActions(Arrays.asList( - new RecoveryPlanAction().withActionName("hychocokuleh") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.TEST_FAILOVER, - ReplicationProtectedItemOperation.PLANNED_FAILOVER, - ReplicationProtectedItemOperation.COMPLETE_MIGRATION)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("aweyur") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.UNPLANNED_FAILOVER, - ReplicationProtectedItemOperation.CANCEL_FAILOVER, - ReplicationProtectedItemOperation.CHANGE_PIT)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("av") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.REVERSE_REPLICATE)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("xmrgchbapxkiy") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.CANCEL_FAILOVER)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY)) - .withCustomDetails(new RecoveryPlanActionDetails()))) - .withEndGroupActions(Arrays.asList( - new RecoveryPlanAction().withActionName("us") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.REVERSE_REPLICATE)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("oycblevpmc") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.FINALIZE_FAILBACK, - ReplicationProtectedItemOperation.FAILBACK, - ReplicationProtectedItemOperation.FINALIZE_FAILBACK)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.PRIMARY_TO_RECOVERY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("xlzgsjgkzzl") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.PLANNED_FAILOVER, - ReplicationProtectedItemOperation.FAILBACK)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.RECOVERY_TO_PRIMARY)) - .withCustomDetails(new RecoveryPlanActionDetails()))), - new RecoveryPlanGroup().withGroupType(RecoveryPlanGroupType.FAILOVER) - .withReplicationProtectedItems(Arrays.asList( - new RecoveryPlanProtectedItem().withId("wmbjlzqsczpg").withVirtualMachineId("wnapfdq"), - new RecoveryPlanProtectedItem().withId("wf").withVirtualMachineId("tnuwjtkschgc"), - new RecoveryPlanProtectedItem().withId("y").withVirtualMachineId("eseyqr"), - new RecoveryPlanProtectedItem().withId("y").withVirtualMachineId("dotjvdk"))) - .withStartGroupActions(Arrays.asList( - new RecoveryPlanAction().withActionName("ws") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.CHANGE_PIT, - ReplicationProtectedItemOperation.TEST_FAILOVER_CLEANUP, - ReplicationProtectedItemOperation.FAILBACK, - ReplicationProtectedItemOperation.UNPLANNED_FAILOVER)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.PRIMARY_TO_RECOVERY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("vwisp") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.COMMIT, - ReplicationProtectedItemOperation.FINALIZE_FAILBACK, - ReplicationProtectedItemOperation.CANCEL_FAILOVER, - ReplicationProtectedItemOperation.COMMIT)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY)) - .withCustomDetails(new RecoveryPlanActionDetails()))) - .withEndGroupActions(Arrays.asList(new RecoveryPlanAction().withActionName("qvtwknvgmmbugt") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.TEST_FAILOVER_CLEANUP, - ReplicationProtectedItemOperation.TEST_FAILOVER_CLEANUP)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY)) - .withCustomDetails(new RecoveryPlanActionDetails()))))); - model = BinaryData.fromObject(model).toObject(UpdateRecoveryPlanInputProperties.class); - Assertions.assertEquals(RecoveryPlanGroupType.BOOT, model.groups().get(0).groupType()); - Assertions.assertEquals("arnroohguab", model.groups().get(0).replicationProtectedItems().get(0).id()); - Assertions.assertEquals("ghktdpy", model.groups().get(0).replicationProtectedItems().get(0).virtualMachineId()); - Assertions.assertEquals("coe", model.groups().get(0).startGroupActions().get(0).actionName()); - Assertions.assertEquals(ReplicationProtectedItemOperation.CHANGE_PIT, - model.groups().get(0).startGroupActions().get(0).failoverTypes().get(0)); - Assertions.assertEquals(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - model.groups().get(0).startGroupActions().get(0).failoverDirections().get(0)); - Assertions.assertEquals("l", model.groups().get(0).endGroupActions().get(0).actionName()); - Assertions.assertEquals(ReplicationProtectedItemOperation.COMPLETE_MIGRATION, - model.groups().get(0).endGroupActions().get(0).failoverTypes().get(0)); - Assertions.assertEquals(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - model.groups().get(0).endGroupActions().get(0).failoverDirections().get(0)); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateRecoveryPlanInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateRecoveryPlanInputTests.java deleted file mode 100644 index 4ad6ec8c1cd8..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateRecoveryPlanInputTests.java +++ /dev/null @@ -1,110 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.PossibleOperationsDirections; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanAction; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanActionDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanGroup; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanGroupType; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanProtectedItem; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationProtectedItemOperation; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.UpdateRecoveryPlanInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.UpdateRecoveryPlanInputProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class UpdateRecoveryPlanInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UpdateRecoveryPlanInput model = BinaryData.fromString( - "{\"properties\":{\"groups\":[{\"groupType\":\"Failover\",\"replicationProtectedItems\":[{\"id\":\"kfqlwx\",\"virtualMachineId\":\"ykalsyga\"},{\"id\":\"njpnnbmj\",\"virtualMachineId\":\"ibjgsjjxxahm\"},{\"id\":\"ad\",\"virtualMachineId\":\"qegxyivpin\"},{\"id\":\"hwbjijkgqxnhmbk\",\"virtualMachineId\":\"njaujvaan\"}],\"startGroupActions\":[{\"actionName\":\"iycwkdta\",\"failoverTypes\":[\"ChangePit\",\"CompleteMigration\",\"ReverseReplicate\"],\"failoverDirections\":[\"PrimaryToRecovery\",\"RecoveryToPrimary\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"umrrqmbzm\",\"failoverTypes\":[\"ChangePit\",\"UnplannedFailover\",\"FinalizeFailback\"],\"failoverDirections\":[\"RecoveryToPrimary\",\"PrimaryToRecovery\",\"RecoveryToPrimary\",\"PrimaryToRecovery\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"jsi\",\"failoverTypes\":[\"CompleteMigration\",\"DisableProtection\",\"TestFailover\"],\"failoverDirections\":[\"RecoveryToPrimary\",\"PrimaryToRecovery\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}},{\"actionName\":\"sokdgoge\",\"failoverTypes\":[\"ReverseReplicate\",\"CompleteMigration\",\"DisableProtection\",\"TestFailoverCleanup\"],\"failoverDirections\":[\"PrimaryToRecovery\",\"RecoveryToPrimary\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}],\"endGroupActions\":[{\"actionName\":\"ozkyewnfnzh\",\"failoverTypes\":[\"UnplannedFailover\",\"ChangePit\"],\"failoverDirections\":[\"RecoveryToPrimary\",\"RecoveryToPrimary\",\"RecoveryToPrimary\",\"RecoveryToPrimary\"],\"customDetails\":{\"instanceType\":\"RecoveryPlanActionDetails\"}}]}]}}") - .toObject(UpdateRecoveryPlanInput.class); - Assertions.assertEquals(RecoveryPlanGroupType.FAILOVER, model.properties().groups().get(0).groupType()); - Assertions.assertEquals("kfqlwx", model.properties().groups().get(0).replicationProtectedItems().get(0).id()); - Assertions.assertEquals("ykalsyga", - model.properties().groups().get(0).replicationProtectedItems().get(0).virtualMachineId()); - Assertions.assertEquals("iycwkdta", model.properties().groups().get(0).startGroupActions().get(0).actionName()); - Assertions.assertEquals(ReplicationProtectedItemOperation.CHANGE_PIT, - model.properties().groups().get(0).startGroupActions().get(0).failoverTypes().get(0)); - Assertions.assertEquals(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - model.properties().groups().get(0).startGroupActions().get(0).failoverDirections().get(0)); - Assertions.assertEquals("ozkyewnfnzh", - model.properties().groups().get(0).endGroupActions().get(0).actionName()); - Assertions.assertEquals(ReplicationProtectedItemOperation.UNPLANNED_FAILOVER, - model.properties().groups().get(0).endGroupActions().get(0).failoverTypes().get(0)); - Assertions.assertEquals(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - model.properties().groups().get(0).endGroupActions().get(0).failoverDirections().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UpdateRecoveryPlanInput model = new UpdateRecoveryPlanInput() - .withProperties(new UpdateRecoveryPlanInputProperties().withGroups(Arrays.asList(new RecoveryPlanGroup() - .withGroupType(RecoveryPlanGroupType.FAILOVER) - .withReplicationProtectedItems( - Arrays.asList(new RecoveryPlanProtectedItem().withId("kfqlwx").withVirtualMachineId("ykalsyga"), - new RecoveryPlanProtectedItem().withId("njpnnbmj").withVirtualMachineId("ibjgsjjxxahm"), - new RecoveryPlanProtectedItem().withId("ad").withVirtualMachineId("qegxyivpin"), - new RecoveryPlanProtectedItem().withId("hwbjijkgqxnhmbk").withVirtualMachineId("njaujvaan"))) - .withStartGroupActions(Arrays.asList( - new RecoveryPlanAction().withActionName("iycwkdta") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.CHANGE_PIT, - ReplicationProtectedItemOperation.COMPLETE_MIGRATION, - ReplicationProtectedItemOperation.REVERSE_REPLICATE)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("umrrqmbzm") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.CHANGE_PIT, - ReplicationProtectedItemOperation.UNPLANNED_FAILOVER, - ReplicationProtectedItemOperation.FINALIZE_FAILBACK)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("jsi") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.COMPLETE_MIGRATION, - ReplicationProtectedItemOperation.DISABLE_PROTECTION, - ReplicationProtectedItemOperation.TEST_FAILOVER)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.PRIMARY_TO_RECOVERY)) - .withCustomDetails(new RecoveryPlanActionDetails()), - new RecoveryPlanAction().withActionName("sokdgoge") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.REVERSE_REPLICATE, - ReplicationProtectedItemOperation.COMPLETE_MIGRATION, - ReplicationProtectedItemOperation.DISABLE_PROTECTION, - ReplicationProtectedItemOperation.TEST_FAILOVER_CLEANUP)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY)) - .withCustomDetails(new RecoveryPlanActionDetails()))) - .withEndGroupActions(Arrays.asList(new RecoveryPlanAction().withActionName("ozkyewnfnzh") - .withFailoverTypes(Arrays.asList(ReplicationProtectedItemOperation.UNPLANNED_FAILOVER, - ReplicationProtectedItemOperation.CHANGE_PIT)) - .withFailoverDirections(Arrays.asList(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - PossibleOperationsDirections.RECOVERY_TO_PRIMARY)) - .withCustomDetails(new RecoveryPlanActionDetails())))))); - model = BinaryData.fromObject(model).toObject(UpdateRecoveryPlanInput.class); - Assertions.assertEquals(RecoveryPlanGroupType.FAILOVER, model.properties().groups().get(0).groupType()); - Assertions.assertEquals("kfqlwx", model.properties().groups().get(0).replicationProtectedItems().get(0).id()); - Assertions.assertEquals("ykalsyga", - model.properties().groups().get(0).replicationProtectedItems().get(0).virtualMachineId()); - Assertions.assertEquals("iycwkdta", model.properties().groups().get(0).startGroupActions().get(0).actionName()); - Assertions.assertEquals(ReplicationProtectedItemOperation.CHANGE_PIT, - model.properties().groups().get(0).startGroupActions().get(0).failoverTypes().get(0)); - Assertions.assertEquals(PossibleOperationsDirections.PRIMARY_TO_RECOVERY, - model.properties().groups().get(0).startGroupActions().get(0).failoverDirections().get(0)); - Assertions.assertEquals("ozkyewnfnzh", - model.properties().groups().get(0).endGroupActions().get(0).actionName()); - Assertions.assertEquals(ReplicationProtectedItemOperation.UNPLANNED_FAILOVER, - model.properties().groups().get(0).endGroupActions().get(0).failoverTypes().get(0)); - Assertions.assertEquals(PossibleOperationsDirections.RECOVERY_TO_PRIMARY, - model.properties().groups().get(0).endGroupActions().get(0).failoverDirections().get(0)); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateReplicationProtectedItemInputPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateReplicationProtectedItemInputPropertiesTests.java deleted file mode 100644 index 2dd86ff048d0..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateReplicationProtectedItemInputPropertiesTests.java +++ /dev/null @@ -1,228 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.IpConfigInputDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.LicenseType; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.UpdateReplicationProtectedItemInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.UpdateReplicationProtectedItemProviderInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VMNicInputDetails; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class UpdateReplicationProtectedItemInputPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UpdateReplicationProtectedItemInputProperties model = BinaryData.fromString( - "{\"recoveryAzureVMName\":\"lpqblylsyxk\",\"recoveryAzureVMSize\":\"nsj\",\"selectedRecoveryAzureNetworkId\":\"vti\",\"selectedTfoAzureNetworkId\":\"xsdszuempsb\",\"selectedSourceNicId\":\"f\",\"enableRdpOnTargetOption\":\"eyvpnqicvinvkj\",\"vmNics\":[{\"nicId\":\"rbuukzclewyhmlwp\",\"ipConfigs\":[{\"ipConfigName\":\"pofncck\",\"isPrimary\":false,\"isSeletedForFailover\":true,\"recoverySubnetName\":\"hxx\",\"recoveryStaticIPAddress\":\"yq\",\"recoveryPublicIPAddressId\":\"zfeqztppri\",\"recoveryLBBackendAddressPoolIds\":[\"or\",\"altol\",\"ncwsob\",\"wcsdbnwdcfhucq\"],\"tfoSubnetName\":\"fuvglsbjjca\",\"tfoStaticIPAddress\":\"xbvtvudu\",\"tfoPublicIPAddressId\":\"cormr\",\"tfoLBBackendAddressPoolIds\":[\"tvcof\",\"dflvkg\",\"u\",\"gdknnqv\"]},{\"ipConfigName\":\"znqntoru\",\"isPrimary\":true,\"isSeletedForFailover\":false,\"recoverySubnetName\":\"mkycgra\",\"recoveryStaticIPAddress\":\"juetaebur\",\"recoveryPublicIPAddressId\":\"dmovsm\",\"recoveryLBBackendAddressPoolIds\":[\"wabm\",\"oefki\"],\"tfoSubnetName\":\"vtpuqujmqlgk\",\"tfoStaticIPAddress\":\"tndoaongbjc\",\"tfoPublicIPAddressId\":\"ujitcjedftww\",\"tfoLBBackendAddressPoolIds\":[\"kojvd\"]},{\"ipConfigName\":\"zfoqouicybxar\",\"isPrimary\":true,\"isSeletedForFailover\":false,\"recoverySubnetName\":\"oxciqopidoamcio\",\"recoveryStaticIPAddress\":\"khazxkhnzbonlwn\",\"recoveryPublicIPAddressId\":\"egokdwbwhkszzcmr\",\"recoveryLBBackendAddressPoolIds\":[\"ztvbtqgsfr\",\"oyzko\",\"wtl\",\"nguxawqaldsy\"],\"tfoSubnetName\":\"ximerqfobwyznk\",\"tfoStaticIPAddress\":\"kutwpf\",\"tfoPublicIPAddressId\":\"a\",\"tfoLBBackendAddressPoolIds\":[\"r\",\"kdsnfdsdoakgtdl\",\"kkze\"]},{\"ipConfigName\":\"l\",\"isPrimary\":true,\"isSeletedForFailover\":false,\"recoverySubnetName\":\"dsttwvo\",\"recoveryStaticIPAddress\":\"bbejdcngqqm\",\"recoveryPublicIPAddressId\":\"kufgmj\",\"recoveryLBBackendAddressPoolIds\":[\"rdgrtw\"],\"tfoSubnetName\":\"nuuzkopbm\",\"tfoStaticIPAddress\":\"rfdwoyu\",\"tfoPublicIPAddressId\":\"ziuiefozbhdm\",\"tfoLBBackendAddressPoolIds\":[\"mzqhoftrmaequi\"]}],\"selectionType\":\"xicslfao\",\"recoveryNetworkSecurityGroupId\":\"piyylhalnswhccsp\",\"enableAcceleratedNetworkingOnRecovery\":true,\"tfoNetworkSecurityGroupId\":\"vwitqscyw\",\"enableAcceleratedNetworkingOnTfo\":false,\"recoveryNicName\":\"oluhczbwemh\",\"recoveryNicResourceGroupName\":\"rsbrgzdwm\",\"reuseExistingNic\":true,\"tfoNicName\":\"pqwd\",\"tfoNicResourceGroupName\":\"gicccnxqhuex\",\"tfoReuseExistingNic\":true,\"targetNicName\":\"lstvlzywe\"},{\"nicId\":\"zrncsdt\",\"ipConfigs\":[{\"ipConfigName\":\"iypbsfgytgusl\",\"isPrimary\":false,\"isSeletedForFailover\":false,\"recoverySubnetName\":\"gq\",\"recoveryStaticIPAddress\":\"yhejhzisxgfp\",\"recoveryPublicIPAddressId\":\"olppvksrpqvujz\",\"recoveryLBBackendAddressPoolIds\":[\"htwdwrftswibyrcd\",\"bhshfwpracstwity\",\"hevxcced\"],\"tfoSubnetName\":\"nmdyodnwzxl\",\"tfoStaticIPAddress\":\"cvnhltiugc\",\"tfoPublicIPAddressId\":\"avvwxqi\",\"tfoLBBackendAddressPoolIds\":[\"unyowxwl\",\"djrkvfgbvfvpd\",\"odacizs\",\"q\"]}],\"selectionType\":\"krribdeibqi\",\"recoveryNetworkSecurityGroupId\":\"kghv\",\"enableAcceleratedNetworkingOnRecovery\":true,\"tfoNetworkSecurityGroupId\":\"wm\",\"enableAcceleratedNetworkingOnTfo\":false,\"recoveryNicName\":\"ajpjo\",\"recoveryNicResourceGroupName\":\"kqnyh\",\"reuseExistingNic\":false,\"tfoNicName\":\"tjivfxzsjabib\",\"tfoNicResourceGroupName\":\"stawfsdjpvkv\",\"tfoReuseExistingNic\":true,\"targetNicName\":\"bkzbzkd\"},{\"nicId\":\"cjabudurgkakmo\",\"ipConfigs\":[{\"ipConfigName\":\"jk\",\"isPrimary\":false,\"isSeletedForFailover\":true,\"recoverySubnetName\":\"uwqlgzrfzeey\",\"recoveryStaticIPAddress\":\"izikayuhq\",\"recoveryPublicIPAddressId\":\"jbsybbqw\",\"recoveryLBBackendAddressPoolIds\":[\"ldgmfpgvmpip\"],\"tfoSubnetName\":\"ltha\",\"tfoStaticIPAddress\":\"x\",\"tfoPublicIPAddressId\":\"mwutwbdsre\",\"tfoLBBackendAddressPoolIds\":[\"rhneuyowq\",\"d\",\"ytisibir\"]},{\"ipConfigName\":\"pikpz\",\"isPrimary\":false,\"isSeletedForFailover\":false,\"recoverySubnetName\":\"nlfzxiavrmbz\",\"recoveryStaticIPAddress\":\"okixrjqcir\",\"recoveryPublicIPAddressId\":\"pfrlazsz\",\"recoveryLBBackendAddressPoolIds\":[\"oiindfpwpjy\",\"wbtlhflsjcdh\"],\"tfoSubnetName\":\"fjvfbgofeljagr\",\"tfoStaticIPAddress\":\"qhl\",\"tfoPublicIPAddressId\":\"riiiojnalghfkv\",\"tfoLBBackendAddressPoolIds\":[\"ex\",\"owueluqh\"]}],\"selectionType\":\"hhxvrhmzkwpj\",\"recoveryNetworkSecurityGroupId\":\"wspughftqsxhqx\",\"enableAcceleratedNetworkingOnRecovery\":true,\"tfoNetworkSecurityGroupId\":\"kndxdigrjgu\",\"enableAcceleratedNetworkingOnTfo\":true,\"recoveryNicName\":\"msyqtfi\",\"recoveryNicResourceGroupName\":\"hbotzingamvppho\",\"reuseExistingNic\":false,\"tfoNicName\":\"udphqamvdkfwyn\",\"tfoNicResourceGroupName\":\"vtbvkayh\",\"tfoReuseExistingNic\":false,\"targetNicName\":\"yqiatkzwp\"}],\"licenseType\":\"WindowsServer\",\"recoveryAvailabilitySetId\":\"zcjaesgvvsccy\",\"providerSpecificDetails\":{\"instanceType\":\"UpdateReplicationProtectedItemProviderInput\"}}") - .toObject(UpdateReplicationProtectedItemInputProperties.class); - Assertions.assertEquals("lpqblylsyxk", model.recoveryAzureVMName()); - Assertions.assertEquals("nsj", model.recoveryAzureVMSize()); - Assertions.assertEquals("vti", model.selectedRecoveryAzureNetworkId()); - Assertions.assertEquals("xsdszuempsb", model.selectedTfoAzureNetworkId()); - Assertions.assertEquals("f", model.selectedSourceNicId()); - Assertions.assertEquals("eyvpnqicvinvkj", model.enableRdpOnTargetOption()); - Assertions.assertEquals("rbuukzclewyhmlwp", model.vmNics().get(0).nicId()); - Assertions.assertEquals("pofncck", model.vmNics().get(0).ipConfigs().get(0).ipConfigName()); - Assertions.assertEquals(false, model.vmNics().get(0).ipConfigs().get(0).isPrimary()); - Assertions.assertEquals(true, model.vmNics().get(0).ipConfigs().get(0).isSeletedForFailover()); - Assertions.assertEquals("hxx", model.vmNics().get(0).ipConfigs().get(0).recoverySubnetName()); - Assertions.assertEquals("yq", model.vmNics().get(0).ipConfigs().get(0).recoveryStaticIpAddress()); - Assertions.assertEquals("zfeqztppri", model.vmNics().get(0).ipConfigs().get(0).recoveryPublicIpAddressId()); - Assertions.assertEquals("or", - model.vmNics().get(0).ipConfigs().get(0).recoveryLBBackendAddressPoolIds().get(0)); - Assertions.assertEquals("fuvglsbjjca", model.vmNics().get(0).ipConfigs().get(0).tfoSubnetName()); - Assertions.assertEquals("xbvtvudu", model.vmNics().get(0).ipConfigs().get(0).tfoStaticIpAddress()); - Assertions.assertEquals("cormr", model.vmNics().get(0).ipConfigs().get(0).tfoPublicIpAddressId()); - Assertions.assertEquals("tvcof", model.vmNics().get(0).ipConfigs().get(0).tfoLBBackendAddressPoolIds().get(0)); - Assertions.assertEquals("xicslfao", model.vmNics().get(0).selectionType()); - Assertions.assertEquals("piyylhalnswhccsp", model.vmNics().get(0).recoveryNetworkSecurityGroupId()); - Assertions.assertEquals(true, model.vmNics().get(0).enableAcceleratedNetworkingOnRecovery()); - Assertions.assertEquals("vwitqscyw", model.vmNics().get(0).tfoNetworkSecurityGroupId()); - Assertions.assertEquals(false, model.vmNics().get(0).enableAcceleratedNetworkingOnTfo()); - Assertions.assertEquals("oluhczbwemh", model.vmNics().get(0).recoveryNicName()); - Assertions.assertEquals("rsbrgzdwm", model.vmNics().get(0).recoveryNicResourceGroupName()); - Assertions.assertEquals(true, model.vmNics().get(0).reuseExistingNic()); - Assertions.assertEquals("pqwd", model.vmNics().get(0).tfoNicName()); - Assertions.assertEquals("gicccnxqhuex", model.vmNics().get(0).tfoNicResourceGroupName()); - Assertions.assertEquals(true, model.vmNics().get(0).tfoReuseExistingNic()); - Assertions.assertEquals("lstvlzywe", model.vmNics().get(0).targetNicName()); - Assertions.assertEquals(LicenseType.WINDOWS_SERVER, model.licenseType()); - Assertions.assertEquals("zcjaesgvvsccy", model.recoveryAvailabilitySetId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UpdateReplicationProtectedItemInputProperties model - = new UpdateReplicationProtectedItemInputProperties().withRecoveryAzureVMName("lpqblylsyxk") - .withRecoveryAzureVMSize("nsj") - .withSelectedRecoveryAzureNetworkId("vti") - .withSelectedTfoAzureNetworkId("xsdszuempsb") - .withSelectedSourceNicId("f") - .withEnableRdpOnTargetOption("eyvpnqicvinvkj") - .withVmNics(Arrays.asList( - new VMNicInputDetails().withNicId("rbuukzclewyhmlwp") - .withIpConfigs(Arrays.asList( - new IpConfigInputDetails().withIpConfigName("pofncck") - .withIsPrimary(false) - .withIsSeletedForFailover(true) - .withRecoverySubnetName("hxx") - .withRecoveryStaticIpAddress("yq") - .withRecoveryPublicIpAddressId("zfeqztppri") - .withRecoveryLBBackendAddressPoolIds( - Arrays.asList("or", "altol", "ncwsob", "wcsdbnwdcfhucq")) - .withTfoSubnetName("fuvglsbjjca") - .withTfoStaticIpAddress("xbvtvudu") - .withTfoPublicIpAddressId("cormr") - .withTfoLBBackendAddressPoolIds(Arrays.asList("tvcof", "dflvkg", "u", "gdknnqv")), - new IpConfigInputDetails().withIpConfigName("znqntoru") - .withIsPrimary(true) - .withIsSeletedForFailover(false) - .withRecoverySubnetName("mkycgra") - .withRecoveryStaticIpAddress("juetaebur") - .withRecoveryPublicIpAddressId("dmovsm") - .withRecoveryLBBackendAddressPoolIds(Arrays.asList("wabm", "oefki")) - .withTfoSubnetName("vtpuqujmqlgk") - .withTfoStaticIpAddress("tndoaongbjc") - .withTfoPublicIpAddressId("ujitcjedftww") - .withTfoLBBackendAddressPoolIds(Arrays.asList("kojvd")), - new IpConfigInputDetails().withIpConfigName("zfoqouicybxar") - .withIsPrimary(true) - .withIsSeletedForFailover(false) - .withRecoverySubnetName("oxciqopidoamcio") - .withRecoveryStaticIpAddress("khazxkhnzbonlwn") - .withRecoveryPublicIpAddressId("egokdwbwhkszzcmr") - .withRecoveryLBBackendAddressPoolIds( - Arrays.asList("ztvbtqgsfr", "oyzko", "wtl", "nguxawqaldsy")) - .withTfoSubnetName("ximerqfobwyznk") - .withTfoStaticIpAddress("kutwpf") - .withTfoPublicIpAddressId("a") - .withTfoLBBackendAddressPoolIds(Arrays.asList("r", "kdsnfdsdoakgtdl", "kkze")), - new IpConfigInputDetails() - .withIpConfigName("l") - .withIsPrimary(true) - .withIsSeletedForFailover(false) - .withRecoverySubnetName("dsttwvo") - .withRecoveryStaticIpAddress("bbejdcngqqm") - .withRecoveryPublicIpAddressId("kufgmj") - .withRecoveryLBBackendAddressPoolIds(Arrays.asList("rdgrtw")) - .withTfoSubnetName("nuuzkopbm") - .withTfoStaticIpAddress("rfdwoyu") - .withTfoPublicIpAddressId("ziuiefozbhdm") - .withTfoLBBackendAddressPoolIds(Arrays.asList("mzqhoftrmaequi")))) - .withSelectionType("xicslfao") - .withRecoveryNetworkSecurityGroupId("piyylhalnswhccsp") - .withEnableAcceleratedNetworkingOnRecovery(true) - .withTfoNetworkSecurityGroupId("vwitqscyw") - .withEnableAcceleratedNetworkingOnTfo(false) - .withRecoveryNicName("oluhczbwemh") - .withRecoveryNicResourceGroupName("rsbrgzdwm") - .withReuseExistingNic(true) - .withTfoNicName("pqwd") - .withTfoNicResourceGroupName("gicccnxqhuex") - .withTfoReuseExistingNic(true) - .withTargetNicName("lstvlzywe"), - new VMNicInputDetails().withNicId("zrncsdt") - .withIpConfigs(Arrays.asList(new IpConfigInputDetails().withIpConfigName("iypbsfgytgusl") - .withIsPrimary(false) - .withIsSeletedForFailover(false) - .withRecoverySubnetName("gq") - .withRecoveryStaticIpAddress("yhejhzisxgfp") - .withRecoveryPublicIpAddressId("olppvksrpqvujz") - .withRecoveryLBBackendAddressPoolIds( - Arrays.asList("htwdwrftswibyrcd", "bhshfwpracstwity", "hevxcced")) - .withTfoSubnetName("nmdyodnwzxl") - .withTfoStaticIpAddress("cvnhltiugc") - .withTfoPublicIpAddressId("avvwxqi") - .withTfoLBBackendAddressPoolIds( - Arrays.asList("unyowxwl", "djrkvfgbvfvpd", "odacizs", "q")))) - .withSelectionType("krribdeibqi") - .withRecoveryNetworkSecurityGroupId("kghv") - .withEnableAcceleratedNetworkingOnRecovery(true) - .withTfoNetworkSecurityGroupId("wm") - .withEnableAcceleratedNetworkingOnTfo(false) - .withRecoveryNicName("ajpjo") - .withRecoveryNicResourceGroupName("kqnyh") - .withReuseExistingNic(false) - .withTfoNicName("tjivfxzsjabib") - .withTfoNicResourceGroupName("stawfsdjpvkv") - .withTfoReuseExistingNic(true) - .withTargetNicName("bkzbzkd"), - new VMNicInputDetails().withNicId("cjabudurgkakmo") - .withIpConfigs(Arrays.asList( - new IpConfigInputDetails().withIpConfigName("jk") - .withIsPrimary(false) - .withIsSeletedForFailover(true) - .withRecoverySubnetName("uwqlgzrfzeey") - .withRecoveryStaticIpAddress("izikayuhq") - .withRecoveryPublicIpAddressId("jbsybbqw") - .withRecoveryLBBackendAddressPoolIds(Arrays.asList("ldgmfpgvmpip")) - .withTfoSubnetName("ltha") - .withTfoStaticIpAddress("x") - .withTfoPublicIpAddressId("mwutwbdsre") - .withTfoLBBackendAddressPoolIds(Arrays.asList("rhneuyowq", "d", "ytisibir")), - new IpConfigInputDetails().withIpConfigName("pikpz") - .withIsPrimary(false) - .withIsSeletedForFailover(false) - .withRecoverySubnetName("nlfzxiavrmbz") - .withRecoveryStaticIpAddress("okixrjqcir") - .withRecoveryPublicIpAddressId("pfrlazsz") - .withRecoveryLBBackendAddressPoolIds(Arrays.asList("oiindfpwpjy", "wbtlhflsjcdh")) - .withTfoSubnetName("fjvfbgofeljagr") - .withTfoStaticIpAddress("qhl") - .withTfoPublicIpAddressId("riiiojnalghfkv") - .withTfoLBBackendAddressPoolIds(Arrays.asList("ex", "owueluqh")))) - .withSelectionType("hhxvrhmzkwpj") - .withRecoveryNetworkSecurityGroupId("wspughftqsxhqx") - .withEnableAcceleratedNetworkingOnRecovery(true) - .withTfoNetworkSecurityGroupId("kndxdigrjgu") - .withEnableAcceleratedNetworkingOnTfo(true) - .withRecoveryNicName("msyqtfi") - .withRecoveryNicResourceGroupName("hbotzingamvppho") - .withReuseExistingNic(false) - .withTfoNicName("udphqamvdkfwyn") - .withTfoNicResourceGroupName("vtbvkayh") - .withTfoReuseExistingNic(false) - .withTargetNicName("yqiatkzwp"))) - .withLicenseType(LicenseType.WINDOWS_SERVER) - .withRecoveryAvailabilitySetId("zcjaesgvvsccy") - .withProviderSpecificDetails(new UpdateReplicationProtectedItemProviderInput()); - model = BinaryData.fromObject(model).toObject(UpdateReplicationProtectedItemInputProperties.class); - Assertions.assertEquals("lpqblylsyxk", model.recoveryAzureVMName()); - Assertions.assertEquals("nsj", model.recoveryAzureVMSize()); - Assertions.assertEquals("vti", model.selectedRecoveryAzureNetworkId()); - Assertions.assertEquals("xsdszuempsb", model.selectedTfoAzureNetworkId()); - Assertions.assertEquals("f", model.selectedSourceNicId()); - Assertions.assertEquals("eyvpnqicvinvkj", model.enableRdpOnTargetOption()); - Assertions.assertEquals("rbuukzclewyhmlwp", model.vmNics().get(0).nicId()); - Assertions.assertEquals("pofncck", model.vmNics().get(0).ipConfigs().get(0).ipConfigName()); - Assertions.assertEquals(false, model.vmNics().get(0).ipConfigs().get(0).isPrimary()); - Assertions.assertEquals(true, model.vmNics().get(0).ipConfigs().get(0).isSeletedForFailover()); - Assertions.assertEquals("hxx", model.vmNics().get(0).ipConfigs().get(0).recoverySubnetName()); - Assertions.assertEquals("yq", model.vmNics().get(0).ipConfigs().get(0).recoveryStaticIpAddress()); - Assertions.assertEquals("zfeqztppri", model.vmNics().get(0).ipConfigs().get(0).recoveryPublicIpAddressId()); - Assertions.assertEquals("or", - model.vmNics().get(0).ipConfigs().get(0).recoveryLBBackendAddressPoolIds().get(0)); - Assertions.assertEquals("fuvglsbjjca", model.vmNics().get(0).ipConfigs().get(0).tfoSubnetName()); - Assertions.assertEquals("xbvtvudu", model.vmNics().get(0).ipConfigs().get(0).tfoStaticIpAddress()); - Assertions.assertEquals("cormr", model.vmNics().get(0).ipConfigs().get(0).tfoPublicIpAddressId()); - Assertions.assertEquals("tvcof", model.vmNics().get(0).ipConfigs().get(0).tfoLBBackendAddressPoolIds().get(0)); - Assertions.assertEquals("xicslfao", model.vmNics().get(0).selectionType()); - Assertions.assertEquals("piyylhalnswhccsp", model.vmNics().get(0).recoveryNetworkSecurityGroupId()); - Assertions.assertEquals(true, model.vmNics().get(0).enableAcceleratedNetworkingOnRecovery()); - Assertions.assertEquals("vwitqscyw", model.vmNics().get(0).tfoNetworkSecurityGroupId()); - Assertions.assertEquals(false, model.vmNics().get(0).enableAcceleratedNetworkingOnTfo()); - Assertions.assertEquals("oluhczbwemh", model.vmNics().get(0).recoveryNicName()); - Assertions.assertEquals("rsbrgzdwm", model.vmNics().get(0).recoveryNicResourceGroupName()); - Assertions.assertEquals(true, model.vmNics().get(0).reuseExistingNic()); - Assertions.assertEquals("pqwd", model.vmNics().get(0).tfoNicName()); - Assertions.assertEquals("gicccnxqhuex", model.vmNics().get(0).tfoNicResourceGroupName()); - Assertions.assertEquals(true, model.vmNics().get(0).tfoReuseExistingNic()); - Assertions.assertEquals("lstvlzywe", model.vmNics().get(0).targetNicName()); - Assertions.assertEquals(LicenseType.WINDOWS_SERVER, model.licenseType()); - Assertions.assertEquals("zcjaesgvvsccy", model.recoveryAvailabilitySetId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateReplicationProtectedItemInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateReplicationProtectedItemInputTests.java deleted file mode 100644 index 6f99dfd769ab..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateReplicationProtectedItemInputTests.java +++ /dev/null @@ -1,156 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.IpConfigInputDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.LicenseType; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.UpdateReplicationProtectedItemInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.UpdateReplicationProtectedItemInputProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.UpdateReplicationProtectedItemProviderInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VMNicInputDetails; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class UpdateReplicationProtectedItemInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UpdateReplicationProtectedItemInput model = BinaryData.fromString( - "{\"properties\":{\"recoveryAzureVMName\":\"wneaiv\",\"recoveryAzureVMSize\":\"czelpcirel\",\"selectedRecoveryAzureNetworkId\":\"eae\",\"selectedTfoAzureNetworkId\":\"abfatkl\",\"selectedSourceNicId\":\"xbjhwuaanozjosph\",\"enableRdpOnTargetOption\":\"ulpjr\",\"vmNics\":[{\"nicId\":\"l\",\"ipConfigs\":[{\"ipConfigName\":\"jwosytxitcskfck\",\"isPrimary\":true,\"isSeletedForFailover\":false,\"recoverySubnetName\":\"kkezzikhlyfjhdgq\",\"recoveryStaticIPAddress\":\"ebdunyg\",\"recoveryPublicIPAddressId\":\"qidbqfatpxllrxcy\",\"recoveryLBBackendAddressPoolIds\":[\"a\",\"su\"],\"tfoSubnetName\":\"r\",\"tfoStaticIPAddress\":\"wdmjsjqbjhhyx\",\"tfoPublicIPAddressId\":\"wlycoduhpkxkg\",\"tfoLBBackendAddressPoolIds\":[\"re\",\"n\"]},{\"ipConfigName\":\"xqugjhkycubedd\",\"isPrimary\":true,\"isSeletedForFailover\":true,\"recoverySubnetName\":\"qmzqalkrmnjijpx\",\"recoveryStaticIPAddress\":\"q\",\"recoveryPublicIPAddressId\":\"dfnbyxbaaabjyv\",\"recoveryLBBackendAddressPoolIds\":[\"fimrzrtuzqogse\",\"nevfdnw\",\"wmewzsyy\",\"euzsoi\"],\"tfoSubnetName\":\"ud\",\"tfoStaticIPAddress\":\"rx\",\"tfoPublicIPAddressId\":\"thzvaytdwkqbrqu\",\"tfoLBBackendAddressPoolIds\":[\"xhexiilivpdti\",\"r\",\"tdqoaxoruzfgsq\"]}],\"selectionType\":\"fxrxxle\",\"recoveryNetworkSecurityGroupId\":\"ramxjezwlwnw\",\"enableAcceleratedNetworkingOnRecovery\":false,\"tfoNetworkSecurityGroupId\":\"cvydypatdoo\",\"enableAcceleratedNetworkingOnTfo\":false,\"recoveryNicName\":\"niodkooeb\",\"recoveryNicResourceGroupName\":\"ujhemmsbvdkcrodt\",\"reuseExistingNic\":true,\"tfoNicName\":\"wj\",\"tfoNicResourceGroupName\":\"lt\",\"tfoReuseExistingNic\":true,\"targetNicName\":\"vefkdlfoakggk\"}],\"licenseType\":\"NotSpecified\",\"recoveryAvailabilitySetId\":\"ao\",\"providerSpecificDetails\":{\"instanceType\":\"UpdateReplicationProtectedItemProviderInput\"}}}") - .toObject(UpdateReplicationProtectedItemInput.class); - Assertions.assertEquals("wneaiv", model.properties().recoveryAzureVMName()); - Assertions.assertEquals("czelpcirel", model.properties().recoveryAzureVMSize()); - Assertions.assertEquals("eae", model.properties().selectedRecoveryAzureNetworkId()); - Assertions.assertEquals("abfatkl", model.properties().selectedTfoAzureNetworkId()); - Assertions.assertEquals("xbjhwuaanozjosph", model.properties().selectedSourceNicId()); - Assertions.assertEquals("ulpjr", model.properties().enableRdpOnTargetOption()); - Assertions.assertEquals("l", model.properties().vmNics().get(0).nicId()); - Assertions.assertEquals("jwosytxitcskfck", - model.properties().vmNics().get(0).ipConfigs().get(0).ipConfigName()); - Assertions.assertEquals(true, model.properties().vmNics().get(0).ipConfigs().get(0).isPrimary()); - Assertions.assertEquals(false, model.properties().vmNics().get(0).ipConfigs().get(0).isSeletedForFailover()); - Assertions.assertEquals("kkezzikhlyfjhdgq", - model.properties().vmNics().get(0).ipConfigs().get(0).recoverySubnetName()); - Assertions.assertEquals("ebdunyg", - model.properties().vmNics().get(0).ipConfigs().get(0).recoveryStaticIpAddress()); - Assertions.assertEquals("qidbqfatpxllrxcy", - model.properties().vmNics().get(0).ipConfigs().get(0).recoveryPublicIpAddressId()); - Assertions.assertEquals("a", - model.properties().vmNics().get(0).ipConfigs().get(0).recoveryLBBackendAddressPoolIds().get(0)); - Assertions.assertEquals("r", model.properties().vmNics().get(0).ipConfigs().get(0).tfoSubnetName()); - Assertions.assertEquals("wdmjsjqbjhhyx", - model.properties().vmNics().get(0).ipConfigs().get(0).tfoStaticIpAddress()); - Assertions.assertEquals("wlycoduhpkxkg", - model.properties().vmNics().get(0).ipConfigs().get(0).tfoPublicIpAddressId()); - Assertions.assertEquals("re", - model.properties().vmNics().get(0).ipConfigs().get(0).tfoLBBackendAddressPoolIds().get(0)); - Assertions.assertEquals("fxrxxle", model.properties().vmNics().get(0).selectionType()); - Assertions.assertEquals("ramxjezwlwnw", model.properties().vmNics().get(0).recoveryNetworkSecurityGroupId()); - Assertions.assertEquals(false, model.properties().vmNics().get(0).enableAcceleratedNetworkingOnRecovery()); - Assertions.assertEquals("cvydypatdoo", model.properties().vmNics().get(0).tfoNetworkSecurityGroupId()); - Assertions.assertEquals(false, model.properties().vmNics().get(0).enableAcceleratedNetworkingOnTfo()); - Assertions.assertEquals("niodkooeb", model.properties().vmNics().get(0).recoveryNicName()); - Assertions.assertEquals("ujhemmsbvdkcrodt", model.properties().vmNics().get(0).recoveryNicResourceGroupName()); - Assertions.assertEquals(true, model.properties().vmNics().get(0).reuseExistingNic()); - Assertions.assertEquals("wj", model.properties().vmNics().get(0).tfoNicName()); - Assertions.assertEquals("lt", model.properties().vmNics().get(0).tfoNicResourceGroupName()); - Assertions.assertEquals(true, model.properties().vmNics().get(0).tfoReuseExistingNic()); - Assertions.assertEquals("vefkdlfoakggk", model.properties().vmNics().get(0).targetNicName()); - Assertions.assertEquals(LicenseType.NOT_SPECIFIED, model.properties().licenseType()); - Assertions.assertEquals("ao", model.properties().recoveryAvailabilitySetId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UpdateReplicationProtectedItemInput model = new UpdateReplicationProtectedItemInput() - .withProperties(new UpdateReplicationProtectedItemInputProperties().withRecoveryAzureVMName("wneaiv") - .withRecoveryAzureVMSize("czelpcirel") - .withSelectedRecoveryAzureNetworkId("eae") - .withSelectedTfoAzureNetworkId("abfatkl") - .withSelectedSourceNicId("xbjhwuaanozjosph") - .withEnableRdpOnTargetOption("ulpjr") - .withVmNics(Arrays.asList(new VMNicInputDetails().withNicId("l") - .withIpConfigs(Arrays.asList( - new IpConfigInputDetails().withIpConfigName("jwosytxitcskfck") - .withIsPrimary(true) - .withIsSeletedForFailover(false) - .withRecoverySubnetName("kkezzikhlyfjhdgq") - .withRecoveryStaticIpAddress("ebdunyg") - .withRecoveryPublicIpAddressId("qidbqfatpxllrxcy") - .withRecoveryLBBackendAddressPoolIds(Arrays.asList("a", "su")) - .withTfoSubnetName("r") - .withTfoStaticIpAddress("wdmjsjqbjhhyx") - .withTfoPublicIpAddressId("wlycoduhpkxkg") - .withTfoLBBackendAddressPoolIds(Arrays.asList("re", "n")), - new IpConfigInputDetails().withIpConfigName("xqugjhkycubedd") - .withIsPrimary(true) - .withIsSeletedForFailover(true) - .withRecoverySubnetName("qmzqalkrmnjijpx") - .withRecoveryStaticIpAddress("q") - .withRecoveryPublicIpAddressId("dfnbyxbaaabjyv") - .withRecoveryLBBackendAddressPoolIds( - Arrays.asList("fimrzrtuzqogse", "nevfdnw", "wmewzsyy", "euzsoi")) - .withTfoSubnetName("ud") - .withTfoStaticIpAddress("rx") - .withTfoPublicIpAddressId("thzvaytdwkqbrqu") - .withTfoLBBackendAddressPoolIds(Arrays.asList("xhexiilivpdti", "r", "tdqoaxoruzfgsq")))) - .withSelectionType("fxrxxle") - .withRecoveryNetworkSecurityGroupId("ramxjezwlwnw") - .withEnableAcceleratedNetworkingOnRecovery(false) - .withTfoNetworkSecurityGroupId("cvydypatdoo") - .withEnableAcceleratedNetworkingOnTfo(false) - .withRecoveryNicName("niodkooeb") - .withRecoveryNicResourceGroupName("ujhemmsbvdkcrodt") - .withReuseExistingNic(true) - .withTfoNicName("wj") - .withTfoNicResourceGroupName("lt") - .withTfoReuseExistingNic(true) - .withTargetNicName("vefkdlfoakggk"))) - .withLicenseType(LicenseType.NOT_SPECIFIED) - .withRecoveryAvailabilitySetId("ao") - .withProviderSpecificDetails(new UpdateReplicationProtectedItemProviderInput())); - model = BinaryData.fromObject(model).toObject(UpdateReplicationProtectedItemInput.class); - Assertions.assertEquals("wneaiv", model.properties().recoveryAzureVMName()); - Assertions.assertEquals("czelpcirel", model.properties().recoveryAzureVMSize()); - Assertions.assertEquals("eae", model.properties().selectedRecoveryAzureNetworkId()); - Assertions.assertEquals("abfatkl", model.properties().selectedTfoAzureNetworkId()); - Assertions.assertEquals("xbjhwuaanozjosph", model.properties().selectedSourceNicId()); - Assertions.assertEquals("ulpjr", model.properties().enableRdpOnTargetOption()); - Assertions.assertEquals("l", model.properties().vmNics().get(0).nicId()); - Assertions.assertEquals("jwosytxitcskfck", - model.properties().vmNics().get(0).ipConfigs().get(0).ipConfigName()); - Assertions.assertEquals(true, model.properties().vmNics().get(0).ipConfigs().get(0).isPrimary()); - Assertions.assertEquals(false, model.properties().vmNics().get(0).ipConfigs().get(0).isSeletedForFailover()); - Assertions.assertEquals("kkezzikhlyfjhdgq", - model.properties().vmNics().get(0).ipConfigs().get(0).recoverySubnetName()); - Assertions.assertEquals("ebdunyg", - model.properties().vmNics().get(0).ipConfigs().get(0).recoveryStaticIpAddress()); - Assertions.assertEquals("qidbqfatpxllrxcy", - model.properties().vmNics().get(0).ipConfigs().get(0).recoveryPublicIpAddressId()); - Assertions.assertEquals("a", - model.properties().vmNics().get(0).ipConfigs().get(0).recoveryLBBackendAddressPoolIds().get(0)); - Assertions.assertEquals("r", model.properties().vmNics().get(0).ipConfigs().get(0).tfoSubnetName()); - Assertions.assertEquals("wdmjsjqbjhhyx", - model.properties().vmNics().get(0).ipConfigs().get(0).tfoStaticIpAddress()); - Assertions.assertEquals("wlycoduhpkxkg", - model.properties().vmNics().get(0).ipConfigs().get(0).tfoPublicIpAddressId()); - Assertions.assertEquals("re", - model.properties().vmNics().get(0).ipConfigs().get(0).tfoLBBackendAddressPoolIds().get(0)); - Assertions.assertEquals("fxrxxle", model.properties().vmNics().get(0).selectionType()); - Assertions.assertEquals("ramxjezwlwnw", model.properties().vmNics().get(0).recoveryNetworkSecurityGroupId()); - Assertions.assertEquals(false, model.properties().vmNics().get(0).enableAcceleratedNetworkingOnRecovery()); - Assertions.assertEquals("cvydypatdoo", model.properties().vmNics().get(0).tfoNetworkSecurityGroupId()); - Assertions.assertEquals(false, model.properties().vmNics().get(0).enableAcceleratedNetworkingOnTfo()); - Assertions.assertEquals("niodkooeb", model.properties().vmNics().get(0).recoveryNicName()); - Assertions.assertEquals("ujhemmsbvdkcrodt", model.properties().vmNics().get(0).recoveryNicResourceGroupName()); - Assertions.assertEquals(true, model.properties().vmNics().get(0).reuseExistingNic()); - Assertions.assertEquals("wj", model.properties().vmNics().get(0).tfoNicName()); - Assertions.assertEquals("lt", model.properties().vmNics().get(0).tfoNicResourceGroupName()); - Assertions.assertEquals(true, model.properties().vmNics().get(0).tfoReuseExistingNic()); - Assertions.assertEquals("vefkdlfoakggk", model.properties().vmNics().get(0).targetNicName()); - Assertions.assertEquals(LicenseType.NOT_SPECIFIED, model.properties().licenseType()); - Assertions.assertEquals("ao", model.properties().recoveryAvailabilitySetId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateReplicationProtectedItemProviderInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateReplicationProtectedItemProviderInputTests.java deleted file mode 100644 index 0788afb47950..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateReplicationProtectedItemProviderInputTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.UpdateReplicationProtectedItemProviderInput; - -public final class UpdateReplicationProtectedItemProviderInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UpdateReplicationProtectedItemProviderInput model - = BinaryData.fromString("{\"instanceType\":\"UpdateReplicationProtectedItemProviderInput\"}") - .toObject(UpdateReplicationProtectedItemProviderInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UpdateReplicationProtectedItemProviderInput model = new UpdateReplicationProtectedItemProviderInput(); - model = BinaryData.fromObject(model).toObject(UpdateReplicationProtectedItemProviderInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateVCenterRequestPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateVCenterRequestPropertiesTests.java deleted file mode 100644 index fa292286a54d..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateVCenterRequestPropertiesTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.UpdateVCenterRequestProperties; -import org.junit.jupiter.api.Assertions; - -public final class UpdateVCenterRequestPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UpdateVCenterRequestProperties model = BinaryData.fromString( - "{\"friendlyName\":\"whryvycytdcl\",\"ipAddress\":\"ccknfnwmbtmvp\",\"processServerId\":\"jdhttzaefedxi\",\"port\":\"hrphkmcrjdqn\",\"runAsAccountId\":\"fzpbgtgkyl\"}") - .toObject(UpdateVCenterRequestProperties.class); - Assertions.assertEquals("whryvycytdcl", model.friendlyName()); - Assertions.assertEquals("ccknfnwmbtmvp", model.ipAddress()); - Assertions.assertEquals("jdhttzaefedxi", model.processServerId()); - Assertions.assertEquals("hrphkmcrjdqn", model.port()); - Assertions.assertEquals("fzpbgtgkyl", model.runAsAccountId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UpdateVCenterRequestProperties model = new UpdateVCenterRequestProperties().withFriendlyName("whryvycytdcl") - .withIpAddress("ccknfnwmbtmvp") - .withProcessServerId("jdhttzaefedxi") - .withPort("hrphkmcrjdqn") - .withRunAsAccountId("fzpbgtgkyl"); - model = BinaryData.fromObject(model).toObject(UpdateVCenterRequestProperties.class); - Assertions.assertEquals("whryvycytdcl", model.friendlyName()); - Assertions.assertEquals("ccknfnwmbtmvp", model.ipAddress()); - Assertions.assertEquals("jdhttzaefedxi", model.processServerId()); - Assertions.assertEquals("hrphkmcrjdqn", model.port()); - Assertions.assertEquals("fzpbgtgkyl", model.runAsAccountId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateVCenterRequestTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateVCenterRequestTests.java deleted file mode 100644 index d4d73830cc1a..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/UpdateVCenterRequestTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.UpdateVCenterRequest; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.UpdateVCenterRequestProperties; -import org.junit.jupiter.api.Assertions; - -public final class UpdateVCenterRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UpdateVCenterRequest model = BinaryData.fromString( - "{\"properties\":{\"friendlyName\":\"ytnrzvuljraae\",\"ipAddress\":\"nok\",\"processServerId\":\"ukkjqnvbroyla\",\"port\":\"ulcdisdosf\",\"runAsAccountId\":\"jsvg\"}}") - .toObject(UpdateVCenterRequest.class); - Assertions.assertEquals("ytnrzvuljraae", model.properties().friendlyName()); - Assertions.assertEquals("nok", model.properties().ipAddress()); - Assertions.assertEquals("ukkjqnvbroyla", model.properties().processServerId()); - Assertions.assertEquals("ulcdisdosf", model.properties().port()); - Assertions.assertEquals("jsvg", model.properties().runAsAccountId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UpdateVCenterRequest model = new UpdateVCenterRequest() - .withProperties(new UpdateVCenterRequestProperties().withFriendlyName("ytnrzvuljraae") - .withIpAddress("nok") - .withProcessServerId("ukkjqnvbroyla") - .withPort("ulcdisdosf") - .withRunAsAccountId("jsvg")); - model = BinaryData.fromObject(model).toObject(UpdateVCenterRequest.class); - Assertions.assertEquals("ytnrzvuljraae", model.properties().friendlyName()); - Assertions.assertEquals("nok", model.properties().ipAddress()); - Assertions.assertEquals("ukkjqnvbroyla", model.properties().processServerId()); - Assertions.assertEquals("ulcdisdosf", model.properties().port()); - Assertions.assertEquals("jsvg", model.properties().runAsAccountId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VMNicDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VMNicDetailsTests.java deleted file mode 100644 index 1bd627ede874..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VMNicDetailsTests.java +++ /dev/null @@ -1,140 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.IpConfigDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VMNicDetails; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class VMNicDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VMNicDetails model = BinaryData.fromString( - "{\"nicId\":\"cbhhez\",\"replicaNicId\":\"u\",\"sourceNicArmId\":\"sqxutr\",\"vMNetworkName\":\"rruyuu\",\"recoveryVMNetworkId\":\"vlm\",\"ipConfigs\":[{\"name\":\"ol\",\"isPrimary\":false,\"subnetName\":\"b\",\"staticIPAddress\":\"tpc\",\"ipAddressType\":\"hprzrvxhmtfho\",\"isSeletedForFailover\":true,\"recoverySubnetName\":\"cmj\",\"recoveryStaticIPAddress\":\"gxnoqrxtdis\",\"recoveryIPAddressType\":\"evhdlmydid\",\"recoveryPublicIPAddressId\":\"epfwwt\",\"recoveryLBBackendAddressPoolIds\":[\"o\",\"sxxh\",\"wcdbckyoik\"],\"tfoSubnetName\":\"xhn\",\"tfoStaticIPAddress\":\"knjz\",\"tfoPublicIPAddressId\":\"h\",\"tfoLBBackendAddressPoolIds\":[\"plvukaobrlbpg\"]},{\"name\":\"bagn\",\"isPrimary\":false,\"subnetName\":\"g\",\"staticIPAddress\":\"uowakyw\",\"ipAddressType\":\"hjym\",\"isSeletedForFailover\":false,\"recoverySubnetName\":\"tagdrc\",\"recoveryStaticIPAddress\":\"soljome\",\"recoveryIPAddressType\":\"fycnlb\",\"recoveryPublicIPAddressId\":\"jcodkkgjiiytssi\",\"recoveryLBBackendAddressPoolIds\":[\"bcufqbvntn\"],\"tfoSubnetName\":\"mqso\",\"tfoStaticIPAddress\":\"cekxgnly\",\"tfoPublicIPAddressId\":\"xcpwzvmdok\",\"tfoLBBackendAddressPoolIds\":[\"tiwlwxlboncqb\"]}],\"selectionType\":\"qicqchygt\",\"recoveryNetworkSecurityGroupId\":\"byjanep\",\"enableAcceleratedNetworkingOnRecovery\":false,\"tfoVMNetworkId\":\"kxyqvgxiaodetv\",\"tfoNetworkSecurityGroupId\":\"kxdxuwsaifmcwn\",\"enableAcceleratedNetworkingOnTfo\":false,\"recoveryNicName\":\"lehgcvkbc\",\"recoveryNicResourceGroupName\":\"jolgjyyxpvels\",\"reuseExistingNic\":false,\"tfoRecoveryNicName\":\"zevxoqein\",\"tfoRecoveryNicResourceGroupName\":\"waljglzoblqwaaf\",\"tfoReuseExistingNic\":false,\"targetNicName\":\"hmzyqbhdvafjrqpj\"}") - .toObject(VMNicDetails.class); - Assertions.assertEquals("cbhhez", model.nicId()); - Assertions.assertEquals("u", model.replicaNicId()); - Assertions.assertEquals("sqxutr", model.sourceNicArmId()); - Assertions.assertEquals("rruyuu", model.vMNetworkName()); - Assertions.assertEquals("vlm", model.recoveryVMNetworkId()); - Assertions.assertEquals("ol", model.ipConfigs().get(0).name()); - Assertions.assertEquals(false, model.ipConfigs().get(0).isPrimary()); - Assertions.assertEquals("b", model.ipConfigs().get(0).subnetName()); - Assertions.assertEquals("tpc", model.ipConfigs().get(0).staticIpAddress()); - Assertions.assertEquals("hprzrvxhmtfho", model.ipConfigs().get(0).ipAddressType()); - Assertions.assertEquals(true, model.ipConfigs().get(0).isSeletedForFailover()); - Assertions.assertEquals("cmj", model.ipConfigs().get(0).recoverySubnetName()); - Assertions.assertEquals("gxnoqrxtdis", model.ipConfigs().get(0).recoveryStaticIpAddress()); - Assertions.assertEquals("evhdlmydid", model.ipConfigs().get(0).recoveryIpAddressType()); - Assertions.assertEquals("epfwwt", model.ipConfigs().get(0).recoveryPublicIpAddressId()); - Assertions.assertEquals("o", model.ipConfigs().get(0).recoveryLBBackendAddressPoolIds().get(0)); - Assertions.assertEquals("xhn", model.ipConfigs().get(0).tfoSubnetName()); - Assertions.assertEquals("knjz", model.ipConfigs().get(0).tfoStaticIpAddress()); - Assertions.assertEquals("h", model.ipConfigs().get(0).tfoPublicIpAddressId()); - Assertions.assertEquals("plvukaobrlbpg", model.ipConfigs().get(0).tfoLBBackendAddressPoolIds().get(0)); - Assertions.assertEquals("qicqchygt", model.selectionType()); - Assertions.assertEquals("byjanep", model.recoveryNetworkSecurityGroupId()); - Assertions.assertEquals(false, model.enableAcceleratedNetworkingOnRecovery()); - Assertions.assertEquals("kxyqvgxiaodetv", model.tfoVMNetworkId()); - Assertions.assertEquals("kxdxuwsaifmcwn", model.tfoNetworkSecurityGroupId()); - Assertions.assertEquals(false, model.enableAcceleratedNetworkingOnTfo()); - Assertions.assertEquals("lehgcvkbc", model.recoveryNicName()); - Assertions.assertEquals("jolgjyyxpvels", model.recoveryNicResourceGroupName()); - Assertions.assertEquals(false, model.reuseExistingNic()); - Assertions.assertEquals("zevxoqein", model.tfoRecoveryNicName()); - Assertions.assertEquals("waljglzoblqwaaf", model.tfoRecoveryNicResourceGroupName()); - Assertions.assertEquals(false, model.tfoReuseExistingNic()); - Assertions.assertEquals("hmzyqbhdvafjrqpj", model.targetNicName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VMNicDetails model = new VMNicDetails().withNicId("cbhhez") - .withReplicaNicId("u") - .withSourceNicArmId("sqxutr") - .withVMNetworkName("rruyuu") - .withRecoveryVMNetworkId("vlm") - .withIpConfigs(Arrays.asList( - new IpConfigDetails().withName("ol") - .withIsPrimary(false) - .withSubnetName("b") - .withStaticIpAddress("tpc") - .withIpAddressType("hprzrvxhmtfho") - .withIsSeletedForFailover(true) - .withRecoverySubnetName("cmj") - .withRecoveryStaticIpAddress("gxnoqrxtdis") - .withRecoveryIpAddressType("evhdlmydid") - .withRecoveryPublicIpAddressId("epfwwt") - .withRecoveryLBBackendAddressPoolIds(Arrays.asList("o", "sxxh", "wcdbckyoik")) - .withTfoSubnetName("xhn") - .withTfoStaticIpAddress("knjz") - .withTfoPublicIpAddressId("h") - .withTfoLBBackendAddressPoolIds(Arrays.asList("plvukaobrlbpg")), - new IpConfigDetails().withName("bagn") - .withIsPrimary(false) - .withSubnetName("g") - .withStaticIpAddress("uowakyw") - .withIpAddressType("hjym") - .withIsSeletedForFailover(false) - .withRecoverySubnetName("tagdrc") - .withRecoveryStaticIpAddress("soljome") - .withRecoveryIpAddressType("fycnlb") - .withRecoveryPublicIpAddressId("jcodkkgjiiytssi") - .withRecoveryLBBackendAddressPoolIds(Arrays.asList("bcufqbvntn")) - .withTfoSubnetName("mqso") - .withTfoStaticIpAddress("cekxgnly") - .withTfoPublicIpAddressId("xcpwzvmdok") - .withTfoLBBackendAddressPoolIds(Arrays.asList("tiwlwxlboncqb")))) - .withSelectionType("qicqchygt") - .withRecoveryNetworkSecurityGroupId("byjanep") - .withEnableAcceleratedNetworkingOnRecovery(false) - .withTfoVMNetworkId("kxyqvgxiaodetv") - .withTfoNetworkSecurityGroupId("kxdxuwsaifmcwn") - .withEnableAcceleratedNetworkingOnTfo(false) - .withRecoveryNicName("lehgcvkbc") - .withRecoveryNicResourceGroupName("jolgjyyxpvels") - .withReuseExistingNic(false) - .withTfoRecoveryNicName("zevxoqein") - .withTfoRecoveryNicResourceGroupName("waljglzoblqwaaf") - .withTfoReuseExistingNic(false) - .withTargetNicName("hmzyqbhdvafjrqpj"); - model = BinaryData.fromObject(model).toObject(VMNicDetails.class); - Assertions.assertEquals("cbhhez", model.nicId()); - Assertions.assertEquals("u", model.replicaNicId()); - Assertions.assertEquals("sqxutr", model.sourceNicArmId()); - Assertions.assertEquals("rruyuu", model.vMNetworkName()); - Assertions.assertEquals("vlm", model.recoveryVMNetworkId()); - Assertions.assertEquals("ol", model.ipConfigs().get(0).name()); - Assertions.assertEquals(false, model.ipConfigs().get(0).isPrimary()); - Assertions.assertEquals("b", model.ipConfigs().get(0).subnetName()); - Assertions.assertEquals("tpc", model.ipConfigs().get(0).staticIpAddress()); - Assertions.assertEquals("hprzrvxhmtfho", model.ipConfigs().get(0).ipAddressType()); - Assertions.assertEquals(true, model.ipConfigs().get(0).isSeletedForFailover()); - Assertions.assertEquals("cmj", model.ipConfigs().get(0).recoverySubnetName()); - Assertions.assertEquals("gxnoqrxtdis", model.ipConfigs().get(0).recoveryStaticIpAddress()); - Assertions.assertEquals("evhdlmydid", model.ipConfigs().get(0).recoveryIpAddressType()); - Assertions.assertEquals("epfwwt", model.ipConfigs().get(0).recoveryPublicIpAddressId()); - Assertions.assertEquals("o", model.ipConfigs().get(0).recoveryLBBackendAddressPoolIds().get(0)); - Assertions.assertEquals("xhn", model.ipConfigs().get(0).tfoSubnetName()); - Assertions.assertEquals("knjz", model.ipConfigs().get(0).tfoStaticIpAddress()); - Assertions.assertEquals("h", model.ipConfigs().get(0).tfoPublicIpAddressId()); - Assertions.assertEquals("plvukaobrlbpg", model.ipConfigs().get(0).tfoLBBackendAddressPoolIds().get(0)); - Assertions.assertEquals("qicqchygt", model.selectionType()); - Assertions.assertEquals("byjanep", model.recoveryNetworkSecurityGroupId()); - Assertions.assertEquals(false, model.enableAcceleratedNetworkingOnRecovery()); - Assertions.assertEquals("kxyqvgxiaodetv", model.tfoVMNetworkId()); - Assertions.assertEquals("kxdxuwsaifmcwn", model.tfoNetworkSecurityGroupId()); - Assertions.assertEquals(false, model.enableAcceleratedNetworkingOnTfo()); - Assertions.assertEquals("lehgcvkbc", model.recoveryNicName()); - Assertions.assertEquals("jolgjyyxpvels", model.recoveryNicResourceGroupName()); - Assertions.assertEquals(false, model.reuseExistingNic()); - Assertions.assertEquals("zevxoqein", model.tfoRecoveryNicName()); - Assertions.assertEquals("waljglzoblqwaaf", model.tfoRecoveryNicResourceGroupName()); - Assertions.assertEquals(false, model.tfoReuseExistingNic()); - Assertions.assertEquals("hmzyqbhdvafjrqpj", model.targetNicName()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VMNicInputDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VMNicInputDetailsTests.java deleted file mode 100644 index d6d821dd1059..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VMNicInputDetailsTests.java +++ /dev/null @@ -1,132 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.IpConfigInputDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VMNicInputDetails; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class VMNicInputDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VMNicInputDetails model = BinaryData.fromString( - "{\"nicId\":\"uq\",\"ipConfigs\":[{\"ipConfigName\":\"gzlvdnkfxu\",\"isPrimary\":true,\"isSeletedForFailover\":false,\"recoverySubnetName\":\"rmuhapfcq\",\"recoveryStaticIPAddress\":\"sqxqvp\",\"recoveryPublicIPAddressId\":\"uoymgccelvezry\",\"recoveryLBBackendAddressPoolIds\":[\"mfe\",\"kerqwkyh\",\"ob\"],\"tfoSubnetName\":\"gxedkow\",\"tfoStaticIPAddress\":\"bqpc\",\"tfoPublicIPAddressId\":\"kbwcc\",\"tfoLBBackendAddressPoolIds\":[\"vcdwxlpqekftn\",\"htjsying\",\"fq\"]},{\"ipConfigName\":\"mtdh\",\"isPrimary\":true,\"isSeletedForFailover\":false,\"recoverySubnetName\":\"gikdgsz\",\"recoveryStaticIPAddress\":\"kbir\",\"recoveryPublicIPAddressId\":\"uzhlhkjoqrv\",\"recoveryLBBackendAddressPoolIds\":[\"atjinrvgoupmfiib\",\"ggjioolvr\",\"x\",\"v\"],\"tfoSubnetName\":\"k\",\"tfoStaticIPAddress\":\"lqwjygvjayvblm\",\"tfoPublicIPAddressId\":\"k\",\"tfoLBBackendAddressPoolIds\":[\"bxvvyhg\",\"opbyrqufegxu\",\"wz\",\"bnhlmc\"]},{\"ipConfigName\":\"p\",\"isPrimary\":false,\"isSeletedForFailover\":true,\"recoverySubnetName\":\"gbmhrixkwmyi\",\"recoveryStaticIPAddress\":\"jvegrhbpnaixexcc\",\"recoveryPublicIPAddressId\":\"reaxhcexdr\",\"recoveryLBBackendAddressPoolIds\":[\"ahqkg\",\"tpwijnh\",\"jsvfycxzbfvoowv\",\"vmtgjqppy\"],\"tfoSubnetName\":\"tronzmyhgfi\",\"tfoStaticIPAddress\":\"sxkm\",\"tfoPublicIPAddressId\":\"a\",\"tfoLBBackendAddressPoolIds\":[\"rjreafxts\",\"umh\",\"glikkxwslolb\"]},{\"ipConfigName\":\"vuzlm\",\"isPrimary\":false,\"isSeletedForFailover\":false,\"recoverySubnetName\":\"tgp\",\"recoveryStaticIPAddress\":\"rpw\",\"recoveryPublicIPAddressId\":\"eznoig\",\"recoveryLBBackendAddressPoolIds\":[\"jwmwkpnbs\",\"zejjoqk\",\"gfhsxttaugzxn\",\"aa\"],\"tfoSubnetName\":\"xdtnkdmkqjjlw\",\"tfoStaticIPAddress\":\"nvrk\",\"tfoPublicIPAddressId\":\"ou\",\"tfoLBBackendAddressPoolIds\":[\"rebqaaysjk\"]}],\"selectionType\":\"qtnqtt\",\"recoveryNetworkSecurityGroupId\":\"lwfffi\",\"enableAcceleratedNetworkingOnRecovery\":true,\"tfoNetworkSecurityGroupId\":\"pqqmted\",\"enableAcceleratedNetworkingOnTfo\":false,\"recoveryNicName\":\"jihy\",\"recoveryNicResourceGroupName\":\"zphv\",\"reuseExistingNic\":true,\"tfoNicName\":\"qncygupkvi\",\"tfoNicResourceGroupName\":\"dscwxqupevzhf\",\"tfoReuseExistingNic\":true,\"targetNicName\":\"xhojuj\"}") - .toObject(VMNicInputDetails.class); - Assertions.assertEquals("uq", model.nicId()); - Assertions.assertEquals("gzlvdnkfxu", model.ipConfigs().get(0).ipConfigName()); - Assertions.assertEquals(true, model.ipConfigs().get(0).isPrimary()); - Assertions.assertEquals(false, model.ipConfigs().get(0).isSeletedForFailover()); - Assertions.assertEquals("rmuhapfcq", model.ipConfigs().get(0).recoverySubnetName()); - Assertions.assertEquals("sqxqvp", model.ipConfigs().get(0).recoveryStaticIpAddress()); - Assertions.assertEquals("uoymgccelvezry", model.ipConfigs().get(0).recoveryPublicIpAddressId()); - Assertions.assertEquals("mfe", model.ipConfigs().get(0).recoveryLBBackendAddressPoolIds().get(0)); - Assertions.assertEquals("gxedkow", model.ipConfigs().get(0).tfoSubnetName()); - Assertions.assertEquals("bqpc", model.ipConfigs().get(0).tfoStaticIpAddress()); - Assertions.assertEquals("kbwcc", model.ipConfigs().get(0).tfoPublicIpAddressId()); - Assertions.assertEquals("vcdwxlpqekftn", model.ipConfigs().get(0).tfoLBBackendAddressPoolIds().get(0)); - Assertions.assertEquals("qtnqtt", model.selectionType()); - Assertions.assertEquals("lwfffi", model.recoveryNetworkSecurityGroupId()); - Assertions.assertEquals(true, model.enableAcceleratedNetworkingOnRecovery()); - Assertions.assertEquals("pqqmted", model.tfoNetworkSecurityGroupId()); - Assertions.assertEquals(false, model.enableAcceleratedNetworkingOnTfo()); - Assertions.assertEquals("jihy", model.recoveryNicName()); - Assertions.assertEquals("zphv", model.recoveryNicResourceGroupName()); - Assertions.assertEquals(true, model.reuseExistingNic()); - Assertions.assertEquals("qncygupkvi", model.tfoNicName()); - Assertions.assertEquals("dscwxqupevzhf", model.tfoNicResourceGroupName()); - Assertions.assertEquals(true, model.tfoReuseExistingNic()); - Assertions.assertEquals("xhojuj", model.targetNicName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VMNicInputDetails model = new VMNicInputDetails().withNicId("uq") - .withIpConfigs(Arrays.asList( - new IpConfigInputDetails().withIpConfigName("gzlvdnkfxu") - .withIsPrimary(true) - .withIsSeletedForFailover(false) - .withRecoverySubnetName("rmuhapfcq") - .withRecoveryStaticIpAddress("sqxqvp") - .withRecoveryPublicIpAddressId("uoymgccelvezry") - .withRecoveryLBBackendAddressPoolIds(Arrays.asList("mfe", "kerqwkyh", "ob")) - .withTfoSubnetName("gxedkow") - .withTfoStaticIpAddress("bqpc") - .withTfoPublicIpAddressId("kbwcc") - .withTfoLBBackendAddressPoolIds(Arrays.asList("vcdwxlpqekftn", "htjsying", "fq")), - new IpConfigInputDetails().withIpConfigName("mtdh") - .withIsPrimary(true) - .withIsSeletedForFailover(false) - .withRecoverySubnetName("gikdgsz") - .withRecoveryStaticIpAddress("kbir") - .withRecoveryPublicIpAddressId("uzhlhkjoqrv") - .withRecoveryLBBackendAddressPoolIds(Arrays.asList("atjinrvgoupmfiib", "ggjioolvr", "x", "v")) - .withTfoSubnetName("k") - .withTfoStaticIpAddress("lqwjygvjayvblm") - .withTfoPublicIpAddressId("k") - .withTfoLBBackendAddressPoolIds(Arrays.asList("bxvvyhg", "opbyrqufegxu", "wz", "bnhlmc")), - new IpConfigInputDetails().withIpConfigName("p") - .withIsPrimary(false) - .withIsSeletedForFailover(true) - .withRecoverySubnetName("gbmhrixkwmyi") - .withRecoveryStaticIpAddress("jvegrhbpnaixexcc") - .withRecoveryPublicIpAddressId("reaxhcexdr") - .withRecoveryLBBackendAddressPoolIds( - Arrays.asList("ahqkg", "tpwijnh", "jsvfycxzbfvoowv", "vmtgjqppy")) - .withTfoSubnetName("tronzmyhgfi") - .withTfoStaticIpAddress("sxkm") - .withTfoPublicIpAddressId("a") - .withTfoLBBackendAddressPoolIds(Arrays.asList("rjreafxts", "umh", "glikkxwslolb")), - new IpConfigInputDetails().withIpConfigName("vuzlm") - .withIsPrimary(false) - .withIsSeletedForFailover(false) - .withRecoverySubnetName("tgp") - .withRecoveryStaticIpAddress("rpw") - .withRecoveryPublicIpAddressId("eznoig") - .withRecoveryLBBackendAddressPoolIds(Arrays.asList("jwmwkpnbs", "zejjoqk", "gfhsxttaugzxn", "aa")) - .withTfoSubnetName("xdtnkdmkqjjlw") - .withTfoStaticIpAddress("nvrk") - .withTfoPublicIpAddressId("ou") - .withTfoLBBackendAddressPoolIds(Arrays.asList("rebqaaysjk")))) - .withSelectionType("qtnqtt") - .withRecoveryNetworkSecurityGroupId("lwfffi") - .withEnableAcceleratedNetworkingOnRecovery(true) - .withTfoNetworkSecurityGroupId("pqqmted") - .withEnableAcceleratedNetworkingOnTfo(false) - .withRecoveryNicName("jihy") - .withRecoveryNicResourceGroupName("zphv") - .withReuseExistingNic(true) - .withTfoNicName("qncygupkvi") - .withTfoNicResourceGroupName("dscwxqupevzhf") - .withTfoReuseExistingNic(true) - .withTargetNicName("xhojuj"); - model = BinaryData.fromObject(model).toObject(VMNicInputDetails.class); - Assertions.assertEquals("uq", model.nicId()); - Assertions.assertEquals("gzlvdnkfxu", model.ipConfigs().get(0).ipConfigName()); - Assertions.assertEquals(true, model.ipConfigs().get(0).isPrimary()); - Assertions.assertEquals(false, model.ipConfigs().get(0).isSeletedForFailover()); - Assertions.assertEquals("rmuhapfcq", model.ipConfigs().get(0).recoverySubnetName()); - Assertions.assertEquals("sqxqvp", model.ipConfigs().get(0).recoveryStaticIpAddress()); - Assertions.assertEquals("uoymgccelvezry", model.ipConfigs().get(0).recoveryPublicIpAddressId()); - Assertions.assertEquals("mfe", model.ipConfigs().get(0).recoveryLBBackendAddressPoolIds().get(0)); - Assertions.assertEquals("gxedkow", model.ipConfigs().get(0).tfoSubnetName()); - Assertions.assertEquals("bqpc", model.ipConfigs().get(0).tfoStaticIpAddress()); - Assertions.assertEquals("kbwcc", model.ipConfigs().get(0).tfoPublicIpAddressId()); - Assertions.assertEquals("vcdwxlpqekftn", model.ipConfigs().get(0).tfoLBBackendAddressPoolIds().get(0)); - Assertions.assertEquals("qtnqtt", model.selectionType()); - Assertions.assertEquals("lwfffi", model.recoveryNetworkSecurityGroupId()); - Assertions.assertEquals(true, model.enableAcceleratedNetworkingOnRecovery()); - Assertions.assertEquals("pqqmted", model.tfoNetworkSecurityGroupId()); - Assertions.assertEquals(false, model.enableAcceleratedNetworkingOnTfo()); - Assertions.assertEquals("jihy", model.recoveryNicName()); - Assertions.assertEquals("zphv", model.recoveryNicResourceGroupName()); - Assertions.assertEquals(true, model.reuseExistingNic()); - Assertions.assertEquals("qncygupkvi", model.tfoNicName()); - Assertions.assertEquals("dscwxqupevzhf", model.tfoNicResourceGroupName()); - Assertions.assertEquals(true, model.tfoReuseExistingNic()); - Assertions.assertEquals("xhojuj", model.targetNicName()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VMwareCbtContainerCreationInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VMwareCbtContainerCreationInputTests.java deleted file mode 100644 index af052ca14553..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VMwareCbtContainerCreationInputTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VMwareCbtContainerCreationInput; - -public final class VMwareCbtContainerCreationInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VMwareCbtContainerCreationInput model - = BinaryData.fromString("{\"instanceType\":\"VMwareCbt\"}").toObject(VMwareCbtContainerCreationInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VMwareCbtContainerCreationInput model = new VMwareCbtContainerCreationInput(); - model = BinaryData.fromObject(model).toObject(VMwareCbtContainerCreationInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VMwareCbtEventDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VMwareCbtEventDetailsTests.java deleted file mode 100644 index 3b98b0847d4d..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VMwareCbtEventDetailsTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VMwareCbtEventDetails; - -public final class VMwareCbtEventDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VMwareCbtEventDetails model - = BinaryData.fromString("{\"instanceType\":\"VMwareCbt\",\"migrationItemName\":\"rnxhjtlxfikjk\"}") - .toObject(VMwareCbtEventDetails.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VMwareCbtEventDetails model = new VMwareCbtEventDetails(); - model = BinaryData.fromObject(model).toObject(VMwareCbtEventDetails.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VMwareCbtMigrateInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VMwareCbtMigrateInputTests.java deleted file mode 100644 index abebe9ad28a5..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VMwareCbtMigrateInputTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VMwareCbtMigrateInput; -import org.junit.jupiter.api.Assertions; - -public final class VMwareCbtMigrateInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VMwareCbtMigrateInput model = BinaryData - .fromString( - "{\"instanceType\":\"VMwareCbt\",\"performShutdown\":\"ara\",\"osUpgradeVersion\":\"wuasnjeglhtrx\"}") - .toObject(VMwareCbtMigrateInput.class); - Assertions.assertEquals("ara", model.performShutdown()); - Assertions.assertEquals("wuasnjeglhtrx", model.osUpgradeVersion()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VMwareCbtMigrateInput model - = new VMwareCbtMigrateInput().withPerformShutdown("ara").withOsUpgradeVersion("wuasnjeglhtrx"); - model = BinaryData.fromObject(model).toObject(VMwareCbtMigrateInput.class); - Assertions.assertEquals("ara", model.performShutdown()); - Assertions.assertEquals("wuasnjeglhtrx", model.osUpgradeVersion()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VMwareCbtNicDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VMwareCbtNicDetailsTests.java deleted file mode 100644 index 9ace5a4c7aa3..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VMwareCbtNicDetailsTests.java +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.EthernetAddressType; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VMwareCbtNicDetails; -import org.junit.jupiter.api.Assertions; - -public final class VMwareCbtNicDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VMwareCbtNicDetails model = BinaryData.fromString( - "{\"nicId\":\"ylcvwbzmfx\",\"isPrimaryNic\":\"ymfjxl\",\"sourceIPAddress\":\"ywqnpfyd\",\"sourceIPAddressType\":\"Static\",\"sourceNetworkId\":\"cnyxbyx\",\"targetIPAddress\":\"hmqyncgaullfstyy\",\"targetIPAddressType\":\"Dynamic\",\"targetSubnetName\":\"ulmwqgmhmqmiwx\",\"testNetworkId\":\"v\",\"testSubnetName\":\"ucqfgufjnbxwbm\",\"testIPAddress\":\"ukin\",\"testIPAddressType\":\"Dynamic\",\"targetNicName\":\"gde\",\"isSelectedForMigration\":\"kzou\"}") - .toObject(VMwareCbtNicDetails.class); - Assertions.assertEquals("ymfjxl", model.isPrimaryNic()); - Assertions.assertEquals("hmqyncgaullfstyy", model.targetIpAddress()); - Assertions.assertEquals(EthernetAddressType.DYNAMIC, model.targetIpAddressType()); - Assertions.assertEquals("ulmwqgmhmqmiwx", model.targetSubnetName()); - Assertions.assertEquals("v", model.testNetworkId()); - Assertions.assertEquals("ucqfgufjnbxwbm", model.testSubnetName()); - Assertions.assertEquals("ukin", model.testIpAddress()); - Assertions.assertEquals(EthernetAddressType.DYNAMIC, model.testIpAddressType()); - Assertions.assertEquals("gde", model.targetNicName()); - Assertions.assertEquals("kzou", model.isSelectedForMigration()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VMwareCbtNicDetails model = new VMwareCbtNicDetails().withIsPrimaryNic("ymfjxl") - .withTargetIpAddress("hmqyncgaullfstyy") - .withTargetIpAddressType(EthernetAddressType.DYNAMIC) - .withTargetSubnetName("ulmwqgmhmqmiwx") - .withTestNetworkId("v") - .withTestSubnetName("ucqfgufjnbxwbm") - .withTestIpAddress("ukin") - .withTestIpAddressType(EthernetAddressType.DYNAMIC) - .withTargetNicName("gde") - .withIsSelectedForMigration("kzou"); - model = BinaryData.fromObject(model).toObject(VMwareCbtNicDetails.class); - Assertions.assertEquals("ymfjxl", model.isPrimaryNic()); - Assertions.assertEquals("hmqyncgaullfstyy", model.targetIpAddress()); - Assertions.assertEquals(EthernetAddressType.DYNAMIC, model.targetIpAddressType()); - Assertions.assertEquals("ulmwqgmhmqmiwx", model.targetSubnetName()); - Assertions.assertEquals("v", model.testNetworkId()); - Assertions.assertEquals("ucqfgufjnbxwbm", model.testSubnetName()); - Assertions.assertEquals("ukin", model.testIpAddress()); - Assertions.assertEquals(EthernetAddressType.DYNAMIC, model.testIpAddressType()); - Assertions.assertEquals("gde", model.targetNicName()); - Assertions.assertEquals("kzou", model.isSelectedForMigration()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VMwareCbtNicInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VMwareCbtNicInputTests.java deleted file mode 100644 index c5d3565406dd..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VMwareCbtNicInputTests.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VMwareCbtNicInput; -import org.junit.jupiter.api.Assertions; - -public final class VMwareCbtNicInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VMwareCbtNicInput model = BinaryData.fromString( - "{\"nicId\":\"vewwpzrdwcgldo\",\"isPrimaryNic\":\"gcandxfhhhtes\",\"targetSubnetName\":\"qtdn\",\"targetStaticIPAddress\":\"kkpljdsh\",\"isSelectedForMigration\":\"fkdxccyijjimhi\",\"targetNicName\":\"rqnjxmvvsduydwnw\",\"testSubnetName\":\"uhhqldrdymnswxie\",\"testStaticIPAddress\":\"wqnghxnimvyuj\"}") - .toObject(VMwareCbtNicInput.class); - Assertions.assertEquals("vewwpzrdwcgldo", model.nicId()); - Assertions.assertEquals("gcandxfhhhtes", model.isPrimaryNic()); - Assertions.assertEquals("qtdn", model.targetSubnetName()); - Assertions.assertEquals("kkpljdsh", model.targetStaticIpAddress()); - Assertions.assertEquals("fkdxccyijjimhi", model.isSelectedForMigration()); - Assertions.assertEquals("rqnjxmvvsduydwnw", model.targetNicName()); - Assertions.assertEquals("uhhqldrdymnswxie", model.testSubnetName()); - Assertions.assertEquals("wqnghxnimvyuj", model.testStaticIpAddress()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VMwareCbtNicInput model = new VMwareCbtNicInput().withNicId("vewwpzrdwcgldo") - .withIsPrimaryNic("gcandxfhhhtes") - .withTargetSubnetName("qtdn") - .withTargetStaticIpAddress("kkpljdsh") - .withIsSelectedForMigration("fkdxccyijjimhi") - .withTargetNicName("rqnjxmvvsduydwnw") - .withTestSubnetName("uhhqldrdymnswxie") - .withTestStaticIpAddress("wqnghxnimvyuj"); - model = BinaryData.fromObject(model).toObject(VMwareCbtNicInput.class); - Assertions.assertEquals("vewwpzrdwcgldo", model.nicId()); - Assertions.assertEquals("gcandxfhhhtes", model.isPrimaryNic()); - Assertions.assertEquals("qtdn", model.targetSubnetName()); - Assertions.assertEquals("kkpljdsh", model.targetStaticIpAddress()); - Assertions.assertEquals("fkdxccyijjimhi", model.isSelectedForMigration()); - Assertions.assertEquals("rqnjxmvvsduydwnw", model.targetNicName()); - Assertions.assertEquals("uhhqldrdymnswxie", model.testSubnetName()); - Assertions.assertEquals("wqnghxnimvyuj", model.testStaticIpAddress()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VMwareCbtPolicyCreationInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VMwareCbtPolicyCreationInputTests.java deleted file mode 100644 index 51bed7447fb2..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VMwareCbtPolicyCreationInputTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VMwareCbtPolicyCreationInput; -import org.junit.jupiter.api.Assertions; - -public final class VMwareCbtPolicyCreationInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VMwareCbtPolicyCreationInput model = BinaryData.fromString( - "{\"instanceType\":\"VMwareCbt\",\"recoveryPointHistoryInMinutes\":743891586,\"crashConsistentFrequencyInMinutes\":1861127701,\"appConsistentFrequencyInMinutes\":746704454}") - .toObject(VMwareCbtPolicyCreationInput.class); - Assertions.assertEquals(743891586, model.recoveryPointHistoryInMinutes()); - Assertions.assertEquals(1861127701, model.crashConsistentFrequencyInMinutes()); - Assertions.assertEquals(746704454, model.appConsistentFrequencyInMinutes()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VMwareCbtPolicyCreationInput model - = new VMwareCbtPolicyCreationInput().withRecoveryPointHistoryInMinutes(743891586) - .withCrashConsistentFrequencyInMinutes(1861127701) - .withAppConsistentFrequencyInMinutes(746704454); - model = BinaryData.fromObject(model).toObject(VMwareCbtPolicyCreationInput.class); - Assertions.assertEquals(743891586, model.recoveryPointHistoryInMinutes()); - Assertions.assertEquals(1861127701, model.crashConsistentFrequencyInMinutes()); - Assertions.assertEquals(746704454, model.appConsistentFrequencyInMinutes()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VMwareCbtResumeReplicationInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VMwareCbtResumeReplicationInputTests.java deleted file mode 100644 index ec9434baedda..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VMwareCbtResumeReplicationInputTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VMwareCbtResumeReplicationInput; -import org.junit.jupiter.api.Assertions; - -public final class VMwareCbtResumeReplicationInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VMwareCbtResumeReplicationInput model - = BinaryData.fromString("{\"instanceType\":\"VMwareCbt\",\"deleteMigrationResources\":\"ebsnz\"}") - .toObject(VMwareCbtResumeReplicationInput.class); - Assertions.assertEquals("ebsnz", model.deleteMigrationResources()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VMwareCbtResumeReplicationInput model - = new VMwareCbtResumeReplicationInput().withDeleteMigrationResources("ebsnz"); - model = BinaryData.fromObject(model).toObject(VMwareCbtResumeReplicationInput.class); - Assertions.assertEquals("ebsnz", model.deleteMigrationResources()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VMwareCbtResyncInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VMwareCbtResyncInputTests.java deleted file mode 100644 index bbd8e407f79d..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VMwareCbtResyncInputTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VMwareCbtResyncInput; -import org.junit.jupiter.api.Assertions; - -public final class VMwareCbtResyncInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VMwareCbtResyncInput model - = BinaryData.fromString("{\"instanceType\":\"VMwareCbt\",\"skipCbtReset\":\"wgsqufmjxcyoseqc\"}") - .toObject(VMwareCbtResyncInput.class); - Assertions.assertEquals("wgsqufmjxcyoseqc", model.skipCbtReset()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VMwareCbtResyncInput model = new VMwareCbtResyncInput().withSkipCbtReset("wgsqufmjxcyoseqc"); - model = BinaryData.fromObject(model).toObject(VMwareCbtResyncInput.class); - Assertions.assertEquals("wgsqufmjxcyoseqc", model.skipCbtReset()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VMwareCbtSecurityProfilePropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VMwareCbtSecurityProfilePropertiesTests.java deleted file mode 100644 index f8b4d2b99e16..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VMwareCbtSecurityProfilePropertiesTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.SecurityType; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VMwareCbtSecurityProfileProperties; -import org.junit.jupiter.api.Assertions; - -public final class VMwareCbtSecurityProfilePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VMwareCbtSecurityProfileProperties model = BinaryData.fromString( - "{\"targetVmSecurityType\":\"None\",\"isTargetVmSecureBootEnabled\":\"ennqfabqca\",\"isTargetVmTpmEnabled\":\"lectcxsfmb\",\"isTargetVmIntegrityMonitoringEnabled\":\"xmsynbkd\",\"isTargetVmConfidentialEncryptionEnabled\":\"yufxuzmsvzyq\"}") - .toObject(VMwareCbtSecurityProfileProperties.class); - Assertions.assertEquals(SecurityType.NONE, model.targetVmSecurityType()); - Assertions.assertEquals("ennqfabqca", model.isTargetVmSecureBootEnabled()); - Assertions.assertEquals("lectcxsfmb", model.isTargetVmTpmEnabled()); - Assertions.assertEquals("xmsynbkd", model.isTargetVmIntegrityMonitoringEnabled()); - Assertions.assertEquals("yufxuzmsvzyq", model.isTargetVmConfidentialEncryptionEnabled()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VMwareCbtSecurityProfileProperties model - = new VMwareCbtSecurityProfileProperties().withTargetVmSecurityType(SecurityType.NONE) - .withIsTargetVmSecureBootEnabled("ennqfabqca") - .withIsTargetVmTpmEnabled("lectcxsfmb") - .withIsTargetVmIntegrityMonitoringEnabled("xmsynbkd") - .withIsTargetVmConfidentialEncryptionEnabled("yufxuzmsvzyq"); - model = BinaryData.fromObject(model).toObject(VMwareCbtSecurityProfileProperties.class); - Assertions.assertEquals(SecurityType.NONE, model.targetVmSecurityType()); - Assertions.assertEquals("ennqfabqca", model.isTargetVmSecureBootEnabled()); - Assertions.assertEquals("lectcxsfmb", model.isTargetVmTpmEnabled()); - Assertions.assertEquals("xmsynbkd", model.isTargetVmIntegrityMonitoringEnabled()); - Assertions.assertEquals("yufxuzmsvzyq", model.isTargetVmConfidentialEncryptionEnabled()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VMwareCbtTestMigrateInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VMwareCbtTestMigrateInputTests.java deleted file mode 100644 index b7eb88b25c1e..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VMwareCbtTestMigrateInputTests.java +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VMwareCbtNicInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VMwareCbtTestMigrateInput; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class VMwareCbtTestMigrateInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VMwareCbtTestMigrateInput model = BinaryData.fromString( - "{\"instanceType\":\"VMwareCbt\",\"recoveryPointId\":\"zisvbrqgcyjpgaw\",\"networkId\":\"pkwonrzpghlr\",\"vmNics\":[{\"nicId\":\"gblxbu\",\"isPrimaryNic\":\"brvjztaflv\",\"targetSubnetName\":\"fjihvfjcqrttjfuq\",\"targetStaticIPAddress\":\"fjewfeqbavdo\",\"isSelectedForMigration\":\"wy\",\"targetNicName\":\"fm\",\"testSubnetName\":\"lvxgwzz\",\"testStaticIPAddress\":\"dtlcjgpvcqzv\"},{\"nicId\":\"rbvgwxhlxr\",\"isPrimaryNic\":\"xvmdr\",\"targetSubnetName\":\"n\",\"targetStaticIPAddress\":\"ovazoymdvhhpl\",\"isSelectedForMigration\":\"wwd\",\"targetNicName\":\"tveqmg\",\"testSubnetName\":\"swzeyxry\",\"testStaticIPAddress\":\"r\"},{\"nicId\":\"hpwbuklvsmfasgt\",\"isPrimaryNic\":\"v\",\"targetSubnetName\":\"poil\",\"targetStaticIPAddress\":\"ja\",\"isSelectedForMigration\":\"cez\",\"targetNicName\":\"ft\",\"testSubnetName\":\"l\",\"testStaticIPAddress\":\"okjyghzt\"},{\"nicId\":\"smiwtpcflc\",\"isPrimaryNic\":\"zswwvwi\",\"targetSubnetName\":\"djtvbf\",\"targetStaticIPAddress\":\"hruptsyq\",\"isSelectedForMigration\":\"nqswxdowumxquk\",\"targetNicName\":\"diohclqddn\",\"testSubnetName\":\"k\",\"testStaticIPAddress\":\"bweddpnyzc\"}],\"osUpgradeVersion\":\"jsmka\"}") - .toObject(VMwareCbtTestMigrateInput.class); - Assertions.assertEquals("zisvbrqgcyjpgaw", model.recoveryPointId()); - Assertions.assertEquals("pkwonrzpghlr", model.networkId()); - Assertions.assertEquals("gblxbu", model.vmNics().get(0).nicId()); - Assertions.assertEquals("brvjztaflv", model.vmNics().get(0).isPrimaryNic()); - Assertions.assertEquals("fjihvfjcqrttjfuq", model.vmNics().get(0).targetSubnetName()); - Assertions.assertEquals("fjewfeqbavdo", model.vmNics().get(0).targetStaticIpAddress()); - Assertions.assertEquals("wy", model.vmNics().get(0).isSelectedForMigration()); - Assertions.assertEquals("fm", model.vmNics().get(0).targetNicName()); - Assertions.assertEquals("lvxgwzz", model.vmNics().get(0).testSubnetName()); - Assertions.assertEquals("dtlcjgpvcqzv", model.vmNics().get(0).testStaticIpAddress()); - Assertions.assertEquals("jsmka", model.osUpgradeVersion()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VMwareCbtTestMigrateInput model = new VMwareCbtTestMigrateInput().withRecoveryPointId("zisvbrqgcyjpgaw") - .withNetworkId("pkwonrzpghlr") - .withVmNics(Arrays.asList( - new VMwareCbtNicInput().withNicId("gblxbu") - .withIsPrimaryNic("brvjztaflv") - .withTargetSubnetName("fjihvfjcqrttjfuq") - .withTargetStaticIpAddress("fjewfeqbavdo") - .withIsSelectedForMigration("wy") - .withTargetNicName("fm") - .withTestSubnetName("lvxgwzz") - .withTestStaticIpAddress("dtlcjgpvcqzv"), - new VMwareCbtNicInput().withNicId("rbvgwxhlxr") - .withIsPrimaryNic("xvmdr") - .withTargetSubnetName("n") - .withTargetStaticIpAddress("ovazoymdvhhpl") - .withIsSelectedForMigration("wwd") - .withTargetNicName("tveqmg") - .withTestSubnetName("swzeyxry") - .withTestStaticIpAddress("r"), - new VMwareCbtNicInput().withNicId("hpwbuklvsmfasgt") - .withIsPrimaryNic("v") - .withTargetSubnetName("poil") - .withTargetStaticIpAddress("ja") - .withIsSelectedForMigration("cez") - .withTargetNicName("ft") - .withTestSubnetName("l") - .withTestStaticIpAddress("okjyghzt"), - new VMwareCbtNicInput().withNicId("smiwtpcflc") - .withIsPrimaryNic("zswwvwi") - .withTargetSubnetName("djtvbf") - .withTargetStaticIpAddress("hruptsyq") - .withIsSelectedForMigration("nqswxdowumxquk") - .withTargetNicName("diohclqddn") - .withTestSubnetName("k") - .withTestStaticIpAddress("bweddpnyzc"))) - .withOsUpgradeVersion("jsmka"); - model = BinaryData.fromObject(model).toObject(VMwareCbtTestMigrateInput.class); - Assertions.assertEquals("zisvbrqgcyjpgaw", model.recoveryPointId()); - Assertions.assertEquals("pkwonrzpghlr", model.networkId()); - Assertions.assertEquals("gblxbu", model.vmNics().get(0).nicId()); - Assertions.assertEquals("brvjztaflv", model.vmNics().get(0).isPrimaryNic()); - Assertions.assertEquals("fjihvfjcqrttjfuq", model.vmNics().get(0).targetSubnetName()); - Assertions.assertEquals("fjewfeqbavdo", model.vmNics().get(0).targetStaticIpAddress()); - Assertions.assertEquals("wy", model.vmNics().get(0).isSelectedForMigration()); - Assertions.assertEquals("fm", model.vmNics().get(0).targetNicName()); - Assertions.assertEquals("lvxgwzz", model.vmNics().get(0).testSubnetName()); - Assertions.assertEquals("dtlcjgpvcqzv", model.vmNics().get(0).testStaticIpAddress()); - Assertions.assertEquals("jsmka", model.osUpgradeVersion()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VMwareCbtUpdateDiskInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VMwareCbtUpdateDiskInputTests.java deleted file mode 100644 index 480a4ffbafa8..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VMwareCbtUpdateDiskInputTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VMwareCbtUpdateDiskInput; -import org.junit.jupiter.api.Assertions; - -public final class VMwareCbtUpdateDiskInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VMwareCbtUpdateDiskInput model - = BinaryData.fromString("{\"diskId\":\"ld\",\"targetDiskName\":\"bnwvpaq\",\"isOSDisk\":\"xf\"}") - .toObject(VMwareCbtUpdateDiskInput.class); - Assertions.assertEquals("ld", model.diskId()); - Assertions.assertEquals("bnwvpaq", model.targetDiskName()); - Assertions.assertEquals("xf", model.isOSDisk()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VMwareCbtUpdateDiskInput model - = new VMwareCbtUpdateDiskInput().withDiskId("ld").withTargetDiskName("bnwvpaq").withIsOSDisk("xf"); - model = BinaryData.fromObject(model).toObject(VMwareCbtUpdateDiskInput.class); - Assertions.assertEquals("ld", model.diskId()); - Assertions.assertEquals("bnwvpaq", model.targetDiskName()); - Assertions.assertEquals("xf", model.isOSDisk()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VMwareCbtUpdateMigrationItemInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VMwareCbtUpdateMigrationItemInputTests.java deleted file mode 100644 index 422968f6d719..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VMwareCbtUpdateMigrationItemInputTests.java +++ /dev/null @@ -1,142 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.LicenseType; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.SqlServerLicenseType; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VMwareCbtNicInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VMwareCbtUpdateDiskInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VMwareCbtUpdateMigrationItemInput; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class VMwareCbtUpdateMigrationItemInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VMwareCbtUpdateMigrationItemInput model = BinaryData.fromString( - "{\"instanceType\":\"VMwareCbt\",\"targetVmName\":\"igcfddofxnf\",\"targetVmSize\":\"jyyrqaedw\",\"targetResourceGroupId\":\"ocytjgoeayokrw\",\"targetAvailabilitySetId\":\"ihwpadhedbfobd\",\"targetAvailabilityZone\":\"vothmkhjaoz\",\"targetProximityPlacementGroupId\":\"wfcn\",\"targetBootDiagnosticsStorageAccountId\":\"bpoelhscmyhrhjv\",\"targetNetworkId\":\"fqbokndwp\",\"testNetworkId\":\"qwojoev\",\"vmNics\":[{\"nicId\":\"fytdxmly\",\"isPrimaryNic\":\"zlyvapbkrbuog\",\"targetSubnetName\":\"dltlcu\",\"targetStaticIPAddress\":\"izij\",\"isSelectedForMigration\":\"ylzeohlpsftq\",\"targetNicName\":\"vmhvbvvcpwtqs\",\"testSubnetName\":\"pnhmzy\",\"testStaticIPAddress\":\"fetev\"},{\"nicId\":\"ntfknwacycsyo\",\"isPrimaryNic\":\"ctkhfh\",\"targetSubnetName\":\"atvcsxr\",\"targetStaticIPAddress\":\"nmizhv\",\"isSelectedForMigration\":\"hqqwcubl\",\"targetNicName\":\"hk\",\"testSubnetName\":\"obzgott\",\"testStaticIPAddress\":\"sadzighmmtb\"},{\"nicId\":\"dvucfvvra\",\"isPrimaryNic\":\"beurdeewl\",\"targetSubnetName\":\"xpcbwkdwjyjizn\",\"targetStaticIPAddress\":\"roo\",\"isSelectedForMigration\":\"ftaspmcr\",\"targetNicName\":\"huf\",\"testSubnetName\":\"n\",\"testStaticIPAddress\":\"hminuwqxungrobgw\"}],\"vmDisks\":[{\"diskId\":\"xjwdylwxmvzjow\",\"targetDiskName\":\"geerclbl\",\"isOSDisk\":\"hpwachyeu\"},{\"diskId\":\"jwmvwryvdi\",\"targetDiskName\":\"ii\",\"isOSDisk\":\"pruccwme\"}],\"licenseType\":\"NotSpecified\",\"sqlServerLicenseType\":\"NotSpecified\",\"performAutoResync\":\"trtexegwm\",\"targetVmTags\":{\"loqkajwjuri\":\"ywiwhvycfjncind\",\"anhz\":\"rsbcl\",\"zkz\":\"knjxizbaxdy\"},\"targetDiskTags\":{\"wacyyjmlxppdndzk\":\"e\",\"cizeqqfopvnopm\":\"evuiiuiibfkcjytq\"},\"targetNicTags\":{\"zyfbkmvldzmxojz\":\"sfhoxqlyo\"}}") - .toObject(VMwareCbtUpdateMigrationItemInput.class); - Assertions.assertEquals("igcfddofxnf", model.targetVmName()); - Assertions.assertEquals("jyyrqaedw", model.targetVmSize()); - Assertions.assertEquals("ocytjgoeayokrw", model.targetResourceGroupId()); - Assertions.assertEquals("ihwpadhedbfobd", model.targetAvailabilitySetId()); - Assertions.assertEquals("vothmkhjaoz", model.targetAvailabilityZone()); - Assertions.assertEquals("wfcn", model.targetProximityPlacementGroupId()); - Assertions.assertEquals("bpoelhscmyhrhjv", model.targetBootDiagnosticsStorageAccountId()); - Assertions.assertEquals("fqbokndwp", model.targetNetworkId()); - Assertions.assertEquals("qwojoev", model.testNetworkId()); - Assertions.assertEquals("fytdxmly", model.vmNics().get(0).nicId()); - Assertions.assertEquals("zlyvapbkrbuog", model.vmNics().get(0).isPrimaryNic()); - Assertions.assertEquals("dltlcu", model.vmNics().get(0).targetSubnetName()); - Assertions.assertEquals("izij", model.vmNics().get(0).targetStaticIpAddress()); - Assertions.assertEquals("ylzeohlpsftq", model.vmNics().get(0).isSelectedForMigration()); - Assertions.assertEquals("vmhvbvvcpwtqs", model.vmNics().get(0).targetNicName()); - Assertions.assertEquals("pnhmzy", model.vmNics().get(0).testSubnetName()); - Assertions.assertEquals("fetev", model.vmNics().get(0).testStaticIpAddress()); - Assertions.assertEquals("xjwdylwxmvzjow", model.vmDisks().get(0).diskId()); - Assertions.assertEquals("geerclbl", model.vmDisks().get(0).targetDiskName()); - Assertions.assertEquals("hpwachyeu", model.vmDisks().get(0).isOSDisk()); - Assertions.assertEquals(LicenseType.NOT_SPECIFIED, model.licenseType()); - Assertions.assertEquals(SqlServerLicenseType.NOT_SPECIFIED, model.sqlServerLicenseType()); - Assertions.assertEquals("trtexegwm", model.performAutoResync()); - Assertions.assertEquals("ywiwhvycfjncind", model.targetVmTags().get("loqkajwjuri")); - Assertions.assertEquals("e", model.targetDiskTags().get("wacyyjmlxppdndzk")); - Assertions.assertEquals("sfhoxqlyo", model.targetNicTags().get("zyfbkmvldzmxojz")); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VMwareCbtUpdateMigrationItemInput model - = new VMwareCbtUpdateMigrationItemInput().withTargetVmName("igcfddofxnf") - .withTargetVmSize("jyyrqaedw") - .withTargetResourceGroupId("ocytjgoeayokrw") - .withTargetAvailabilitySetId("ihwpadhedbfobd") - .withTargetAvailabilityZone("vothmkhjaoz") - .withTargetProximityPlacementGroupId("wfcn") - .withTargetBootDiagnosticsStorageAccountId("bpoelhscmyhrhjv") - .withTargetNetworkId("fqbokndwp") - .withTestNetworkId("qwojoev") - .withVmNics(Arrays.asList( - new VMwareCbtNicInput().withNicId("fytdxmly") - .withIsPrimaryNic("zlyvapbkrbuog") - .withTargetSubnetName("dltlcu") - .withTargetStaticIpAddress("izij") - .withIsSelectedForMigration("ylzeohlpsftq") - .withTargetNicName("vmhvbvvcpwtqs") - .withTestSubnetName("pnhmzy") - .withTestStaticIpAddress("fetev"), - new VMwareCbtNicInput().withNicId("ntfknwacycsyo") - .withIsPrimaryNic("ctkhfh") - .withTargetSubnetName("atvcsxr") - .withTargetStaticIpAddress("nmizhv") - .withIsSelectedForMigration("hqqwcubl") - .withTargetNicName("hk") - .withTestSubnetName("obzgott") - .withTestStaticIpAddress("sadzighmmtb"), - new VMwareCbtNicInput().withNicId("dvucfvvra") - .withIsPrimaryNic("beurdeewl") - .withTargetSubnetName("xpcbwkdwjyjizn") - .withTargetStaticIpAddress("roo") - .withIsSelectedForMigration("ftaspmcr") - .withTargetNicName("huf") - .withTestSubnetName("n") - .withTestStaticIpAddress("hminuwqxungrobgw"))) - .withVmDisks(Arrays.asList( - new VMwareCbtUpdateDiskInput().withDiskId("xjwdylwxmvzjow") - .withTargetDiskName("geerclbl") - .withIsOSDisk("hpwachyeu"), - new VMwareCbtUpdateDiskInput().withDiskId("jwmvwryvdi") - .withTargetDiskName("ii") - .withIsOSDisk("pruccwme"))) - .withLicenseType(LicenseType.NOT_SPECIFIED) - .withSqlServerLicenseType(SqlServerLicenseType.NOT_SPECIFIED) - .withPerformAutoResync("trtexegwm") - .withTargetVmTags(mapOf("loqkajwjuri", "ywiwhvycfjncind", "anhz", "rsbcl", "zkz", "knjxizbaxdy")) - .withTargetDiskTags(mapOf("wacyyjmlxppdndzk", "e", "cizeqqfopvnopm", "evuiiuiibfkcjytq")) - .withTargetNicTags(mapOf("zyfbkmvldzmxojz", "sfhoxqlyo")); - model = BinaryData.fromObject(model).toObject(VMwareCbtUpdateMigrationItemInput.class); - Assertions.assertEquals("igcfddofxnf", model.targetVmName()); - Assertions.assertEquals("jyyrqaedw", model.targetVmSize()); - Assertions.assertEquals("ocytjgoeayokrw", model.targetResourceGroupId()); - Assertions.assertEquals("ihwpadhedbfobd", model.targetAvailabilitySetId()); - Assertions.assertEquals("vothmkhjaoz", model.targetAvailabilityZone()); - Assertions.assertEquals("wfcn", model.targetProximityPlacementGroupId()); - Assertions.assertEquals("bpoelhscmyhrhjv", model.targetBootDiagnosticsStorageAccountId()); - Assertions.assertEquals("fqbokndwp", model.targetNetworkId()); - Assertions.assertEquals("qwojoev", model.testNetworkId()); - Assertions.assertEquals("fytdxmly", model.vmNics().get(0).nicId()); - Assertions.assertEquals("zlyvapbkrbuog", model.vmNics().get(0).isPrimaryNic()); - Assertions.assertEquals("dltlcu", model.vmNics().get(0).targetSubnetName()); - Assertions.assertEquals("izij", model.vmNics().get(0).targetStaticIpAddress()); - Assertions.assertEquals("ylzeohlpsftq", model.vmNics().get(0).isSelectedForMigration()); - Assertions.assertEquals("vmhvbvvcpwtqs", model.vmNics().get(0).targetNicName()); - Assertions.assertEquals("pnhmzy", model.vmNics().get(0).testSubnetName()); - Assertions.assertEquals("fetev", model.vmNics().get(0).testStaticIpAddress()); - Assertions.assertEquals("xjwdylwxmvzjow", model.vmDisks().get(0).diskId()); - Assertions.assertEquals("geerclbl", model.vmDisks().get(0).targetDiskName()); - Assertions.assertEquals("hpwachyeu", model.vmDisks().get(0).isOSDisk()); - Assertions.assertEquals(LicenseType.NOT_SPECIFIED, model.licenseType()); - Assertions.assertEquals(SqlServerLicenseType.NOT_SPECIFIED, model.sqlServerLicenseType()); - Assertions.assertEquals("trtexegwm", model.performAutoResync()); - Assertions.assertEquals("ywiwhvycfjncind", model.targetVmTags().get("loqkajwjuri")); - Assertions.assertEquals("e", model.targetDiskTags().get("wacyyjmlxppdndzk")); - Assertions.assertEquals("sfhoxqlyo", model.targetNicTags().get("zyfbkmvldzmxojz")); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VMwareV2FabricCreationInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VMwareV2FabricCreationInputTests.java deleted file mode 100644 index ca45be8da265..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VMwareV2FabricCreationInputTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VMwareV2FabricCreationInput; -import org.junit.jupiter.api.Assertions; - -public final class VMwareV2FabricCreationInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VMwareV2FabricCreationInput model = BinaryData.fromString( - "{\"instanceType\":\"VMwareV2\",\"vmwareSiteId\":\"ptchdwyq\",\"physicalSiteId\":\"dqimlgbbfjm\",\"migrationSolutionId\":\"gjvxlhmpmhe\"}") - .toObject(VMwareV2FabricCreationInput.class); - Assertions.assertEquals("ptchdwyq", model.vmwareSiteId()); - Assertions.assertEquals("dqimlgbbfjm", model.physicalSiteId()); - Assertions.assertEquals("gjvxlhmpmhe", model.migrationSolutionId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VMwareV2FabricCreationInput model = new VMwareV2FabricCreationInput().withVmwareSiteId("ptchdwyq") - .withPhysicalSiteId("dqimlgbbfjm") - .withMigrationSolutionId("gjvxlhmpmhe"); - model = BinaryData.fromObject(model).toObject(VMwareV2FabricCreationInput.class); - Assertions.assertEquals("ptchdwyq", model.vmwareSiteId()); - Assertions.assertEquals("dqimlgbbfjm", model.physicalSiteId()); - Assertions.assertEquals("gjvxlhmpmhe", model.migrationSolutionId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VaultSettingCollectionTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VaultSettingCollectionTests.java deleted file mode 100644 index bdbaf6014ddc..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VaultSettingCollectionTests.java +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.VaultSettingInner; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VaultSettingCollection; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VaultSettingProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class VaultSettingCollectionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VaultSettingCollection model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"migrationSolutionId\":\"v\",\"vmwareToAzureProviderType\":\"oakizvoai\"},\"location\":\"a\",\"id\":\"lnuwiguy\",\"name\":\"lykwphvxz\",\"type\":\"wxh\"},{\"properties\":{\"migrationSolutionId\":\"jtlkexaonwivkcqh\",\"vmwareToAzureProviderType\":\"hxknlccrmmkyupi\"},\"location\":\"byqjfkakfqfrkem\",\"id\":\"il\",\"name\":\"udxjascowv\",\"type\":\"djkpdxph\"},{\"properties\":{\"migrationSolutionId\":\"snmgzvyfi\",\"vmwareToAzureProviderType\":\"kzuqnwsith\"},\"location\":\"olyahluqwqulsut\",\"id\":\"jb\",\"name\":\"xykfhyq\",\"type\":\"zvqqugdrftbcvexr\"}],\"nextLink\":\"quowtljvfwhrea\"}") - .toObject(VaultSettingCollection.class); - Assertions.assertEquals("v", model.value().get(0).properties().migrationSolutionId()); - Assertions.assertEquals("oakizvoai", model.value().get(0).properties().vmwareToAzureProviderType()); - Assertions.assertEquals("a", model.value().get(0).location()); - Assertions.assertEquals("quowtljvfwhrea", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VaultSettingCollection model - = new VaultSettingCollection() - .withValue(Arrays.asList( - new VaultSettingInner().withProperties(new VaultSettingProperties().withMigrationSolutionId("v") - .withVmwareToAzureProviderType("oakizvoai")).withLocation("a"), - new VaultSettingInner() - .withProperties(new VaultSettingProperties().withMigrationSolutionId("jtlkexaonwivkcqh") - .withVmwareToAzureProviderType("hxknlccrmmkyupi")) - .withLocation("byqjfkakfqfrkem"), - new VaultSettingInner() - .withProperties(new VaultSettingProperties().withMigrationSolutionId("snmgzvyfi") - .withVmwareToAzureProviderType("kzuqnwsith")) - .withLocation("olyahluqwqulsut"))) - .withNextLink("quowtljvfwhrea"); - model = BinaryData.fromObject(model).toObject(VaultSettingCollection.class); - Assertions.assertEquals("v", model.value().get(0).properties().migrationSolutionId()); - Assertions.assertEquals("oakizvoai", model.value().get(0).properties().vmwareToAzureProviderType()); - Assertions.assertEquals("a", model.value().get(0).location()); - Assertions.assertEquals("quowtljvfwhrea", model.nextLink()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VaultSettingCreationInputPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VaultSettingCreationInputPropertiesTests.java deleted file mode 100644 index 8d950e920c6f..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VaultSettingCreationInputPropertiesTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VaultSettingCreationInputProperties; -import org.junit.jupiter.api.Assertions; - -public final class VaultSettingCreationInputPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VaultSettingCreationInputProperties model = BinaryData - .fromString("{\"migrationSolutionId\":\"yxp\",\"vmwareToAzureProviderType\":\"tweialwvskbuhzac\"}") - .toObject(VaultSettingCreationInputProperties.class); - Assertions.assertEquals("yxp", model.migrationSolutionId()); - Assertions.assertEquals("tweialwvskbuhzac", model.vmwareToAzureProviderType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VaultSettingCreationInputProperties model - = new VaultSettingCreationInputProperties().withMigrationSolutionId("yxp") - .withVmwareToAzureProviderType("tweialwvskbuhzac"); - model = BinaryData.fromObject(model).toObject(VaultSettingCreationInputProperties.class); - Assertions.assertEquals("yxp", model.migrationSolutionId()); - Assertions.assertEquals("tweialwvskbuhzac", model.vmwareToAzureProviderType()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VaultSettingCreationInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VaultSettingCreationInputTests.java deleted file mode 100644 index a81e009c7d85..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VaultSettingCreationInputTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VaultSettingCreationInput; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VaultSettingCreationInputProperties; -import org.junit.jupiter.api.Assertions; - -public final class VaultSettingCreationInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VaultSettingCreationInput model = BinaryData - .fromString( - "{\"properties\":{\"migrationSolutionId\":\"ztrgdgxvcoq\",\"vmwareToAzureProviderType\":\"sw\"}}") - .toObject(VaultSettingCreationInput.class); - Assertions.assertEquals("ztrgdgxvcoq", model.properties().migrationSolutionId()); - Assertions.assertEquals("sw", model.properties().vmwareToAzureProviderType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VaultSettingCreationInput model = new VaultSettingCreationInput() - .withProperties(new VaultSettingCreationInputProperties().withMigrationSolutionId("ztrgdgxvcoq") - .withVmwareToAzureProviderType("sw")); - model = BinaryData.fromObject(model).toObject(VaultSettingCreationInput.class); - Assertions.assertEquals("ztrgdgxvcoq", model.properties().migrationSolutionId()); - Assertions.assertEquals("sw", model.properties().vmwareToAzureProviderType()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VaultSettingInnerTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VaultSettingInnerTests.java deleted file mode 100644 index b9d60a441f26..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VaultSettingInnerTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.VaultSettingInner; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VaultSettingProperties; -import org.junit.jupiter.api.Assertions; - -public final class VaultSettingInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VaultSettingInner model = BinaryData.fromString( - "{\"properties\":{\"migrationSolutionId\":\"yxvrqtvbczsul\",\"vmwareToAzureProviderType\":\"gglmepjpfsey\"},\"location\":\"sa\",\"id\":\"gpszngafpg\",\"name\":\"lkvec\",\"type\":\"ujcngo\"}") - .toObject(VaultSettingInner.class); - Assertions.assertEquals("yxvrqtvbczsul", model.properties().migrationSolutionId()); - Assertions.assertEquals("gglmepjpfsey", model.properties().vmwareToAzureProviderType()); - Assertions.assertEquals("sa", model.location()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VaultSettingInner model = new VaultSettingInner() - .withProperties(new VaultSettingProperties().withMigrationSolutionId("yxvrqtvbczsul") - .withVmwareToAzureProviderType("gglmepjpfsey")) - .withLocation("sa"); - model = BinaryData.fromObject(model).toObject(VaultSettingInner.class); - Assertions.assertEquals("yxvrqtvbczsul", model.properties().migrationSolutionId()); - Assertions.assertEquals("gglmepjpfsey", model.properties().vmwareToAzureProviderType()); - Assertions.assertEquals("sa", model.location()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VaultSettingPropertiesTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VaultSettingPropertiesTests.java deleted file mode 100644 index 223ed0a82025..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VaultSettingPropertiesTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VaultSettingProperties; -import org.junit.jupiter.api.Assertions; - -public final class VaultSettingPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VaultSettingProperties model = BinaryData - .fromString("{\"migrationSolutionId\":\"yedmzrgj\",\"vmwareToAzureProviderType\":\"knubnoitp\"}") - .toObject(VaultSettingProperties.class); - Assertions.assertEquals("yedmzrgj", model.migrationSolutionId()); - Assertions.assertEquals("knubnoitp", model.vmwareToAzureProviderType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VaultSettingProperties model = new VaultSettingProperties().withMigrationSolutionId("yedmzrgj") - .withVmwareToAzureProviderType("knubnoitp"); - model = BinaryData.fromObject(model).toObject(VaultSettingProperties.class); - Assertions.assertEquals("yedmzrgj", model.migrationSolutionId()); - Assertions.assertEquals("knubnoitp", model.vmwareToAzureProviderType()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VersionDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VersionDetailsTests.java deleted file mode 100644 index 47fb85e7f73f..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VersionDetailsTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.AgentVersionStatus; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VersionDetails; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; - -public final class VersionDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VersionDetails model = BinaryData.fromString( - "{\"version\":\"avehhrvkbunzo\",\"expiryDate\":\"2021-06-10T11:46:22Z\",\"status\":\"SecurityUpdateRequired\"}") - .toObject(VersionDetails.class); - Assertions.assertEquals("avehhrvkbunzo", model.version()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-10T11:46:22Z"), model.expiryDate()); - Assertions.assertEquals(AgentVersionStatus.SECURITY_UPDATE_REQUIRED, model.status()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VersionDetails model = new VersionDetails().withVersion("avehhrvkbunzo") - .withExpiryDate(OffsetDateTime.parse("2021-06-10T11:46:22Z")) - .withStatus(AgentVersionStatus.SECURITY_UPDATE_REQUIRED); - model = BinaryData.fromObject(model).toObject(VersionDetails.class); - Assertions.assertEquals("avehhrvkbunzo", model.version()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-10T11:46:22Z"), model.expiryDate()); - Assertions.assertEquals(AgentVersionStatus.SECURITY_UPDATE_REQUIRED, model.status()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VirtualMachineTaskDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VirtualMachineTaskDetailsTests.java deleted file mode 100644 index 232c55334405..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VirtualMachineTaskDetailsTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.JobEntity; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VirtualMachineTaskDetails; -import org.junit.jupiter.api.Assertions; - -public final class VirtualMachineTaskDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VirtualMachineTaskDetails model = BinaryData.fromString( - "{\"instanceType\":\"VirtualMachineTaskDetails\",\"skippedReason\":\"doaqipmnxclfrsb\",\"skippedReasonString\":\"nm\",\"jobTask\":{\"jobId\":\"vp\",\"jobFriendlyName\":\"fddtbfmekjcng\",\"targetObjectId\":\"xdvmaoyqxf\",\"targetObjectName\":\"yxzmx\",\"targetInstanceType\":\"ofxlttxo\",\"jobScenarioName\":\"tdnzujsjirkrpskc\"}}") - .toObject(VirtualMachineTaskDetails.class); - Assertions.assertEquals("vp", model.jobTask().jobId()); - Assertions.assertEquals("fddtbfmekjcng", model.jobTask().jobFriendlyName()); - Assertions.assertEquals("xdvmaoyqxf", model.jobTask().targetObjectId()); - Assertions.assertEquals("yxzmx", model.jobTask().targetObjectName()); - Assertions.assertEquals("ofxlttxo", model.jobTask().targetInstanceType()); - Assertions.assertEquals("tdnzujsjirkrpskc", model.jobTask().jobScenarioName()); - Assertions.assertEquals("doaqipmnxclfrsb", model.skippedReason()); - Assertions.assertEquals("nm", model.skippedReasonString()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VirtualMachineTaskDetails model = new VirtualMachineTaskDetails() - .withJobTask(new JobEntity().withJobId("vp") - .withJobFriendlyName("fddtbfmekjcng") - .withTargetObjectId("xdvmaoyqxf") - .withTargetObjectName("yxzmx") - .withTargetInstanceType("ofxlttxo") - .withJobScenarioName("tdnzujsjirkrpskc")) - .withSkippedReason("doaqipmnxclfrsb") - .withSkippedReasonString("nm"); - model = BinaryData.fromObject(model).toObject(VirtualMachineTaskDetails.class); - Assertions.assertEquals("vp", model.jobTask().jobId()); - Assertions.assertEquals("fddtbfmekjcng", model.jobTask().jobFriendlyName()); - Assertions.assertEquals("xdvmaoyqxf", model.jobTask().targetObjectId()); - Assertions.assertEquals("yxzmx", model.jobTask().targetObjectName()); - Assertions.assertEquals("ofxlttxo", model.jobTask().targetInstanceType()); - Assertions.assertEquals("tdnzujsjirkrpskc", model.jobTask().jobScenarioName()); - Assertions.assertEquals("doaqipmnxclfrsb", model.skippedReason()); - Assertions.assertEquals("nm", model.skippedReasonString()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VmNicUpdatesTaskDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VmNicUpdatesTaskDetailsTests.java deleted file mode 100644 index c88493ef00eb..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VmNicUpdatesTaskDetailsTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VmNicUpdatesTaskDetails; -import org.junit.jupiter.api.Assertions; - -public final class VmNicUpdatesTaskDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VmNicUpdatesTaskDetails model = BinaryData.fromString( - "{\"instanceType\":\"VmNicUpdatesTaskDetails\",\"vmId\":\"zertkounz\",\"nicId\":\"ywhubymfpopik\",\"name\":\"b\"}") - .toObject(VmNicUpdatesTaskDetails.class); - Assertions.assertEquals("zertkounz", model.vmId()); - Assertions.assertEquals("ywhubymfpopik", model.nicId()); - Assertions.assertEquals("b", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VmNicUpdatesTaskDetails model - = new VmNicUpdatesTaskDetails().withVmId("zertkounz").withNicId("ywhubymfpopik").withName("b"); - model = BinaryData.fromObject(model).toObject(VmNicUpdatesTaskDetails.class); - Assertions.assertEquals("zertkounz", model.vmId()); - Assertions.assertEquals("ywhubymfpopik", model.nicId()); - Assertions.assertEquals("b", model.name()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VmmDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VmmDetailsTests.java deleted file mode 100644 index 2ff2cdd66c3a..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VmmDetailsTests.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VmmDetails; - -public final class VmmDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VmmDetails model = BinaryData.fromString("{\"instanceType\":\"VMM\"}").toObject(VmmDetails.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VmmDetails model = new VmmDetails(); - model = BinaryData.fromObject(model).toObject(VmmDetails.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VmmToAzureCreateNetworkMappingInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VmmToAzureCreateNetworkMappingInputTests.java deleted file mode 100644 index 9664fa0f4a6b..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VmmToAzureCreateNetworkMappingInputTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VmmToAzureCreateNetworkMappingInput; - -public final class VmmToAzureCreateNetworkMappingInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VmmToAzureCreateNetworkMappingInput model = BinaryData.fromString("{\"instanceType\":\"VmmToAzure\"}") - .toObject(VmmToAzureCreateNetworkMappingInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VmmToAzureCreateNetworkMappingInput model = new VmmToAzureCreateNetworkMappingInput(); - model = BinaryData.fromObject(model).toObject(VmmToAzureCreateNetworkMappingInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VmmToAzureNetworkMappingSettingsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VmmToAzureNetworkMappingSettingsTests.java deleted file mode 100644 index 6b6b9e3820bc..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VmmToAzureNetworkMappingSettingsTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VmmToAzureNetworkMappingSettings; - -public final class VmmToAzureNetworkMappingSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VmmToAzureNetworkMappingSettings model = BinaryData.fromString("{\"instanceType\":\"VmmToAzure\"}") - .toObject(VmmToAzureNetworkMappingSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VmmToAzureNetworkMappingSettings model = new VmmToAzureNetworkMappingSettings(); - model = BinaryData.fromObject(model).toObject(VmmToAzureNetworkMappingSettings.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VmmToAzureUpdateNetworkMappingInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VmmToAzureUpdateNetworkMappingInputTests.java deleted file mode 100644 index 41b47d8038d9..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VmmToAzureUpdateNetworkMappingInputTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VmmToAzureUpdateNetworkMappingInput; - -public final class VmmToAzureUpdateNetworkMappingInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VmmToAzureUpdateNetworkMappingInput model = BinaryData.fromString("{\"instanceType\":\"VmmToAzure\"}") - .toObject(VmmToAzureUpdateNetworkMappingInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VmmToAzureUpdateNetworkMappingInput model = new VmmToAzureUpdateNetworkMappingInput(); - model = BinaryData.fromObject(model).toObject(VmmToAzureUpdateNetworkMappingInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VmmToVmmCreateNetworkMappingInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VmmToVmmCreateNetworkMappingInputTests.java deleted file mode 100644 index 9f1b8b982e6d..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VmmToVmmCreateNetworkMappingInputTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VmmToVmmCreateNetworkMappingInput; - -public final class VmmToVmmCreateNetworkMappingInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VmmToVmmCreateNetworkMappingInput model = BinaryData.fromString("{\"instanceType\":\"VmmToVmm\"}") - .toObject(VmmToVmmCreateNetworkMappingInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VmmToVmmCreateNetworkMappingInput model = new VmmToVmmCreateNetworkMappingInput(); - model = BinaryData.fromObject(model).toObject(VmmToVmmCreateNetworkMappingInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VmmToVmmNetworkMappingSettingsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VmmToVmmNetworkMappingSettingsTests.java deleted file mode 100644 index 1d76370c367d..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VmmToVmmNetworkMappingSettingsTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VmmToVmmNetworkMappingSettings; - -public final class VmmToVmmNetworkMappingSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VmmToVmmNetworkMappingSettings model - = BinaryData.fromString("{\"instanceType\":\"VmmToVmm\"}").toObject(VmmToVmmNetworkMappingSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VmmToVmmNetworkMappingSettings model = new VmmToVmmNetworkMappingSettings(); - model = BinaryData.fromObject(model).toObject(VmmToVmmNetworkMappingSettings.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VmmToVmmUpdateNetworkMappingInputTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VmmToVmmUpdateNetworkMappingInputTests.java deleted file mode 100644 index cf52b66e2277..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VmmToVmmUpdateNetworkMappingInputTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VmmToVmmUpdateNetworkMappingInput; - -public final class VmmToVmmUpdateNetworkMappingInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VmmToVmmUpdateNetworkMappingInput model = BinaryData.fromString("{\"instanceType\":\"VmmToVmm\"}") - .toObject(VmmToVmmUpdateNetworkMappingInput.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VmmToVmmUpdateNetworkMappingInput model = new VmmToVmmUpdateNetworkMappingInput(); - model = BinaryData.fromObject(model).toObject(VmmToVmmUpdateNetworkMappingInput.class); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VmmVirtualMachineDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VmmVirtualMachineDetailsTests.java deleted file mode 100644 index f6bf1f78790e..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VmmVirtualMachineDetailsTests.java +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.DiskDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.OSDetails; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.PresenceStatus; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VmmVirtualMachineDetails; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class VmmVirtualMachineDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VmmVirtualMachineDetails model = BinaryData.fromString( - "{\"instanceType\":\"VmmVirtualMachine\",\"sourceItemId\":\"mmofbnivdqtkyk\",\"generation\":\"xnlsf\",\"osDetails\":{\"osType\":\"scaccptbz\",\"productType\":\"x\",\"osEdition\":\"xxicee\",\"oSVersion\":\"jwyuveox\",\"oSMajorVersion\":\"z\",\"oSMinorVersion\":\"ahdr\"},\"diskDetails\":[{\"maxSizeMB\":2901220119484364811,\"vhdType\":\"xbiv\",\"vhdId\":\"gxmbrygmwibiosiq\",\"vhdName\":\"kqfdqwdrtx\"}],\"hasPhysicalDisk\":\"NotPresent\",\"hasFibreChannelAdapter\":\"Unknown\",\"hasSharedVhd\":\"Present\",\"hyperVHostId\":\"co\"}") - .toObject(VmmVirtualMachineDetails.class); - Assertions.assertEquals("mmofbnivdqtkyk", model.sourceItemId()); - Assertions.assertEquals("xnlsf", model.generation()); - Assertions.assertEquals("scaccptbz", model.osDetails().osType()); - Assertions.assertEquals("x", model.osDetails().productType()); - Assertions.assertEquals("xxicee", model.osDetails().osEdition()); - Assertions.assertEquals("jwyuveox", model.osDetails().oSVersion()); - Assertions.assertEquals("z", model.osDetails().oSMajorVersion()); - Assertions.assertEquals("ahdr", model.osDetails().oSMinorVersion()); - Assertions.assertEquals(2901220119484364811L, model.diskDetails().get(0).maxSizeMB()); - Assertions.assertEquals("xbiv", model.diskDetails().get(0).vhdType()); - Assertions.assertEquals("gxmbrygmwibiosiq", model.diskDetails().get(0).vhdId()); - Assertions.assertEquals("kqfdqwdrtx", model.diskDetails().get(0).vhdName()); - Assertions.assertEquals(PresenceStatus.NOT_PRESENT, model.hasPhysicalDisk()); - Assertions.assertEquals(PresenceStatus.UNKNOWN, model.hasFibreChannelAdapter()); - Assertions.assertEquals(PresenceStatus.PRESENT, model.hasSharedVhd()); - Assertions.assertEquals("co", model.hyperVHostId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VmmVirtualMachineDetails model = new VmmVirtualMachineDetails().withSourceItemId("mmofbnivdqtkyk") - .withGeneration("xnlsf") - .withOsDetails(new OSDetails().withOsType("scaccptbz") - .withProductType("x") - .withOsEdition("xxicee") - .withOSVersion("jwyuveox") - .withOSMajorVersion("z") - .withOSMinorVersion("ahdr")) - .withDiskDetails(Arrays.asList(new DiskDetails().withMaxSizeMB(2901220119484364811L) - .withVhdType("xbiv") - .withVhdId("gxmbrygmwibiosiq") - .withVhdName("kqfdqwdrtx"))) - .withHasPhysicalDisk(PresenceStatus.NOT_PRESENT) - .withHasFibreChannelAdapter(PresenceStatus.UNKNOWN) - .withHasSharedVhd(PresenceStatus.PRESENT) - .withHyperVHostId("co"); - model = BinaryData.fromObject(model).toObject(VmmVirtualMachineDetails.class); - Assertions.assertEquals("mmofbnivdqtkyk", model.sourceItemId()); - Assertions.assertEquals("xnlsf", model.generation()); - Assertions.assertEquals("scaccptbz", model.osDetails().osType()); - Assertions.assertEquals("x", model.osDetails().productType()); - Assertions.assertEquals("xxicee", model.osDetails().osEdition()); - Assertions.assertEquals("jwyuveox", model.osDetails().oSVersion()); - Assertions.assertEquals("z", model.osDetails().oSMajorVersion()); - Assertions.assertEquals("ahdr", model.osDetails().oSMinorVersion()); - Assertions.assertEquals(2901220119484364811L, model.diskDetails().get(0).maxSizeMB()); - Assertions.assertEquals("xbiv", model.diskDetails().get(0).vhdType()); - Assertions.assertEquals("gxmbrygmwibiosiq", model.diskDetails().get(0).vhdId()); - Assertions.assertEquals("kqfdqwdrtx", model.diskDetails().get(0).vhdName()); - Assertions.assertEquals(PresenceStatus.NOT_PRESENT, model.hasPhysicalDisk()); - Assertions.assertEquals(PresenceStatus.UNKNOWN, model.hasFibreChannelAdapter()); - Assertions.assertEquals(PresenceStatus.PRESENT, model.hasSharedVhd()); - Assertions.assertEquals("co", model.hyperVHostId()); - } -} diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VmwareCbtPolicyDetailsTests.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VmwareCbtPolicyDetailsTests.java deleted file mode 100644 index 021bfd4f337f..000000000000 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/test/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/VmwareCbtPolicyDetailsTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.recoveryservicessiterecovery.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VmwareCbtPolicyDetails; -import org.junit.jupiter.api.Assertions; - -public final class VmwareCbtPolicyDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VmwareCbtPolicyDetails model = BinaryData.fromString( - "{\"instanceType\":\"VMwareCbt\",\"recoveryPointHistoryInMinutes\":565605624,\"appConsistentFrequencyInMinutes\":1535089718,\"crashConsistentFrequencyInMinutes\":1544555304}") - .toObject(VmwareCbtPolicyDetails.class); - Assertions.assertEquals(565605624, model.recoveryPointHistoryInMinutes()); - Assertions.assertEquals(1535089718, model.appConsistentFrequencyInMinutes()); - Assertions.assertEquals(1544555304, model.crashConsistentFrequencyInMinutes()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VmwareCbtPolicyDetails model = new VmwareCbtPolicyDetails().withRecoveryPointHistoryInMinutes(565605624) - .withAppConsistentFrequencyInMinutes(1535089718) - .withCrashConsistentFrequencyInMinutes(1544555304); - model = BinaryData.fromObject(model).toObject(VmwareCbtPolicyDetails.class); - Assertions.assertEquals(565605624, model.recoveryPointHistoryInMinutes()); - Assertions.assertEquals(1535089718, model.appConsistentFrequencyInMinutes()); - Assertions.assertEquals(1544555304, model.crashConsistentFrequencyInMinutes()); - } -}