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